/* ==========================================================================
   Wedding site — guest theme adapted from the Mistral AI design reference (DESIGN.md)
   The root tokens remain the neutral baseline used by the admin planner.
   ========================================================================== */

:root {
  /* colors */
  --primary: #ff385c;
  --primary-active: #e00b41;
  --primary-disabled: #ffd1da;
  --error: #c13515;
  --ink: #222222;
  --body: #3f3f3f;
  --muted: #6a6a6a;
  --muted-soft: #929292;
  --hairline: #dddddd;
  --hairline-soft: #ebebeb;
  --border-strong: #c1c1c1;
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-strong: #f2f2f2;
  --on-primary: #ffffff;

  /* rounded */
  --r-xs: 4px; --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 32px; --r-full: 9999px;

  /* spacing */
  --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-base: 16px; --s-lg: 24px;
  --s-xl: 32px; --s-xxl: 48px; --s-section: 64px;

  /* the single shadow tier in the system */
  --shadow: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.04) 0 2px 6px 0, rgba(0,0,0,0.1) 0 4px 8px 0;

  --font: "Inter", Circular, -apple-system, system-ui, Roboto, "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px; line-height: 1.5;
  color: var(--ink); background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }

/* ---------- type scale (DESIGN.md typography tokens) ---------- */
h1, .display-xl { font-size: 28px; font-weight: 700; line-height: 1.4; letter-spacing: -0.2px; }
h2, .display-md { font-size: 21px; font-weight: 700; line-height: 1.43; }
h3, .display-sm { font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -0.18px; }
.title-md { font-size: 16px; font-weight: 600; line-height: 1.25; }
.body-sm { font-size: 14px; line-height: 1.43; }
.caption { font-size: 14px; font-weight: 500; line-height: 1.29; }
.muted { color: var(--muted); }
.hero-number { font-size: 64px; font-weight: 700; line-height: 1.1; letter-spacing: -1px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.25;
  border: none; border-radius: var(--r-sm); padding: 14px 24px; min-height: 48px;
  cursor: pointer; text-decoration: none; transition: background-color .12s ease;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover, .btn-primary:active { background: var(--primary-active); }
.btn-primary:disabled { background: var(--primary-disabled); cursor: not-allowed; }
.btn-secondary { background: var(--canvas); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-secondary:hover { background: var(--surface-soft); }
.btn-pill { border-radius: var(--r-full); padding: 10px 20px; font-size: 14px; min-height: 0; }
.btn-sm { padding: 8px 16px; min-height: 36px; font-size: 14px; border-radius: var(--r-sm); }
.text-link { background: none; border: none; color: var(--ink); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- top nav (80px, white, hairline bottom) ---------- */
.top-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-lg);
  height: 80px; padding: 0 var(--s-xl);
  background: var(--canvas); border-bottom: 1px solid var(--hairline-soft);
}
.wordmark {
  font-size: 20px; font-weight: 700; letter-spacing: -0.3px;
  color: var(--primary); text-decoration: none; white-space: nowrap;
}
.wordmark .amp { font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: var(--s-xs); list-style: none; }
.nav-links a {
  display: inline-block; padding: 10px 14px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none;
}
.nav-links a:hover { background: var(--surface-soft); color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.nav-cta {
  background: var(--primary); color: var(--on-primary); font-weight: 600; margin-left: var(--s-sm);
}
.nav-links a.nav-cta:hover { background: var(--primary-active); color: var(--on-primary); }
.nav-burger {
  display: none; background: var(--surface-strong); border: none; border-radius: var(--r-full);
  width: 40px; height: 40px; font-size: 18px; cursor: pointer; align-items: center; justify-content: center;
}

/* ---------- page scaffolding ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--s-lg); }
.section { padding: var(--s-section) 0; }
.section-head { margin-bottom: var(--s-xl); }
.section-head .eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--primary); margin-bottom: var(--s-sm);
}
.section-head p { color: var(--muted); max-width: 62ch; margin-top: var(--s-sm); }
.hairline-rule { border: none; border-top: 1px solid var(--hairline-soft); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 78vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding: var(--s-section) 0; }
.hero .eyebrow-pill {
  display: inline-block; background: rgba(255,255,255,0.92); color: var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  border-radius: var(--r-full); padding: 6px 14px; margin-bottom: var(--s-base);
  box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 700; line-height: 1.05; letter-spacing: -1.5px; }
.hero .hero-sub { font-size: 18px; margin-top: var(--s-base); opacity: 0.95; max-width: 60ch; }
.hero .hero-actions { display: flex; gap: var(--s-md); margin-top: var(--s-lg); flex-wrap: wrap; }
.hero .btn-secondary { box-shadow: none; }

/* ---------- countdown ---------- */
.countdown {
  display: flex; gap: var(--s-base); flex-wrap: wrap;
}
.cd-cell {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: var(--s-base) var(--s-lg); min-width: 104px; text-align: center;
}
.cd-cell .num { font-size: 40px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.cd-cell .lbl { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-top: 2px; }
.cd-married { font-size: 28px; font-weight: 700; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s-lg); }
.card {
  background: var(--canvas); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--hairline-soft); text-decoration: none; color: var(--ink);
  transition: box-shadow .15s ease;
}
a.card:hover { box-shadow: var(--shadow); }
.card-photo { aspect-ratio: 4 / 3; background: var(--surface-soft); background-size: cover; background-position: center; position: relative; }
.card-photo.tall { aspect-ratio: 1 / 1; }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--canvas); color: var(--ink); font-size: 11px; font-weight: 600;
  border-radius: var(--r-full); padding: 4px 10px; box-shadow: var(--shadow);
}
.card-badge.card-badge-right { left: auto; right: 12px; }
.card-body { padding: var(--s-base); }
.card-body h3 { font-size: 16px; font-weight: 600; line-height: 1.25; }
.card-body p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.card-body .card-meta { font-size: 14px; font-weight: 500; margin-top: 8px; }

