/* =========================================================
   Joanna + Will | tabiszhamilton.com
   Palette: "evening garden" (evergreen + ivory + gold)
   ========================================================= */

:root {
  --evergreen-950: #0b1a13;
  --evergreen-900: #10231a;
  --evergreen-800: #173226;
  --evergreen-700: #1f3a2e;
  --evergreen-600: #2c4e3e;
  --sage-500: #7f9a74;
  --sage-400: #9caf88;
  --sage-200: #d8e0ce;
  --sage-100: #e9eee2;
  --ivory: #faf6ee;
  --ivory-2: #f3ecdf;
  --paper: #fffdf8;
  --gold: #c9a45c;
  --gold-light: #e8cf94;
  --gold-ink: #876626;          /* gold for text on ivory (AA contrast) */
  --ink: #1e2a24;
  --ink-soft: #4b5b52;
  --on-dark: #f6f1e6;
  --on-dark-soft: rgba(246, 241, 230, .78);

  --font-script: "Corinthia", "Great Vibes", "Snell Roundhand", "Segoe Script", cursive;
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1100px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --radius: 6px;
  --shadow-soft: 0 18px 40px -24px rgba(16, 35, 26, .35);

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--evergreen-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 .6em; }
:root { --focus: var(--gold-ink); }
.hero, .section-rsvp .section-head, .site-footer, .simple-page, .skip-link,
.site-nav:not(.is-scrolled):not(.is-open) { --focus: var(--gold-light); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* Placeholder text: visible on purpose so nothing ships unfilled by accident */
.tbd { color: var(--ink-soft); font-style: italic; }

/* ---------- RSVP switch ---------- */
html[data-rsvp="off"] [data-rsvp-only] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.7em;
  font-family: var(--font-sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--evergreen-900); box-shadow: 0 10px 30px -12px rgba(201, 164, 92, .7); }
.btn-gold:hover { background: var(--gold-light); color: var(--evergreen-900); }
.btn-ghost { color: var(--on-dark); border-color: rgba(232, 207, 148, .55); }
.btn-ghost:hover { color: var(--evergreen-900); background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline { color: var(--evergreen-700); border-color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--evergreen-700); border-color: var(--evergreen-700); color: var(--ivory); }
.btn-outline.is-pending, .btn-outline.is-pending:hover {
  color: var(--ink-soft); border-style: dashed; border-color: var(--sage-400);
  background: transparent; cursor: default; transform: none;
}
.btn-block { width: 100%; }

.link-btn {
  display: inline-flex; align-items: center; gap: .45em;
  margin-top: .9em; padding: .2em 0;
  font-family: var(--font-sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-ink); text-decoration: none; cursor: pointer;
  border-bottom: 1px solid rgba(201, 164, 92, .6);
}
.link-btn:hover { color: var(--evergreen-700); border-color: var(--evergreen-700); }
.icon-sm { width: 16px; height: 16px; }
.link-btn { position: relative; }
.link-btn::after, .back-top::after { content: ""; position: absolute; inset: -10px -6px; }

