/*!==============================
 * Evermore — Free Wedding Invitation Website Template
 * Author: uiCookies — https://uicookies.com/
 * License: Free for personal & commercial use — https://uicookies.com/license/
 * Design layer: letterpress ink navy on cotton paper, antique gold foil,
 * Bodoni Moda display / Hanken Grotesk body.
 *===============================*/

/* ------------------------------------------------------------------
   1. Design tokens — rebrand here
------------------------------------------------------------------ */
:root {
  /* Paper */
  --paper:      #f3ede2;   /* ecru page */
  --paper-2:    #ebe3d4;   /* tinted section */
  --cotton:     #fbf8f2;   /* card stock */
  --envelope:   #e8dec9;   /* envelope paper */

  /* Ink */
  --ink:        #1c2333;   /* body text */
  --navy:       #22304d;   /* letterpress ink, primary */
  --navy-2:     #2e3f63;   /* hover */
  --navy-deep:  #171f31;   /* dark sections */
  --muted:      #585f6f;   /* secondary text */
  --line:       rgba(34, 48, 77, .16);
  --line-2:     rgba(34, 48, 77, .28);

  /* Foil */
  --gold-text:  #7a5a22;   /* gold that passes contrast on paper */
  --gold-light: #e2cb92;   /* gold text on navy */
  --foil: linear-gradient(105deg, #7d5f27 0%, #c7a65c 20%, #f4e5b8 36%, #b08a43 52%, #e8d29a 70%, #8a6a2e 100%);
  --foil-line: linear-gradient(90deg, transparent, #b28c45 18%, #efdca7 50%, #b28c45 82%, transparent);

  /* States */
  --error:      #9c2f2b;
  --success:    #3e5a43;

  /* Type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Texture: fine paper grain (inline SVG noise, no image request) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  /* Laid paper: faint horizontal chain lines */
  --laid: repeating-linear-gradient(0deg, rgba(34, 48, 77, .022) 0 1px, transparent 1px 4px);

  --shadow-card: 0 1px 2px rgba(28, 35, 51, .06), 0 18px 40px -18px rgba(28, 35, 51, .28);
  --shadow-lift: 0 2px 4px rgba(28, 35, 51, .08), 0 30px 60px -24px rgba(28, 35, 51, .36);

  --container: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.15; }
p { margin: 0 0 1rem; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--gold-text); }
img { max-width: 100%; height: auto; display: block; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.section-ink :focus-visible, .site-footer :focus-visible, .glance-card :focus-visible,
.envelope-intro :focus-visible, .countdown-band :focus-visible { outline-color: var(--gold-light); }

.container { max-width: var(--container); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 4000;
  padding: 10px 18px; background: var(--navy); color: var(--cotton);
  font-size: .9rem; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--cotton); }

.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }

/* ------------------------------------------------------------------
   3. Shared pieces: paper, deckle, foil, letterpress
------------------------------------------------------------------ */
.paper {
  position: relative;
  background-color: var(--cotton);
  background-image: var(--grain), var(--laid);
  box-shadow: var(--shadow-card);
}

/* Deckled edge: the paper lives on ::before and is roughened by the
   #deckle SVG filter, so text inside stays crisp. */
.deckle { background: none; box-shadow: none; isolation: isolate; }
.deckle::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-color: var(--cotton);
  background-image: var(--grain), var(--laid);
  filter: url(#deckle) drop-shadow(0 22px 26px rgba(28, 35, 51, .16)) drop-shadow(0 2px 2px rgba(28, 35, 51, .08));
}

.foil-text {
  background: var(--foil);
  background-size: 200% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.2s var(--ease);
}
.foil-text:hover { background-position: 100% 0; }

/* Letterpress: ink debossed into soft cotton */
.press { text-shadow: 0 1px 0 rgba(255, 255, 255, .75), 0 -1px 0 rgba(28, 35, 51, .1); }

.foil-rule {
  display: block; position: relative;
  width: 160px; height: 1px; margin: 26px auto;
  background: var(--foil-line);
}
.foil-rule::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--foil); box-shadow: 0 0 0 4px var(--cotton);
}

.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 14px;
  font-size: .74rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 34px; height: 1px; background: var(--foil-line);
}
.eyebrow--light { color: var(--gold-light); }
.story-text .eyebrow, .faq .eyebrow, .attire .eyebrow { justify-content: flex-start; }
.story-text .eyebrow::before, .faq .eyebrow::before, .attire .eyebrow::before { display: none; }

.section { padding: 104px 0; position: relative; }
.section-tint { background-color: var(--paper-2); background-image: var(--grain); }
.section-ink {
  background-color: var(--navy-deep);
  background-image: var(--grain), radial-gradient(circle at 1px 1px, rgba(226, 203, 146, .12) 1px, transparent 1.5px);
  background-size: auto, 22px 22px;
  color: rgba(251, 248, 242, .82);
}

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; margin: 0 0 18px; }
.section-title em { color: var(--gold-text); }
.section-title--light { color: var(--cotton); }
.section-title--light em { color: var(--gold-light); }
.section-sub { color: var(--muted); font-size: 1.06rem; margin: 0 auto; }
.section-sub--light { color: rgba(251, 248, 242, .78); }

