/* Layout: single-column invitation "paper" set on deep navy, gold hairline frames, like the printed suite. */
:root {
  --navy: #0f1a2e;
  --navy-2: #16243d;
  --navy-3: #1f3050;
  --gold: #d2b07a;
  --gold-soft: #b99662;
  --ivory: #f5eee2;
  --ivory-dim: #c9c1b3;
  --ok: #7fc59b;
  --warn: #e3b35c;
  --bad: #e07a6f;
  --f-display: 'Bodoni Moda', 'Bodoni MT', Didot, Georgia, serif;
  --f-body: 'Cormorant Garamond', Garamond, Georgia, serif;
  --f-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --f-ui: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--navy); }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(210, 176, 122, 0.10), transparent 60%),
    var(--navy);
  color: var(--ivory);
  font: 400 1.2rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  padding-inline: 16px;
}
a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
img { max-width: 100%; }

.wrap { max-width: 760px; margin-inline: auto; }

/* Gold framed panel, like the invitation border */
.frame {
  position: relative;
  border: 1px solid rgba(210, 176, 122, 0.55);
  padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 48px);
  margin-block: 28px;
}
.frame::before {
  content: ''; position: absolute; inset: 6px;
  border: 1px solid rgba(210, 176, 122, 0.22); pointer-events: none;
}

.center { text-align: center; }

/* Type */
.eyebrow {
  font: 500 0.78rem/1.4 var(--f-ui);
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--ivory-dim);
}
.display {
  font-family: var(--f-display); font-weight: 500; color: var(--gold);
  letter-spacing: 0.04em; line-height: 1.05; margin: 0; text-wrap: balance;
}
.display.xl { font-size: clamp(2.4rem, 9vw, 4.6rem); }
.display.l { font-size: clamp(1.7rem, 5.5vw, 2.6rem); }
.display.m { font-size: clamp(1.25rem, 3.6vw, 1.6rem); }
.script { font-family: var(--f-script); color: var(--ivory); font-size: clamp(2rem, 7vw, 3rem); line-height: 1.2; margin: 0; }
.lede { color: var(--ivory-dim); max-width: 36em; margin-inline: auto; }
p { margin: 0 0 0.8em; }

/* Monogram: overlapping S and D */
.mono {
  display: inline-block; width: clamp(105px, 30vw, 160px); height: auto; object-fit: contain;
}
.mono .d { position: absolute; right: 0; top: 0; font-weight: 500; }
.mono .s { position: absolute; left: 0.06em; top: -0.02em; font-style: italic; font-weight: 400; font-size: 1.12em;
  text-shadow: 0 0 0 var(--navy), 2px 0 0 var(--navy), -2px 0 0 var(--navy); }

.names { font: 500 0.95rem/1 var(--f-ui); letter-spacing: 0.4em; text-transform: uppercase; color: var(--ivory); margin-top: 6px; }

/* Divider with the little four-point star */
.rule { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 22px auto; max-width: 320px; color: var(--gold); }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.rule::after { transform: scaleX(-1); }
.rule span { font-size: 0.8rem; }

/* Hero */
.hero { padding-block: clamp(40px, 10vw, 90px) 20px; text-align: center; position: relative; }
.hero .date { font-family: var(--f-display); letter-spacing: 0.18em; color: var(--ivory); font-size: clamp(0.95rem, 3vw, 1.15rem); }
.sprig { position: absolute; width: clamp(110px, 24vw, 200px); opacity: 0.85; pointer-events: none; }
.sprig.tl { left: -8px; top: 0; }
.sprig.br { right: -8px; bottom: -90px; transform: rotate(180deg); }

.countdown { display: flex; justify-content: center; gap: clamp(12px, 4vw, 34px); margin-top: 26px; font-variant-numeric: tabular-nums; }
.countdown div { display: grid; gap: 2px; min-width: 64px; }
.countdown b { font: 500 clamp(1.8rem, 6vw, 2.6rem)/1 var(--f-display); color: var(--gold); }
.countdown small { font: 500 0.7rem/1 var(--f-ui); letter-spacing: 0.25em; text-transform: uppercase; color: var(--ivory-dim); }

/* Nav */
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding-block: 14px;
  font: 500 0.76rem/1 var(--f-ui); letter-spacing: 0.24em; text-transform: uppercase; border-bottom: 1px solid rgba(210,176,122,.2); }