/* ---------- nav ---------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--on-dark);
  transition: background-color .35s, box-shadow .35s, color .35s;
}
.site-nav.is-scrolled, .site-nav.is-open {
  background: rgba(250, 246, 238, .95);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 1px 0 rgba(31, 58, 46, .08), 0 8px 24px -18px rgba(16, 35, 26, .4);
  color: var(--ink);
}
.monogram {
  font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .06em;
  color: inherit; text-decoration: none;
}
.monogram span { font-family: var(--font-script); font-size: 1.5em; color: var(--gold); margin: 0 .08em; position: relative; top: .06em; }
.monogram:hover { color: inherit; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2.2vw, 30px); }
.nav-links a {
  font-size: .76rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: inherit; border-bottom-color: var(--gold); }
.nav-toggle {
  display: none; align-items: center; gap: 10px;
  background: none; border: 0; color: inherit; cursor: pointer;
  font: 500 .76rem/1 var(--font-sans); letter-spacing: .22em; text-transform: uppercase;
  min-height: 44px; padding: 0 4px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 1px; background: currentColor; position: relative; transition: transform .3s, background-color .3s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav.is-open .nav-toggle-bars { background: transparent; }
.site-nav.is-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-nav.is-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav nav {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(250, 246, 238, .98);
    box-shadow: 0 18px 30px -20px rgba(16, 35, 26, .45);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility 0s linear .35s;
  }
  .site-nav.is-open nav { max-height: 420px; visibility: visible; transition: max-height .35s ease; }
  .nav-links { flex-direction: column; gap: 0; padding: 8px var(--gutter) 18px; color: var(--ink); }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--sage-200); }
  .nav-links li:last-child a { border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(660px, 100svh, 1000px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  background: var(--evergreen-900);
  color: var(--on-dark); text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 26, 19, .6) 0%, rgba(11, 26, 19, 0) 100%);
}
.hero-sky {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(90% 55% at 50% 8%, rgba(232, 207, 148, .20) 0%, rgba(232, 207, 148, 0) 60%),
    radial-gradient(70% 45% at 15% 100%, rgba(127, 154, 116, .30) 0%, rgba(127, 154, 116, 0) 70%),
    radial-gradient(70% 45% at 85% 100%, rgba(127, 154, 116, .26) 0%, rgba(127, 154, 116, 0) 70%),
    linear-gradient(180deg, #0f2119 0%, #173226 45%, #1f3a2e 100%);
}
.lights { position: absolute; left: 0; width: 100%; pointer-events: none; overflow: visible; }
.hero { --lights-h: max(calc(var(--nav-h) + clamp(130px, 24vh, 270px)), calc(100vw * 310 / 1440)); }
.lights-hero {
  top: 0; height: var(--lights-h); z-index: -2; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.lights .wire { fill: none; stroke: rgba(232, 207, 148, .38); stroke-width: 1; }
.lights .bokeh { filter: blur(1.4px); }

.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 980px;
  padding: calc(var(--lights-h) + 14px) var(--gutter) clamp(150px, 20vh, 220px);
}
.hero-kicker {
  font-size: clamp(.68rem, .5vw + .55rem, .86rem); font-weight: 400;
  letter-spacing: .34em; text-transform: uppercase; color: var(--on-dark-soft);
  margin-bottom: .2em;
}
.hero-script {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 0; font-family: var(--font-script); font-weight: 400;
  font-size: clamp(3.4rem, 7vw, 5.6rem); line-height: 1.05; color: var(--gold-light);
}
.hero-script::before, .hero-script::after {
  content: ""; flex: 0 1 150px; height: 1px;
  background: linear-gradient(90deg, rgba(232, 207, 148, 0), rgba(232, 207, 148, .8));
}
.hero-script::after { background: linear-gradient(90deg, rgba(232, 207, 148, .8), rgba(232, 207, 148, 0)); }
.hero-script span { padding: 0 .1em; }
.hero-names { display: flex; flex-direction: column; align-items: center; gap: .08em; margin: .1em 0 .55em; }
.hero-names .name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.55rem, 7vw, 5rem); letter-spacing: .07em; text-transform: uppercase;
  color: var(--on-dark); line-height: 1.02;
}
.hero-names .plus { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.6vw, 2.8rem); color: var(--gold-light); line-height: 1; }
.hero-meta p {
  margin: 0 0 .55em;
  font-size: clamp(.74rem, .55vw + .6rem, .95rem); font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark);
}
.hero-meta .bar { color: var(--gold); margin: 0 .35em; }
.countdown {
  margin: 1.2em 0 0; min-height: 1.5em;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.05rem, 1.2vw + .7rem, 1.35rem);
  color: var(--gold-light);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 1.4em; }
@media (max-width: 600px) {
  .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 360px; margin-left: auto; margin-right: auto; }
  .hero-actions .btn { flex: 0 0 calc(50% - 5px); }
  .hero-actions .btn { padding: .7em .6em; letter-spacing: .16em; }
}

.fireflies { position: absolute; inset: 30% 0 0 0; z-index: -1; pointer-events: none; }
.fireflies i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #ffe7a8; box-shadow: 0 0 10px 3px rgba(255, 223, 150, .55);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .fireflies i { animation: firefly 9s ease-in-out infinite; }
}
@keyframes firefly {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  25% { opacity: .9; }
  50% { opacity: .25; transform: translate(14px, -22px); }
  75% { opacity: .8; transform: translate(-8px, -36px); }
}

.foliage { position: absolute; bottom: 40px; z-index: 0; width: clamp(200px, 36vw, 540px); height: auto; aspect-ratio: 520 / 380; pointer-events: none; }
.foliage-left { left: -10px; }
.foliage-right { right: -10px; transform: scaleX(-1); }
.hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(34px, 5vw, 70px); z-index: 1; }
.hero-edge path { fill: var(--ivory); }

@media (prefers-reduced-motion: no-preference) {
  .lights .twinkle { animation: twinkle 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
  .lights .sparkle { animation: sparkle 4.6s ease-in-out infinite; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
}
@keyframes twinkle { 0%, 100% { opacity: .95; } 50% { opacity: .35; } }
@keyframes sparkle { 0%, 100% { opacity: .15; transform: scale(.6); } 45% { opacity: 1; transform: scale(1.15); } }

@media (max-width: 600px) {
  .hero { --lights-h: calc(var(--nav-h) + 170px); }
  .hero-inner { padding-bottom: 130px; }
  .hero-script { gap: 10px; }
  .hero-script::before, .hero-script::after { flex-basis: 40px; }
  .hero-kicker { letter-spacing: .24em; }
  .hero-script { font-size: 3rem; }
  .hero-names .name { font-size: 8.4vw; letter-spacing: .04em; }
  .hero-meta p { letter-spacing: .18em; }
  .hero-meta .bar { display: block; height: 0; overflow: hidden; }
  .foliage { bottom: 26px; width: 44vw; }
}

/* short landscape screens (e.g. 1366x768 laptops): keep the buttons above the fold */
@media (min-width: 601px) and (max-height: 820px) {
  .hero { --lights-h: calc(var(--nav-h) + max(96px, 17vh)); }
  .hero-script { font-size: clamp(2.4rem, min(7vw, 10vh), 5.6rem); }
  .hero-names .name { font-size: clamp(1.55rem, min(7vw, 8.5vh), 5rem); }
  .hero-inner { padding-bottom: clamp(90px, 14vh, 150px); }
}

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(64px, 8vw, 110px) var(--gutter); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow {
  margin-bottom: .7em;
  font-size: .76rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink);
}
.section-head h2, .story-text h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); color: var(--evergreen-800); }
.sprig { display: block; width: 150px; height: 22px; margin: 20px auto 0; color: var(--sage-500); }
.sprig-left { margin-left: 0; }
.lede { margin: 22px auto 0; max-width: 620px; color: var(--ink-soft); font-size: 1.05em; }