/* Buttons */
.btn {
  --bs-btn-focus-box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 0; padding: 13px 26px;
  font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn-lg { padding: 16px 34px; font-size: .84rem; }
.btn-ink { background: var(--navy); color: var(--cotton); border: 1px solid var(--navy); }
.btn-ink:hover, .btn-ink:focus-visible { background: var(--navy-2); color: var(--cotton); border-color: var(--navy-2); box-shadow: inset 0 0 0 3px var(--navy-2), inset 0 0 0 4px rgba(226, 203, 146, .7); }
.btn-ink:active { background: var(--navy-deep) !important; color: var(--cotton) !important; }
.btn-line { background: transparent; color: var(--navy); border: 1px solid var(--line-2); }
.btn-line:hover, .btn-line:focus-visible { border-color: var(--navy); color: var(--navy); background: rgba(34, 48, 77, .04); }

.btn-text {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 0; border: 0; background: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); border-bottom: 1px solid var(--line-2);
}
.btn-text:hover { color: var(--gold-text); border-bottom-color: currentColor; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------------
   4. Envelope intro
------------------------------------------------------------------ */
.envelope-intro { display: none; }
.intro-on body { overflow: hidden; }
.intro-on .envelope-intro {
  display: flex; align-items: center; justify-content: center;
  position: fixed; inset: 0; z-index: 3000;
  padding: 24px;
  background-color: var(--navy-deep);
  background-image: var(--grain), radial-gradient(ellipse at 50% 40%, rgba(46, 63, 99, .9), transparent 70%);
  transition: opacity .7s var(--ease), visibility .7s;
}
.envelope-intro.is-leaving { opacity: 0; visibility: hidden; }

.intro-skip {
  position: absolute; top: 20px; right: 20px;
  padding: 8px 16px; border: 1px solid rgba(226, 203, 146, .45); background: transparent;
  color: var(--gold-light); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.intro-skip:hover { background: rgba(226, 203, 146, .1); }

.intro-stage { text-align: center; width: min(460px, 88vw); }
.intro-language-switch {
  justify-content: center;
  margin: 0 auto 20px;
  width: fit-content;
  padding: 7px;
  border: 1px solid rgba(226, 203, 146, .72);
  background: var(--cotton);
  background-image: var(--grain), var(--laid);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}
.intro-language-switch button {
  min-width: 58px;
  min-height: 42px;
  justify-content: center;
  color: var(--muted);
  border-color: transparent;
  font-size: .78rem;
  padding: 8px 10px;
}
.intro-language-switch button[aria-pressed="true"] {
  border-color: var(--line-2);
  color: var(--navy);
  background: rgba(34, 48, 77, .055);
}
.intro-language-switch .language-flag {
  width: 20px;
  height: 13px;
  border-color: var(--line-2);
}
.intro-kicker {
  margin-bottom: 28px;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: var(--cotton);
}
.intro-hint { margin-top: 26px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(251, 248, 242, .6); transition: opacity .3s; }
.is-opening .intro-hint, .is-opening .intro-kicker { opacity: 0; transition: opacity .3s; }

.envelope-wrap { position: relative; perspective: 1400px; }
.envelope { position: relative; width: 100%; aspect-ratio: 1.5; }
.envelope > div { position: absolute; inset: 0; }
.envelope-back {
  background-color: var(--navy-2);
  background-image: radial-gradient(circle at 6px 6px, rgba(226, 203, 146, .5) 1.2px, transparent 1.8px);
  background-size: 14px 14px;
  border: 10px solid var(--envelope);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6);
}
.envelope-letter {
  inset: 8% 7% 6% !important;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px;
  padding-top: 7%;
  background: var(--cotton); background-image: var(--grain), var(--laid);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  z-index: 2;
  transition: transform 1s var(--ease) .95s;
}
.letter-mono { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-text); }
.letter-mono i, .brand-mono i, .wax-seal i, .footer-mono i, .success-seal i { font-size: .72em; margin: 0 1px; }
.letter-line { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--navy); }
.letter-date { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.envelope-front {
  z-index: 3;
  background: var(--envelope); background-image: var(--grain);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.envelope-front::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(28, 35, 51, .12) 50%, transparent calc(50% + 1px)) left bottom / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1px), rgba(28, 35, 51, .12) 50%, transparent calc(50% + 1px)) right bottom / 50% 100% no-repeat;
}
.envelope-flap {
  bottom: auto !important; height: 58%;
  background: #e2d6be; background-image: var(--grain);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  z-index: 4;
  transition: transform .8s var(--ease) .25s, z-index 0s linear .65s;
}
.wax-seal {
  position: absolute; left: 50%; top: 58%; z-index: 5;
  width: 84px; height: 84px; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3f5584, #22304d 55%, #141b2b);
  box-shadow: 0 0 0 5px rgba(34, 48, 77, .55), 0 10px 24px rgba(0, 0, 0, .45), inset 0 -3px 6px rgba(0, 0, 0, .35), inset 0 2px 4px rgba(255, 255, 255, .15);
  font-family: var(--serif); font-size: 1.45rem; color: var(--gold-light);
  cursor: pointer;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
  animation: seal-breathe 2.6s ease-in-out infinite;
}
.wax-seal span {
  display: flex; align-items: center; justify-content: center; white-space: nowrap; width: 62px; height: 62px; border-radius: 50%;
  border: 1px dashed rgba(226, 203, 146, .55);
}
.wax-seal:hover { transform: translate(-50%, -50%) scale(1.06); }
@keyframes seal-breathe { 50% { box-shadow: 0 0 0 9px rgba(34, 48, 77, .35), 0 10px 24px rgba(0, 0, 0, .45), inset 0 -3px 6px rgba(0, 0, 0, .35), inset 0 2px 4px rgba(255, 255, 255, .15); } }