/* ---------- photo placeholder (drop your own photos here) ---------- */
.photo-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-sm);
  background: var(--surface-soft); border: 2px dashed var(--border-strong); border-radius: var(--r-md);
  color: var(--muted); text-align: center; padding: var(--s-lg); min-height: 220px;
}
.photo-placeholder .ph-icon { font-size: 28px; }
.photo-placeholder .ph-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.photo-placeholder .ph-desc { font-size: 14px; max-width: 34ch; }
.photo-placeholder.wide { min-height: 320px; }
.photo-placeholder.portrait { aspect-ratio: 3 / 4; min-height: 0; }

/* ---------- schedule / timeline ---------- */
.day-block { margin-bottom: var(--s-xxl); }
.day-block .day-label {
  display: inline-block; background: var(--ink); color: #fff; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px; padding: 8px 18px; margin-bottom: var(--s-lg);
}
.event-row {
  display: grid; grid-template-columns: 130px 1fr; gap: var(--s-lg);
  padding: var(--s-lg) 0; border-top: 1px solid var(--hairline-soft);
}
.event-row .time { font-weight: 600; color: var(--ink); }
.event-row h3 { margin-bottom: 4px; }
.event-row p { color: var(--muted); font-size: 15px; }
.event-row .attire { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600;
  background: var(--surface-strong); border-radius: var(--r-full); padding: 4px 12px; color: var(--body); }

/* ---------- info split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-xxl); align-items: center; }
.split .photo { border-radius: var(--r-md); overflow: hidden; }
.split .photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid var(--hairline-soft); padding: var(--s-lg) 0;
}
details.faq summary {
  font-size: 16px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-base);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--body); margin-top: var(--s-md); max-width: 70ch; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-base); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 500; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--ink); background: var(--canvas);
  border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: 14px 12px; min-height: 52px;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border: 2px solid var(--ink); padding: 13px 11px;
}
.form-note { font-size: 14px; color: var(--muted); }
.notice {
  border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface-soft);
  padding: var(--s-base) var(--s-lg); font-size: 14px; color: var(--body);
}
.notice.success { border-color: #b7e0c3; background: #f0faf3; }
.notice.error { border-color: var(--primary-disabled); background: #fff5f7; color: var(--error); }

/* ---------- reservation RSVP ---------- */
.rsvp-status:not(:empty) { margin-bottom: var(--s-lg); }
.lookup-card, .reservation {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: #fffef8;
}
.lookup-row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-md); }
.lookup-row input { width: 100%; }
.reservation-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-lg);
  padding-bottom: var(--s-lg); border-bottom: 1px solid var(--hairline-soft);
}
.reservation-head .eyebrow {
  display: block; margin-bottom: var(--s-xs); color: #735b08;
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
}
.reservation-head h2 { font-size: clamp(28px, 5vw, 40px); }
.reservation-head h2:focus { outline: none; }
.reservation-head p { margin-top: var(--s-xs); }
.rsvp-email { max-width: 520px; margin: var(--s-lg) 0; }
.guest-responses { display: grid; gap: var(--s-lg); }
.guest-response {
  min-width: 0; padding: var(--s-lg); border: 1px solid var(--hairline);
  border-radius: var(--r-md); background: var(--canvas);
}
.guest-response legend {
  max-width: 100%; padding: 0 var(--s-sm); font-family: Georgia, "Times New Roman", serif;
  font-size: 24px; color: var(--ink);
}
.guest-name-field { max-width: 480px; margin-bottom: var(--s-lg); }
.guest-question { margin-bottom: var(--s-sm); color: var(--muted); font-size: 14px; font-weight: 600; }
.rsvp-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-md); }
.meal-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rsvp-choice {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: var(--r-sm); color: var(--ink); cursor: pointer;
}
.rsvp-choice:has(input:checked) { border-color: var(--ink); background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.rsvp-choice input { width: 18px; height: 18px; accent-color: var(--ink); flex: 0 0 auto; }
.meal-section { margin-top: var(--s-lg); padding-top: var(--s-lg); border-top: 1px solid var(--hairline-soft); }
.dietary-field { margin-top: var(--s-base); }
.rsvp-extras { margin-top: var(--s-lg); }
.rsvp-extras .btn { width: 100%; }
.rsvp-extras .form-note { margin-top: 10px; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-base); }
.gallery-grid > * { border-radius: var(--r-md); overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }

