/* Layout: arched photo + text hero, diamond-lattice tile bands (from the Bethesda Terrace panels) between quiet paper sections; form beside a live envelope preview.
   Single, deliberate light "stationery" look. Every color is set explicitly so it reads the same on any device theme. */
:root {
  --paper: #F5EFE4;
  --paper-deep: #ECE3D2;
  --card: #FBF8F2;
  --ink: #1E1B17;
  --ink-soft: #4E473D;
  --eucalyptus: #56684F;
  --eucalyptus-deep: #3F4E3A;
  --sage-wash: #DFE3D3;
  --clay: #A0543A;
  --clay-soft: #EBD3C4;
  --gold: #AE8E58;
  --line: rgba(44, 40, 34, 0.16);
  --line-strong: rgba(44, 40, 34, 0.32);
  --error: #9C3524;

  --display: "Bodoni Moda", "Bodoni 72", Didot, "Didot LT STD", Georgia, serif;
  --body: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-5: clamp(3.4rem, 9vw, 6.4rem);

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 20; margin: 0; text-wrap: balance; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--eucalyptus); outline-offset: 3px; border-radius: 2px; }

.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}
.dot { color: var(--gold); padding: 0 0.15em; }

/* Preview ribbon (only when the sheet isn't connected yet) */
.preview-ribbon {
  background: var(--eucalyptus-deep);
  color: var(--card);
  text-align: center;
  font-size: var(--step--1);
  padding: 8px var(--gutter);
  letter-spacing: 0.02em;
}

/* Top bar */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(245, 239, 228, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.monogram {
  font-family: var(--display);
  font-size: 1.35rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  color: var(--ink);
}
.monogram em, .footer-mono em, .success-seal em { font-style: italic; color: var(--clay); font-size: 0.85em; }
.topbar-actions { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.topbar-link {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.lang-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.lang-toggle button {
  font: 500 0.75rem/1 var(--body);
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--ink-soft);
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 520px) { .topbar-link { display: none; } }

/* Arch frame */
.arch {
  margin: 0;
  position: relative;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  isolation: isolate;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px);
  max-width: 1240px;
  margin: 0 auto;
  align-items: center;
}
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }

.arch--hero {
  width: min(100%, 460px);
  aspect-ratio: 2 / 3;
  max-width: 100%;
  justify-self: center;
  outline: 1px solid var(--gold);
  outline-offset: 10px;
  margin: 12px;
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.arch--hero img { object-position: 50% 62%; }
@media (max-width: 899px) { .arch--hero { width: min(78vw, 380px); } }

.hero-text { display: grid; gap: 22px; justify-items: start; min-width: 0; }
@media (max-width: 899px) { .hero-text { justify-items: center; text-align: center; } }
.names {
  font-size: var(--step-5);
  font-weight: 500;
  font-variation-settings: "opsz" 18;
  line-height: 0.95;
  display: grid;
  letter-spacing: -0.01em;
}
.names-amp {
  font-style: italic;
  color: var(--clay);
  font-size: 0.6em;
  line-height: 1.1;
  padding-left: 0.9em;
}
@media (max-width: 899px) { .names-amp { padding-left: 0; } }
.hero-meta { display: grid; gap: 2px; }
.hero-date { font-family: var(--display); font-size: var(--step-2); font-variation-settings: "opsz" 14; }
.hero-days, .hero-place { font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 400; color: var(--ink-soft); }
.hero-place { color: var(--eucalyptus); font-weight: 500; margin-top: 6px; }
.hero-lede { max-width: 34em; color: var(--ink-soft); }
.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
@media (max-width: 899px) { .hero-cta-row { justify-content: center; } }
.countdown { font-family: var(--display); font-style: italic; color: var(--eucalyptus); font-size: var(--step-1); }

.hero-text > * { animation: fade 0.9s ease both; }
.hero-text > *:nth-child(2) { animation-delay: .08s; }
.hero-text > *:nth-child(3) { animation-delay: .16s; }
.hero-text > *:nth-child(4) { animation-delay: .24s; }
.hero-text > *:nth-child(5) { animation-delay: .32s; }
@keyframes fade { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 500 0.82rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 17px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.btn--primary { background: var(--eucalyptus-deep); color: var(--card); }
.btn--primary:hover { background: var(--ink); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--card); }
.btn--small { padding: 11px 18px; font-size: 0.75rem; }
.btn--wide { width: 100%; padding-block: 20px; }

/* Tile band: diamond lattice with clay studs, after the terrace wall panels */
.tile-band {
  height: 34px;
  background-color: var(--paper-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath d='M17 0 34 17 17 34 0 17Z' fill='none' stroke='%2356684F' stroke-opacity='.45' stroke-width='1'/%3E%3Cpath d='M17 7 27 17 17 27 7 17Z' fill='%23AE8E58' fill-opacity='.18'/%3E%3Ccircle cx='0' cy='17' r='2.2' fill='%23A0543A'/%3E%3Ccircle cx='34' cy='17' r='2.2' fill='%23A0543A'/%3E%3Ccircle cx='17' cy='0' r='2.2' fill='%23A0543A'/%3E%3Ccircle cx='17' cy='34' r='2.2' fill='%23A0543A'/%3E%3C/svg%3E");
  background-position: center;
  border-block: 1px solid var(--line);
}

/* Sections */
.section { padding: clamp(56px, 9vw, 112px) var(--gutter); max-width: 1180px; margin: 0 auto; }
.section-head { display: grid; gap: 12px; justify-items: center; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); max-width: 18em; }
.section-lede { max-width: 36em; color: var(--ink-soft); }

/* Weekend */
.days { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); max-width: 860px; margin: 0 auto; }
.day {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.day-num {
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--clay);
  font-variant-numeric: lining-nums;
  min-width: 1.4em;
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 40px;
  max-width: 1000px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fact dt { font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--eucalyptus); }