.is-opening .wax-seal { opacity: 0; transform: translate(-50%, -50%) scale(1.4); animation: none; pointer-events: none; }
.is-opening .envelope-flap { transform: rotateX(180deg); z-index: 1; }
.is-opening .envelope-letter { transform: translateY(-58%); }

@media (prefers-reduced-motion: reduce) {
  .intro-on .envelope-intro { display: none; }
  .intro-on body { overflow: auto; }
}

/* ------------------------------------------------------------------
   5. Header
------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(243, 237, 226, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(28, 35, 51, .4); }
.site-header .navbar { padding: 14px 0; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mono {
  display: flex; align-items: center; justify-content: center; flex: none; white-space: nowrap;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--cotton), var(--cotton)) padding-box, var(--foil) border-box;
  font-family: var(--serif); font-size: 1rem; color: var(--gold-text);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.18rem; }
.brand-date { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav-menu .nav-link {
  position: relative;
  padding: 8px 12px !important;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
}
.nav-menu .nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
  background: var(--foil-line); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav-menu .nav-link:hover, .nav-menu .nav-link.active { color: var(--gold-text); }
.nav-menu .nav-link:hover::after, .nav-menu .nav-link.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; padding: 10px 22px; }
.language-switch { display: flex; align-items: center; gap: 3px; padding: 8px; }
.language-switch button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 7px; border: 1px solid transparent; background: transparent;
  color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em;
}
.language-flag {
  display: block; width: 18px; height: 12px; flex: 0 0 auto;
  border: 1px solid var(--line-2); border-radius: 1px;
}
.language-switch button[aria-pressed="true"] { border-color: var(--line-2); color: var(--navy); }

.navbar-toggler {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 0;
}
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { display: block; height: 1.5px; background: var(--navy); transition: transform .3s var(--ease), opacity .3s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .navbar-collapse { margin-top: 12px; border-top: 1px solid var(--line); }
  .nav-menu { padding: 8px 0 14px; }
  .nav-menu .nav-link { padding: 13px 2px !important; border-bottom: 1px solid var(--line); }
  .nav-menu .nav-link::after { display: none; }
  .nav-cta { margin: 16px 0 0; width: 100%; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-menu .nav-link { padding: 8px 8px !important; letter-spacing: .12em; }
  .brand-date { display: none; }
}
@media (max-width: 400px) {
  .brand-date { display: none; }
}

/* ------------------------------------------------------------------
   6. Invitation hero
------------------------------------------------------------------ */
.invite-hero {
  position: relative; overflow: hidden;
  padding: 64px 0 96px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(ellipse at 50% 120%, rgba(34, 48, 77, .08), transparent 60%);
}
.suite { position: relative; max-width: 1080px; margin: 0 auto; }