/* details: arch cards */
.section-details { padding-bottom: clamp(56px, 7vw, 96px); }
.arch-cards { max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
.arch-card {
  position: relative; text-align: center;
  padding: clamp(54px, 6vw, 72px) 24px 40px;
  background: var(--paper);
  border: 1px solid var(--sage-200);
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow-soft);
}
.arch-card::before {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 1px solid rgba(201, 164, 92, .45);
  border-radius: 999px 999px 3px 3px;
}
.arch-card .icon { width: 30px; height: 30px; color: var(--gold-ink); margin: 0 auto 14px; display: block; }
.arch-card h3 { font-size: 1.9rem; color: var(--evergreen-800); margin-bottom: .45em; }
.arch-card p { margin: 0 0 .25em; }
.arch-card .address { color: var(--ink-soft); margin-top: .3em; }
.cal-menu { position: relative; display: inline-block; }
.cal-menu summary { list-style: none; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-menu ul {
  position: absolute; z-index: 5; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  min-width: 220px; margin: 0; padding: 8px; list-style: none; text-align: left;
  background: var(--paper); border: 1px solid var(--sage-200); border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.cal-menu li a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); border-radius: 4px; }
.cal-menu li a:hover { background: var(--sage-100); color: var(--ink); }

.arch-card .park + .park { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sage-200); }
.arch-card .park-name { margin: 0; font-weight: 500; color: var(--ink); }
.arch-card .park .card-detail { margin: .15em 0 0; }
.arch-card .park .link-btn { margin-top: .5em; }
@media (max-width: 640px) {
  .arch-cards { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
}

/* schedule: timeline */
.section-schedule { padding-bottom: calc(clamp(64px, 8vw, 110px) + 40px); }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 50%; width: 1px; transform: translateX(-.5px);
  background: linear-gradient(180deg, rgba(156, 175, 136, 0), var(--sage-400) 12%, var(--sage-400) 88%, rgba(156, 175, 136, 0));
}
.timeline li { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: baseline; padding: 14px 0; }
.t-time { margin: 0; text-align: right; font-size: .82rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.t-time.tbd { color: var(--ink-soft); font-weight: 400; letter-spacing: .12em; }
.t-dot { justify-self: center; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--ivory-2), 0 0 14px 4px rgba(201, 164, 92, .45); position: relative; top: 1px; }
.t-body h3 { font-size: 1.6rem; color: var(--evergreen-800); }
.t-body h3.tbd { color: var(--ink-soft); font-style: italic; }
.t-body p { margin: .15em 0 0; }
@media (max-width: 600px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 11px 1fr; column-gap: 20px; row-gap: 2px; }
  .t-time { grid-column: 2; grid-row: 1; text-align: left; }
  .t-dot { grid-column: 1; grid-row: 1 / span 2; align-self: start; top: 6px; box-shadow: 0 0 0 5px var(--ivory-2), 0 0 12px 3px rgba(201, 164, 92, .45); }
  .t-body { grid-column: 2; grid-row: 2; }
}

