:root {
  --paper: #f5efe7;
  --paper-deep: #ebe0d4;
  --paper-light: #fffaf3;
  --ink: #2d2028;
  --ink-soft: #574650;
  --muted: #6c5c65;
  --line: #d9c9be;
  --line-strong: #c4ada0;
  --rose: #a44d5d;
  --rose-light: #e9c8c5;
  --plum: #543047;
  --plum-soft: #72566a;
  --gold: #b4844f;
  --gold-light: #e9d7b9;
  --white: #fffdf9;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1240px;
  --content-gutter: 52px;
  --paper-shadow: 0 24px 55px rgba(74, 45, 48, .13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .33;
  background-image: radial-gradient(rgba(84, 48, 71, .08) .7px, transparent .7px);
  background-size: 13px 13px;
  mix-blend-mode: multiply;
}

::selection { color: var(--white); background: var(--plum); }

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: .7rem 1rem;
  color: var(--white);
  background: var(--plum);
}

.skip-link:focus { top: 1rem; }

.site-header,
.progress-shell,
main,
.site-footer {
  width: min(calc(100% - var(--content-gutter) * 2), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  color: var(--plum);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -.06em;
}

.brand-mark { color: var(--gold); font-family: var(--font-body); font-size: 1.15rem; }
.brand-dash { color: var(--rose); padding-inline: .06em; }
.header-caption, .progress-meta, .progress-steps, .section-number, .form-topline, .form-hint, .back-to-top {
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.header-caption { margin: 0; }

.progress-shell { padding: 19px 0 8px; }
.progress-meta, .progress-steps { display: flex; justify-content: space-between; gap: 1rem; }
.progress-meta { margin-bottom: .45rem; }
.progress-track { position: relative; height: 22px; }
.progress-track::before, .progress-fill { position: absolute; top: 50%; left: 0; height: 1px; content: ""; transform: translateY(-50%); }
.progress-track::before { width: 100%; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 9px); }
.progress-fill { width: 3%; background: var(--rose); transition: width .5s ease; }
.progress-heart {
  position: absolute;
  top: 50%;
  left: 3%;
  z-index: 1;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--paper-light);
  background: var(--rose);
  border: 3px solid var(--paper);
  border-radius: 50%;
  font-size: .66rem;
  transform: translate(-50%, -50%);
  transition: left .5s ease;
}
.progress-dot { position: absolute; top: 50%; width: 7px; height: 7px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 50%; transform: translate(-50%, -50%); transition: background .25s ease, border-color .25s ease; }
.progress-dot-one { left: 3%; }.progress-dot-two { left: 35%; }.progress-dot-three { left: 68%; }.progress-dot-four { left: 100%; }
.progress-dot.is-active { background: var(--rose); border-color: var(--rose); }
.progress-steps { margin-top: .2rem; font-size: .54rem; letter-spacing: .11em; }