.invitation-card { max-width: 640px; margin: 0 auto; padding: 22px; z-index: 2; }
.invitation-inner {
  padding: 48px 46px 44px;
  text-align: center;
  border: 1px solid rgba(138, 106, 46, .5);
  outline: 1px solid rgba(138, 106, 46, .3); outline-offset: 5px;
}
.crest { display: inline-block; margin-bottom: 18px; }
.crest svg text { font-family: var(--serif); }
.inv-hosts { font-family: var(--serif); font-size: .92rem; letter-spacing: .26em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.inv-line { font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.65; color: #3d4658; }
.inv-small { font-family: var(--sans); font-style: normal; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.inv-names { margin: 22px 0 24px; font-size: clamp(2.2rem, 5.4vw, 3.3rem); line-height: 1.05; letter-spacing: -.01em; }
.inv-names > span { display: block; }
.inv-amp { font-style: italic; font-size: .8em; line-height: 1.2; margin: 2px 0; }
.inv-venue { margin: 16px 0 2px; font-family: var(--serif); font-size: 1.3rem; letter-spacing: .3em; text-transform: uppercase; color: var(--navy); }
.inv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* Supporting stationery around the card (desktop only) */
.suite-photo, .suite-tag { display: none; }
@media (min-width: 992px) {
  .suite { padding: 0 40px; }
  .suite-photo {
    display: block; position: absolute; z-index: 1; margin: 0;
    padding: 12px 12px 40px; background: var(--cotton); background-image: var(--grain);
    box-shadow: var(--shadow-lift);
  }
  .suite-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) sepia(.08); }
  .suite-photo--left { width: 236px; height: 312px; left: 18px; top: 80px; transform: rotate(-7deg); }
  .suite-photo--right { width: 236px; height: 312px; right: 10px; top: 24px; transform: rotate(6deg); }
  .suite-tag {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    position: absolute; z-index: 3; right: 40px; bottom: 40px;
    width: 220px; height: 150px; padding: 18px;
    background: var(--navy); background-image: var(--grain);
    outline: 1px solid rgba(226, 203, 146, .45); outline-offset: -9px;
    box-shadow: var(--shadow-lift); transform: rotate(-4deg);
    text-align: center;
  }
  .suite-tag span { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
  .suite-tag em { font-family: var(--serif); font-size: .95rem; color: rgba(251, 248, 242, .78); }
}


/* ------------------------------------------------------------------
   7. Countdown band
------------------------------------------------------------------ */
.countdown-band {
  padding: 56px 0;
  background-color: var(--navy);
  background-image: var(--grain),
    radial-gradient(circle at 1px 1px, rgba(226, 203, 146, .14) 1px, transparent 1.5px);
  background-size: auto, 18px 18px;
  color: var(--cotton);
  border-top: 1px solid rgba(226, 203, 146, .35);
  border-bottom: 1px solid rgba(226, 203, 146, .35);
}
.countdown-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.countdown-title { margin: 0; color: var(--cotton); font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.countdown-title em { color: var(--cotton); }
.countdown-static { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-light); }
.countdown-grid, .countdown-done { display: none; }
.js .countdown-static { display: none; }
.js .countdown-grid { display: flex; }
.countdown.is-done .countdown-grid { display: none; }
.countdown.is-done .countdown-done { display: block; margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-light); }
.countdown-grid { margin: 0; gap: 0; }
.countdown-grid > div { display: flex; flex-direction: column-reverse; align-items: center; min-width: 96px; padding: 0 18px; }
.countdown-grid > div + div { border-left: 1px solid rgba(226, 203, 146, .3); }
.countdown-grid dd {
  margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.countdown-grid dt { margin-top: 10px; font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: rgba(251, 248, 242, .72); }
@media (max-width: 575.98px) {
  .countdown-wrap { justify-content: center; text-align: center; }
  .countdown-grid > div { min-width: 0; padding: 0 12px; }
}

/* ------------------------------------------------------------------
   8. Story
------------------------------------------------------------------ */
.mounted-photo {
  position: relative; margin: 0 auto; max-width: 420px;
  padding: 16px 16px 18px; background: var(--cotton); background-image: var(--grain);
  box-shadow: var(--shadow-lift);
  transform: rotate(-1.5deg);
}
.mounted-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--paper-2); }
.mounted-photo::before, .mounted-photo::after {
  content: ""; position: absolute; width: 46px; height: 46px; z-index: 1;
  background: var(--navy);
}
.mounted-photo::before { top: 6px; left: 6px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.mounted-photo::after { bottom: 46px; right: 6px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.mounted-photo figcaption { margin-top: 12px; text-align: center; font-family: var(--serif); font-style: italic; color: var(--muted); }

.lead-serif { font-family: var(--serif); font-size: 1.28rem; line-height: 1.6; color: var(--navy); }
.lead-serif::first-letter { float: left; font-size: 3.9em; line-height: .82; padding: 6px 10px 0 0; color: var(--gold-text); }
.story-text p { color: #3a4253; }
.signature { margin-top: 22px; font-family: var(--serif); font-style: italic; color: var(--muted); }
.signature span { display: block; font-size: 1.7rem; color: var(--navy); }

.milestones {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.milestones li { position: relative; padding-left: 18px; }
.milestones li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--foil); }
.m-when { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.m-what { display: block; font-family: var(--serif); font-size: 1.04rem; color: var(--navy); line-height: 1.35; }
@media (min-width: 768px) { .milestones { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------------
   9. Ceremony & reception enclosure cards
------------------------------------------------------------------ */
.enclosure {
  height: 100%;
  background: var(--cotton); background-image: var(--grain), var(--laid);
  box-shadow: var(--shadow-card);
  padding: 14px;
  text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.enclosure:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.enclosure-photo { overflow: hidden; }
.enclosure-photo img { width: 100%; aspect-ratio: 10 / 6; object-fit: cover; filter: saturate(.9); transition: transform 1.2s var(--ease); }
.enclosure:hover .enclosure-photo img { transform: scale(1.04); }
.enclosure-body { padding: 30px 22px 22px; margin-top: 14px; border: 1px solid rgba(138, 106, 46, .35); }
.enclosure-kicker { margin-bottom: 4px; font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-text); }
.enclosure-time { margin: 0; font-size: clamp(2.8rem, 5vw, 3.6rem); line-height: 1; }
.enclosure-time small { font-size: .38em; font-style: italic; letter-spacing: .04em; }
.enclosure-place { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--navy); margin: 6px 0 14px; }
.enclosure-body > p:not([class]) { color: var(--muted); max-width: 420px; margin-left: auto; margin-right: auto; }
.detail-list { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); text-align: left; display: grid; gap: 10px; }
.detail-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--ink); }
.detail-list svg { flex: none; margin-top: 3px; color: var(--gold-text); }

/* ------------------------------------------------------------------
   10. Venue: map plate + directions
------------------------------------------------------------------ */
.map-plate { margin: 0; padding: 14px; background: var(--cotton); background-image: var(--grain); box-shadow: var(--shadow-card); }
.estate-map { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); }
.map-image-link { display: block; cursor: zoom-in; }
.map-lightbox {
  position: fixed; width: max-content; max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px); margin: auto; padding: 48px 12px 12px;
  border: 0; background: var(--cotton); box-shadow: var(--shadow-lift);
}
.map-lightbox::backdrop { background: rgba(15, 20, 32, .82); }
.map-lightbox img { display: block; width: auto; height: auto; max-width: calc(100vw - 48px); max-height: calc(100vh - 84px); }
.map-lightbox-close {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--cotton);
  color: var(--navy); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.map-lightbox-close:hover { background: var(--navy); color: var(--cotton); }