/* story */
.section-story { background: var(--ivory-2); overflow: hidden; }
.story-grid { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.story-text p:not(.eyebrow) { color: var(--ink-soft); }
.story-text .sprig { margin-bottom: 26px; }
.story-photos { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.arch-photo { margin: 0; position: relative; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--evergreen-700); box-shadow: var(--shadow-soft); aspect-ratio: 3 / 4; }
.arch-photo-tall { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 100%; }
.arch-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch-photo::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid rgba(232, 207, 148, .55); border-radius: 999px 999px 3px 3px;
}
.photo-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(80% 60% at 50% 30%, #2c4e3e 0%, #1f3a2e 55%, #173226 100%);
  color: var(--gold-light); text-align: center; padding: 20px;
}
.photo-ph svg { width: 28px; height: 28px; opacity: .85; }
.photo-ph span { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--on-dark-soft); }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-text { text-align: center; }
  .story-text .sprig-left { margin-left: auto; }
  .story-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; gap: 10px; }
  .arch-photo, .arch-photo-tall { grid-row: auto; aspect-ratio: 3 / 4.4; min-height: 0; }
}
@media (max-width: 600px) {
  .story-photos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .arch-photo-tall { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .arch-photo:not(.arch-photo-tall) { aspect-ratio: 3 / 4; }
}

/* rsvp */
.section-rsvp {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(232, 207, 148, .14), transparent 70%),
    linear-gradient(180deg, var(--evergreen-900) 0%, var(--evergreen-800) 100%);
  color: var(--on-dark);
  padding-top: clamp(120px, 14vw, 170px);
  overflow: hidden;
}
.lights-band {
  top: 0; height: 150px; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px);
  mask-image: linear-gradient(180deg, transparent 0, #000 22px);
}
/* green bands (Schedule, Gifts) alternate with the ivory sections:
   hero G / Details W / Schedule G / Story W / Gifts G + footer */