.fact dd { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: clamp(10px, 2vw, 24px);
  align-items: end;
  max-width: 1040px;
  margin: 0 auto;
}
.g { margin: 0; overflow: hidden; border-radius: var(--radius); max-width: 100%; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.g:hover img { transform: scale(1.03); }
.g--a { aspect-ratio: 3 / 4; }
.g--b { aspect-ratio: 2 / 3; border-radius: 999px 999px var(--radius) var(--radius); }
.g--b img { object-position: 50% 70%; }
.g--c { aspect-ratio: 3 / 4; }
.g--c img { object-position: 45% 50%; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .g--b { grid-column: 1 / -1; grid-row: 1; width: min(76%, 360px); justify-self: center; }
}

/* RSVP */

.rsvp { max-width: 860px; }
.rsvp-layout { display: grid; gap: 32px; max-width: 760px; margin: 0 auto; }

.rsvp-form {
  display: grid;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px);
  min-width: 0;
}
.fs { border: 0; margin: 0; padding: 0 0 26px; display: grid; gap: 16px; min-width: 0; }
.fs + .fs, .envelope-slot--inline + .fs { padding-top: 26px; border-top: 1px solid var(--line); }
.fs legend {
  font-family: var(--display);
  font-size: var(--step-1);
  padding: 0;
  margin-bottom: 16px;
  float: left;
  width: 100%;
}
.fs legend + * { clear: both; }

.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row--3 > .field:first-child { grid-column: 1 / -1; }
@media (max-width: 360px) { .row--3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { font-size: 0.82rem; letter-spacing: 0.06em; font-weight: 500; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-soft); letter-spacing: 0.02em; font-size: 0.78rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232C2822' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(98, 90, 78, 0.6); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--eucalyptus);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(86, 104, 79, 0.18);
}
.field.has-error input, .field.has-error select { border-color: var(--error); }
.hint { font-size: 0.82rem; color: var(--ink-soft); }
.hint--top { margin-top: -6px; }
.err { font-size: 0.82rem; color: var(--error); min-height: 0; }
.err:empty { display: none; }