.map-label { font-family: var(--serif); fill: var(--navy); }
.map-label--place { font-size: 17px; letter-spacing: .18em; text-transform: uppercase; }
.map-label--road { font-size: 11px; font-style: italic; fill-opacity: .75; }
.map-label--small { font-family: var(--sans); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; }
.map-label--water { font-size: 12px; font-style: italic; fill: #4c6a82; }
.map-label--p { font-family: var(--sans); font-weight: 700; font-size: 13px; }
.map-village rect, .map-village path { fill: var(--navy); fill-opacity: .7; }
.map-key {
  list-style: none; padding: 16px 4px 2px; margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px;
  font-size: .9rem; color: var(--ink);
}
.map-key li { display: flex; align-items: center; gap: 10px; }
.map-key span {
  display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--foil); color: var(--ink); font-size: .72rem; font-weight: 700; border: 1px solid var(--navy);
}
@media (min-width: 768px) { .map-key { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.directions { height: 100%; padding: 36px 34px; background: var(--cotton); background-image: var(--grain); box-shadow: var(--shadow-card); }
.venue-address { font-style: normal; font-size: 1rem; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.venue-address strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--navy); margin-bottom: 4px; }

.tabs { margin-top: 30px; }
.tab-list { display: none; }
.js .tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 22px; }
.tab-list [role="tab"] {
  position: relative; padding: 10px 14px; border: 0; background: none;
  font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.tab-list [role="tab"][aria-selected="true"] { color: var(--navy); }
.tab-list [role="tab"][aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--foil); }
.tab-list [role="tab"]:hover { color: var(--navy); }
.tab-panel { color: #3a4253; }
.tab-panel + .tab-panel { margin-top: 22px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel:focus-visible { outline-offset: 6px; }
.panel-title { font-size: 1.3rem; font-style: italic; margin-bottom: 8px; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------
  11. Dress code
------------------------------------------------------------------ */
.attire-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid rgba(226, 203, 146, .28); }
.attire-item { padding: 30px 28px; }
.attire-item:nth-child(odd) { border-right: 1px solid rgba(226, 203, 146, .28); }
.attire-item:nth-child(-n+2) { border-bottom: 1px solid rgba(226, 203, 146, .28); }
.attire-item h3 { font-size: 1.4rem; color: var(--cotton); margin-bottom: 8px; }
.attire-item p { margin: 0; color: rgba(251, 248, 242, .76); font-size: .97rem; }
.swatches { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(251, 248, 242, .76); }
.swatches li::before { content: ""; width: 38px; height: 38px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 4px var(--navy-deep), 0 0 0 5px rgba(226, 203, 146, .4); }
@media (max-width: 575.98px) {
  .attire-grid { grid-template-columns: 1fr; }
  .attire-item:nth-child(odd) { border-right: 0; }
  .attire-item:not(:last-child) { border-bottom: 1px solid rgba(226, 203, 146, .28); }
}

/* ------------------------------------------------------------------
  12. Registry gift tags
------------------------------------------------------------------ */
.gift-tag {
  position: relative; isolation: isolate; height: 100%;
  padding: 64px 34px 34px; text-align: center;
  filter: drop-shadow(0 16px 20px rgba(28, 35, 51, .14)) drop-shadow(0 1px 1px rgba(28, 35, 51, .1));
}
.gift-tag::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cotton); background-image: var(--grain), var(--laid);
  clip-path: polygon(16% 0, 84% 0, 100% 10%, 100% 100%, 0 100%, 0 10%);
}
.gift-tag::after {
  content: ""; position: absolute; inset: 10px; z-index: -1; pointer-events: none;
  border: 1px solid rgba(138, 106, 46, .4);
  clip-path: polygon(15% 0, 85% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
}
.tag-hole {
  position: absolute; top: 20px; left: 50%; width: 18px; height: 18px; transform: translateX(-50%);
  border-radius: 50%; background: var(--paper);
  box-shadow: 0 0 0 4px #c9a95f, inset 0 2px 3px rgba(0, 0, 0, .2);
}
.tag-no { font-family: var(--serif); font-style: italic; color: var(--gold-text); margin-bottom: 6px; }
.gift-tag h3 { font-size: 1.6rem; margin-bottom: 12px; }
.gift-tag p:not(.tag-no) { color: var(--muted); }
.tag-link { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.tag-link:hover { border-bottom-color: currentColor; }
.gift-tag--featured::before { background-color: var(--navy); background-image: var(--grain); }
.gift-tag--featured::after { border-color: rgba(226, 203, 146, .45); }
.gift-tag--featured h3 { color: var(--cotton); }
.gift-tag--featured p:not(.tag-no) { color: rgba(251, 248, 242, .78); }
.gift-tag--featured .tag-no, .gift-tag--featured .tag-link { color: var(--gold-light); }
.gift-tag--featured .tag-link { border-bottom-color: rgba(226, 203, 146, .5); }
.gift-tag--featured :focus-visible { outline-color: var(--gold-light); }

/* ------------------------------------------------------------------
  13. FAQ
------------------------------------------------------------------ */
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.28rem; color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(138, 106, 46, .5);
  background:
    linear-gradient(var(--gold-text), var(--gold-text)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--gold-text), var(--gold-text)) center / 1.5px 11px no-repeat;
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--gold-text); }
.faq-list details p { padding: 0 54px 22px 4px; margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------
  14. RSVP call to action (envelope back)
------------------------------------------------------------------ */
.envelope-cta {
  position: relative; max-width: 880px; margin: 0 auto;
  background: var(--envelope); background-image: var(--grain);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.envelope-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(28, 35, 51, .1) 50%, transparent calc(50% + 1px)) left bottom / 50% 62% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1px), rgba(28, 35, 51, .1) 50%, transparent calc(50% + 1px)) right bottom / 50% 62% no-repeat;
}
.envelope-cta-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 140px;
  background-color: var(--navy);
  background-image: radial-gradient(circle at 6px 6px, rgba(226, 203, 146, .45) 1.2px, transparent 1.8px);
  background-size: 14px 14px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.envelope-cta-body { position: relative; padding: 206px 32px 64px; text-align: center; }
