/* VOICE: tender and airy, like a letterpress card tucked into a florist's bunch
   IDEA: the invitation itself, tied with fresh-cut eucalyptus (silver dollar, willow, seeded)
   PICTURE: a hand-drawn eucalyptus wreath framing the names, grown leaf by leaf on arrival
   COLOUR and TYPE: misty sage ground, eucalyptus-green fields, plum from the stems as the one accent;
                    Fraunces for words, Jost for controls, Pinyon Script only for the names
   LAYOUT: centred invitation hero, then calm left-aligned sections in a 1080px frame */

:root {
  color-scheme: light;
  --bg: #EEF2EE; --paper: #FAFCFA; --ink: #1D2E29; --muted: #50635C; --line: #C8D6CE;
  --field: #B6C9BF; --field-ink: #15261F; --field-line: #97B0A4;
  --deep: #2E4B42; --on-deep: #EEF4F0; --deep-muted: #B8CCC3;
  --accent: #7E621F; --gold: #A6832F; --accent-soft: #F2EAD6; --ok: #2E6B4F; --bad: #A3333D;
  --eu-a: #8EA89E; --eu-b: #A9BFB6; --eu-c: #6F8C83; --eu-d: #56746B;
  --eu-stem: #A88A4A; --eu-seed: #6E7F62; --eu-vein: #E9F0EC;
  --sa-sky: #E9F0EB; --sa-paper: #FFFFFF; --sa-line: #3E5A51; --sa-soft: #F3EBD7; --sa-sea: #CBDBD3; --sa-rock: #D6A877; --sa-rock2: #BF8F5E;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --script: 'Pinyon Script', 'Snell Roundhand', 'Apple Chancery', cursive;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --bg: #13201B; --paper: #1A2A24; --ink: #E4ECE7; --muted: #A6B8B0; --line: #2F443B;
    --field: #22372F; --field-ink: #E4ECE7; --field-line: #3A5449;
    --deep: #A8C9BB; --on-deep: #10201A; --deep-muted: #36544A;
    --accent: #DDBB72; --gold: #DDBB72; --accent-soft: #352F1F; --ok: #86C9A6; --bad: #F2A28C;
    --eu-a: #6F8C82; --eu-b: #8BA59B; --eu-c: #557268; --eu-d: #405A51;
    --eu-stem: #C2A465; --eu-seed: #8A9C7C; --eu-vein: #CFDDD6;
    --sa-sky: #1C2F28; --sa-paper: #2A3F37; --sa-line: #B8CDC3; --sa-soft: #2B4239; --sa-sea: #24403A; --sa-rock: #7A5A36; --sa-rock2: #664A2B;
  }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #13201B; --paper: #1A2A24; --ink: #E4ECE7; --muted: #A6B8B0; --line: #2F443B;
  --field: #22372F; --field-ink: #E4ECE7; --field-line: #3A5449;
  --deep: #A8C9BB; --on-deep: #10201A; --deep-muted: #36544A;
  --accent: #DDBB72; --gold: #DDBB72; --accent-soft: #352F1F; --ok: #86C9A6; --bad: #F2A28C;
  --eu-a: #6F8C82; --eu-b: #8BA59B; --eu-c: #557268; --eu-d: #405A51;
  --eu-stem: #C2A465; --eu-seed: #8A9C7C; --eu-vein: #CFDDD6;
  --sa-sky: #1C2F28; --sa-paper: #2A3F37; --sa-line: #B8CDC3; --sa-soft: #2B4239; --sa-sea: #24403A; --sa-rock: #7A5A36; --sa-rock2: #664A2B;
}

* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.62 var(--serif); font-optical-sizing: auto; overflow-x: clip; }
body.locked { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h2 { font-weight: 300; font-size: clamp(34px, 5vw, 50px); line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-weight: 400; font-size: 24px; line-height: 1.2; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1080px, 100%); margin-inline: auto; }
.band { padding: clamp(48px, 8vw, 104px) max(5vw, 18px); }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }
.small { font: 15px/1.5 var(--sans); color: var(--muted); }