.section-dark {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(232, 207, 148, .14), transparent 70%),
    linear-gradient(180deg, var(--evergreen-900) 0%, var(--evergreen-800) 100%);
  color: var(--on-dark);
  padding-top: clamp(120px, 14vw, 170px);
  overflow: hidden;
  --focus: var(--gold-light);
}
.section-dark .timeline, .section-dark .gift-cards { position: relative; z-index: 1; }
.section-dark .gift-card { --focus: var(--gold-ink); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.section-dark .timeline::before { background: linear-gradient(180deg, rgba(156, 175, 136, 0), rgba(156, 175, 136, .6) 12%, rgba(156, 175, 136, .6) 88%, rgba(156, 175, 136, 0)); }
.section-dark .t-time { color: var(--gold-light); }
.section-dark .t-body h3 { color: var(--on-dark); }
.section-dark .t-body p, .section-dark .t-body .tbd { color: var(--on-dark-soft); }
.section-dark .t-dot { box-shadow: 0 0 0 5px var(--evergreen-800), 0 0 14px 4px rgba(232, 207, 148, .5); }
.section-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 4vw, 56px); z-index: 1; }
.section-edge path { fill: var(--ivory-2); }
.section-head-dark { position: relative; z-index: 1; }
.section-head-dark .sprig { color: var(--sage-400); }
.section-head-dark .lede { color: var(--on-dark-soft); }
.section-head-dark .eyebrow { color: var(--gold-light); }
.section-head-dark h2 { color: var(--on-dark); }
.rsvp-deadline { margin-top: 16px; color: var(--on-dark-soft); letter-spacing: .04em; }
.rsvp-deadline strong { color: var(--gold-light); font-weight: 500; }
.rsvp-card {
  position: relative; z-index: 1;
  max-width: 580px; margin: 0 auto;
  background: var(--paper); color: var(--ink);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.rsvp-card::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(201, 164, 92, .45); border-radius: 6px;
}
.rsvp-form { position: relative; }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block; margin-bottom: 8px; padding: 0;
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--evergreen-700);
}
.field .optional { text-transform: none; letter-spacing: .02em; font-weight: 400; color: var(--ink-soft); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #6f8a64; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--evergreen-700) 50%), linear-gradient(135deg, var(--evergreen-700) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-ink); outline-offset: 1px; border-color: var(--gold-ink); box-shadow: 0 0 0 4px rgba(201, 164, 92, .22); }
.field ::placeholder { color: #6b756f; opacity: 1; }
.field [aria-invalid="true"] { border-color: #a4452c; }
.field-error { margin: 8px 0 0; font-size: .88rem; color: #a4452c; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pill { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 12px; text-align: center;
  border: 1px solid #c9d3be; border-radius: 999px; background: #fff;
  font-size: .95rem; letter-spacing: .02em; text-transform: none; font-weight: 400; color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
.pill:hover span { border-color: var(--gold); }
.pill input:checked + span { background: var(--evergreen-700); border-color: var(--evergreen-700); color: var(--ivory); }
.pill input:focus-visible + span { outline: 2px solid var(--evergreen-700); outline-offset: 3px; }
.pill input:checked + span::before { content: "\2713\00a0"; }
.choice.is-invalid .pill span { border-color: #a4452c; }
.field[data-when="accepting"].is-hidden { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; min-height: 1.4em; text-align: center; font-size: .95rem; color: var(--ink-soft); }
.form-status:empty { margin: 0; min-height: 0; }
.form-status.is-error { color: #a4452c; }
.rsvp-form button[disabled] { opacity: .7; cursor: progress; transform: none; }
.rsvp-thanks { text-align: center; padding: 12px 0; }
.rsvp-thanks:focus { outline: none; }
.rsvp-thanks h3 { font-size: 2.2rem; color: var(--evergreen-800); margin: 16px 0 8px; }
.rsvp-thanks p { color: var(--ink-soft); margin: 0; }
.rsvp-thanks .sprig { margin-top: 0; }
@media (max-width: 420px) { .choice-row { grid-template-columns: 1fr; } }

/* gifts */

.gift-cards { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
.gift-card {
  text-align: center; padding: clamp(32px, 5vw, 48px) 28px;
  background: var(--paper); border: 1px solid var(--sage-200); border-radius: 10px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; align-items: center;
}
.gift-card .icon { width: 30px; height: 30px; color: var(--gold-ink); margin-bottom: 14px; }
.gift-card h3 { font-size: 1.9rem; color: var(--evergreen-800); margin-bottom: .45em; }
.gift-card p { color: var(--ink-soft); margin-bottom: 1.4em; }
.gift-card .btn { margin-top: auto; }
.arch-card .card-detail { margin-top: .6em; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; }
@media (max-width: 700px) { .gift-cards { grid-template-columns: minmax(0, 1fr); max-width: 440px; } }

/* new chapter fund: one quiet button that opens the payment options */
/* donate steps */
.donate-steps .steps { display: inline-block; margin: 0 0 18px; padding-left: 1.3em; text-align: left; color: var(--ink-soft); font-size: .95rem; }
.donate-steps .steps li { margin: .35em 0; }
.donate-steps .steps strong { color: var(--ink); font-weight: 500; }
.gift-cards:has(.donate-toggle[aria-expanded="true"]) { align-items: start; }
.donate-toggle[aria-expanded="true"] { background: var(--sage-100); border-color: var(--sage-400); color: var(--evergreen-700); }
/* when the fund panel is open, let the two gift cards size independently */
.gift-cards:has(.fund-toggle[aria-expanded="true"]) { align-items: start; }
.fund-toggle[aria-expanded="true"] { background: var(--sage-100); border-color: var(--sage-400); color: var(--evergreen-700); }
.fund-toggle.is-pending { color: var(--ink-soft); border: 1px dashed var(--sage-400); background: transparent; cursor: default; transform: none; }
.fund-options { width: 100%; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--sage-200); text-align: center; }
.fund-options[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .fund-options.is-opening { animation: fund-in .35s ease both; }
}
@keyframes fund-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.gift-card .fund-intro { margin: 0 0 12px; font-size: .95rem; }
.pay-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pay-opt {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px;
  flex: 1 1 0; min-width: 88px; max-width: 11rem;
  font: 500 .92rem/1.2 var(--font-sans); letter-spacing: .03em;
  color: var(--evergreen-700); background: transparent; text-decoration: none; cursor: pointer;
  border: 1px solid var(--gold); border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pay-opt:hover { background: var(--evergreen-700); border-color: var(--evergreen-700); color: var(--ivory); }
.pay-opt[aria-expanded="true"] { background: var(--sage-100); border-color: var(--sage-400); color: var(--evergreen-700); }
.pay-opt.is-pending, .pay-opt.is-pending:hover {
  color: var(--ink-soft); background: transparent; border: 1px dashed var(--sage-400); cursor: default;
  letter-spacing: .08em;
}
.zelle-detail { margin: 12px 0 0; padding: 14px 16px; background: var(--ivory-2); border-radius: var(--radius); }
.zelle-detail[hidden] { display: none; }
.gift-card .zelle-detail p { margin: 0; font-size: .92rem; }
.gift-card .zelle-detail .zelle-to { margin-top: 4px; color: var(--ink); overflow-wrap: anywhere; }
.copy-btn { margin-top: 8px; background: none; border: 0; border-bottom: 1px solid rgba(201, 164, 92, .6); font-family: var(--font-sans); }
.copy-status { display: block; min-height: 1.2em; font-size: .8rem; color: var(--gold-ink); }
.gift-card .fund-note { margin: 14px 0 0; font-size: .82rem; font-style: italic; }
@media (max-width: 380px) { .pay-opt { flex-basis: 100%; } }

/* faq */
.section-faq { background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%); }
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--sage-200); }
.faq-list details { border-bottom: 1px solid var(--sage-200); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 2px;
  font-family: var(--font-display); font-size: clamp(1.25rem, 1.2vw + .9rem, 1.5rem); color: var(--evergreen-800);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1px; background: var(--gold-ink);
  transition: transform .3s;
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--gold-ink); }
.faq-a { padding: 0 44px 20px 2px; color: var(--ink-soft); }
.faq-a p { margin: 0; }

/* footer */
.site-footer {
  position: relative; overflow: hidden; text-align: center;
  padding: 150px var(--gutter) 60px;
  background: linear-gradient(180deg, var(--evergreen-800) 0%, var(--evergreen-950) 100%);
  color: var(--on-dark);
}
.lights-footer { height: 130px; }
.footer-script { position: relative; font-family: var(--font-script); font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1; color: var(--gold-light); margin: 0 0 .15em; }
.footer-date, .footer-place { position: relative; margin: 0 0 .5em; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-soft); }
.back-top { position: relative; display: inline-block; margin-top: 26px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); text-decoration: none; border-bottom: 1px solid rgba(232, 207, 148, .5); padding-bottom: 2px; }
.back-top:hover { color: var(--on-dark); }

/* simple pages (thank-you, 404) */
.simple-page {
  min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: var(--gutter);
  background: radial-gradient(80% 60% at 50% 0%, rgba(232, 207, 148, .16), transparent 70%), linear-gradient(180deg, var(--evergreen-900), var(--evergreen-800));
  color: var(--on-dark); text-align: center;
}
.simple-card { max-width: 520px; }
.simple-card h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 .5em; }
.simple-card p { color: var(--on-dark-soft); }
.simple-card .btn { margin-top: 1.2em; }

