/* Layout and components. Colours and fonts come from theme.css. */
@font-face {
  font-family: "Cormorant Garamond Variable"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(../vendor/fonts/cormorant-garamond-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: "Cormorant Garamond Variable"; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(../vendor/fonts/cormorant-garamond-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond Variable"; font-style: italic; font-display: swap; font-weight: 300 700;
  src: url(../vendor/fonts/cormorant-garamond-latin-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../vendor/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF;
}
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../vendor/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 17px/1.65 var(--font-sans); overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
.topbar, .mainnav, .footer { width: 100%; }
h1, h2, h3, .tl-time, .cd-num, .hero-date, .footer-date { font-variant-numeric: lining-nums tabular-nums; }
.page-weekend .lead { text-align: center; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-underline-offset: 3px; }
a:hover { color: var(--olive-deep); }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; color: var(--olive-deep); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.small { font-size: .88rem; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.i { width: 1.2em; height: 1.2em; vertical-align: -.2em; }

/* ---------- top bar + nav ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--max); margin: 0 auto; padding: 14px 16px 6px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--olive-deep); min-width: 0; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--gold); font: 500 1rem var(--font-serif); color: var(--gold-ink); letter-spacing: .02em;
}
.brand-name { font: 500 1.35rem var(--font-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.langs { display: flex; gap: 2px; }
.langs a {
  font-size: .78rem; letter-spacing: .08em; text-decoration: none; color: var(--ink-soft);
  padding: 6px 8px; border-radius: 999px; min-width: 34px; text-align: center;
}
.langs a[aria-current] { background: var(--sage-soft); color: var(--olive-deep); font-weight: 600; }
.account { display: flex; align-items: center; gap: 8px; margin: 0; }
.hello { font-size: .85rem; color: var(--ink-soft); max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mainnav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ivory) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mainnav ul {
  list-style: none; margin: 0 auto; padding: 8px 16px; max-width: var(--max);
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; justify-content: safe center;
}
.mainnav ul::-webkit-scrollbar { display: none; }
.mainnav a {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; text-decoration: none;
  color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: .92rem;
}
.mainnav a:hover { background: var(--cream); }
.mainnav a[aria-current] { background: var(--olive); color: var(--paper); }
.mainnav .i-lock { width: .85em; height: .85em; opacity: .55; }

main { max-width: var(--max); margin: 0 auto; padding: 8px 16px 48px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--olive);
  background: var(--olive); color: var(--paper); font: 500 1rem var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--olive-deep); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--olive); }
.btn-ghost:hover { background: var(--sage-soft); color: var(--olive-deep); }
.btn-small { min-height: 36px; padding: 6px 16px; font-size: .88rem; }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--olive); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: .9rem; }

/* ---------- cards + sections ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.section-head { text-align: center; margin: 28px 0 22px; }
.section-head h1 { margin-bottom: .1em; }
.kicker { text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; color: var(--gold-ink); margin: 0 0 .6em; font-weight: 600; }
.sprig { width: 160px; height: 28px; margin: 6px auto 0; display: block; }
.stem { fill: none; stroke: var(--olive); stroke-width: 1.6; stroke-linecap: round; }
.leaf { fill: var(--olive); }
.leaf-light { fill: var(--sage); }
.olive { fill: var(--olive-deep); }
.prose h2 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .25em 0; }
.lead { font-size: 1.1rem; color: var(--ink-soft); }
.note-lang { font-size: .82rem; color: var(--gold-ink); background: var(--gold-soft); display: inline-block; padding: 4px 12px; border-radius: 999px; }
.flash { background: var(--sage-soft); padding: 10px 16px; border-radius: var(--radius-small); text-align: center; }
.error { background: #f6e3dc; color: #7a2e18; padding: 10px 16px; border-radius: var(--radius-small); }
.badge { display: inline-block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; background: var(--gold-soft); color: var(--gold-ink); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; } .split-faq { grid-template-columns: 1.6fr 1fr; } }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; place-items: center; min-height: min(72vh, 620px); text-align: center; margin-top: 4px; }
.hero-art { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.wreath { width: min(92vw, 600px, 78vh); height: auto; }
.wreath .stem { stroke-width: 2; }
.branch-left { transform-origin: 200px 368px; animation: sway 9s ease-in-out infinite; }
.branch-right { transform-origin: 200px 368px; animation: sway 9s ease-in-out infinite reverse; }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(1.2deg); } }
.hero-text { position: relative; padding: 0 12px; max-width: min(520px, 66vw, 62vh); }
.names { font-size: clamp(2.6rem, 8.5vw, 4.6rem); font-weight: 400; margin: .1em 0 .15em; color: var(--olive-deep); }
.hero-date { font: 500 clamp(1.15rem, 2.6vw, 1.5rem) var(--font-serif); letter-spacing: .14em; color: var(--gold-ink); margin: 0; }
.hero-place { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); margin-top: .3em; }

.countdown { display: flex; justify-content: center; gap: clamp(8px, 2vw, 18px); margin: 8px auto 26px; }
.countdown > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 12px 10px 8px; min-width: clamp(68px, 14vw, 104px); text-align: center; box-shadow: var(--shadow); }
.cd-num { display: block; font: 500 clamp(1.8rem, 5vw, 2.6rem)/1 var(--font-serif); color: var(--olive-deep); font-variant-numeric: tabular-nums; }
.cd-unit { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.welcome { text-align: center; font-family: var(--font-serif); font-size: 1.35rem; color: var(--olive); }
.intro { margin: 28px auto 34px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 36px; }
.card-link { text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.card-link:hover { transform: translateY(-3px); color: var(--ink); }
.card-link h3 { margin: .4em 0 .25em; }
.card-link p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.i-card { width: 34px; height: 34px; color: var(--gold); }

/* ---------- chat placeholder ---------- */
.chat-card { position: relative; background: linear-gradient(160deg, var(--paper), var(--sage-soft)); }
.chat-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--olive); color: var(--paper); display: grid; place-items: center; margin-bottom: 10px; }
.chat-dot .i { width: 24px; height: 24px; }
.ask { display: grid; gap: 8px; margin-top: 8px; }
.ask label { font-size: .9rem; color: var(--ink-soft); }
textarea, input[type=text] {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-small); padding: 12px 14px; min-height: 48px;
}
textarea:focus, input[type=text]:focus { border-color: var(--olive); outline: 2px solid var(--sage-soft); }

/* ---------- day plan ---------- */
.day-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 22px; }
.day-tabs button {
  font: 500 1.1rem var(--font-serif); padding: 10px 20px; border-radius: 999px; min-height: 48px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
}
.day-tabs button[aria-selected=true] { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.day-title { text-align: center; font-size: 1.5rem; }
.js .day-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--sage), var(--gold)); }
.tl-item { display: grid; grid-template-columns: 64px 50px 1fr; align-items: start; gap: 0 0; padding: 10px 0; }
.tl-time { font: 600 .95rem var(--font-sans); color: var(--gold-ink); padding-top: 12px; text-align: right; padding-right: 6px; font-variant-numeric: tabular-nums; }
.tl-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1px solid var(--sage); color: var(--olive); display: grid; place-items: center; position: relative; z-index: 1; margin-left: 2px; }
.tl-body { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 12px 16px; margin-left: 10px; box-shadow: var(--shadow); }
.tl-body h3 { margin: 0; font-size: 1.3rem; }
.tl-detail { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }
.tl-detail p { margin: 0; }
.tl-item.is-now .tl-icon { background: var(--olive); color: var(--paper); box-shadow: 0 0 0 6px var(--sage-soft); }
.tl-item.is-past { opacity: .6; }