/* eucalyptus artwork */
.eu { display: block; overflow: visible; }
.eu-a { fill: var(--eu-a); } .eu-b { fill: var(--eu-b); } .eu-c { fill: var(--eu-c); } .eu-d { fill: var(--eu-d); }
.eu-v { fill: none; stroke: var(--eu-vein); stroke-width: .7; opacity: .5; }
.eu-s { fill: none; stroke: var(--eu-stem); stroke-linecap: round; }
.eu-ring { fill: none; stroke: var(--gold); stroke-width: 2.2; }
.eu-seed { fill: var(--eu-seed); } .eu-shine { fill: #fff; opacity: .3; }
.eu-l { transform-box: fill-box; transform-origin: 0 50%; }
.eu-p { transform-box: fill-box; transform-origin: 50% 50%; }
.grow .eu-l, .grow .eu-p { animation: eu-grow .9s cubic-bezier(.2, .8, .3, 1) var(--d, 0ms) both; }
.grow .eu-st { stroke-dasharray: 1; animation: eu-draw 1.3s ease-out var(--d, 0ms) both; }
@keyframes eu-grow { from { transform: scale(0); opacity: 0; } }
@keyframes eu-draw { from { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grow .eu-l, .grow .eu-p, .grow .eu-st, .splash, .mono > * { animation: none !important; transition: none !important; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--deep); background: var(--deep); color: var(--on-deep); font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small-btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* language splash */
.splash { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-items: center; padding: 24px; overflow-y: auto; transition: opacity .6s ease, visibility .6s; }
.splash.out { opacity: 0; visibility: hidden; }
.splash-in { text-align: center; display: grid; justify-items: center; gap: 14px; }
.splash-wreath { position: relative; width: min(82vw, 420px); aspect-ratio: 1; container-type: inline-size; }
.splash-wreath .eu { position: absolute; inset: 0; width: 100%; height: 100%; }
/* P & E monogram: P up and to the left, E down and to the right, the gold ampersand tucked between */
.mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--script); color: var(--ink); }
.mono > * { grid-area: 1 / 1; line-height: 1; }
.mono .m-p, .mono .m-e { font-size: 33cqw; }
.mono .m-p { transform: translate(-10cqw, -7cqw); }
.mono .m-e { transform: translate(12cqw, 8cqw); }
.mono i { font: italic 300 12.5cqw/1 var(--serif); color: var(--gold); transform: translate(-1.5cqw, 2.5cqw); }
.mono-link i { font: italic 300 .66em/1 var(--serif); color: var(--gold); margin: 0 .04em; }
/* one entrance: the hoop draws, the leaves grow, then the letters arrive and the ampersand last */
.grow .eu-ring { animation-duration: 1.7s; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
.splash-wreath:has(.grow) .mono > * { animation: mono-in 1.1s ease var(--md, .5s) both; }
.splash-wreath:has(.grow) .mono .m-e { --md: .75s; }
.splash-wreath:has(.grow) .mono i { --md: 1.25s; }
@keyframes mono-in { from { opacity: 0; } }
.splash-date { font: 400 18px/1 var(--sans); letter-spacing: .08em; color: var(--muted); }
.splash-q { display: grid; gap: 2px; font-size: 20px; font-style: italic; margin-top: 8px; }
.splash-q span + span { color: var(--muted); font-size: 18px; }
.splash-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.splash-btns button { min-width: 156px; min-height: 56px; border-radius: 999px; border: 1.5px solid var(--deep); background: var(--paper); color: var(--ink); font: 500 18px/1 var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.splash-btns button:hover, .splash-btns button.suggest { background: var(--deep); color: var(--on-deep); }

/* guest password page */
.gate { min-height: 100svh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 12px; padding: 32px max(5vw, 18px); }
.gate-form { display: grid; gap: 12px; width: min(100%, 360px); margin-top: 6px; }
.gate-q { display: grid; gap: 2px; font-size: 20px; font-style: italic; }
.gate-q span + span, .gate-note span + span { color: var(--muted); }
.gate-q span + span { font-size: 18px; }
.gate-form input { width: 100%; min-height: 54px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: 18px/1.3 var(--sans); text-align: center; }
.gate-form input:focus { outline: none; border-color: var(--deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--deep) 22%, transparent); }
.gate-form .btn { min-height: 54px; font-size: 17px; }
.gate-form .err { display: grid; gap: 2px; }
.gate-note { font: 15px/1.5 var(--sans); color: var(--muted); max-width: 34ch; display: grid; gap: 6px; margin-top: 10px; }

/* top bar */
.top { display: flex; align-items: center; gap: 16px; padding: 10px max(5vw, 18px); background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); z-index: 20; flex-wrap: wrap; }
.mono-link { font: 34px/1 var(--script); text-decoration: none; padding: 4px 2px 0; }
.top nav { display: flex; gap: 4px; margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.top nav a { flex: none; font: 500 15px/1 var(--sans); text-decoration: none; padding: 12px 10px; border-radius: 999px; color: var(--muted); }
.top nav a:hover { color: var(--ink); background: var(--paper); }
.lang { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; font: 500 14px/1 var(--sans); cursor: pointer; }
.theme-btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn:hover { border-color: var(--muted); }
.top .theme-btn + .lang { margin-left: -6px; }
.photos-page .top .theme-btn { margin-left: auto; }
.gate-theme { position: fixed; top: 14px; right: 14px; z-index: 5; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
@media (min-width: 900px) { .top { position: sticky; top: 0; backdrop-filter: blur(8px); } }
@media (max-width: 899px) {
  .top nav { display: none; }
  .lang, .top .theme-btn { margin-left: auto; }
  .top .theme-btn + .lang { margin-left: -6px; }
}

/* hero */
.hero { text-align: center; padding: clamp(28px, 5vw, 56px) max(5vw, 18px) clamp(48px, 7vw, 88px); display: grid; justify-items: center; gap: 10px; }
.hero-dear { font: 500 17px/1.3 var(--sans); color: var(--accent); }
.hero-together { font-size: clamp(19px, 2.4vw, 23px); font-style: italic; color: var(--muted); }
.wreath-box { position: relative; width: min(90vw, 540px, max(330px, calc(100svh - 400px))); aspect-ratio: 1; margin: -6px 0 -10px; container-type: inline-size; }
.wreath-box .eu { position: absolute; inset: 0; width: 100%; height: 100%; }
.names { position: absolute; inset: 0; display: grid; place-content: center; font: 56px/.92 var(--script); font-size: 17.5cqw; }
.names span { display: block; }
.names .amp { font: italic 300 .5em/1.15 var(--serif); color: var(--gold); }
.hero-line { font-size: clamp(19px, 2.4vw, 23px); font-style: italic; max-width: 40ch; text-wrap: balance; }
.hero-date { font-weight: 400; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.1; margin-top: 10px; }
.hero-place { font: 400 18px/1.4 var(--sans); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; margin-top: 18px; }
.countdown { font: 500 15px/1 var(--sans); color: var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 999px; white-space: nowrap; }

/* section heads */
.head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.head .eu { width: 210px; height: 53px; margin-left: -14px; }

/* story */
.story { background: var(--field); color: var(--field-ink); }
.story .head .eu { --eu-vein: rgba(255,255,255,.6); }
.story-sub { margin: -4px 0 0; font: italic 400 clamp(19px, 2.2vw, 24px)/1.3 var(--serif); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 52px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 2px; background: var(--eu-stem); border-radius: 2px; }
.timeline li { position: relative; padding-left: 44px; display: grid; gap: 16px; grid-template-areas: "head" "art" "body"; }
.node { position: absolute; left: -2px; top: 0; width: 32px; height: 32px; }
.st-head { grid-area: head; }
.st-body { grid-area: body; display: grid; gap: .7em; }
.mark { display: block; font-weight: 300; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; margin-bottom: 4px; }
.timeline h3 { font: italic 400 22px/1.25 var(--serif); margin: 0; }
.timeline p { max-width: 42ch; margin: 0; }
.story-end { margin: 56px 0 0; font: italic 400 clamp(21px, 2.5vw, 27px)/1.35 var(--serif); max-width: 30ch; }
.story-photo { margin-top: 40px; width: min(100%, 420px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px var(--r) var(--r); }

/* the arched picture for each chapter: a photo once you add one, a drawing until then */
.story-art { grid-area: art; margin: 0; width: min(100%, 300px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--sa-sky);
  border-radius: 999px 999px var(--r) var(--r); box-shadow: 0 0 0 6px color-mix(in srgb, var(--paper) 55%, transparent); }
.story-art img, .story-art svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.sa .fb { fill: var(--sa-sky); } .sa .fp { fill: var(--sa-paper); } .sa .fs { fill: var(--sa-soft); }
.sa .fw { fill: var(--sa-sea); } .sa .fr { fill: var(--sa-rock); } .sa .fr2 { fill: var(--sa-rock2); }
.sa .rk { fill: none; stroke: var(--sa-rock2); stroke-width: 2.4; stroke-linecap: round; } .sa .fg { fill: var(--gold); }
.sa .fl { fill: var(--eu-b); } .sa .fl2 { fill: var(--eu-a); } .sa .fl3 { fill: var(--eu-c); } .sa .fpaw { fill: var(--eu-c); }
.sa .s, .sa .sg, .sa .sb, .sa .mouth { fill: none; stroke: var(--sa-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sa .sg { stroke: var(--gold); }
.sa .sb { stroke: var(--sa-sky); stroke-width: 2; }
.sa .thin { stroke-width: 2.2; }
.sa .trunk { stroke-width: 4; }
.sa .dash { stroke-dasharray: 22 18; stroke-linecap: butt; }
.sa .dots { stroke-width: 3.6; stroke-dasharray: 0 12; }
.sa .sh { opacity: .5; } .sa .puff { opacity: .6; } .sa .road { opacity: .3; }
.sa .wave, .sa .smoke { opacity: .55; }
.sa .coat { fill: #2B3531; } .sa .white { fill: #FBFCFA; } .sa .iris { fill: #77593A; } .sa .pupil { fill: #15120E; }
.sa .mouth { stroke: #2B3531; }
.sa .gap, .sa .ring { fill: none; stroke-width: 15; stroke: var(--sa-soft); }
.sa .ring { stroke: var(--gold); stroke-width: 8; }
.sa .butt { stroke-linecap: butt; }
.sa .shine { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; opacity: .55; }

@media (min-width: 900px) {
  .timeline { gap: 72px; }
  .timeline::before { left: 50%; margin-left: -1px; top: 0; bottom: 0; }
  .timeline li { padding: 0; column-gap: 120px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas: "art ." "art head" "art body" "art ."; }
  .timeline li:nth-child(even) { grid-template-areas: ". art" "head art" "body art" ". art"; text-align: right; }
  .timeline li:nth-child(even) :is(.st-head, .st-body) { justify-self: end; }
  .timeline li:nth-child(even) .st-body { justify-items: end; }
  .story-art { justify-self: end; width: clamp(240px, 24vw, 300px); }
  .timeline li:nth-child(even) .story-art { justify-self: start; }
  .node { left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .story-end { margin: 64px auto 0; text-align: center; }
}

/* the day */
.day-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 860px) { .day-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.venue h3 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 300; }
.venue address { font: normal 17px/1.5 var(--sans); color: var(--muted); margin: 6px 0 14px; }
.venue p { max-width: 44ch; }
.venue .btn { margin: 20px 0 22px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font: 16px/1.5 var(--sans); color: var(--muted); }
.notes li { padding-left: 22px; position: relative; }
.notes li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 0 60% 0 60%; background: var(--eu-a); }
.know { display: grid; gap: 22px; margin-top: 34px; }
.know h4 { margin: 0 0 6px; font: 600 15px/1.3 var(--sans); color: var(--muted); }
.know p { font: 16px/1.55 var(--sans); max-width: 46ch; }
.know p.dress { font: italic 400 22px/1.3 var(--serif); color: var(--accent); }
.know a { overflow-wrap: anywhere; }
.schedule-title { font: 600 15px/1 var(--sans); color: var(--muted); margin-bottom: 8px; }
.schedule { margin: 0; display: grid; }
.schedule > div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 4px 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.schedule dt { font-weight: 300; font-size: 30px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule dd { margin: 0; }
.schedule b { display: block; font: 600 17px/1.3 var(--sans); }
.schedule span { color: var(--muted); font-size: 16px; }
.schedule-soon { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0 24px; }
.schedule-soon .soon-title { font: 300 30px/1.1 var(--serif); color: var(--accent); margin: 0 0 10px; }
.schedule-soon p:last-child { margin: 0; color: var(--muted); font-size: 16px; max-width: 34em; }

/* rsvp */
.rsvp { position: relative; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4.5vw, 52px); max-width: 720px; margin-inline: auto; }
.card-spray { position: absolute; right: -10px; top: -58px; width: 200px; height: 96px; pointer-events: none; }
@media (max-width: 600px) { .card-spray { width: 160px; height: 77px; top: -48px; } }
.rsvp .head { max-width: 720px; margin-inline: auto; }
.invite-note { font: 500 16px/1.5 var(--sans); background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 12px 16px; margin-bottom: 22px; }
form { display: grid; gap: 22px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .label { font: 600 16px/1.4 var(--sans); padding: 0; margin-bottom: 10px; display: block; }
.hint { font: 14px/1.4 var(--sans); color: var(--muted); margin-top: -4px; margin-bottom: 10px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 15px/1.4 var(--sans); }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); font: 16px/1.4 var(--sans); }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--deep) 22%, transparent); }
[aria-invalid=true] { border-color: var(--bad) !important; }
.err { font: 500 14px/1.4 var(--sans); color: var(--bad); }
.two { display: grid; gap: 16px; }
@media (min-width: 620px) { .two { grid-template-columns: 1fr 1fr; } }
.choices { display: grid; gap: 10px; }
@media (min-width: 520px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font: 500 17px/1.3 var(--sans); background: var(--bg); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .dot, .dish .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--muted); display: grid; place-items: center; }
.choice input:checked ~ .dot, .dish input:checked ~ .dot { border-color: var(--deep); background: var(--deep); box-shadow: inset 0 0 0 4px var(--bg); }
.choice:has(input:checked) { border-color: var(--deep); background: var(--paper); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.dishes { display: grid; gap: 8px; }
.dish { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .12s; }
.dish input { position: absolute; opacity: 0; pointer-events: none; }
.dish .dot { margin-top: 1px; }
.dish b { display: block; font: 500 16px/1.35 var(--sans); }
.dish small { display: block; font: italic 300 16px/1.45 var(--serif); color: var(--muted); margin-top: 3px; }
.dish .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dish .tag { display: inline-block; font-size: 12px; padding: 5px 9px; }
.dish .tag.line { padding: 4px 8px; }
.dish:has(input:checked) { border-color: var(--deep); background: var(--paper); }
.dish:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.dishes.invalid .dish { border-color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; font: 500 15px/1 var(--sans); background: var(--bg); transition: background .12s; }
.chip input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.chips.invalid span { border-color: var(--bad); }
.chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.toppings { margin-top: 18px; }
/* who's coming: one card per person on the invitation, with a green tick or a red cross */
.people { display: grid; gap: 10px; }
.person { border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); padding: 14px 16px; display: grid; gap: 12px; align-items: center; transition: border-color .15s, background .15s; }
@media (min-width: 600px) { .person { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); } .person .plus-name { grid-column: 1 / -1; } }
.person.yes { border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); background: var(--paper); }
.person.no { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: var(--paper); }
.people.invalid .person:not(.yes):not(.no) { border-color: var(--bad); }
.person-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pn { font: 400 22px/1.2 var(--serif); }
.pn.plus { font-style: italic; color: var(--muted); }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yn-opt { position: relative; cursor: pointer; }
.yn-opt input { position: absolute; opacity: 0; pointer-events: none; }
.yn-opt span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px 0 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: 500 15px/1.1 var(--sans); text-align: center; transition: background .15s, border-color .15s, color .15s; }
.yn-opt i { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.yn-opt.yes i { color: var(--ok); }
.yn-opt.no i { color: var(--bad); }
.yn-opt svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.yn-opt.yes input:checked + span { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.yn-opt.no input:checked + span { background: var(--bad); border-color: var(--bad); color: var(--bg); }
.yn-opt.yes input:checked + span i { background: var(--bg); border-color: var(--bg); color: var(--ok); }
.yn-opt.no input:checked + span i { background: var(--bg); border-color: var(--bg); color: var(--bad); }
.yn-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.plus-name { margin-top: 2px; }
.guest { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 16px; }
.guest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.guest-head h4 { margin: 0; font: italic 400 22px/1.2 var(--serif); }
.link-btn { background: none; border: 0; padding: 8px 4px; font: 500 15px/1 var(--sans); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.add-guest { justify-self: start; }
.form-alert { font: 500 15px/1.5 var(--sans); color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); padding: 12px 16px; border-radius: 12px; }
/* step-by-step RSVP */
.wiz-head { display: grid; gap: 8px; }
.wiz-step { font: 500 14px/1 var(--sans); color: var(--muted); }
.wiz-bar { height: 4px; border-radius: 9px; background: var(--bg); overflow: hidden; }
.wiz-bar i { display: block; height: 100%; background: var(--deep); transition: width .3s ease; }
.wiz-title { font: 400 clamp(24px, 3.6vw, 30px)/1.2 var(--serif); margin-top: 6px; text-wrap: balance; }
.wiz-title:focus { outline: none; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 18px; }
.counters { display: grid; gap: 12px; }
.counter { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); }
.counter .label { font: 600 17px/1.3 var(--sans); }
.stepper { display: flex; align-items: center; gap: 6px; }
.step-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--deep); background: var(--paper); color: var(--ink); font: 500 24px/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
.step-btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 2ch; text-align: center; font: 400 28px/1 var(--serif); font-variant-numeric: tabular-nums; }
.name-row { display: grid; gap: 10px; }
.name-row.kid { grid-template-columns: minmax(0, 1fr) 7.5em; align-items: start; }
.name-row .age input { text-align: center; }
.summary.review { border-top: 0; margin-top: 0; padding-top: 0; }
.quote-sm { font: italic 16px/1.5 var(--serif); border-left: 3px solid var(--eu-a); padding-left: 12px; white-space: pre-wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { display: grid; gap: 14px; text-align: center; justify-items: center; padding-top: 34px; }
.thanks h3 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 300; max-width: 26ch; text-wrap: balance; }
.thanks .eu { width: 170px; height: 44px; }
.summary { text-align: left; width: 100%; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px; display: grid; gap: 10px; font: 16px/1.5 var(--sans); }
.summary b { font-weight: 600; }
.summary ul { margin: 0; padding-left: 18px; }
.summary li { margin-bottom: 6px; }
.summary li span { display: block; color: var(--muted); font-size: 15px; }
.summary li span.tag { display: inline-block; margin-left: 6px; font-size: 12px; padding: 4px 8px; color: var(--ink); vertical-align: 1px; }

