@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=DM+Serif+Display&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

:root {
  --ink: #192f35;
  --muted: #4c5e60;
  --accent: #9c492c;
  --cream: #f7f5ef;
  --line: #d9ded5;
  --white: #fff;
  --focus: #963d16;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 15.3px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 5% 8%, #e9ede299, transparent 43%), radial-gradient(ellipse at 95% 0%, #f2e5d780, transparent 38%); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.site-header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand, .footer-brand { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 48px; }
.brand img { width: 56px; height: auto; display: block; }
.footer-brand img { width: 43px; height: auto; display: block; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  font-size: 15.3px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #aebbb0;
  border-radius: 999px;
  padding: 9px 20px;
  transition: background .18s, border-color .18s;
}
.header-link:hover { background: #fff9; border-color: var(--ink); }
.header-link span { font-size: 20.4px; color: var(--accent); }
.layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
  padding-block: 64px 88px;
}
.intro { padding-top: 12px; }
.eyebrow {
  font-size: 13.6px;
  font-weight: 750;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(59.5px, 5.78vw, 78.2px);
  letter-spacing: -2.5px;
  line-height: 1.02;
  font-weight: 400;
  margin: 28px 0;
}
h1 > span, h1 > em { display: block; }
h1 em { font-style: normal; color: var(--accent); }
.lead { max-width: 350px; font-size: 22.95px; font-weight: 500; line-height: 1.4; letter-spacing: -.5px; margin: 0 0 20px; }
.intro-copy { max-width: 415px; color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0; }
.campaign-copy p { margin: 0 0 18px; }
.campaign-copy p:last-child { margin-bottom: 0; }
.campaign-copy strong { color: var(--ink); font-weight: 650; }
.hero-button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 58px; padding: 13px 24px; margin-top: 28px; border-radius: 999px; color: #fff; background: var(--ink); font-size: 15.3px; font-weight: 600; text-decoration: none; box-shadow: 0 5px 15px #192f3510; transition: background .18s, transform .18s; }
.hero-button span { color: #efc2a7; font-size: 20.4px; line-height: 1; }
.hero-button:hover { background: #2b4a4f; transform: translateY(-1px); }
.how-it-works { margin-top: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 415px; }
.how-it-works summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; cursor: pointer; min-height: 64px; padding: 14px 0; font-size: 15.3px; font-weight: 600; list-style: none; }
.how-it-works summary::-webkit-details-marker { display: none; }
.how-it-works summary::after { content: '+'; margin-left: auto; font-size: 22.1px; font-weight: 400; line-height: 1; color: var(--accent); }
.how-it-works[open] summary::after { content: '−'; }
.how-it-works summary > span { font-size: 15.3px; font-weight: 400; color: var(--muted); }
.how-it-works .steps { padding: 8px 0 26px; }
.steps { padding: 0; list-style: none; margin: 0; display: grid; gap: 28px; }
.steps li { display: flex; align-items: flex-start; gap: 20px; }
.steps li > span { font-size: 13.6px; letter-spacing: 1px; color: var(--accent); padding-top: 4px; font-weight: 700; }
.steps strong { font-size: 17px; font-weight: 650; }
.steps p { font-size: 15.3px; line-height: 1.65; color: var(--muted); margin: 6px 0 0; max-width: 370px; }
.intro-note { margin-top: 30px; display: flex; gap: 16px; align-items: center; }
.intro-note svg { width: 32px; height: 32px; color: var(--accent); flex: 0 0 auto; }
.intro-note p { font-size: 15.3px; line-height: 1.7; color: var(--muted); margin: 0; }
.intro-note strong { color: var(--ink); font-weight: 550; }
.letter-card {
  background: var(--white);
  padding: 36px 36px 28px;
  border: 1px solid #e0e4db;
  border-radius: 24px;
  box-shadow: 0 20px 70px -20px #1c363315, 0 2px 5px #1c363304;
  scroll-margin-top: 24px;
  min-width: 0;
}
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-heading > .eyebrow { color: var(--accent); font-size: 11.9px; letter-spacing: 1.6px; }
.small-badge {
  font-size: 11.9px;
  letter-spacing: 1px;
  background: #f0f2ec;
  padding: 8px 10px;
  border-radius: 3px;
  font-weight: 600;
  color: var(--muted);
}
h2 { font-family: Manrope, Arial, sans-serif; font-size: 27.2px; font-weight: 650; letter-spacing: -.9px; line-height: 1.3; margin: 25px 0 14px; }
.card-intro { font-size: 15.3px; color: var(--muted); line-height: 1.65; margin: 0; }
.recipient { display: flex; align-items: center; gap: 14px; background: #f0f3ed; padding: 18px; margin: 24px 0 30px; border-radius: 14px; }
.recipient-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background: #fff; font-size: 22.1px; color: #42614b; }
.recipient div { display: grid; gap: 6px; min-width: 0; }
.recipient div > span { font-size: 11.9px; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.recipient strong { font-size: 15.3px; font-weight: 600; overflow-wrap: anywhere; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 650; font-size: 18.7px; margin: 0 0 22px; display: flex; align-items: center; gap: 12px; padding: 0; }
legend > span { display: grid; place-items: center; background: #f4eee6; border: 1px solid #e6d5c5; border-radius: 50%; font-size: 13.6px; width: 32px; height: 32px; font-weight: 600; color: #904225; }
.field { margin-bottom: 22px; min-width: 0; }
label { font-size: 15.3px; font-weight: 600; display: block; margin-bottom: 10px; }
label > span[aria-hidden] { color: var(--accent); }
input:not([type=checkbox]), select, textarea {
  display: block;
  width: 100%;
  background: #fcfcf9;
  border: 1px solid #87978b;
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  min-height: 60px;
}
input::placeholder { color: #68767c; opacity: 1; }
select { padding-right: 30px; }
textarea { line-height: 1.75; resize: vertical; min-height: 340px; }
.location-fields { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.field-help { font-size: 15.3px; color: var(--muted); line-height: 1.6; margin: 10px 0 0; }
.message-section { border-top: 1px solid #dfe4da; margin-top: 12px; padding-top: 28px; position: relative; }
.message-section legend { float: left; width: 100%; margin: 0 0 14px; }
.wording-row { clear: both; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.wording-row p { font-size: 15.3px; color: var(--muted); margin: 0; line-height: 1.6; }
.subject-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; }
.subject-tools label { margin-bottom: 0; }
.subject-help { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
#subject-count, #message-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.text-button { background: none; border: 0; padding: 10px 0; color: var(--accent); font-size: 15.3px; font-weight: 600; display: flex; align-items: center; gap: 8px; min-height: 48px; text-align: left; }
.text-button svg { width: 20px; height: 20px; flex: 0 0 auto; }
.signature { font-size: 15.3px; line-height: 1.75; border-left: 3px solid #dbac8e; padding-left: 16px; margin-top: 0; margin-bottom: 28px; display: grid; color: var(--muted); }
.signature strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.signature > span { overflow-wrap: anywhere; }
.logging-notice { margin: 0 0 18px; }
.send-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--ink); color: white; border: 0; min-height: 62px; padding: 16px; border-radius: 12px; font-size: 17px; font-weight: 600; transition: background .15s; }
.send-button:hover { background: #254650; }
.send-button svg { width: 24px; height: 24px; color: #efb48f; flex: 0 0 auto; }
.send-note { font-size: 15.3px; text-align: center; color: var(--muted); line-height: 1.65; margin: 16px 0 26px; }
.privacy { border-top: 1px solid #dfe4da; padding-top: 16px; font-size: 15.3px; color: var(--muted); line-height: 1.75; }
.privacy summary { cursor: pointer; font-weight: 550; min-height: 48px; padding-block: 9px; }
.privacy p { margin: 10px 0 0; }
.site-footer { display: flex; gap: 26px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 28px 36px; font-size: 15.3px; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer > a:last-child { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }
.site-footer a span { margin-left: 12px; }
.notice { color: #7d2d13; background: #fff1e9; padding: 16px; line-height: 1.65; font-size: 15.3px; border-radius: 5px; overflow-wrap: anywhere; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; top: 15px; left: 15px; background: white; padding: 15px; z-index: 99; }

.draft-ready { margin: 26px 0 28px; padding: 28px 24px; background: #f2f6f0; border: 1px solid #b4c5ac; border-radius: 16px; outline: none; }
.draft-ready[hidden] { display: none; }
.draft-icon { font-size: 23.8px; color: #42614b; float: right; }
.draft-ready > .eyebrow { font-size: 13.6px; color: #42614b; }
.draft-ready h3 { font-family: Manrope, Arial, sans-serif; font-size: 25.5px; line-height: 1.3; letter-spacing: -.7px; margin: 18px 0 14px; }
.draft-ready p { font-size: 15.3px; line-height: 1.75; color: var(--muted); }
.draft-ready strong { color: var(--ink); overflow-wrap: anywhere; }
.draft-ready .draft-status { font-size: 15.3px; margin: 16px 0 22px; }
.secondary-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; width: 100%; background: #fff; border: 1px solid #85968e; border-radius: 10px; padding: 13px; text-decoration: none; font-size: 15.3px; font-weight: 600; text-align: center; }
.secondary-button:hover { background: #fbfdf9; }
.compose-help { margin-top: 23px; padding-top: 18px; border-top: 1px solid #c8d4c2; font-size: 15.3px; line-height: 1.75; }
.compose-help summary { cursor: pointer; font-weight: 600; min-height: 48px; padding-block: 9px; }
.copy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.copy-actions button { padding: 12px 14px; min-height: 48px; background: #fff; border: 1px solid #85968e; border-radius: 5px; font-size: 15.3px; color: var(--ink); }
#copy-status { font-size: 15.3px; min-height: 0; }
#manual-copy textarea { font-size: 17px; min-height: 240px; }
.draft-ready:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

@media (min-width: 1550px) {
  .layout { gap: 80px; padding-top: 76px; }
}
@media (max-width: 1150px) {
  .shell { width: calc(100% - 64px); }
  .layout { gap: 40px; }
  .letter-card { padding: 30px 26px 26px; }
  h1 { font-size: 64.6px; }
  .lead { font-size: 21.25px; }
}
@media (max-width: 1000px) {
  .shell { width: min(720px, calc(100% - 48px)); }
  .site-header { min-height: 92px; }
  .brand img { width: 52px; }
  .layout { display: grid; grid-template-columns: 1fr; gap: 36px; padding-block: 40px 52px; }
  .intro { padding: 0; }
  h1 { max-width: 650px; font-size: 64.6px; letter-spacing: -2px; margin: 24px 0; }
  h1 > span, h1 > em { display: inline; }
  .lead { max-width: none; }
  .intro-copy { max-width: 560px; }
  .how-it-works { max-width: none; margin-top: 28px; }
  .steps { gap: 24px; }
  .steps p { max-width: none; }
  .intro-note { display: none; }
  .letter-card { padding: 32px; }
  .site-footer { flex-wrap: wrap; gap: 20px; }
  .site-footer p { flex: 1 1 60%; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .site-header { min-height: 82px; gap: 16px; }
  .brand img { width: 46px; }
  .header-link { font-size: 15.3px; line-height: 1.4; gap: 10px; padding: 9px 15px; }
  .header-link span { font-size: 19.55px; }
  .layout { padding-block: 30px 40px; gap: 30px; }
  .eyebrow { font-size: 11.9px; letter-spacing: 1.1px; }
  h1 { font-size: clamp(44.2px, 12.75vw, 59.5px); line-height: 1.02; letter-spacing: -1.7px; margin: 20px 0; }
  h1 > span, h1 > em { display: block; }
  .lead { max-width: 340px; font-size: 20.4px; margin-bottom: 14px; }
  .intro-copy { font-size: 15.3px; line-height: 1.65; max-width: 37ch; }
  .hero-button { margin-top: 22px; min-height: 56px; }
  .how-it-works { margin-top: 24px; }
  .how-it-works summary { gap: 6px 14px; }
  .steps li { gap: 16px; }
  .letter-card { padding: 26px 22px; border-radius: 22px; scroll-margin-top: 16px; }
  .card-heading { gap: 8px; }
  h2 { font-size: 24.65px; line-height: 1.3; margin: 18px 0 12px; }
  .recipient { padding: 16px 14px; gap: 12px; }
  .recipient div > span { font-size: 11.9px; letter-spacing: .5px; }
  .location-fields { grid-template-columns: 1fr; gap: 0; }
  .draft-ready { padding: 24px 18px; }
  .draft-ready h3 { font-size: 23.8px; }
  .copy-actions { display: grid; grid-template-columns: 1fr; }
  .site-footer p { flex-basis: 100%; order: 3; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .letter-card { padding: 24px 16px; }
  .recipient { padding: 14px 12px; gap: 10px; }
  .recipient-icon { width: 34px; height: 34px; }
  .how-it-works summary { gap: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  * { transition: none !important; }
}