.form-alert {
  border: 1px solid var(--error);
  background: rgba(156, 53, 36, 0.06);
  color: var(--error);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Attendance choices */
.choices { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-body {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60px;
  height: 100%;
  padding: 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .2s, background .2s, color .2s;
}
.choice-title { font-family: var(--display); font-size: 1.08rem; line-height: 1.25; }
.choice:hover .choice-body { border-color: var(--eucalyptus); }
.choice input:checked + .choice-body { background: var(--eucalyptus-deep); border-color: var(--eucalyptus-deep); color: var(--card); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--eucalyptus); outline-offset: 3px; }
.choices.has-error .choice-body { border-color: var(--error); }

/* Party */
.party { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.party li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.party-badge {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font: 400 0.95rem/1 var(--display);
  background: var(--sage-wash);
  color: var(--eucalyptus-deep);
}
.party-self-name { font-family: var(--display); font-size: 1.05rem; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.party-self-name.is-placeholder { color: var(--ink-soft); font-style: italic; }
.party .field { flex: 1; }
.party input {
  width: 100%;
  font: 400 1rem/1.4 var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 14px;
}
.party input:focus { outline: none; border-color: var(--eucalyptus); background: var(--card); box-shadow: 0 0 0 3px rgba(86,104,79,.18); }
.party-remove {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.party-remove:hover { border-color: var(--error); color: var(--error); }
#addGuest { justify-self: start; }

/* Submit */
.submit-row { display: grid; gap: 12px; padding-top: 8px; }
.privacy { font-size: 0.82rem; color: var(--ink-soft); text-align: center; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(251,248,242,.35); border-top-color: var(--card); border-radius: 50%; display: none; animation: spin .8s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Envelope preview */
.envelope-slot--side { position: sticky; top: 96px; }
.envelope-slot--inline { display: none; }
@media (max-width: 979px) {
  .envelope-slot--side { display: none; }
  .envelope-slot--inline { display: block; padding: 4px 0 26px; }
}
.envelope { display: grid; gap: 12px; }
.envelope-label { font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--clay); text-align: center; }
.envelope-card {
  position: relative;
  aspect-ratio: 7 / 5;
  max-width: 100%;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(44,40,34,0.07) 50%, transparent 50.4%) top left / 50% 52% no-repeat,
    linear-gradient(225deg, transparent 49.6%, rgba(44,40,34,0.07) 50%, transparent 50.4%) top right / 50% 52% no-repeat,
    #FDFBF6;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(44,40,34,.04), 0 18px 40px -24px rgba(44,40,34,.45);
  padding: 30% 9% 7% 12%;
  display: grid;
  align-content: end;
}
.envelope-stamp {
  position: absolute;
  top: 8%; right: 6%;
  width: 15%;
  aspect-ratio: 4 / 5;
  border: 2px dotted var(--clay-soft);
  outline: 1px solid var(--clay);
  outline-offset: -5px;
  background: var(--sage-wash);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  color: var(--eucalyptus-deep);
  font-size: 0.62rem;
  line-height: 1.2;
  gap: 2px;
}
.stamp-mono { font-size: 1.05rem; }
.stamp-mono em { color: var(--clay); font-size: 0.8em; }
.envelope-postmark {
  position: absolute;
  top: 9%; right: 24%;
  width: 19%;
  aspect-ratio: 1;
  border: 1px solid rgba(160, 84, 58, 0.45);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font: 500 0.48rem/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(160, 84, 58, 0.75);
  transform: rotate(-12deg);
}
.envelope-address { text-align: left; min-width: 0; }
.env-name { font-family: var(--display); font-style: italic; font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.25; color: var(--ink); margin-bottom: 6px; overflow-wrap: anywhere; }
.env-lines { white-space: pre-line; font-size: clamp(0.8rem, 1.5vw, 0.95rem); line-height: 1.5; color: var(--ink-soft); letter-spacing: 0.02em; overflow-wrap: anywhere; }
.is-placeholder { opacity: .55; }

/* Success */
.success {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  animation: fade .7s ease both;
}
.success:focus { outline: none; }
.success-seal {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--card);
  display: flex; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--display);
  font-size: 1.4rem;
  box-shadow: inset 0 0 0 4px rgba(251,248,242,.18), inset 0 0 0 5px rgba(251,248,242,.35);
}
.success-seal em { color: var(--clay-soft); }
.success-title { font-size: var(--step-3); }
.success-body { max-width: 30em; color: var(--ink-soft); }
.success-cal { display: grid; gap: 12px; justify-items: center; padding-top: 10px; }
.success-cal-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.success-edit { font-size: 0.88rem; color: var(--ink-soft); max-width: 32em; padding-top: 10px; border-top: 1px solid var(--line); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--eucalyptus-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; margin-left: 4px; }
.rsvp.is-done .rsvp-form, .rsvp.is-done .steps { display: none; }

/* Footer */
.footer {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(40px, 6vw, 64px);
  display: grid;
  gap: 10px;
  justify-items: center;
  background: var(--eucalyptus-deep);
  color: var(--paper);
}
.footer-mono { font-family: var(--display); font-size: 2.6rem; display: flex; gap: 6px; align-items: baseline; }
.footer-mono em { color: var(--clay-soft); }
.footer-date { font-size: var(--step--1); letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage-wash); }
.footer-date .dot { color: var(--gold); }
.footer-note { max-width: 30em; color: rgba(245,239,228,.8); margin-top: 12px; }
.footer-sign { font-family: var(--display); font-style: italic; font-size: var(--step-1); margin-top: 8px; }