/* ---------- stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-lg); }
.stat { text-align: center; padding: var(--s-lg); }
.stat .hero-number { font-size: 44px; }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- wide photo band ---------- */
.photo-band { border-radius: var(--r-md); overflow: hidden; }
.photo-band img { width: 100%; height: 260px; object-fit: cover; }
.img-credit { font-size: 12px; color: var(--muted-soft); margin-top: 6px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--hairline-soft); background: var(--canvas); }
.footer-inner { padding: var(--s-xxl) 0; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-xl); }
.footer h4 { font-size: 16px; font-weight: 500; margin-bottom: var(--s-md); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { font-size: 14px; color: var(--ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .blurb { font-size: 14px; color: var(--muted); max-width: 36ch; }
.legal-band {
  border-top: 1px solid var(--hairline-soft); padding: var(--s-lg) 0;
  font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: var(--s-base); flex-wrap: wrap;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s-lg); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 744px) {
  .top-nav { padding: 0 var(--s-base); }
  .nav-burger { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--canvas);
    border-bottom: 1px solid var(--hairline); padding: var(--s-base); gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: var(--r-sm); }
  .nav-links a.nav-cta { margin-left: 0; margin-top: var(--s-sm); text-align: center; }
  .event-row { grid-template-columns: 1fr; gap: var(--s-sm); }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: var(--s-xxl) 0; }
  .hero { min-height: 66vh; }
  .lookup-row, .rsvp-choices, .meal-choices { grid-template-columns: 1fr; }
  .reservation-head { flex-direction: column; }
}

/* ---------- Pier 66 guest theme ---------- */
body:not(.admin) {
  --primary: #f5d96f;
  --primary-active: #e8c653;
  --primary-disabled: #f8e9aa;
  --ink: #30423d;
  --body: #53615c;
  --muted: #68736e;
  --muted-soft: #929b95;
  --hairline: #ded5aa;
  --hairline-soft: #ebe3bd;
  --border-strong: #c9bb7e;
  --canvas: #fffbe8;
  --surface-soft: #fff3bd;
  --surface-strong: #f6e6a5;
  --on-primary: #30423d;
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --s-section: 88px;
  --shadow: rgba(23,51,51,0.04) 0 1px 2px, rgba(23,51,51,0.09) 0 10px 30px;
  background: var(--canvas);
}