.section-anchor { scroll-margin-top: 24px; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr);
  gap: clamp(60px, 9vw, 140px);
  align-items: center;
  min-height: max(665px, calc(100vh - 185px));
  padding: 72px 0 112px;
}
.hero-copy { padding-left: clamp(0px, 3vw, 48px); }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.35rem; color: var(--rose); font-size: .65rem; font-weight: 750; letter-spacing: .16em; line-height: 1.25; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 30px; height: 1px; background: currentColor; }
.hero-recipient { margin: 0 0 .55rem; color: var(--plum); font-family: var(--font-display); font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-style: italic; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.065em; }
h1 { max-width: 690px; margin-bottom: .9rem; font-size: clamp(4.7rem, 7.7vw, 8rem); line-height: .79; }
h1 em, h2 i, h3 i { color: var(--rose); font-style: italic; }
.hero-signature { margin: 0 0 1.8rem; color: var(--plum-soft); font-family: var(--font-display); font-size: 1.45rem; font-style: italic; }
.hero-lead { max-width: 450px; margin-bottom: 1.6rem; color: var(--ink-soft); font-size: 1rem; }
.hero-letter-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.45rem; max-width: 500px; padding: .85rem 0; margin-bottom: 1.6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-letter-meta span { display: inline-flex; gap: .4rem; }
.hero-letter-meta b { color: var(--rose); font-size: .58rem; font-weight: 750; }
.hero-cta-label { margin-bottom: .7rem; color: var(--plum); font-family: var(--font-display); font-size: 1.12rem; font-style: italic; }
.hero-actions { display: flex; align-items: center; gap: .8rem; }
.button { display: inline-flex; min-height: 56px; align-items: center; justify-content: center; gap: .8rem; padding: .82rem 1.35rem; border: 1px solid transparent; border-radius: 2px; font-size: .76rem; font-weight: 750; letter-spacing: .03em; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, .quiet-action:focus-visible, .mood-option:focus-visible, .field-input:focus-visible, a:focus-visible { outline: 3px solid rgba(180, 132, 79, .6); outline-offset: 3px; }
.button-primary { color: var(--white); background: var(--plum); box-shadow: 0 12px 22px rgba(84, 48, 71, .18); }
.button-primary:hover { background: #3f2335; box-shadow: 0 16px 28px rgba(84, 48, 71, .24); }
.quiet-action { padding: .45rem 0; margin-top: .6rem; border: 0; color: var(--muted); background: none; font-size: .7rem; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.action-feedback { min-height: 1.5em; margin: .72rem 0 0; color: var(--rose); font-size: .78rem; }

.hero-visual { position: relative; min-height: 575px; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before { position: absolute; inset: 7% 4% 8% 4%; z-index: -2; border: 1px solid var(--line); content: ""; transform: rotate(4deg); }
.hero-visual::after { position: absolute; inset: 14% 11% 11% 10%; z-index: -3; background: var(--gold-light); content: ""; opacity: .42; transform: rotate(-7deg); }
.postmark { position: absolute; top: 10%; right: 3%; display: grid; width: 74px; height: 74px; place-items: center; color: var(--plum-soft); border: 1px solid currentColor; border-radius: 50%; font-size: .52rem; letter-spacing: .13em; line-height: 1.5; text-align: center; transform: rotate(12deg); }
.postmark::before, .postmark::after { position: absolute; left: 50%; width: 92px; height: 1px; background: currentColor; content: ""; opacity: .45; transform: translateX(-50%); }
.postmark::before { top: 7px; }.postmark::after { bottom: 7px; }
.scribble { position: absolute; color: var(--rose); font-family: var(--font-display); font-size: 1.18rem; font-style: italic; }
.scribble-top { top: 9%; left: 5%; transform: rotate(-9deg); }
.envelope-shadow { position: absolute; bottom: 6%; width: 330px; height: 30px; border-radius: 50%; background: rgba(84, 48, 71, .17); filter: blur(16px); }
.envelope { position: relative; z-index: 1; width: min(410px, 82%); aspect-ratio: 1.28; background: var(--rose-light); box-shadow: var(--paper-shadow); transform: rotate(3deg); }
.envelope::before { position: absolute; inset: 12px; border: 1px solid rgba(164, 77, 93, .24); content: ""; }
.envelope-flap { position: absolute; top: 0; left: 0; z-index: 3; width: 100%; height: 52%; background: #efcfcb; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.envelope-front { position: absolute; right: 0; bottom: 0; left: 0; z-index: 4; height: 53%; background: #e4b9ba; clip-path: polygon(0 100%, 0 0, 50% 70%, 100% 0, 100% 100%); opacity: .84; }
.letter-card { position: absolute; top: 7%; left: 16%; z-index: 2; width: 68%; height: 84%; padding: 23px 27px; color: var(--ink); background: var(--paper-light); box-shadow: 0 12px 22px rgba(84, 48, 71, .12); transform: rotate(-5deg); }
.letter-card-topline { display: flex; justify-content: space-between; color: var(--rose); font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; }
.letter-card-kicker { margin: 33px 0 1rem; color: var(--muted); font-size: .55rem; letter-spacing: .18em; text-transform: uppercase; }
.letter-card-title { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 4.3vw, 3.7rem); letter-spacing: -.08em; line-height: .82; }
.letter-card-title em { color: var(--rose); font-style: italic; }
.letter-card-rule { width: 45px; height: 1px; margin: 28px 0 16px; background: var(--gold); }
.letter-card-note { color: var(--plum-soft); font-family: var(--font-display); font-size: .84rem; font-style: italic; line-height: 1.2; }
.letter-card-mark { position: absolute; right: 24px; bottom: 18px; color: var(--rose); font-size: 1.25rem; }
.wax-seal { position: absolute; right: 15%; bottom: 9%; z-index: 5; display: grid; width: 52px; height: 52px; place-items: center; color: var(--gold-light); background: var(--plum); border: 3px double var(--gold); border-radius: 50%; font-family: var(--font-display); font-size: 1.2rem; box-shadow: 0 5px 11px rgba(84, 48, 71, .2); }
.visual-caption { position: absolute; right: 1%; bottom: 3%; max-width: 168px; margin: 0; color: var(--muted); font-family: var(--font-display); font-size: .82rem; font-style: italic; line-height: 1.25; }
.visual-caption span { display: block; margin-bottom: .45rem; color: var(--rose); font-family: var(--font-body); font-size: .6rem; font-style: normal; letter-spacing: .11em; }

.story { position: relative; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1fr); gap: clamp(60px, 11vw, 170px); align-items: center; min-height: 710px; padding: 106px clamp(30px, 7vw, 120px); margin-inline: calc((100% - min(calc(100vw - var(--content-gutter) * 2), var(--max-width))) / -2); padding-inline: max(30px, calc((100vw - min(calc(100vw - var(--content-gutter) * 2), var(--max-width))) / 2 + 30px)); background: var(--paper-deep); }
.section-number { position: absolute; top: 31px; left: max(30px, calc((100vw - min(calc(100vw - var(--content-gutter) * 2), var(--max-width))) / 2 + 30px)); }
.section-number span { color: var(--line-strong); }
.story-art { position: relative; min-height: 420px; display: grid; place-items: center; }
.paper-sheet { position: relative; width: min(325px, 78%); aspect-ratio: .72; padding: 28px 32px; color: var(--plum); background: var(--paper-light); box-shadow: 17px 18px 0 rgba(196, 173, 160, .52), var(--paper-shadow); transform: rotate(-7deg); }
.paper-sheet::before { position: absolute; inset: 14px; border: 1px solid var(--line); content: ""; }
.paper-sheet-head { position: relative; z-index: 1; display: flex; justify-content: space-between; color: var(--rose); font-size: .53rem; letter-spacing: .12em; text-transform: uppercase; }
.paper-sheet p { position: relative; z-index: 1; margin: 65px 0 0; font-family: var(--font-display); font-size: 1.85rem; letter-spacing: -.06em; line-height: .96; }
.paper-sheet p em { color: var(--rose); font-style: italic; }
.paper-doodle { position: absolute; top: 38px; right: 41px; color: var(--gold); font-size: 1.5rem; }
.paper-lines { position: absolute; right: 35px; bottom: 88px; left: 34px; display: grid; gap: 12px; }
.paper-lines span { display: block; height: 1px; background: var(--line); }
.paper-lines span:nth-child(2) { width: 81%; }.paper-lines span:nth-child(3) { width: 63%; }
.paper-sign { position: absolute; right: 33px; bottom: 30px; color: var(--rose); font-family: var(--font-display); font-size: 1.2rem; font-style: italic; transform: rotate(-7deg); }
.art-caption { position: absolute; bottom: 3%; left: 12%; color: var(--muted); font-family: var(--font-display); font-size: .84rem; font-style: italic; line-height: 1.15; transform: rotate(-7deg); }
.story-copy { max-width: 500px; }
.story-copy h2, .details h2, .checkout h2 { margin-bottom: 1.45rem; font-size: clamp(3.35rem, 5.8vw, 5.9rem); line-height: .84; }
.story-copy > p:not(.eyebrow) { max-width: 440px; color: var(--ink-soft); }
.quote-mark { margin: 2.7rem 0 -.35rem; color: var(--gold); font-family: var(--font-display); font-size: 4.2rem; line-height: .5; }
.story blockquote { max-width: 420px; margin: 0 0 1.6rem; color: var(--plum); font-family: var(--font-display); font-size: 1.28rem; font-style: italic; line-height: 1.14; }
.story-signature { margin-bottom: 1.4rem; color: var(--muted); font-family: var(--font-display); font-style: italic; line-height: 1.2; }
.story-signature strong { color: var(--plum); font-size: 1.25rem; font-weight: 400; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; padding: 0; border: 0; color: var(--rose); background: none; font-size: .74rem; font-weight: 750; }
.text-link span { font-size: 1.1rem; transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, 3px); }

.details { padding: 137px 0 125px; }
.details-intro, .checkout-heading { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 30px; align-items: end; margin-bottom: 70px; }
.details-intro .eyebrow, .checkout-heading .eyebrow { align-self: start; margin-top: 1rem; }
.details-intro h2, .checkout-heading h2 { margin: 0; }
.details-intro > p:last-child, .checkout-heading > p:last-child { max-width: 285px; justify-self: end; margin: 0; color: var(--muted); font-size: .88rem; }
.question-set { display: grid; grid-template-columns: minmax(220px, .68fr) minmax(0, 1.65fr); gap: clamp(35px, 7vw, 100px); align-items: start; }
.question-set + .question-set { margin-top: 76px; }
.question-intro { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 18px; }
.question-index { color: var(--rose); font-size: .67rem; letter-spacing: .12em; }
.question-kicker { margin: 0 0 .62rem; color: var(--rose); font-size: .62rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.question-intro h3 { margin: 0 0 .72rem; color: var(--plum); font-size: clamp(1.7rem, 2.8vw, 2.55rem); line-height: .95; }
.question-intro > div > p:last-child { max-width: 240px; margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.4; }
.mood-picker { border-top: 1px solid var(--line); }
.mood-option { position: relative; display: grid; grid-template-columns: 70px minmax(180px, .8fr) 1fr 28px; gap: 20px; width: 100%; min-height: 80px; align-items: center; padding: 23px 0; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; transition: padding .25s ease, color .25s ease; }
.mood-option::before { position: absolute; inset: 0 -18px; z-index: -1; content: ""; background: var(--paper-deep); opacity: 0; transition: opacity .25s ease; }
.mood-option:hover, .mood-option.is-selected { padding-right: 18px; padding-left: 18px; }
.mood-option:hover::before, .mood-option.is-selected::before { opacity: 1; }
.option-index { color: var(--rose); font-size: .66rem; letter-spacing: .1em; }
.mood-name { color: var(--plum); font-family: var(--font-display); font-size: clamp(1.25rem, 2.35vw, 2rem); letter-spacing: -.05em; }
.mood-description { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.option-arrow { color: var(--rose); font-size: 1.35rem; text-align: right; }
.details-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 43px; }
.details-footer p { margin: 0; color: var(--muted); font-size: .75rem; }
.tiny-heart { margin-right: .5rem; color: var(--rose); }
.button-small { min-height: 49px; }

.checkout { padding: 130px 0 145px; border-top: 1px solid var(--line); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr); gap: clamp(55px, 10vw, 150px); align-items: start; }
.date-form { padding: 29px clamp(24px, 4vw, 54px) 36px; background: var(--paper-light); box-shadow: var(--paper-shadow); }
.form-topline { display: flex; justify-content: space-between; padding-bottom: 19px; margin-bottom: 27px; border-bottom: 1px solid var(--line); }
.field-label { display: block; margin: 18px 0 7px; color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.field-input { display: block; width: 100%; min-width: 0; padding: .72rem .8rem; color: var(--ink); border: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; font-size: .9rem; }
.field-input::placeholder { color: #b09ea0; }
.field-input:hover { border-color: var(--line-strong); }
.field-input:focus { border-color: var(--plum); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field-textarea { min-height: 76px; resize: vertical; }
.field-hint { margin: .42rem 0 0; color: var(--muted); font-size: .69rem; }
.form-submit { width: 100%; margin-top: 25px; }
.form-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.submit-loader { width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
.send-status { padding: .8rem 1rem; margin: 14px 0 0; border: 1px solid var(--line); font-size: .77rem; line-height: 1.4; }
.send-status-loading { color: var(--plum); border-color: var(--gold-light); background: #f5ecd9; }
.send-status-error { color: var(--rose); border-color: var(--rose-light); background: #f8e4e1; }
.form-hint { margin: 15px 0 0; font-size: .57rem; letter-spacing: .06em; text-align: center; text-transform: none; }

.checkout-note { position: relative; padding: 30px 0 0; }
.invite-summary { padding: 24px 0 30px; border-top: 2px solid var(--rose); border-bottom: 1px solid var(--line); }
.summary-kicker { margin: 0 0 .95rem; color: var(--rose); font-size: .62rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.summary-heading { margin: 0 0 1.45rem; color: var(--plum); font-size: clamp(2.3rem, 3.8vw, 3.8rem); line-height: .87; }
.summary-list { margin: 0; }
.summary-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.summary-row dt { color: var(--muted); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.summary-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--plum); font-family: var(--font-display); font-size: 1rem; line-height: 1.15; }
.summary-answers { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.answer-chip { padding: .35rem .55rem; color: var(--plum); background: var(--gold-light); font-size: .64rem; line-height: 1.2; }
.note-pin { position: absolute; top: 0; right: 18%; color: var(--gold); font-size: 1.4rem; }
.checkout-note > .eyebrow { margin-top: 46px; }
.checkout-note h3 { margin-bottom: 1.35rem; color: var(--plum); font-size: clamp(2.45rem, 4vw, 4rem); line-height: .87; }
.checkout-note > p:not(.eyebrow):not(.note-small) { max-width: 285px; color: var(--muted); font-size: .88rem; }
.note-rule { width: 80px; height: 1px; margin: 39px 0 17px; background: var(--gold); }
.note-small { color: var(--rose); font-size: .62rem; font-weight: 750; letter-spacing: .12em; line-height: 1.8; text-transform: uppercase; }
.success-message { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 29px; max-width: 830px; padding: 48px clamp(24px, 4vw, 58px); margin-top: 47px; background: var(--paper-deep); }
.success-icon { display: grid; width: 56px; height: 56px; place-items: center; color: var(--gold-light); background: var(--plum); border-radius: 50%; }
.success-message h3 { margin-bottom: 1rem; color: var(--plum); font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: .85; }
.success-message p:not(.eyebrow) { color: var(--ink-soft); }
.success-message .delivery-note { margin-top: -.35rem; color: var(--rose); font-size: .76rem; }
.success-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.3rem; margin-top: 1.55rem; }
.share-status { min-height: 1.4em; margin: .75rem 0 0; color: var(--rose); font-size: .75rem; }
.success-message > div > .text-link:last-child { margin-top: 1.2rem; }
.success-message[hidden] { display: none; }

.site-footer { display: flex; align-items: center; justify-content: space-between; min-height: 110px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; color: var(--muted); font-family: var(--font-display); font-size: .83rem; font-style: italic; }
.back-to-top { color: var(--rose); }

.reveal { animation: rise-in .75s both; }
.reveal-delay { animation-delay: .12s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 940px) {
  :root { --content-gutter: 38px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .84fr); gap: 40px; }
  h1 { font-size: clamp(4.2rem, 8.5vw, 6.5rem); }
  .hero-visual { min-height: 500px; }
  .letter-card-title { font-size: 2.7rem; }
  .story { gap: 58px; }
  .details-intro, .checkout-heading { grid-template-columns: .7fr 1.2fr; }
  .details-intro .eyebrow, .checkout-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -18px; }
  .details-intro > p:last-child, .checkout-heading > p:last-child { grid-column: 2; }
  .question-set { grid-template-columns: .7fr 1.2fr; gap: 30px; }
}

@media (max-width: 680px) {
  :root { --content-gutter: 18px; }
  .site-header, .progress-shell, main, .site-footer { width: min(calc(100% - 36px), var(--max-width)); }
  .site-header { min-height: 74px; }
  .header-caption { max-width: 130px; font-size: .54rem; line-height: 1.35; text-align: right; }
  .progress-shell { padding-top: 14px; }
  .progress-meta { font-size: .58rem; }
  .progress-steps { font-size: .48rem; }
  .hero { display: block; min-height: auto; padding: 66px 0 88px; }
  .hero-copy { padding: 0; }
  .hero-recipient { font-size: 1.15rem; }
  h1 { margin-bottom: .8rem; font-size: clamp(3.75rem, 16.4vw, 6rem); }
  .hero-signature { margin-bottom: 1.5rem; font-size: 1.25rem; }
  .hero-lead { max-width: 350px; font-size: .92rem; }
  .hero-letter-meta { gap: .55rem .9rem; font-size: .59rem; }
  .hero-cta-label { font-size: 1rem; }
  .hero-actions .button-primary { width: 100%; }
  .quiet-action { min-height: 39px; }
  .hero-visual { min-height: 390px; margin-top: 38px; }
  .hero-visual::before { inset: 6% 0 8%; }
  .hero-visual::after { inset: 12% 7% 10%; }
  .postmark { top: 6%; right: 0; width: 62px; height: 62px; font-size: .46rem; }
  .scribble-top { top: 2%; left: 3%; font-size: 1rem; }
  .envelope { width: min(345px, 91%); }
  .letter-card { padding: 17px 19px; }
  .letter-card-kicker { margin-top: 25px; }
  .letter-card-title { font-size: clamp(2rem, 11vw, 3rem); }
  .letter-card-rule { margin-top: 20px; }
  .letter-card-note { font-size: .72rem; }
  .wax-seal { right: 11%; width: 46px; height: 46px; }
  .visual-caption { right: 0; bottom: 1%; max-width: 130px; font-size: .72rem; }
  .story { display: flex; flex-direction: column-reverse; align-items: stretch; min-height: auto; gap: 48px; padding: 92px 25px 88px; margin-inline: -18px; }
  .section-number { top: 26px; left: 25px; }
  .story-art { min-height: 350px; }
  .paper-sheet { width: min(275px, 78%); }
  .paper-sheet p { margin-top: 62px; font-size: 1.65rem; }
  .story-copy { max-width: none; }
  .story-copy h2, .details h2, .checkout h2 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .question-set { display: block; }
  .question-set + .question-set { margin-top: 57px; }
  .question-intro { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
  .question-intro h3 { font-size: clamp(1.7rem, 7.5vw, 2.4rem); }
  .question-intro > div > p:last-child { max-width: 290px; }
  .details, .checkout { padding: 91px 0 96px; }
  .details-intro, .checkout-heading { display: block; margin-bottom: 44px; }
  .details-intro .eyebrow, .checkout-heading .eyebrow { margin-bottom: 1.35rem; }
  .details-intro > p:last-child, .checkout-heading > p:last-child { max-width: 330px; margin: 1.5rem 0 0; }
  .mood-option { grid-template-columns: 35px 1fr 22px; gap: 9px; padding: 22px 0; }
  .mood-option:hover, .mood-option.is-selected { padding-right: 12px; padding-left: 12px; }
  .mood-description { grid-column: 2 / 3; margin-top: -3px; }
  .option-arrow { grid-column: 3; grid-row: 1 / 3; }
  .details-footer { display: block; }
  .details-footer .button { width: 100%; margin-top: 25px; }
  .checkout-layout { display: block; }
  .date-form { padding-inline: 20px; }
  .field-row { gap: 10px; }
  .checkout-note { padding: 70px 15px 0; }
  .invite-summary { padding-top: 20px; }
  .summary-heading { font-size: clamp(2.5rem, 13vw, 4rem); }
  .summary-row { grid-template-columns: 70px minmax(0, 1fr); }
  .note-pin { top: 36px; right: 12%; }
  .success-message { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
  .success-actions { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-wrap: wrap; gap: 15px; padding: 28px 0; }
  .site-footer p { order: 3; width: 100%; }
  .back-to-top { font-size: .56rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-delay { animation: none; }
  .button, .progress-fill, .progress-heart, .mood-option, .text-link span { transition: none; }
  .submit-loader { animation: none; }
}

/* Sequential letter flow */
.progress-dot-one { left: 3%; }
.progress-dot-two { left: 27%; }
.progress-dot-three { left: 51%; }
.progress-dot-four { left: 75%; }
.progress-dot-five { left: 100%; }

.details { min-height: 680px; }
.question-flow { max-width: 965px; margin: 0 auto; }
.flow-step[hidden], .final-letter[hidden] { display: none; }
.flow-step {
  position: relative;
  padding: clamp(26px, 5vw, 58px) clamp(22px, 6vw, 74px) clamp(30px, 5vw, 62px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 243, .54);
  box-shadow: 15px 15px 0 rgba(196, 173, 160, .18);
}
.flow-step.is-current { animation: flow-in .5s ease both; }
.flow-step-topline { display: flex; justify-content: space-between; gap: 1rem; color: var(--rose); font-size: .62rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.flow-step-topline span:last-child { color: var(--muted); font-weight: 400; }
.flow-question { max-width: 690px; margin: clamp(40px, 6vw, 68px) auto 0; text-align: center; }
.flow-question .question-kicker { justify-content: center; margin-bottom: .9rem; }
.flow-question h3 { margin: 0 auto 1.05rem; color: var(--plum); font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: .88; }
.flow-question > p:last-child { max-width: 540px; margin: 0 auto; color: var(--ink-soft); font-size: .95rem; }
.flow-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(34px, 5vw, 52px); }
.first-answer-actions { min-height: 80px; }
.flow-feedback { min-height: 1.5em; margin: 22px 0 0; color: var(--rose); font-size: .78rem; text-align: center; }
.flow-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 640px; margin: 40px auto 0; }
.flow-fields .field-label { margin-top: 0; }
.flow-fields .field-input { background: rgba(255, 253, 249, .65); }
.flow-step .button-primary { min-width: 190px; }
.activity-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; max-width: 790px; margin: 38px auto 0; border-top: 1px solid var(--line); }
.activity-option {
  position: relative;
  min-height: 65px;
  padding: 15px 32px 15px 0;
  color: var(--plum);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: -.04em;
  text-align: left;
  transition: color .2s ease, padding .2s ease, background .2s ease;
}
.activity-option::after { position: absolute; top: 50%; right: 6px; width: 12px; height: 12px; content: ""; border: 1px solid var(--line-strong); border-radius: 50%; transform: translateY(-50%); }
.activity-option:hover, .activity-option.is-selected { padding-left: 14px; color: var(--rose); background: var(--paper-deep); }
.activity-option.is-selected::after { border: 4px solid var(--rose); }
.activity-option:focus-visible, .share-letter:focus-visible { outline: 3px solid rgba(180, 132, 79, .6); outline-offset: 3px; }
.flow-step > .field-label, .flow-step > .field-textarea { display: block; max-width: 790px; margin-right: auto; margin-left: auto; }
.flow-step > .field-label { margin-top: 34px; }
.flow-step > .field-textarea { background: rgba(255, 253, 249, .65); }

.final-letter { max-width: 965px; margin: 0 auto; }
.final-letter.is-revealed { animation: letter-in .8s cubic-bezier(.2, .75, .25, 1) both; }
.final-letter-paper { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 72px); color: var(--ink); background: var(--paper-light); box-shadow: var(--paper-shadow); }
.final-letter-paper::before { position: absolute; inset: 20px; border: 1px solid var(--line); pointer-events: none; content: ""; }
.final-letter-paper > * { position: relative; z-index: 1; }
.final-letter-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 18px; color: var(--rose); border-bottom: 1px solid var(--line); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.final-letter-paper .eyebrow { margin-top: 56px; }
.final-letter-paper h2 { max-width: 680px; margin: 0 0 1.55rem; color: var(--plum); font-size: clamp(3rem, 6vw, 6rem); line-height: .84; }
.final-greeting, .final-detail { max-width: 610px; color: var(--ink-soft); font-size: 1rem; }
.final-plan { max-width: 610px; padding: 22px 24px; margin: 30px 0 25px; background: var(--paper-deep); border-left: 3px solid var(--rose); }
.final-plan .summary-kicker { margin-bottom: .75rem; }
.final-plan p:last-child { margin: 0; color: var(--plum); font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.08; }
.final-plan span { color: var(--rose); }
.final-detail { margin-bottom: 34px; }
.final-signature { color: var(--muted); font-family: var(--font-display); font-style: italic; line-height: 1.2; }
.final-signature strong { color: var(--plum); font-size: 1.3rem; font-weight: 400; }
.final-letter-rule { width: 100px; height: 1px; margin: 35px 0 20px; background: var(--gold); }
.final-note { max-width: 480px; margin: 0; color: var(--rose); font-family: var(--font-display); font-size: 1rem; font-style: italic; }
.final-letter-actions { padding: 28px 0 0; }
.telegram-note { max-width: 590px; margin: 0 0 21px; color: var(--ink-soft); font-size: .86rem; }
.telegram-note strong { color: var(--rose); }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 22px; }
.share-status { min-height: 1.5em; margin: 15px 0 0; color: var(--rose); font-size: .76rem; }
.edit-letter { margin-top: 14px; }

@keyframes flow-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes letter-in { from { opacity: 0; transform: translateY(28px) rotate(.5deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }

@media (max-width: 680px) {
  .details { padding-top: 94px; }
  .flow-step { padding: 23px 18px 30px; box-shadow: 8px 9px 0 rgba(196, 173, 160, .18); }
  .flow-step-topline { font-size: .53rem; }
  .flow-question { margin-top: 36px; }
  .flow-question h3 { font-size: clamp(2.45rem, 12vw, 4.25rem); }
  .flow-question > p:last-child { font-size: .88rem; }
  .first-answer-actions { gap: 13px; }
  .flow-fields { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
  .flow-fields .field-label { margin-top: 18px; }
  .activity-options { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .activity-option { min-height: 60px; font-size: 1.08rem; }
  .final-letter-paper { padding: 25px 19px 32px; }
  .final-letter-paper::before { inset: 12px; }
  .final-letter-paper .eyebrow { margin-top: 39px; }
  .final-letter-paper h2 { font-size: clamp(3rem, 13vw, 4.6rem); }
  .final-plan { padding: 18px 16px; margin-top: 24px; }
  .final-plan p:last-child { font-size: 1.45rem; }
  .share-actions { align-items: flex-start; flex-direction: column; }
  .share-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-step.is-current, .final-letter.is-revealed { animation: none; }
}

/* Final guardrails for narrow viewports and keyboard users. */
html {
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

main,
.site-header,
.progress-shell,
.site-footer,
.hero,
.story,
.details,
.checkout,
.question-flow,
.final-letter {
  min-width: 0;
  max-width: 100%;
}

button,
input,
textarea {
  max-width: 100%;
}

h1,
h2,
h3,
.flow-step-topline,
.final-letter-head,
.site-footer p {
  overflow-wrap: anywhere;
}

.progress-meta span,
.progress-steps span {
  min-width: 0;
}

.progress-steps span {
  flex: 1 1 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.story {
  width: calc(100% + (var(--content-gutter) * 2));
  max-width: 100vw;
  margin-right: calc(var(--content-gutter) * -1);
  margin-left: calc(var(--content-gutter) * -1);
  padding-right: max(25px, var(--content-gutter));
  padding-left: max(25px, var(--content-gutter));
}

.flow-step-topline {
  flex-wrap: wrap;
}

.flow-step-topline span:last-child {
  margin-left: auto;
  text-align: right;
}

.activity-option {
  min-width: 0;
  overflow-wrap: anywhere;
}

.final-letter-head {
  flex-wrap: wrap;
}

.alternate-answer {
  min-height: 48px;
  padding: .7rem .9rem;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 50% 42% 48% 39%;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.alternate-answer:hover {
  color: var(--rose);
  border-color: var(--rose);
  transform: rotate(-2deg);
}

.alternate-answer:focus-visible {
  outline: 3px solid rgba(180, 132, 79, .6);
  outline-offset: 3px;
}

.field-input:invalid:not(:focus) {
  border-color: var(--rose-light);
}

@media (max-width: 680px) {
  .story {
    width: calc(100% + (var(--content-gutter) * 2));
    max-width: 100vw;
    margin-right: calc(var(--content-gutter) * -1);
    margin-left: calc(var(--content-gutter) * -1);
  }

  .flow-step-topline span:last-child {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .alternate-answer {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alternate-answer {
    transition: none;
  }
}