/* How it works: three illustrated steps joined by a dashed line */
.steps {
  list-style: none; padding: 0;
  margin: 0 auto clamp(32px, 5vw, 48px);
  max-width: 760px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
}
.step:not(:last-child)::after {
  content: ""; position: absolute;
  left: 27px; top: 56px; bottom: 0;
  border-left: 1px dashed var(--gold);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
  align-content: start;
  padding-bottom: 24px;
}
.step-icon {
  grid-row: 1 / span 3;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--gold);
  color: var(--eucalyptus-deep);
  position: relative; z-index: 1;
}
.step-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step:first-child .step-icon { background: var(--eucalyptus-deep); border-color: var(--eucalyptus-deep); color: var(--card); }
.step-tag { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--clay); padding-top: 4px; }
.step-t { font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 18; font-size: 1.3rem; line-height: 1.25; color: var(--ink); margin: 2px 0 4px; }
.step-d { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }

@media (min-width: 680px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps::before { content: ""; position: absolute; left: 16.67%; right: 16.67%; top: 32px; border-top: 1px dashed var(--gold); }
  .step:not(:last-child)::after { display: none; }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 14px; }
  .step-icon { grid-row: auto; width: 64px; height: 64px; margin-bottom: 14px; }
  .step-icon svg { width: 28px; height: 28px; }
  .step-tag { padding-top: 0; }
  .step-d { max-width: 17em; }
}

/* Editing guidance */
.form-edit-hint {
  font-size: 0.9rem; color: var(--ink-soft);
  padding: 12px 16px; margin-bottom: 18px;
  background: var(--paper); border-left: 2px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
}
.form-note {
  display: grid; gap: 4px;
  padding: 16px 18px; margin-bottom: 18px;
  background: var(--sage-wash); border-radius: var(--radius);
  color: var(--eucalyptus-deep); font-size: 0.95rem;
}
.form-note-t { font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--ink); }

/* Day cards: date label, then the celebration */
.day-date { font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--eucalyptus); margin-bottom: 4px; }
.day h3 { font-size: 1.45rem; font-weight: 500; margin-bottom: 4px; }
.day .day-desc { color: var(--ink-soft); font-size: 0.95rem; }

/* Legibility: smaller serif text uses the sturdiest optical size so hairlines never look faint */
.hero-date, .day h3, .fs legend, .choice-title, .party-self-name, .party-badge,
.step-t, .form-note-t, .countdown, .footer-sign, .monogram, .footer-mono, .success-seal, .ns-num {
  font-variation-settings: "opsz" 11;
}
.hero-date { font-weight: 500; }
.day h3 { font-weight: 600; font-size: 1.5rem; color: var(--ink); }
.day-num { font-variation-settings: "opsz" 14; font-weight: 500; }
.fs legend, .choice-title, .party-self-name, .form-note-t, .success-title { font-weight: 500; }
.step-t { font-weight: 600; }
.countdown, .footer-sign { font-weight: 500; }