body:not(.admin) h1,
body:not(.admin) h2,
body:not(.admin) .hero-number,
body:not(.admin) .cd-cell .num,
body:not(.admin) .cd-married {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

body:not(.admin) h2,
body:not(.admin) .display-md {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

body:not(.admin) .section-head h1 {
  max-width: 18ch;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.04;
}

body:not(.admin) .top-nav {
  height: 76px;
  background: rgba(255,251,232,0.96);
  border-color: var(--hairline-soft);
  backdrop-filter: blur(12px);
}

body:not(.admin) .wordmark {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
}

body:not(.admin) .wordmark .amp { color: #b88716; font-style: italic; }

body:not(.admin) .nav-links a { border-radius: var(--r-sm); }
body:not(.admin) .nav-links a:hover { background: var(--surface-soft); }
body:not(.admin) .nav-links a.active { box-shadow: inset 0 -2px 0 var(--primary); }
body:not(.admin) .nav-links a.nav-cta {
  color: var(--on-primary);
  border: 1px solid #d8b63e;
  border-radius: var(--r-sm);
}
body:not(.admin) .nav-links a.nav-cta:hover { background: var(--primary-active); color: var(--on-primary); }

body:not(.admin) .section-head { margin-bottom: 40px; }
body:not(.admin) .section-head .eyebrow {
  color: #735b08;
  letter-spacing: 1.8px;
}
body:not(.admin) .section-head p { font-size: 17px; line-height: 1.65; }

body:not(.admin) .hero { min-height: calc(100vh - 76px); background-position: center 42%; }
body:not(.admin) .hero::after {
  background:
    linear-gradient(180deg, rgba(255,231,132,0.18) 0%, rgba(238,190,99,0.08) 40%, rgba(31,52,48,0.8) 100%),
    linear-gradient(90deg, rgba(31,52,48,0.14), transparent 58%);
}
body:not(.admin) .hero-inner { padding-bottom: 80px; }
body:not(.admin) .hero .eyebrow-pill {
  color: var(--ink);
  background: var(--primary);
  border: 1px solid rgba(48,66,61,0.14);
  border-radius: var(--r-sm);
  box-shadow: none;
}
body:not(.admin) .hero h1 {
  max-width: 12ch;
  font-size: clamp(58px, 9vw, 104px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
body:not(.admin) .hero .hero-sub { max-width: 52ch; font-size: 19px; line-height: 1.55; }
/* Home hero photo: keep the ring (right of center) clear of the text. */
body:not(.admin) .hero.hero-ring { background-position: 62% 50%; }
body:not(.admin) .hero.hero-ring h1 { max-width: 5.2em; }
body:not(.admin) .hero.hero-ring .hero-sub { max-width: 40ch; }

body:not(.admin) .btn { border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }
body:not(.admin) .btn-primary { border: 1px solid #d8b63e; }
body:not(.admin) .btn-secondary { background: #fffef8; }

body:not(.admin) .cd-cell {
  min-width: 116px;
  padding: 20px 28px;
  background: #fffef8;
  border-color: #e4d89e;
  border-radius: var(--r-md);
}
body:not(.admin) .cd-cell .num { color: var(--ink); font-size: 46px; }
body:not(.admin) .cd-cell .lbl { color: #76601d; }

body:not(.admin) .card { background: #fffef8; border-color: var(--hairline-soft); border-radius: var(--r-md); }
body:not(.admin) a.card:hover { box-shadow: var(--shadow); }
body:not(.admin) .card-body { padding: 20px; }
body:not(.admin) .card-body h3 { font-size: 17px; }
body:not(.admin) .card-body .card-meta { color: #735b08; font-weight: 600; }
body:not(.admin) .card-badge { background: var(--primary); box-shadow: none; }

body:not(.admin) .photo-placeholder {
  background: #fff8d7;
  border-color: #cbbb79;
}
body:not(.admin) .day-block .day-label { background: var(--ink); color: #fff8e0; }
body:not(.admin) .event-row .attire { background: var(--surface-strong); color: var(--body); }
body:not(.admin) .form-field input:focus,
body:not(.admin) .form-field select:focus,
body:not(.admin) .form-field textarea:focus { border-color: #9a6e08; }
body:not(.admin) .notice.error { border-color: #e3aaa0; background: #fff4f1; }

body:not(.admin) .footer {
  position: relative;
  border-top: 0;
  background: var(--surface-soft);
}
body:not(.admin) .footer::before {
  content: "";
  display: block;
  height: 18px;
  background: linear-gradient(90deg, #e8bd72 0 14%, #f2cf7e 14% 34%, #f5d96f 34% 61%, #f9e7a0 61% 82%, #fff4c7 82% 100%);
}
body:not(.admin) .footer .wordmark { color: var(--ink); }
body:not(.admin) .legal-band { border-color: #e5d7ad; }

body:not(.admin) :focus-visible {
  outline: 2px solid var(--canvas);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}

@media (max-width: 960px) {
  body:not(.admin) .top-nav { padding: 0 var(--s-base); }
  body:not(.admin) .nav-burger { display: inline-flex; background: var(--surface-strong); }
  body:not(.admin) .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: var(--s-base);
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  body:not(.admin) .nav-links.open { display: flex; }
  body:not(.admin) .nav-links a.nav-cta { margin-left: 0; margin-top: var(--s-sm); text-align: center; }
}

@media (max-width: 744px) {
  body:not(.admin) { --s-section: 56px; }
  body:not(.admin) .section { padding: var(--s-section) 0; }
  body:not(.admin) .hero { min-height: 72vh; }
  body:not(.admin) .hero-inner { padding-bottom: 48px; }
  body:not(.admin) .hero h1 { font-size: clamp(52px, 17vw, 76px); }
  /* Phones: the photo sits above the text instead of behind it. */
  body:not(.admin) .hero.hero-ring {
    min-height: 0; padding-top: 270px; background-color: #1f3430;
    background-size: auto 340px; background-position: 62% 0; background-repeat: no-repeat;
  }
  body:not(.admin) .countdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.admin) .cd-cell { min-width: 0; padding: 18px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media print {
  body:not(.admin) .footer::before { display: none; }
}

/* gifts page: payment options */
.gift-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-base); text-align: center; }
.gift-option {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s-lg) var(--s-base);
  border: 1px solid var(--hairline); border-radius: var(--r-md); color: inherit; text-decoration: none;
}
.gift-option .gift-method { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gift-option .gift-detail { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.gift-option .btn { width: 100%; }
@media (max-width: 520px) { .gift-options { grid-template-columns: 1fr; } }