.envelope-cta-body::before {
  content: "F & JB"; position: absolute; top: 108px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3f5584, #22304d 55%, #141b2b);
  box-shadow: 0 0 0 4px rgba(34, 48, 77, .4), 0 8px 18px rgba(0, 0, 0, .3);
  font-family: var(--serif); font-size: .95rem; color: var(--gold-light); white-space: nowrap;
}
.envelope-cta-body .section-sub { max-width: 540px; margin-bottom: 30px; }

/* ------------------------------------------------------------------
  15. Footer
------------------------------------------------------------------ */
.site-footer {
  padding: 72px 0 34px;
  background-color: var(--navy-deep); background-image: var(--grain);
  color: rgba(251, 248, 242, .7); text-align: center;
}
.footer-mono {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; width: 64px; height: 64px; border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--navy-deep), var(--navy-deep)) padding-box, var(--foil) border-box;
  font-family: var(--serif); font-size: 1.3rem; color: var(--gold-light);
}
.footer-names { margin: 16px 0 4px; font-family: var(--serif); font-size: 2rem; color: var(--cotton); }
.footer-date { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 6px; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--gold-light); }
.footer-grid { margin: 34px auto 0; padding: 26px 0; border-top: 1px solid rgba(226, 203, 146, .2); border-bottom: 1px solid rgba(226, 203, 146, .2); }
.footer-links { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.footer-links a, .footer-contact a { color: var(--cotton); text-decoration: none; }
.footer-links a { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact { margin: 0; font-size: .95rem; }
.footer-credit { margin: 22px 0 0; font-size: .82rem; }
.footer-credit a { color: var(--gold-light); }

/* Toast */
.toast-note {
  position: fixed; left: 50%; bottom: 24px; z-index: 2000;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 22px; background: var(--navy); color: var(--cotton);
  font-size: .86rem; letter-spacing: .04em; box-shadow: var(--shadow-lift);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast-note.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------
  16. RSVP page
------------------------------------------------------------------ */
.rsvp-head { padding: 72px 0 8px; text-align: center; }
.page-title { font-size: clamp(2.8rem, 7vw, 4.6rem); margin: 0 0 16px; letter-spacing: -.01em; }
.page-title em { color: var(--gold-text); }
.rsvp-head .section-sub { max-width: 600px; }
.rsvp-section { padding-top: 48px; }

.reply-card { padding: 54px 52px 48px; }
.reply-card::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none;
  border: 1px solid rgba(138, 106, 46, .32);
}

.form-block { margin: 0 0 34px; padding: 0 0 34px; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
.form-block:last-of-type { border-bottom: 0; }
.form-block legend, .menu-legend {
  display: flex; align-items: center; gap: 14px; float: none; width: auto;
  margin-bottom: 22px; padding: 0;
  font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; color: var(--navy);
}
.step-no {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(138, 106, 46, .55);
  font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--gold-text);
}

.field label, .field-label {
  display: block; margin-bottom: 4px;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
}
.optional { font-weight: 500; letter-spacing: .06em; text-transform: none; color: var(--muted); font-size: .82rem; margin-left: 4px; }
.field input, .field select {
  display: block; width: 100%;
  padding: 8px 2px 9px;
  border: 0; border-bottom: 1px solid rgba(34, 48, 77, .4); border-radius: 0;
  background: transparent;
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--navy);
  transition: border-color .2s, background-color .2s;
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 28px; font-size: 1.1rem;
  background: 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='%2322304d' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat;
}
.field textarea {
  display: block; width: 100%; resize: vertical; min-height: 0;
  padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 0;
  background-color: rgba(255, 255, 255, .45);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(34, 48, 77, .14) 31px 32px);
  background-attachment: local;
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 32px; color: var(--navy);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background-color: rgba(226, 203, 146, .16); box-shadow: 0 2px 0 0 #b28c45; }
.field input::placeholder { color: rgba(88, 95, 111, .6); }
.field-hint { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: .86rem; font-weight: 600; color: var(--error); }
.field-error:empty { display: none; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.is-invalid-group .choice-face, .is-invalid-group .pill span { border-color: var(--error); }

/* Choice cards */
.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input, .pill input, .dish input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-face {
  display: block; height: 100%; padding: 22px 22px 20px 58px; position: relative;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .5);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice-face::before {
  content: ""; position: absolute; left: 20px; top: 24px; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--cotton);
}
.choice-title { display: block; font-family: var(--serif); font-size: 1.32rem; color: var(--navy); line-height: 1.2; }
.choice-sub { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); }
.choice-card:hover .choice-face { border-color: var(--navy); }
.choice-card input:checked + .choice-face { border-color: var(--navy); background: var(--cotton); box-shadow: inset 0 0 0 1px var(--navy); }
.choice-card input:checked + .choice-face::before { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 5px, transparent 5.5px), var(--cotton); }
.choice-card input:focus-visible + .choice-face { outline: 2px solid var(--gold-text); outline-offset: 3px; }
@media (max-width: 575.98px) { .choice-cards { grid-template-columns: 1fr; } }