/* gifts */
.gift-text { font-size: clamp(20px, 2.4vw, 23px); font-weight: 300; line-height: 1.5; max-width: 40ch; }
/* ways to give: one card, one row per method; bank transfer opens to show the details */
.pay-list { margin-top: 36px; max-width: 680px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.pay-opt + .pay-opt { border-top: 1px solid var(--line); }
.pay-opt summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; }
.pay-opt summary::-webkit-details-marker { display: none; }
.pay-opt summary:hover { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.pay-opt summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; border-radius: var(--r); }
.pay-name { flex: 1; min-width: 0; display: grid; gap: 3px; font-family: var(--sans); }
.pay-name b { font: 600 17px/1.3 var(--sans); }
.pay-name small { font: 15px/1.45 var(--sans); color: var(--muted); }
.chev { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.chev::before { content: ''; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.pay-opt[open] .chev::before { transform: translateY(2px) rotate(-135deg); }
.pay-body { padding: 0 22px 18px; }
.pay-opt[open] .pay-body { animation: pay-open .25s ease both; }
@keyframes pay-open { from { opacity: 0; transform: translateY(-4px); } }
.pay-note { font: 15px/1.5 var(--sans); color: var(--muted); margin: 12px 0 0; }
.pay-row { display: flex; align-items: center; gap: 12px 20px; padding: 20px 22px; flex-wrap: wrap; }
.pay-row .btn { flex: none; }
.pay-row + .pay-body { margin-top: -6px; }
@media (max-width: 560px) { .pay-row .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .pay-opt[open] .pay-body, .chev::before { animation: none; transition: none; } }
.detail { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); font-family: var(--sans); }
.detail small { display: block; font-size: 13px; color: var(--muted); }
.detail strong { font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copy { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font: 500 13px/1 var(--sans); cursor: pointer; }
.copy.done { border-color: var(--ok); color: var(--ok); }
.gift-msg { margin-top: 28px; font: 16px/1.5 var(--sans); color: var(--muted); border-left: 3px solid var(--eu-a); padding: 4px 0 4px 16px; max-width: 60ch; }

/* explore */
.explore { border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; margin-bottom: 26px; }
.tabs button { flex: none; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font: 500 16px/1 var(--sans); cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.panel[hidden] { display: none; }
.places { display: grid; gap: 0 48px; }
@media (min-width: 820px) { .places { grid-template-columns: 1fr 1fr; } }
.place { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.place h3 { font-size: 23px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font: 14px/1.3 var(--sans); color: var(--muted); }
.tag { font: 500 13px/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.tag.green { background: color-mix(in srgb, var(--eu-a) 30%, transparent); color: var(--ink); }
.tag.line { background: none; border: 1px solid color-mix(in srgb, var(--eu-c) 55%, transparent); color: var(--ink); }
.place p { font-size: 16px; max-width: 52ch; }
.tip { margin-top: 24px; font: 16px/1.55 var(--sans); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; max-width: 70ch; }
.islands { display: grid; gap: 20px; }
@media (min-width: 820px) { .islands { grid-template-columns: 1fr 1fr; } }
.island { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3.4vw, 32px); display: grid; gap: 14px; align-content: start; }
.island h3 { font-size: clamp(36px, 4.4vw, 46px); font-weight: 300; line-height: 1; }
.island .tagline { font-style: italic; color: var(--muted); }
.facts { margin: 0; display: grid; font-family: var(--sans); }
.facts > div { display: grid; grid-template-columns: 6.4em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.island p { font-size: 16px; }
.island a { font: 500 15px/1.4 var(--sans); color: var(--accent); }
.pass { background: var(--field); color: var(--field-ink); border-radius: 22px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 18px; margin-bottom: 30px; position: relative; overflow: hidden; }
@media (min-width: 820px) { .pass { grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; } }
.pass-body { display: grid; gap: 14px; }
.price { font-weight: 300; font-size: clamp(64px, 9vw, 96px); line-height: .9; }
.price small { display: block; font: 500 15px/1.4 var(--sans); margin-top: 10px; max-width: 12em; }
.pass h3 { font-size: clamp(26px, 3vw, 32px); font-weight: 400; }
.pass p { max-width: 62ch; }
.pass .where { font: 15px/1.5 var(--sans); }
.pass .warn { font: 500 15px/1.5 var(--sans); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 12px 14px; }
.around { display: grid; gap: 0 48px; }
@media (min-width: 820px) { .around { grid-template-columns: 1fr 1fr; } }

/* footer */
footer { background: var(--deep); color: var(--on-deep); text-align: center; padding: 56px max(5vw, 18px) 64px; display: grid; justify-items: center; gap: 10px; }
footer .foot-wreath { position: relative; width: 190px; aspect-ratio: 1; container-type: inline-size; margin-bottom: 4px; }
footer .foot-wreath .eu { position: absolute; inset: 0; width: 100%; height: 100%; }
footer .mono { color: var(--on-deep); }
/* the footer's background flips between deep green and pale sage, so its gold is tuned to stay visible on both */
footer .foot-wreath { --gold: #CBA95C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) footer .foot-wreath { --gold: #6E5418; --eu-stem: #8A6C2E; } }
:root[data-theme=dark] footer .foot-wreath { --gold: #6E5418; --eu-stem: #8A6C2E; }
footer p { font: 16px/1.5 var(--sans); }
footer .foot-names { font: italic 300 22px/1.3 var(--serif); }
footer .made-by { margin-top: 18px; font-size: 13px; color: var(--deep-muted); }
footer .made-by span { display: block; font-style: italic; margin-top: 2px; }

/* "share your photos" band on the main page */
.photos-band { background: var(--field); color: var(--field-ink); }
.photos-band-in { display: grid; gap: 22px; align-items: center; }
.photos-band-in .lede { color: inherit; opacity: .85; margin-top: 12px; }
.photos-band-in .btn { justify-self: start; }
@media (min-width: 820px) { .photos-band-in { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
footer a { color: inherit; }
footer .lang { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--on-deep) 40%, transparent); margin: 10px auto 0; }

/* photos page */
.top-title { font: 500 16px/1.2 var(--sans); color: var(--muted); }
.photos-page .top { flex-wrap: nowrap; padding-bottom: 10px; }
.photos-page .lang { margin-left: auto; }
.photos-main { padding-top: clamp(20px, 5vw, 56px); }
.narrow { width: min(760px, 100%); margin-inline: auto; }
.p-head { display: grid; gap: 12px; margin-bottom: 24px; }
.p-head .eu { width: 210px; height: 53px; margin-left: -14px; }
.p-head h1 { font-weight: 300; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; }
.p-card { display: grid; gap: 16px; max-width: none; }
.p-pick { position: relative; width: 100%; min-height: 64px; font-size: 18px; overflow: hidden; }
.p-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.p-pick:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.p-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.p-queue:empty { display: none; }
.p-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.p-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--field); display: grid; place-items: center; font: 500 11px/1 var(--sans); color: var(--field-ink); }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-name { display: block; font: 14px/1.3 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-status { display: block; font: 13px/1.3 var(--sans); color: var(--muted); }
.p-status.ok { color: var(--ok); } .p-status.bad { color: var(--bad); }
.p-bar { display: block; height: 6px; border-radius: 9px; background: var(--bg); overflow: hidden; margin-top: 6px; }
.p-bar i { display: block; height: 100%; background: var(--deep); transition: width .2s; }
.p-summary { font: 500 16px/1.4 var(--sans); color: var(--ok); }
.p-summary:empty { display: none; }
.p-gallery { margin-top: 44px; display: grid; gap: 16px; }
.p-gallery h2 { font-size: clamp(28px, 4vw, 38px); }
.p-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
@media (min-width: 700px) { .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } }
.p-tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: var(--field); cursor: pointer; }
.p-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-tile .ph { display: grid; place-items: center; height: 100%; font: 500 13px/1 var(--sans); color: var(--field-ink); }
.p-tile .badge { position: absolute; left: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; font-size: 11px; }
#p-more { justify-self: center; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(9, 16, 13, .95); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #fff; }
.lb-top, .lb-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 12px 10px; font: 15px/1.3 var(--sans); }
.lb-nav { padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: transparent; color: #fff; font: 500 15px/1 var(--sans); cursor: pointer; }
footer.mini-foot { background: none; color: var(--muted); text-align: center; padding: 24px 18px 48px; font: 15px/1.6 var(--sans); display: grid; gap: 4px; justify-items: center; }
.mini-foot span { font-size: 13px; }

/* preview banner (demo only) */
.demo-bar { background: #6B5419; color: #fff; font: 500 14px/1.4 var(--sans); padding: 10px max(5vw, 18px); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; }
.demo-bar button, .demo-bar a { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 999px; padding: 8px 14px; font: 500 14px/1 var(--sans); cursor: pointer; text-decoration: none; }

/* background music button: bottom corner, gold bars while playing, a note when paused */
.music-btn { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: 0; height: 48px; min-width: 48px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 10px rgba(16, 30, 25, .12); font: 500 14px/1 var(--sans); transition: gap .3s ease, border-color .15s; }
.music-btn:hover { border-color: var(--deep); }
.music-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.music-btn .mi { width: 20px; height: 20px; display: grid; place-items: center; flex: none; }
.music-btn .note { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.music-btn .eq { display: none; align-items: flex-end; gap: 3px; height: 16px; }
.music-btn .eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--gold); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.music-btn .eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.music-btn .eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
.music-btn.on .eq { display: flex; }
.music-btn.on .note { display: none; }
.music-btn .ml { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s ease, opacity .25s ease; }
.music-btn.tell { gap: 10px; }
.music-btn.tell .ml { max-width: 160px; opacity: 1; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .music-btn .eq i { animation: none; transform: scaleY(.7); } .music-btn, .music-btn .ml { transition: none; } }
@media print { .music-btn { display: none; } }

/* phones: the sections become a tab bar along the bottom of the screen */
.tabbar { display: none; }
@media (max-width: 899px) {
  html { scroll-padding-top: 12px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px;
    padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); transition: transform .25s ease; }
  .tabbar a { display: grid; justify-items: center; gap: 4px; padding: 7px 0 6px; border-radius: 12px; text-decoration: none;
    color: var(--muted); font: 500 11.5px/1 var(--sans); white-space: nowrap; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a[aria-current] { color: var(--ink); background: var(--bg); }
  .tabbar a.t-rsvp { color: var(--accent); }
  .tabbar a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .typing .tabbar { transform: translateY(110%); }
  footer { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
  .music-btn { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) { .tabbar a { font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) { .tabbar { transition: none; } }
@media print { .tabbar { display: none !important; } }