.nav a { color: var(--ivory-dim); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--gold); }

/* Buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 0.8rem/1 var(--f-ui); letter-spacing: 0.22em; text-transform: uppercase;
  padding: 15px 26px; border: 1px solid var(--gold); color: var(--navy); background: var(--gold);
  cursor: pointer; text-decoration: none; border-radius: 2px; min-height: 48px;
}
.btn:hover { background: #e0c290; }
.btn.ghost { background: transparent; color: var(--gold); }
.btn.ghost:hover { background: rgba(210,176,122,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

label { display: block; font: 500 0.72rem/1.4 var(--f-ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; font: 400 1.1rem/1.4 var(--f-body); color: var(--ivory);
  background: var(--navy-2); border: 1px solid rgba(210,176,122,.35); border-radius: 2px; padding: 12px 14px;
}
input.code { font: 500 1.4rem/1 var(--f-display); letter-spacing: 0.3em; text-transform: uppercase; text-align: center; }
.code-form { display: flex; gap: 10px; max-width: 420px; margin: 18px auto 0; flex-wrap: wrap; }
.code-form input { flex: 1 1 200px; }
.error { color: var(--bad); font-family: var(--f-ui); font-size: 0.9rem; margin-top: 10px; }

/* Order of the day */
.day { display: grid; gap: 0; margin-top: 28px; text-align: left; }
.event { display: grid; grid-template-columns: 92px 1fr; gap: 18px; padding-block: 20px; border-top: 1px solid rgba(210,176,122,.2); }
.event:last-child { border-bottom: 1px solid rgba(210,176,122,.2); }
.event .t { font: 500 1.05rem/1.2 var(--f-display); color: var(--gold); padding-top: 4px; }
.event h3 { font: 500 1.2rem/1.3 var(--f-display); margin: 0 0 4px; letter-spacing: 0.04em; }
.event .v { color: var(--ivory-dim); margin: 0; }
.event .links { display: flex; gap: 18px; margin-top: 8px; font: 500 0.75rem/1 var(--f-ui); letter-spacing: 0.16em; text-transform: uppercase; flex-wrap: wrap; }
.event .links a { text-decoration: none; }
@media (max-width: 460px) { .event { grid-template-columns: 1fr; gap: 4px; } }

/* Notes & colours */
.notes { list-style: none; padding: 0; margin: 20px auto 0; max-width: 34em; display: grid; gap: 12px; text-align: left; }
.notes li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.notes li::before { content: '✦'; color: var(--gold); font-size: 0.8rem; padding-top: 6px; }
.swatches { display: flex; gap: 22px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.swatch { display: grid; justify-items: center; gap: 8px; font: 500 0.72rem/1 var(--f-ui); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-dim); }
.swatch i { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(210,176,122,.6); }

