:root {
  --ink: #0E0E0E;
  --ink-2: #141416;
  --ink-3: #1d1d20;
  --line: rgba(255, 255, 255, 0.1);
  --text: #F3EEE4;
  --muted: #a3a19b;
  --gold: #D9B26A;
  --gold-deep: #B07F35;
  --display: "Cinzel", Georgia, serif;
  --label: "Montserrat", system-ui, sans-serif;
  --verse: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 0.6em; letter-spacing: 0.02em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--label); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1em;
}
.lead { font-size: 1.18rem; color: #d3d1cb; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.9em 1.6em; border-radius: 999px;
  font-family: var(--label); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.04em; text-decoration: none;
  border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-gold { background: var(--gold); color: #1a1206; }
.btn-gold:hover { background: #e4c182; }
.btn-light { background: var(--text); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Nav */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(16px, 4vw, 48px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-mark { width: auto; height: 56px; }
.brand-logo { width: 230px; height: auto; display: block; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav nav a { font-family: var(--label); text-decoration: none; font-size: 0.84rem; font-weight: 500; color: rgba(255,255,255,.82); }
.nav nav a:hover { color: var(--gold); }
.nav .nav-cta { border: 1px solid rgba(255,255,255,.35); padding: 0.5em 1.1em; border-radius: 999px; }

/* Hero */
.hero { position: relative; min-height: 100vh; padding-top: clamp(330px, 37vh, 380px); display: flex; flex-direction: column; justify-content: flex-start; align-items: center; overflow: hidden; isolation: isolate; background: var(--ink); }
/* Photo fills the whole hero; the logo sits on Aiden's back and the words run down over the photo (per Will) */
.hero picture, .hero-light { position: absolute; inset: 0; }
.hero picture { z-index: -2; top: clamp(-240px, -22vh, -150px); }
@media (max-width: 640px) { .hero { padding-top: 290px; } .hero picture { top: -250px; } }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.hero-light {
  z-index: -1;
  background:
    radial-gradient(60% 35% at 50% -5%, rgba(217,178,106,.45), rgba(217,178,106,0) 70%),
    radial-gradient(70% 55% at 50% 55%, rgba(14,14,14,.45), rgba(14,14,14,0) 80%),
    linear-gradient(180deg, rgba(14,14,14,.35) 0%, rgba(14,14,14,0) 15%, rgba(14,14,14,.15) 45%, rgba(14,14,14,.55) 75%, rgba(14,14,14,1) 100%);
}
.hero-inner { text-align: center; padding: 0 20px clamp(56px, 9vh, 110px); max-width: 900px; text-shadow: 0 2px 18px rgba(0,0,0,.65); }
.hero-logo { margin: 0 auto 0.6em; }
/* Logo lockup: brand-kit mark above the brand-kit wordmark. Mark kept small, per Will. */
.lockup { display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
.lockup img { display: block; height: auto; }
.lockup-mark { width: 26%; margin-bottom: 6%; }
.lockup-word { width: 100%; }
.lockup-hero { width: clamp(300px, 33vw, 478px); max-width: 88vw; }
.lockup-connect { width: 220px; margin-bottom: 2.2em; }
.hero-verse { font-family: var(--verse); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: #e9e6de; margin-bottom: 2em; }
.hero-verse span { display: block; font-family: var(--label); font-style: normal; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-top: 0.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Mission */
.mission { padding: clamp(80px, 12vw, 140px) 0; text-align: center; }

/* Verse band */
.verse-band {
  position: relative; padding: clamp(90px, 14vw, 170px) 24px; text-align: center; overflow: hidden;
  background:
    radial-gradient(55% 70% at 50% 0%, rgba(217,178,106,.22), rgba(217,178,106,0) 70%),
    linear-gradient(rgba(14,14,14,.5), rgba(14,14,14,.5)),
    url(../img/water-wide.jpg?v=20261109c) center 62% / cover no-repeat,
    var(--ink-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.verse-band blockquote { margin: 0 auto; max-width: 860px; font-family: var(--verse); font-style: italic; font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.25; }
.verse-band cite { display: block; margin-top: 1.2em; font-family: var(--label); font-style: normal; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

/* Kickoff */
.kickoff { padding: clamp(80px, 12vw, 140px) 0; }
.kickoff-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.kickoff-photo { position: relative; }
.kickoff-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border-radius: 4px; filter: contrast(1.05); }
.kickoff-photo::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: radial-gradient(70% 40% at 50% 0%, rgba(217,178,106,.28), transparent 70%); pointer-events: none; }
.details { margin: 1.8em 0 2.2em; display: grid; gap: 0; border-top: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.details dt { font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); padding-top: 0.25em; }
.details dd { margin: 0; }
.details small { color: var(--muted); font-size: 0.85rem; }

/* RSVP */
.rsvp { padding: clamp(80px, 12vw, 130px) 0; border-top: 1px solid var(--line); background: radial-gradient(60% 50% at 50% 0%, rgba(217,178,106,.12), transparent 70%), var(--ink); }
.rsvp-form { margin-top: 40px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; font-family: var(--label); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 8px; }
.field .optional { font-weight: 500; color: var(--muted); }
.field .hint { color: var(--muted); font-size: 0.85rem; margin: -4px 0 8px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--ink); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; padding: 12px 14px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #e07a6a; }
.field-guests input { max-width: 120px; }
.field-error { color: #f0a090; font-size: 0.85rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsvp-submit { justify-self: start; border: none; cursor: pointer; font-size: 0.95rem; }
.rsvp-submit:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-weight: 500; }
.form-status.ok { color: var(--gold); }
.form-status.bad { color: #f0a090; }

.inline-link { color: var(--gold); text-underline-offset: 3px; }
.form-privacy { color: var(--muted); font-size: 0.85rem; margin: 0; }
.form-privacy a, .footer p a { color: var(--text); }

/* Privacy page */
.nav-static { position: relative; }
.legal { padding: clamp(40px, 8vw, 90px) 0 clamp(70px, 10vw, 120px); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal-date { color: var(--muted); font-size: 0.9rem; }
.legal p, .legal li { color: #d3d1cb; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }
.legal a { color: var(--gold); }

/* What we do */
.gather { padding: clamp(80px, 12vw, 130px) 0; background: var(--ink-2); border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 34px 28px; }
.card svg { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.card p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(200px, 24vw, 360px); gap: 4px; background: var(--ink); }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9) contrast(1.05); }
.gallery .g-tall { grid-row: span 2; object-position: 50% 30%; }
.gallery-credit { position: absolute; right: 14px; bottom: 10px; margin: 0; font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.12em; color: rgba(243,238,228,.8); text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.gallery-credit a { color: inherit; }

/* Connect */
.connect { padding: clamp(90px, 13vw, 150px) 0; background: radial-gradient(60% 60% at 50% 0%, rgba(217,178,106,.14), transparent 70%), var(--ink); }
.connect-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.6em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.footer .brand-mark { height: 48px; }

@media (max-width: 860px) {
  .kickoff-grid { grid-template-columns: 1fr; }
  .kickoff-photo img { aspect-ratio: 4 / 3; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 16px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .brand-mark { height: 46px; }
  .brand-logo { width: 180px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .details div { grid-template-columns: 1fr; gap: 4px; }
  .field-row { grid-template-columns: 1fr; }
  .rsvp-submit { justify-self: stretch; justify-content: center; }
  .wrap { padding: 0 16px; }
  .hero-actions .btn { min-width: 220px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Countdown to First Cast in the hero */
.countdown { margin: 0 auto 1.8em; }
.countdown-title { font-family: var(--display); font-size: clamp(1.05rem, 2.4vw, 1.35rem); letter-spacing: 0.06em; color: var(--text); margin: 0 0 0.9em; }
.countdown-clock { display: flex; justify-content: center; gap: clamp(8px, 2vw, 16px); }
.countdown-clock > div { min-width: clamp(68px, 15vw, 104px); padding: 14px 8px 12px; border: 1px solid rgba(217,178,106,.45); border-radius: 10px; background: rgba(14,14,14,.6); }
.countdown-clock b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 5.5vw, 3.1rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.countdown-clock span { display: block; margin-top: 8px; font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.countdown-when { margin: 1em 0 0; font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #cfc9bd; }
.countdown-live { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 3.5vw, 2rem); color: var(--gold); }
.btn-xl { font-size: clamp(1.05rem, 2.4vw, 1.25rem); padding: 1.05em 3.2em; letter-spacing: 0.08em; box-shadow: 0 0 0 1px rgba(217,178,106,.4), 0 10px 40px rgba(217,178,106,.18); }
.hero-sub-link { display: inline-block; margin-top: 1.1em; font-family: var(--label); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.hero-sub-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
@media (max-width: 640px) { .countdown-clock > div { padding: 10px 4px 9px; } .countdown-clock span { font-size: 0.6rem; letter-spacing: 0.14em; } .hero-actions .btn-xl { min-width: 0; width: 100%; max-width: 320px; } }
.hero-inner .btn { text-shadow: none; }

/* Partnership block: matches the First Cast event designs (badge left; gold Montserrat eyebrow over cream Cormorant italic name) */
.partner-line { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 0.2em auto 1.4em; text-align: left; }
.partner-left { justify-content: flex-start; margin: 0.2em 0 1.4em; }
.partner-badge { width: 84px; height: auto; flex: none; }
.partner-text { display: flex; flex-direction: column; }
.partner-eyebrow { font-family: var(--label); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.28em; text-transform: uppercase; color: #D4AA5A; }
.partner-name { margin-top: 6px; font-family: var(--verse); font-style: italic; font-weight: 500; font-size: 1.4rem; line-height: 1.15; color: #F3EEE4; text-decoration: none; }
.partner-name:hover { color: #D4AA5A; }
@media (max-width: 640px) { .partner-badge { width: 72px; } .partner-name { font-size: 1.25rem; max-width: 9em; } .partner-eyebrow { font-size: 0.66rem; } }

/* Dinner sponsor (Pro-Guide Batteries) */
.dinner-line { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 1.2em 0 0; text-align: left; }
.dinner-logo { width: 84px; height: auto; flex: none; display: block; }
@media (max-width: 640px) { .dinner-logo { width: 72px; } }
.dinner-dd { color: var(--muted); }
.gallery .g-pos-top { object-position: 50% 30%; }

/* RSVP dropdowns */
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: #111; background: #fff; }
.field #rsvp-heard-other { margin-top: 10px; }
.field #rsvp-heard-other[hidden] { display: none; }
.volunteer-details[hidden] { display: none; }

/* Invite / share box under the RSVP form */
.share-box { margin: 48px auto 0; padding: 28px 24px; max-width: 560px; text-align: center; border: 1px solid rgba(212,170,90,.35); border-radius: 10px; }
.share-title { font-family: var(--label); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.share-sub { color: var(--muted); margin: 0 0 18px; }
.share-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-status { min-height: 1.2em; margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); word-break: break-all; }
.share-copy { background: transparent; cursor: pointer; }