/* scroll reveal (only when JS is running and motion is OK) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* photo band (Our Story text removed, 2026-09-29): three arches centered */
.section-photos .story-grid { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.section-photos .story-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; gap: clamp(12px, 2vw, 24px); }
.section-photos .arch-photo, .section-photos .arch-photo-tall { grid-row: auto; grid-column: auto; aspect-ratio: 3 / 4; min-height: 0; }
@media (max-width: 600px) {
  .section-photos .story-photos { grid-template-columns: 1fr 1fr; }
  .section-photos .arch-photo-tall { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
}

/* six-photo band: two rows of three, large arches */
.section-photos .story-grid { display: block; max-width: 1200px; margin: 0 auto; }
.section-photos .story-photos { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
@media (max-width: 600px) {
  .section-photos .story-photos { grid-template-columns: 1fr 1fr; }
  .section-photos .arch-photo-tall { grid-column: auto; aspect-ratio: 3 / 4; }
}

/* five-photo mosaic: wedding photo featured in the center, two small photos on each side */
.section-photos .story-grid { max-width: 1180px; }
.section-photos .story-photos {
  grid-template-columns: 1fr 1.5fr 1fr; grid-template-rows: auto auto;
  grid-template-areas: "ybor wedding asheville" "proposal wedding bikes";
}
.section-photos .arch-photo { aspect-ratio: auto; min-height: 0; }
.section-photos .ph-wedding { grid-area: wedding; }
.section-photos .ph-ybor { grid-area: ybor; aspect-ratio: 3 / 3.4; }
.section-photos .ph-proposal { grid-area: proposal; aspect-ratio: 3 / 3.4; }
.section-photos .ph-asheville { grid-area: asheville; aspect-ratio: 3 / 3.4; }
.section-photos .ph-bikes { grid-area: bikes; aspect-ratio: 3 / 3.4; }

/* mixed shapes: the wedding photo keeps the arch, the other four are soft rounded rectangles */
.section-photos .ph-ybor, .section-photos .ph-proposal, .section-photos .ph-asheville, .section-photos .ph-bikes { border-radius: 18px; }
.section-photos .ph-ybor::after, .section-photos .ph-proposal::after, .section-photos .ph-asheville::after, .section-photos .ph-bikes::after { border-radius: 12px; }

/* phones only: wedding photo full width, the other four as one row of small thumbnails (Will, 2026-10-09).
   Kept after the mixed-shapes rule so these win. Wider screens keep the mosaic above. */
@media (max-width: 600px) {
  .section-photos .story-photos {
    grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
    grid-template-areas: "wedding wedding wedding wedding" "ybor proposal asheville bikes";
  }
  .section-photos .ph-wedding { aspect-ratio: 3 / 4; }
  .section-photos .ph-ybor, .section-photos .ph-proposal, .section-photos .ph-asheville, .section-photos .ph-bikes { aspect-ratio: 1 / 1.15; border-radius: 12px; }
  .section-photos .ph-ybor::after, .section-photos .ph-proposal::after, .section-photos .ph-asheville::after, .section-photos .ph-bikes::after { display: none; }
}

.donate-steps .fund-intro { font-size: .86rem; }

/* RSVP deadline line in the hero (hides itself after the date) */
.hero-rsvp {
  margin: 1.1em 0 0;
  font-size: clamp(.74rem, .55vw + .6rem, .95rem); font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light);
}
.hero-rsvp + .countdown { margin-top: .7em; }
@media (max-width: 600px) { .hero-rsvp { letter-spacing: .18em; } }