/* ---------- venue + map ---------- */
.venue-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 20px; }
.venue-card h2 { font-size: 1.7rem; margin-bottom: .2em; }
.venue-card.is-tba { background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 12px, var(--ivory) 12px, var(--ivory) 24px); }
.map-wrap { margin: 10px 0 24px; }
.map { height: clamp(300px, 46vh, 460px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--cream); box-shadow: var(--shadow); }
.map-wrap.tall .map { height: clamp(320px, 56vh, 560px); }
.map-loading { padding: 20px; color: var(--ink-soft); }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--olive); border: 2px solid var(--paper); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.pin-ceremony, .pin-reception { background: var(--gold); width: 36px; height: 36px; }
.pin-airport { background: #6d7f8a; }
.pin-train, .pin-ferry, .pin-bus { background: #7a8c6a; }
.pin-hotel { background: var(--olive-deep); }
.pin.is-example { opacity: .7; border-style: dashed; }
.leaflet-container { font-family: var(--font-sans); }
.leaflet-popup-content { margin: 12px 16px; }
.leaflet-popup-content strong { font-family: var(--font-serif); font-size: 1.15rem; color: var(--olive-deep); display: block; }
.places { list-style: none; padding: 0; display: grid; gap: 8px; }
.place { display: grid; gap: 2px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-small); }
.place-kind { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.columns { columns: 2 300px; column-gap: 36px; }
.columns h2, .columns h3 { break-after: avoid; }
.travel { margin-top: 12px; }
.hotel-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hotel h3 { margin-bottom: .2em; }
.hotel.is-example { border-style: dashed; }
.facts { list-style: none; padding: 0; margin: 0 0 8px; font-size: .92rem; }
.facts span { color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.hotel-links { display: flex; gap: 16px; align-items: center; margin: 0; font-size: .92rem; }

/* ---------- dress code swatches ---------- */
.swatches { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.swatches svg { width: 40px; height: 40px; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-small); margin-bottom: 10px; }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 18px; font: 500 1.25rem var(--font-serif); color: var(--olive-deep); list-style: none; position: relative; min-height: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font: 300 1.6rem var(--font-sans); color: var(--gold); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .prose { padding: 0 18px 8px; color: var(--ink-soft); }

/* ---------- login ---------- */
.login { margin-top: 28px; max-width: 520px; }
.login-form { display: grid; gap: 10px; margin: 18px 0; text-align: left; }
.login-form label { font-size: .9rem; color: var(--ink-soft); }
#code { font: 500 1.3rem var(--font-sans); letter-spacing: .14em; text-align: center; text-transform: uppercase; }

/* ---------- RSVP ---------- */
.rsvp-form { max-width: 680px; }
.step { border: 0; margin: 0 0 22px; padding: 0; }
.step legend { font: 500 1.6rem var(--font-serif); color: var(--olive-deep); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sage-soft); color: var(--olive-deep); font: 600 .9rem var(--font-sans); }
.q { color: var(--ink-soft); }
.big-choices { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.big-choice input, .chip input, .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.big-choice span { display: grid; place-items: center; text-align: center; min-height: 90px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font: 500 1.3rem var(--font-serif); cursor: pointer; transition: all .2s; }
.big-choice input:checked + span { background: var(--olive); color: var(--paper); border-color: var(--olive); }
.big-choice input:focus-visible + span, .chip input:focus-visible + span, .choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: block; }
.choice span { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--paper); cursor: pointer; }
.choice span::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid var(--sage); background: var(--paper); }
.choice input:checked + span { border-color: var(--olive); background: var(--sage-soft); }
.choice input:checked + span::before { background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23fffdf7' stroke-width='3'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--olive); }
.person { border: 1px solid var(--line); border-radius: var(--radius-small); padding: 12px 14px; margin: 0 0 12px; background: var(--ivory); }
.person legend { font: 500 1.15rem var(--font-serif); padding: 0 6px; color: var(--olive-deep); }
.person.is-off { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { position: relative; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: .92rem; }
.chip input:checked + span { background: var(--olive); color: var(--paper); border-color: var(--olive); }
.note-label { display: grid; gap: 4px; font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.privacy { background: var(--cream); border-radius: var(--radius-small); padding: 10px 14px; color: var(--ink-soft); margin-top: 14px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.steps-dots { display: none; }
.js .steps-dots { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0 0 18px; }
.steps-dots li { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: all .3s; }
.steps-dots li.on { background: var(--olive); width: 26px; border-radius: 6px; }
.js .rsvp-form .step:not(.active) { display: none; }
.js .rsvp-form .step.active { animation: stepIn .35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* my RSVP */
.guest-rows { list-style: none; padding: 0; display: grid; gap: 8px; }
.guest-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-small); }
.g-name { font: 500 1.2rem var(--font-serif); flex: 1 1 auto; }
.pill { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--cream); }
.state-yes .pill { background: var(--olive); color: var(--paper); }
.state-no .pill { background: var(--gold-soft); color: var(--gold-ink); }
.guest-row .small { flex-basis: 100%; }
.msg { font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; border-left: 3px solid var(--gold); margin: 18px 0; padding: 4px 16px; color: var(--ink-soft); }

/* celebration leaves */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.confetti i { position: absolute; top: -40px; width: 14px; height: 24px; border-radius: 0 100% 0 100%; background: var(--olive); animation: fall linear forwards; }
.confetti i:nth-child(3n) { background: var(--sage); }
.confetti i:nth-child(4n) { background: var(--gold); width: 10px; height: 10px; border-radius: 50%; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

/* ---------- gallery ---------- */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 240px), 1fr)); grid-auto-flow: dense; }
.gallery li:nth-child(5n+1) { grid-row: span 2; }
.ph { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius-small); overflow: hidden; cursor: zoom-in; background: var(--cream); }
.ph img { width: 100%; height: 100%; min-height: 160px; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.gallery li:nth-child(5n+1) .ph img { aspect-ratio: auto; }
.ph:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(30, 32, 22, .88); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: var(--radius-small); margin: 0 auto; }
.lb-bar { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.lb-bar button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--paper); color: var(--olive-deep); font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* ---------- our story ---------- */
.story { list-style: none; padding: 0; margin: 20px auto; position: relative; max-width: 960px; }
.story::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--sage), var(--gold)); }
.story-item { position: relative; display: grid; gap: 14px; padding-left: 54px; margin-bottom: 40px; }
.story-item::before { content: ""; position: absolute; left: 14px; top: 10px; width: 17px; height: 17px; border-radius: 50%; background: var(--paper); border: 2px solid var(--olive); }
.story-photo img, .photo-slot { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
.photo-slot { display: grid; place-items: center; border: 1.5px dashed var(--sage); background: var(--sage-soft); color: var(--olive); font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; }
@media (min-width: 900px) {
  .story::before { left: 50%; }
  .story-item { grid-template-columns: 1fr 1fr; gap: 64px; padding-left: 0; align-items: center; }
  .story-item::before { left: calc(50% - 8px); top: 50%; }
  .story-item:nth-child(even) .story-photo { order: 2; }
}
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.seen { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 30px 16px 40px; border-top: 1px solid var(--line); background: var(--cream); color: var(--ink-soft); }
.footer-date { font: 500 1.3rem var(--font-serif); letter-spacing: .14em; color: var(--olive-deep); margin: 8px 0 4px; }

/* ---------- phones ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { padding-top: 10px; }
  .brand-name { display: none; }
  .hello { display: none; }
  .mainnav ul { justify-content: flex-start; }
  .hero { min-height: 400px; }
  .names { font-size: 2.5rem; }
  .hero-place { font-size: 1.05rem; }
  .countdown > div { min-width: 0; flex: 1; padding: 10px 4px 6px; }
  .timeline::before { left: 70px; }
  .tl-item { grid-template-columns: 48px 46px 1fr; }
  .tl-time { font-size: .95rem; }
  .big-choices { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