.contacts { display: flex; gap: 12px 40px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.contacts div { display: grid; gap: 2px; }
.contacts b { font: 500 1rem/1.2 var(--f-display); letter-spacing: 0.08em; }
.contacts a { text-decoration: none; font-variant-numeric: tabular-nums; }

.accounts { display: grid; gap: 10px; margin-top: 16px; }
.accounts div { border: 1px solid rgba(210,176,122,.3); padding: 12px 16px; }

footer { text-align: center; padding-block: 30px 50px; color: var(--ivory-dim); font: 400 0.8rem/1.6 var(--f-ui); letter-spacing: 0.1em; }

/* Access card */
.card {
  width: 100%; max-width: 380px; margin: 18px auto 0; background: var(--navy-2);
  border: 1px solid var(--gold-soft); border-radius: 10px; padding: 22px 20px 20px; text-align: center; position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.card .seal { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.card .kind { font: 600 0.78rem/1 var(--f-ui); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.card .who { font: 500 1.25rem/1.25 var(--f-display); margin: 8px 0 2px; }
.card .qr { background: var(--ivory); border-radius: 6px; padding: 12px; width: 200px; margin: 14px auto 8px; }
.card .qr svg { display: block; width: 100%; height: auto; }
.card .codeline { font: 500 1.3rem/1 var(--f-display); letter-spacing: 0.3em; color: var(--gold); }
.card .fine { font: 400 0.78rem/1.4 var(--f-ui); color: var(--ivory-dim); margin-top: 8px; }
.card.driver { background: var(--navy-3); }

.status { display: inline-block; font: 600 0.72rem/1 var(--f-ui); letter-spacing: 0.2em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.status.yes { background: rgba(127,197,155,.15); color: var(--ok); }
.status.no { background: rgba(224,122,111,.15); color: var(--bad); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.choice label { margin: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; padding: 14px 10px; border: 1px solid rgba(210,176,122,.4); text-align: center; cursor: pointer;
  font: 500 0.78rem/1.3 var(--f-ui); letter-spacing: 0.16em; color: var(--ivory); text-transform: uppercase; border-radius: 2px; }
.choice input:checked + span { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise .9s both cubic-bezier(.2,.7,.2,1); }
  .hero > *:nth-child(2) { animation-delay: .08s; } .hero > *:nth-child(3) { animation-delay: .16s; }
  .hero > *:nth-child(4) { animation-delay: .24s; } .hero > *:nth-child(5) { animation-delay: .32s; }
  @keyframes rise { from { transform: translateY(10px); opacity: .001; } to { transform: none; opacity: 1; } }
}
@media print {
  body { background: #fff; color: #000; } .nav, footer, .btn-row, form { display: none; }
}

/* Public church RSVP form */
.rsvp-form { max-width: 480px; margin: 16px auto 0; text-align: left; }
.rsvp-form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rsvp-form .fields .full { grid-column: 1 / -1; }
@media (max-width: 460px) { .rsvp-form .fields { grid-template-columns: 1fr; } }
.amp { display: block; font-family: var(--f-script); font-size: 1.5em; line-height: 1.1; color: var(--gold); margin-block: 4px; }


/* ---------- Wax-seal envelope intro ---------- */
html.intro-on, html.intro-on body { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; perspective: 1400px; }
.intro .door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22220%22%20height%3D%22220%22%20viewBox%3D%220%200%20220%20220%22%20fill%3D%22none%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%3E%3Cg%20stroke%3D%22rgba%28255%2C255%2C255%2C0.045%29%22%3E%3Cpath%20d%3D%22M110%2010c-30%2030-30%2070%200%20100%2030-30%2030-70%200-100z%22/%3E%3Cpath%20d%3D%22M110%20110c-22%2018-50%2018-70-4M110%20110c22%2018%2050%2018%2070-4%22/%3E%3Cpath%20d%3D%22M40%20106c-14-18-12-40%206-52M180%20106c14-18%2012-40-6-52%22/%3E%3Cpath%20d%3D%22M110%20110v40c0%2020-16%2034-34%2034M110%20150c0%2020%2016%2034%2034%2034%22/%3E%3Cpath%20d%3D%22M76%20184c-14%200-22-10-20-22M144%20184c14%200%2022-10%2020-22%22/%3E%3Cpath%20d%3D%22M0%200c20%2010%2026%2030%2014%2046M220%200c-20%2010-26%2030-14%2046M0%20220c20-10%2026-30%2014-46M220%20220c-20-10-26-30-14-46%22/%3E%3Ccircle%20cx%3D%22110%22%20cy%3D%2260%22%20r%3D%226%22/%3E%3C/g%3E%3C/svg%3E") 0 0 / 220px,
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22220%22%20height%3D%22220%22%20viewBox%3D%220%200%20220%20220%22%20fill%3D%22none%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22round%22%3E%3Cg%20stroke%3D%22rgba%280%2C0%2C0%2C0.35%29%22%3E%3Cpath%20d%3D%22M110%2010c-30%2030-30%2070%200%20100%2030-30%2030-70%200-100z%22/%3E%3Cpath%20d%3D%22M110%20110c-22%2018-50%2018-70-4M110%20110c22%2018%2050%2018%2070-4%22/%3E%3Cpath%20d%3D%22M40%20106c-14-18-12-40%206-52M180%20106c14-18%2012-40-6-52%22/%3E%3Cpath%20d%3D%22M110%20110v40c0%2020-16%2034-34%2034M110%20150c0%2020%2016%2034%2034%2034%22/%3E%3Cpath%20d%3D%22M76%20184c-14%200-22-10-20-22M144%20184c14%200%2022-10%2020-22%22/%3E%3Cpath%20d%3D%22M0%200c20%2010%2026%2030%2014%2046M220%200c-20%2010-26%2030-14%2046M0%20220c20-10%2026-30%2014-46M220%20220c-20-10-26-30-14-46%22/%3E%3Ccircle%20cx%3D%22110%22%20cy%3D%2260%22%20r%3D%226%22/%3E%3C/g%3E%3C/svg%3E") 1px 2px / 220px,
    radial-gradient(120% 80% at 50% 50%, #17284a 0%, #0c1628 70%, #08101e 100%);
  transition: transform 1.1s cubic-bezier(.7,0,.2,1), filter 1.1s;
  box-shadow: inset 0 0 120px rgba(0,0,0,.45);
}
.intro .door.l { left: 0; transform-origin: left center; }
.intro .door.r { right: 0; transform-origin: right center; }
.intro .ribbon {
  position: absolute; top: 0; bottom: 0; left: 50%; width: clamp(44px, 12vw, 64px); transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(255,240,200,.18) 50%, rgba(0,0,0,0) 70%, rgba(0,0,0,.35)),
    linear-gradient(90deg, #4a3214 0%, #9c7537 22%, #e7cb8f 50%, #9c7537 78%, #4a3214 100%);
  box-shadow: 0 0 18px rgba(0,0,0,.5);
  transition: opacity .5s, transform .9s cubic-bezier(.7,0,.2,1);
}
.intro-inner { position: relative; display: grid; justify-items: center; gap: 14px; text-align: center; transition: opacity .45s, transform .6s; padding-inline: 16px; }
.intro-for { margin: 0 0 6px; display: grid; gap: 6px; color: var(--ivory); text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.intro-for .script { font-size: clamp(1.9rem, 8vw, 2.8rem); color: var(--gold); }
.seal-btn {
  width: clamp(112px, 30vw, 150px); aspect-ratio: 1; border-radius: 50%; padding: 0; border: 0; cursor: pointer; background: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 0 1px rgba(210,176,122,.3), 0 0 40px rgba(210,176,122,.25);
  overflow: hidden;
}
.seal-btn img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); display: block; }
.intro-hint { font: 500 .78rem/1.4 var(--f-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); text-shadow: 0 2px 8px rgba(0,0,0,.7); margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .seal-btn { animation: sealPulse 2.6s ease-in-out infinite; }
  @keyframes sealPulse { 50% { box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 0 1px rgba(210,176,122,.5), 0 0 60px rgba(210,176,122,.45); } }
}
.intro.opening .intro-inner { opacity: 0; transform: scale(1.15); }
.intro.opening .ribbon { opacity: 0; transform: translateX(-50%) scaleY(1.1); }
.intro.opening .door.l { transform: translateX(-100%) rotateY(18deg); filter: brightness(.7); }
.intro.opening .door.r { transform: translateX(100%) rotateY(-18deg); filter: brightness(.7); }
@media (prefers-reduced-motion: reduce) { .intro .door, .intro .ribbon, .intro-inner { transition: opacity .3s; } .intro.opening { opacity: 0; transition: opacity .3s; } }

/* ---------- Invitation artwork ---------- */
.artcard { margin: 16px auto 8px; max-width: 460px; }
.art { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; container-type: inline-size;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(210,176,122,.25); border-radius: 4px; overflow: hidden; }
.art img { display: block; width: 100%; height: auto; }
.art-name { position: absolute; left: 6%; right: 6%; transform: translateY(-50%); text-align: center; font-family: var(--f-script);
  color: #f3e6cc; line-height: 1.05; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.5); pointer-events: none; }
.artcard figcaption { font: 500 .72rem/1.4 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-dim); margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) { .art { transition: transform .4s; } .art:hover { transform: translateY(-3px); } }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: rgba(6,10,20,.96); width: 100vw; height: 100dvh; max-width: none; max-height: none; color: var(--ivory); }
.lightbox::backdrop { background: rgba(6,10,20,.9); }
.lb-stage { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; padding: 56px 16px 40px; box-sizing: border-box; }
.lb-stage > * { max-width: min(92vw, 720px); max-height: calc(100dvh - 110px); width: auto; cursor: zoom-in; }
.lb-stage .art { max-height: none; width: min(92vw, calc((100dvh - 110px) * .59)); box-shadow: none; cursor: zoom-in; }
.lb-stage img { max-height: calc(100dvh - 110px); object-fit: contain; }
.lb-stage.zoomed { place-items: start; }
.lb-stage.zoomed > * { max-width: none; max-height: none; width: 200vw; cursor: zoom-out; }
.lb-stage.zoomed .art { width: max(200vw, 900px); }
.lb-stage.zoomed img { max-height: none; }
.lb-close { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(210,176,122,.5); background: rgba(15,26,46,.8); color: var(--gold); font: 400 1.6rem/1 var(--f-ui); cursor: pointer; }
.lb-hint { position: fixed; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center; margin: 0;
  font: 500 .7rem/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-dim); pointer-events: none; }

/* ---------- Couple photo hero ---------- */
.hero-photo { position: relative; margin-inline: -16px; min-height: min(calc(100svh - 150px), 860px); display: grid; align-items: end; text-align: center;
  background: linear-gradient(180deg, rgba(15,26,46,.1) 0%, rgba(15,26,46,.15) 40%, rgba(15,26,46,.85) 78%, var(--navy) 100%), var(--photo) center 30% / cover no-repeat; }
.hp-inner { padding: 0 16px clamp(28px, 6vh, 56px); display: grid; gap: 10px; justify-items: center; }
.hp-title { font-size: clamp(2.4rem, 11vw, 5rem); color: var(--ivory); text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hp-title .amp { font-size: .9em; margin-block: 2px; }
.hp-note { font: italic 400 1.25rem/1.5 var(--f-body); color: var(--ivory); max-width: 30em; margin: 0; }
.hero-photo .date { font-family: var(--f-display); letter-spacing: .16em; font-size: clamp(.8rem, 3.4vw, 1.05rem); color: var(--ivory); }

/* ---------- Our story timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 26px auto 0; max-width: 34em; text-align: left; display: grid; gap: 26px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold-soft), rgba(210,176,122,.1)); }
.timeline li { position: relative; padding-left: 34px; }
.timeline li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--gold); }
.timeline li:last-child::before { background: var(--gold); }
.tl-when { font: 600 .7rem/1.4 var(--f-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.timeline h3 { font: 500 1.2rem/1.3 var(--f-display); margin: 4px 0; letter-spacing: .03em; }
.timeline p { color: var(--ivory-dim); margin: 0; }
.tl-photo { display: block; width: 100%; padding: 0; border: 0; margin-bottom: 12px; cursor: zoom-in; background: none; }
.tl-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; display: block; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 20px; }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.g-item { position: relative; padding: 0; border: 0; background: var(--navy-2); cursor: zoom-in; overflow: hidden; aspect-ratio: 1; }
.g-item:first-child { grid-column: span 2; grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.g-item:hover img { transform: scale(1.04); }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font: 500 .7rem/1.3 var(--f-ui); letter-spacing: .08em; color: var(--ivory);
  background: linear-gradient(transparent, rgba(8,14,26,.85)); text-align: left; }

/* ---------- Bottom dock (phones) ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  body.has-dock { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(12,21,38,.92); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(210,176,122,.25); }
  .dock a { display: grid; justify-items: center; gap: 4px; min-width: 64px; padding: 6px 4px; text-decoration: none; color: var(--ivory-dim);
    font: 500 .64rem/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; }
  .dock a:hover, .dock a:focus-visible { color: var(--gold); }
  .dock svg { width: 24px; height: 24px; color: var(--gold); }
}
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The Making of Oluwabioye: editorial story page and visible registry section. */
.story-page-body { background: radial-gradient(ellipse at 50% 0, rgba(210,176,122,.12), transparent 48%), var(--navy); }
.story-page { max-width: 900px; }
.story-hero { position: relative; padding: clamp(44px, 10vw, 96px) 18px clamp(38px, 8vw, 76px); overflow: hidden; }
.story-monogram { margin: 10px 0 -4px; }
.story-monogram .mono { font-size: clamp(5rem, 15vw, 8rem); }
.story-title { font-size: clamp(2.5rem, 9vw, 5.6rem); line-height: 1.02; }
.story-title span { font-family: var(--f-script); color: var(--ivory); font-size: 1.12em; letter-spacing: 0; }
.story-intro { margin: 20px 0 0; color: var(--ivory-dim); font: italic 400 clamp(1.2rem, 4vw, 1.55rem)/1.4 var(--f-body); }
.story-copy { max-width: 720px; margin: 0 auto; }
.story-copy .lede { font-size: clamp(1.15rem, 3.4vw, 1.42rem); margin-top: 20px; }
.story-signoff { margin-top: 30px; color: var(--gold); }
.story-end { padding: 16px 12px 54px; }
.story-end .lede { margin-top: 8px; }
.story-note, .registry-note { margin: 18px auto 0; color: var(--ivory-dim); font-style: italic; }
.registry { background: linear-gradient(145deg, rgba(210,176,122,.08), transparent 58%); }
.registry .accounts { margin-top: 20px; }
.theme-kicker { color: var(--gold); letter-spacing: .24em; }
.invitation-page-body { background: radial-gradient(ellipse at 50% 0, rgba(210,176,122,.12), transparent 48%), var(--navy); }
.invitation-page { max-width: 820px; padding: clamp(22px, 5vw, 50px) 0; }
.invite-paper { position: relative; overflow: hidden; margin: 10px auto; padding: clamp(44px, 9vw, 84px) clamp(24px, 8vw, 76px); color: #243047;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.86), transparent 65%), #f4eddf;
  box-shadow: 0 24px 80px rgba(0,0,0,.35), inset 0 0 0 1px rgba(185,150,98,.72), inset 0 0 0 8px #f4eddf, inset 0 0 0 9px rgba(185,150,98,.38); }
.invite-paper::before { content: ''; position: absolute; inset: 18px; border: 1px solid rgba(185,150,98,.42); pointer-events: none; }
.invite-ornament { color: #aa8753; font-size: 1.4rem; margin-bottom: 20px; }
.invite-paper .eyebrow { color: #796749; }
.invite-paper .theme-kicker { color: #9a7642; }
.invite-families { margin: 16px 0 26px; font: 400 clamp(1rem, 3vw, 1.22rem)/1.6 var(--f-body); }
.invite-request { margin: 0 0 18px; color: #6f6659; font: italic 400 clamp(1rem, 3vw, 1.2rem)/1.6 var(--f-body); }
.invite-names { display: grid; justify-items: center; gap: 5px; color: #16243d; font: 500 clamp(1.6rem, 6vw, 2.7rem)/1.2 var(--f-display); }
.invite-names i { color: #a88a58; font: 400 1.15em/1 var(--f-script); }
.invite-paper .rule { margin-block: 24px; }
.invite-date { margin: 22px 0 0; color: #5e574c; font: 400 1.1rem/1.55 var(--f-body); }
.invite-date strong { color: #16243d; font: 500 clamp(1.15rem, 4vw, 1.45rem)/1.4 var(--f-display); }
.invite-time { margin: 16px 0; color: #16243d; font: 500 1.05rem/1 var(--f-display); letter-spacing: .12em; }
.invite-venue { color: #4f4a41; font: 400 1.05rem/1.6 var(--f-body); }
.invite-venue strong { color: #16243d; font-size: 1.2rem; }
.invite-venue span { display: inline-block; margin-top: 3px; }
.invite-actions { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.invite-paper .btn { background: #16243d; border-color: #16243d; color: #f4eddf; }
.invite-paper .btn:hover { background: #263b5d; }
.invite-paper .btn.ghost { background: transparent; color: #16243d; }
.invite-closing { margin: 28px 0 0; color: #796749; font: italic 400 1.15rem/1.4 var(--f-body); }
.invite-rsvp { padding: 18px 12px 30px; }
@media (max-width: 480px) { .invite-paper { margin-inline: 0; } .invite-paper::before { inset: 13px; } }
.couple-lockup { width: min(100%, 740px); margin: 18px auto 20px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: clamp(8px, 3vw, 28px); }
.couple-name { min-width: 0; display: grid; justify-items: center; gap: 3px; }
.couple-name strong { color: var(--ivory); font: 500 clamp(2rem, 8.4vw, 4.5rem)/.98 var(--f-body); letter-spacing: -.025em; overflow-wrap: anywhere; }
.couple-name small { max-width: 100%; color: var(--ivory-dim); font: 400 clamp(.78rem, 2.5vw, 1rem)/1.25 var(--f-body); }
.name-role { color: var(--gold); font: 500 .65rem/1.2 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; }
.couple-amp { color: var(--gold); font: 400 clamp(1.6rem, 6vw, 3rem)/1 var(--f-script); }
.home-theme, .hp-theme { max-width: 18ch; margin: 0 auto; color: var(--gold); font: 500 clamp(1.55rem, 5.5vw, 2.7rem)/1.15 var(--f-display); letter-spacing: .08em; text-transform: uppercase; text-wrap: balance; }
.home-theme span { display: block; margin-top: 4px; color: var(--ivory); font: 400 clamp(2.3rem, 8vw, 4.6rem)/1.08 var(--f-script); letter-spacing: 0; text-transform: none; }
.hero-photo .couple-lockup { margin-bottom: 2px; }
.hero-photo .couple-name strong { text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-photo .couple-name small { color: rgba(255,255,255,.78); }
.hero-photo .hp-theme { color: var(--ivory); font-size: clamp(1.25rem, 5vw, 2rem); }
@media (max-width: 380px) { .couple-lockup { gap: 5px; } .couple-name strong { font-size: clamp(1.72rem, 8.5vw, 2.3rem); } .couple-name small { font-size: .74rem; } }

/* The home page returns to the invitation suite's navy and gold; detail pages use warm paper. */
body.home-page {
  --navy: #0f1a2e;
  --navy-2: #16243d;
  --navy-3: #1f3050;
  --gold: #d2b07a;
  --gold-soft: #b99662;
  --ivory: #f5eee2;
  --ivory-dim: #c9c1b3;
  color-scheme: dark;
  color: var(--ivory);
  background: radial-gradient(1200px 600px at 50% -10%, rgba(210,176,122,.1), transparent 60%), var(--navy);
}
body.story-page-body, body.invitation-page-body {
  --navy: #f4efe5;
  --navy-2: #ece4d5;
  --navy-3: #ded1b9;
  --gold: #82663d;
  --gold-soft: #a18454;
  --ivory: #1c2a40;
  --ivory-dim: #5e5d57;
  color-scheme: light;
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255,255,255,.9), transparent 58%),
    linear-gradient(160deg, #f7f3ea 0%, #eee6d7 100%);
}
body.home-page .nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15,26,46,.94); backdrop-filter: blur(10px);
  border-bottom-color: rgba(210,176,122,.28);
}
body.story-page-body .nav, body.invitation-page-body .nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244,239,229,.9); backdrop-filter: blur(10px);
  border-bottom-color: rgba(130,102,61,.28);
}
body.home-page .nav a { color: var(--ivory-dim); }
body.home-page .nav a:hover { color: var(--gold); }
body.story-page-body .nav a, body.invitation-page-body .nav a { color: #4e4a40; }
body.story-page-body .nav a:hover, body.invitation-page-body .nav a:hover { color: #82663d; }
body.home-page .frame { border-color: rgba(210,176,122,.5); background: rgba(22,36,61,.22); }
body.home-page .frame::before { border-color: rgba(210,176,122,.2); }
body.story-page-body .frame { border-color: rgba(130,102,61,.5); background: rgba(255,255,255,.22); }
body.story-page-body .frame::before { border-color: rgba(130,102,61,.2); }
body.home-page .sprig { opacity: .85; }
body.home-page .dock { background: rgba(12,21,38,.94); border-top-color: rgba(210,176,122,.25); }
body.home-page .dock a { color: var(--ivory-dim); }
body.home-page .dock svg { color: var(--gold); }
body.home-page footer { color: var(--ivory-dim); }
body.story-page-body footer, body.invitation-page-body footer { color: #666056; }
body.story-page-body .story-hero { padding-top: clamp(34px, 8vw, 72px); }
body.story-page-body .story-title, body.story-page-body .story-copy h2 { color: #26334a; }
body.story-page-body .story-title span, body.story-page-body .story-signoff { color: #82663d; }
body.invitation-page-body .invite-paper { background: rgba(255,253,247,.88); }
body.invitation-page-body .invite-venue strong { color: #16243d; }
body.home-page .lightbox { --navy: #0f1a2e; --ivory: #f5eee2; --ivory-dim: #c9c1b3; --gold: #d2b07a; }
.intro-theme { margin: 0; color: var(--gold); font: 500 .72rem/1.5 var(--f-ui); letter-spacing: .25em; text-transform: uppercase; }
.intro-couple { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: clamp(6px,2vw,16px); }
.intro-couple .intro-name { color: var(--ivory); font: 400 clamp(2rem, 8vw, 3.1rem)/1.05 var(--f-script); white-space: nowrap; }
.intro-couple .intro-amp { color: var(--gold); font: 400 clamp(1.35rem,5vw,2rem)/1 var(--f-script); }