.pill-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pill { position: relative; cursor: pointer; }
.pill span {
  display: inline-block; padding: 10px 22px; border: 1px solid var(--line-2);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
  background: rgba(255, 255, 255, .5); transition: background-color .2s, color .2s, border-color .2s;
}
.pill:hover span { border-color: var(--navy); }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--cotton); }
.pill input:focus-visible + span { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.nested { margin-top: 22px; padding: 22px 22px 6px; background: rgba(226, 203, 146, .12); border-left: 2px solid #b28c45; }

/* Menu card */
.menu-legend { margin-bottom: 6px; }
.menu-card {
  margin-top: 22px; padding: 40px 34px 30px;
  background: var(--cotton); background-image: var(--grain);
  border: 1px solid var(--navy); outline: 1px solid var(--navy); outline-offset: -7px;
}
.course { border: 0; padding: 0; margin: 0; min-width: 0; max-width: 520px; margin-inline: auto; }
.course legend {
  float: none; width: 100%; margin-bottom: 14px; padding: 0; text-align: center;
  font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-text);
}
.dish { position: relative; display: block; padding: 10px 10px 10px 44px; cursor: pointer; border-radius: 2px; transition: background-color .2s; }
.dish:hover { background: rgba(226, 203, 146, .16); }
.dish::before {
  content: ""; position: absolute; left: 10px; top: 14px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--cotton); transition: background .2s, border-color .2s;
}
.dish:has(input:checked) { background: rgba(226, 203, 146, .2); }
.dish:has(input:checked)::before { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 4.5px, transparent 5px), var(--cotton); }
.dish:has(input:focus-visible) { outline: 2px solid var(--gold-text); outline-offset: 1px; }
.dish strong { font-family: var(--serif); font-weight: 500; font-size: 1.14rem; color: var(--navy); }
.dish em { display: block; font-family: var(--serif); color: var(--muted); font-size: .98rem; }
.diet {
  display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; vertical-align: 2px;
  border-radius: 50%; border: 1px solid var(--success); color: var(--success);
  font-family: var(--sans); font-size: .62rem; font-weight: 700; text-transform: lowercase;
}
.menu-divider { display: block; position: relative; width: 120px; height: 1px; margin: 24px auto; background: var(--foil-line); }
.menu-divider::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; transform: translate(-50%, -50%) rotate(45deg); background: var(--foil); box-shadow: 0 0 0 4px var(--cotton); }
.course .field-error { text-align: center; }
.is-invalid-group.course { box-shadow: inset 3px 0 0 var(--error); padding-left: 6px; }

.check { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 20px; cursor: pointer; color: var(--ink); }
.check span { display: flex; align-items: flex-start; }
.check span::before {
  content: ""; display: block; flex: none; width: 20px; height: 20px; margin: 3px 12px 0 0;
  border: 1px solid var(--line-2); background: var(--cotton);
}
.check input:checked + span::before {
  border-color: var(--navy);
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23fbf8f2' stroke-width='2'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.check input:focus-visible + span { outline: 2px solid var(--gold-text); outline-offset: 3px; }

.char-count.is-near { color: var(--gold-text); font-weight: 600; }
.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding-top: 6px; }
.form-note { margin: 0; flex: 1 1 240px; font-size: .86rem; color: var(--muted); }

.error-summary { margin-bottom: 34px; padding: 18px 22px; border: 1px solid rgba(156, 47, 43, .4); border-left: 3px solid var(--error); background: rgba(156, 47, 43, .05); }
.error-summary h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--error); margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 18px; }
.error-summary a { color: var(--error); }

/* Success state */
.reply-success { text-align: center; padding: 16px 0 6px; }
.reply-success:focus { outline: none; }
.success-seal {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3f5584, #22304d 55%, #141b2b);
  box-shadow: 0 0 0 5px rgba(34, 48, 77, .25), 0 10px 22px rgba(0, 0, 0, .25);
  font-family: var(--serif); font-size: 1.4rem; color: var(--gold-light);
}
.js .reply-success:not([hidden]) .success-seal { animation: stamp-in .7s var(--ease) both; }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.6) rotate(-12deg); } }
@media (prefers-reduced-motion: reduce) { .js .reply-success:not([hidden]) .success-seal { animation: none; } }
.success-title { margin: 22px 0 10px; font-size: clamp(2.2rem, 5vw, 3rem); }
.success-lead { max-width: 520px; margin: 0 auto 28px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted); }
.success-summary { max-width: 520px; margin: 0 auto 30px; text-align: left; border-top: 1px solid var(--line); }
.success-summary div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dotted var(--line-2); }
.success-summary dt { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.success-summary dd { margin: 0; font-family: var(--serif); font-size: 1.08rem; color: var(--navy); }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; }

/* At-a-glance aside */
.glance-card { position: sticky; top: 104px; background: var(--navy); background-image: var(--grain); color: rgba(251, 248, 242, .8); box-shadow: var(--shadow-lift); }
.glance-photo { margin: 0; padding: 12px 12px 0; }
.glance-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.glance-body { padding: 26px 28px 30px; }
.glance-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; }
.glance-list { margin: 0; }
.glance-list div { padding: 12px 0; border-bottom: 1px solid rgba(226, 203, 146, .2); display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.glance-list dt { font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(251, 248, 242, .6); padding-top: 3px; }
.glance-list dd { margin: 0; font-family: var(--serif); font-size: 1.05rem; color: var(--cotton); line-height: 1.4; }
.glance-help { margin: 18px 0 0; font-size: .92rem; }
.glance-help a { color: var(--gold-light); }

/* ------------------------------------------------------------------
   19. Responsive refinements
------------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .section { padding: 84px 0; }
  .glance-card { position: static; }
}
@media (max-width: 767.98px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .invite-hero { padding: 36px 0 64px; }
  .invitation-card { padding: 14px; }
  .invitation-inner { padding: 36px 20px 32px; outline-offset: 4px; }
  .inv-line:not(.inv-small) { font-size: 1.02rem; }
  .inv-venue { font-size: 1.1rem; letter-spacing: .22em; }
  .inv-small { letter-spacing: .18em; }
  .inv-small > span { display: block; }
  .inv-small .sep { display: none; }
  .directions { padding: 28px 22px; }
  .reply-card { padding: 40px 24px 34px; }
  .reply-card::after { inset: 8px; }
  .menu-card { padding: 30px 14px 22px; }
  .envelope-cta-flap { height: 100px; }
  .envelope-cta-body { padding: 164px 22px 48px; }
  .envelope-cta-body::before { top: 70px; }
  .faq-list details p { padding-right: 4px; }
  .success-summary div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 400px) {
  .inv-names { font-size: 2.1rem; }
  .countdown-grid > div { padding: 0 8px; }
  .countdown-grid dt { letter-spacing: .14em; }
}
