/* Becka & Charlie — the wedding site.
   Layout: the animated garden fills the first screen; below it, one calm reading column of stationery-like
   sections, widening only where the content is a grid. One light look, by choice, like printed stock —
   apart from the schedule, which passes from afternoon to a starry night as you read down it. */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/BodoniModa.woff) format("woff"); }
@font-face { font-family: "Bodoni Moda"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/BodoniModa-Italic.woff) format("woff"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/EBGaramond.woff) format("woff"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap; src: url(/fonts/EBGaramond-Italic.woff) format("woff"); }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/Marcellus-Regular.woff) format("woff"); }

:root {
  --paper: #fbf8f2; /* a warm paper tone, like printed stationery */
  --wash: #f2f5f0;
  --ink: #2f2f2d;
  --ink-soft: #5d5d58;
  --ink-dim: rgba(47, 47, 45, 0.62);
  --brass: #b48a4c;
  --brass-dk: #8a6535;
  --brass-hi: #e4c88f;
  --moss: #8fa58a;
  --moss-dk: #5f7559;
  --rule: rgba(180, 138, 76, 0.28);
  --night: #1c2433;
  --night-ink: #ece6d8;
  --night-soft: rgba(236, 230, 216, 0.72);
  --danger: #a24d33;
  --f-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --f-label: "Marcellus", "Trajan Pro", Georgia, serif;
  --f-body: "EB Garamond", Garamond, "Times New Roman", serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1.1875rem; line-height: 1.6; overflow-x: hidden; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(180, 138, 76, 0.25); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip { position: absolute; left: var(--gutter-l); top: -100px; z-index: 20; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-family: var(--f-label); font-size: .8rem; letter-spacing: .12em; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }

/* ---------- the opening garden ---------- */
.stage {
  position: relative;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  background: radial-gradient(90% 55% at 50% 108%, var(--wash), transparent 70%), var(--paper);
}
#garden { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.names {
  /* a little below centre, so the trees have room to curve naturally over the top */
  position: absolute; left: 50%; top: calc(50% + min(6vh, 3.5rem)); transform: translate(-50%, -50%);
  max-width: min(30rem, 58vw);
  display: flex; flex-direction: column; align-items: center; gap: clamp(0.35rem, 2vh, 0.85rem);
  text-align: center;
  text-shadow: 0 0 18px var(--paper), 0 0 6px var(--paper), 0 0 2px var(--paper);
  animation: rise 1.8s 3.2s var(--ease) both; /* without the trees, the names still arrive; garden.js times it to the crown */
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); } to { opacity: 1; transform: translate(-50%, -50%); } }
.names h1 {
  margin: 0; display: flex; flex-direction: column; align-items: center;
  font-family: var(--f-display); font-style: italic; font-weight: 400; font-optical-sizing: auto; font-kerning: normal;
  font-size: clamp(1.5rem, min(7.4vw, 9.5vh), 5.4rem); line-height: 0.96; letter-spacing: -0.015em; text-wrap: balance;
}
.amp { font-size: 0.46em; font-weight: 400; color: var(--brass); line-height: 1.25; margin-block: 0.02em; }
.ornament { display: block; width: clamp(60px, 14vh, 92px); height: auto; aspect-ratio: 92 / 14; }
.date { font-family: var(--f-label); text-transform: uppercase; font-size: clamp(0.66rem, min(2.1vw, 3.2vh), 1.05rem); letter-spacing: 0.28em; margin-right: -0.28em; font-variant-numeric: lining-nums; }
.place { font-family: var(--f-display); font-style: italic; font-size: clamp(0.72rem, min(2vw, 3.4vh), 1.05rem); color: var(--ink-soft); }
.countdown { font-family: var(--f-label); font-size: clamp(0.6rem, min(1.7vw, 2.6vh), 0.8rem); letter-spacing: 0.22em; margin-right: -0.22em; text-transform: uppercase; color: var(--brass-dk); margin-top: 0.2rem; }
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.32 0 0 0 0 0.26 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.pill {
  font-family: var(--f-label); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim); background: rgba(251, 248, 242, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(180, 138, 76, 0.35); border-radius: 999px;
  padding: 0.6rem 1.05rem 0.6rem 1.25rem; cursor: pointer; text-decoration: none;
  transition: color .2s, border-color .2s, background-color .2s;
}
.pill:hover { color: var(--ink); border-color: rgba(180, 138, 76, 0.7); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
/* the two buttons sit together at the bottom centre, in the same place at every size */
.hero-actions { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: .6rem; white-space: nowrap; }
.scroll-cue { display: inline-flex; align-items: center; gap: 0.5rem; }
.scroll-cue svg { width: 10px; height: 12px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .names, .scroll-cue svg { animation: none; } }

/* ---------- navigation: slides in once you leave the garden ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(251,248,242,0.92); }
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 9;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  background: rgba(251, 248, 242, 0.88); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-110%); transition: transform .5s var(--ease);
}
.nav.shown, .nav:focus-within { transform: none; }
.nav-inner { max-width: 72rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.6rem; }
.monogram { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; text-decoration: none; white-space: nowrap; }
.monogram span { color: var(--brass); font-size: 0.8em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(0.8rem, 1.6vw, 1.6rem); }
.nav ul a { position: relative; font-family: var(--f-label); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); padding: 0.4rem 0; white-space: nowrap; transition: color .2s; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav ul a:hover { color: var(--ink); }
.nav ul a.active { color: var(--ink); }
.nav ul a.active::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: 0; padding: 0.5rem; margin-right: -0.5rem; cursor: pointer; color: var(--ink); font-family: var(--f-label); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; align-items: center; gap: 0.55rem; }
.menu-btn svg { width: 20px; height: 14px; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav ul { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 18px 30px -24px rgba(47,47,45,0.35); padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l); display: none; }
  .nav.open ul { display: flex; }
  .nav ul a { display: block; padding: 0.85rem 0; font-size: 0.8rem; border-bottom: 1px solid rgba(180,138,76,0.14); }
  .nav ul a::after { display: none; }
  .nav ul a.active { color: var(--brass-dk); }
}

/* ---------- sections ---------- */
.section { position: relative; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: clamp(4rem, 9vw, 7rem); }
.section.band { background: var(--wash); }
.col { max-width: 40rem; margin: 0 auto; }
.wide { max-width: 64rem; margin: 0 auto; position: relative; }
.head { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.eyebrow { font-family: var(--f-label); font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass-dk); margin-right: -0.26em; }
h2 { margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
h3 { margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.55rem; line-height: 1.15; }
.divider { width: 168px; height: 22px; display: block; margin-top: 0.3rem; }
.lead { font-size: clamp(1.3rem, 2.6vw, 1.55rem); line-height: 1.5; text-align: center; text-wrap: pretty; }
.prose { display: flex; flex-direction: column; gap: 1.1rem; text-wrap: pretty; }
.center { text-align: center; }
.icon { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--f-label); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 999px;
  padding: 0.95rem 1.7rem 0.95rem 1.9rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--brass-dk); border-color: var(--brass-dk); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--brass); color: var(--brass-dk); background: transparent; }

/* scroll reveals: only elements that start below the screen are hidden, so nothing is ever blank on arrival */
.pending { opacity: 0; transform: translateY(18px); }
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.head .divider { transition: clip-path 1.1s var(--ease) .15s; }
.head.pending-head .divider { clip-path: inset(0 50% 0 50%); }
@media (prefers-reduced-motion: reduce) { .pending { opacity: 1; transform: none; } .head.pending-head .divider { clip-path: none; } }

/* welcome */
.welcome .sign { font-family: var(--f-display); font-style: italic; font-size: 1.6rem; text-align: center; margin-top: 2rem; }
.welcome .sign span { color: var(--brass); }

/* key information */
.keys { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.keys li { display: flex; gap: 1.2rem; align-items: flex-start; padding-block: 1.25rem; border-bottom: 1px solid var(--rule); }
.keys .icon { color: var(--brass); margin-top: 0.1rem; }
.keys .k-body { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.keys strong { font-weight: 500; }
.keys a { align-self: flex-start; color: var(--brass-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; font-family: var(--f-label); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- our story: one block of text, beneath a little trail of drawings ---------- */
.story-marks { position: relative; display: flex; justify-content: center; gap: clamp(2.5rem, 9vw, 5rem); margin: 0 auto clamp(2rem, 5vw, 2.8rem); width: fit-content; }
.story-marks::before { content: ""; position: absolute; left: 32px; right: 32px; top: 50%; border-top: 1.5px dotted var(--brass); opacity: .6; }
.medallion { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule); display: grid; place-items: center; color: var(--brass); box-shadow: 0 10px 24px -18px rgba(70,50,20,.5); }
.medallion.green { color: var(--moss-dk); border-color: rgba(143,165,138,.5); }
.medallion .icon { width: 32px; height: 32px; stroke-width: 1.3; }
.story-text { text-align: center; }
.story-text em { font-style: italic; color: var(--brass-dk); }

/* ---------- RSVP ---------- */
.by { font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; text-align: center; margin-bottom: 2.2rem; }
.by small { display: block; font-family: var(--f-label); font-style: normal; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6rem; }
.rsvp-section { overflow-x: clip; }
.rsvp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }

/* the gate: an arch like the two trees, sage on the left, brass on the right, meeting at a gem */
.gate-wrap { width: calc(100% - 1.5rem); max-width: 27rem; transition: max-width .9s var(--ease); }
.gate-wrap.open { max-width: 36rem; }
.gate-wrap::before { content: ""; display: block; width: 100%; aspect-ratio: 100 / 18; } /* room for the arch */
.gate {
  position: relative; display: flow-root; background: var(--paper); /* flow-root: the inner negative margin must not collapse through */
  border-left: 1px solid var(--moss); border-right: 1px solid var(--brass);
}
.gate::after { /* the ground line */
  content: ""; position: absolute; left: -2rem; right: -2rem; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--moss) 2rem, var(--moss) 50%, var(--brass) 50%, var(--brass) calc(100% - 2rem), transparent);
}
.gate::before { /* inner dotted pillars */
  content: ""; position: absolute; top: 0; bottom: 14px; left: 3.5%; right: 3.5%; pointer-events: none;
  border-left: 1.5px dotted rgba(143,165,138,.55); border-right: 1.5px dotted rgba(180,138,76,.5);
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent);
}
.gate-cap, .gate-arc { position: absolute; left: -.5px; width: calc(100% + 1px); bottom: 100%; aspect-ratio: 100 / 18; height: auto; overflow: visible; display: block; }
.gate-arc { pointer-events: none; z-index: 1; }
.gate-cap path { fill: none; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.gate-cap .fill { fill: var(--paper); stroke: none; }
.gate-cap .moss { stroke: var(--moss); }
.gate-cap .brass { stroke: var(--brass); }
.gate-cap .dots { stroke-width: 1.5px; stroke-linecap: round; stroke-dasharray: 0 5; opacity: .6; }

.gate-orn { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.orn { position: absolute; left: calc(50% + 50% * var(--c)); top: calc(100% - 100% * var(--s)); display: block; }
.orn svg { display: block; width: 100%; height: 100%; overflow: visible; }
.orn.leaf { width: 9px; height: 15px; transform-origin: 50% 100%; transform: translate(-50%, -100%) rotate(var(--r)); }
.orn.leaf svg { transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; animation-delay: var(--d); }
.orn.rivet { width: 6px; height: 6px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 38% 35%, #f6e6c0, var(--brass-hi) 45%, var(--brass-dk)); box-shadow: 0 0 0 .6px var(--brass-dk); }
.orn.cog { width: 14px; height: 14px; transform: translate(-50%, -50%); }
.orn.cog svg { animation: turn 24s linear infinite; }
.orn.gem { width: 15px; height: 17px; transform: translate(-50%, -50%); }
.orn.gem::after { /* a glint that comes and goes */
  content: ""; position: absolute; left: 62%; top: 8%; width: 8px; height: 8px; margin: -4px; opacity: 0;
  background: radial-gradient(circle, #fff 0 1px, transparent 1.5px), linear-gradient(transparent 45%, #fff 45% 55%, transparent 55%), linear-gradient(90deg, transparent 45%, #fff 45% 55%, transparent 55%);
  animation: glint 7s ease-in-out infinite 2s;
}
/* a vine up the left pillar and a riveted strip down the right, fading as they go */
.g-vine, .g-studs { position: absolute; top: 0; height: min(100%, 20rem); width: 14px; -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }
.g-vine { left: 0; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='64' viewBox='0 0 14 64'%3E%3Cpath d='M7 14C1 13-1 8 0 5c4 0 7 4 7 9zM7 46c6-1 8-6 7-9-4 0-7 4-7 9z' fill='%238fa58a'/%3E%3C/svg%3E") repeat-y 0 10px; }
.g-studs { right: 0; transform: translateX(50%);
  background: radial-gradient(circle at 50% 50%, var(--brass-hi) 0 1.6px, var(--brass-dk) 2.1px, transparent 2.6px) repeat-y 0 22px / 14px 44px; }
.roots { position: absolute; left: 50%; bottom: -17px; width: 120px; height: 18px; transform: translateX(-50%); }

@keyframes sway { 0%, 100% { rotate: -5deg; } 50% { rotate: 6deg; } }
@keyframes turn { to { rotate: 360deg; } }
@keyframes glint { 0%, 80%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 88% { opacity: 1; transform: scale(1) rotate(45deg); } }
/* opening: the arch comes alive, then the reply appears inside it */
.gate-wrap.opening .orn.leaf svg { animation: unfurl .9s var(--ease) both; animation-delay: calc(var(--s) * 300ms); }
.gate-wrap.opening .orn.cog svg { animation: turn 1.2s var(--ease) 1; }
.gate-wrap.opening .orn.gem { animation: gemspin 1s var(--ease); }
.gate-wrap.opening .orn.rivet { animation: blink .9s ease both; animation-delay: calc((1 - var(--s)) * 300ms); }
@keyframes unfurl { 0% { scale: .2; opacity: 0; } 60% { scale: 1.2; opacity: 1; } 100% { scale: 1; } }
@keyframes gemspin { 0% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -50%) scale(1.5) rotate(45deg); } 100% { transform: translate(-50%, -50%) rotate(90deg); } }
@keyframes blink { 50% { box-shadow: 0 0 0 .6px var(--brass-dk), 0 0 10px 3px rgba(228,200,143,.9); } }
@media (prefers-reduced-motion: reduce) { .gate-orn *, .gate-arc *, .gate-arc *::after { animation: none !important; } .gate-wrap { transition: none; } }

.gate-inner {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
  margin-top: -8%;
  padding: 0 clamp(1.1rem, 5vw, 2.4rem) clamp(1.8rem, 5vw, 2.4rem);
  gap: 1.2rem;
}
.gate-title { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; transition: opacity .4s ease, transform .6s var(--ease); }
.gate-title span { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 4.5vw, 1.65rem); line-height: 1.1; }
.gate-title em { font-family: var(--f-label); font-style: normal; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-dk); }
.gate-wrap .find { transition: opacity .4s ease, transform .6s var(--ease); }
.gate-wrap.opening .gate-title, .gate-wrap.opening .find, .gate-wrap.opening .choices { opacity: 0; transform: translateY(12px); }

/* finding the invitation */
.find { width: 100%; max-width: 30rem; display: flex; flex-direction: column; gap: .7rem; }
.find label { font-family: var(--f-label); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; text-align: center; color: var(--ink-soft); }
.find-row { display: flex; gap: .6rem; }
@media (max-width: 460px) { .find-row { flex-direction: column; } }
input[type="text"], input[type="email"], textarea {
  width: 100%; min-width: 0; font: inherit; font-size: 1.15rem; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(47,47,45,0.22); border-radius: 12px;
  padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(180,138,76,0.18); }
textarea { resize: vertical; min-height: 6rem; line-height: 1.5; }
.find-row input { border-radius: 999px; padding-inline: 1.3rem; }
.hint { font-size: 1rem; color: var(--ink-soft); text-align: center; }
.error { color: var(--danger); font-size: 1.02rem; text-align: center; min-height: 1px; }
.error:empty { display: none; }

.choices { width: 100%; max-width: 30rem; display: flex; flex-direction: column; gap: .8rem; }
.choices p { text-align: center; color: var(--ink-soft); }
.choice-btn { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; text-align: left; font: inherit; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.2rem; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.choice-btn:hover { border-color: var(--brass); transform: translateY(-1px); }
.choice-btn strong { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.3rem; }
.choice-btn span { color: var(--ink-soft); font-size: 1rem; }

/* the reply form, inside the gate */
.letter { width: 100%; position: relative; animation: letter-in .8s var(--ease) both; }
@keyframes letter-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .letter { animation: none; } }
.letter:focus { outline: none; }
.guest { scroll-margin-top: 5.5rem; }
.gate-wrap { scroll-margin-top: 6rem; }
.dear { font-family: var(--f-display); font-style: italic; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.15; text-align: center; text-wrap: balance; }
.letter-intro { text-align: center; color: var(--ink-soft); margin-top: .6rem; }
.banner { margin-top: 1.2rem; text-align: center; font-size: 1rem; color: var(--moss-dk); background: rgba(143,165,138,0.12); border-radius: 10px; padding: .6rem 1rem; }
.banner.closed { color: var(--brass-dk); background: rgba(180,138,76,0.1); }

.guest { border: 0; margin: 0; padding: 1.8rem 0 0; margin-top: 1.8rem; border-top: 1px solid var(--rule); min-width: 0; }
.guest > legend { padding: 0; font-family: var(--f-display); font-style: italic; font-size: 1.5rem; float: left; width: 100%; margin-bottom: 1rem; }
.guest > legend + * { clear: both; }
.attend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.attend label { position: relative; display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 1px solid rgba(47,47,45,0.18); border-radius: 14px; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.attend label:hover { border-color: var(--brass); }
.attend input { position: absolute; opacity: 0; pointer-events: none; }
.attend .icon { width: 28px; height: 28px; color: var(--moss-dk); transition: transform .4s var(--ease); }
.attend label.no .icon { color: var(--brass); }
.attend span { font-size: 1.1rem; line-height: 1.25; }
.attend input:checked + label, .attend label:has(input:checked) { border-color: var(--moss-dk); background: rgba(143,165,138,0.12); }
.attend label.no:has(input:checked) { border-color: var(--brass); background: rgba(180,138,76,0.09); }
.attend label:has(input:checked) .icon { transform: scale(1.15) rotate(-6deg); }
.attend label:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
@media (max-width: 420px) { .attend { grid-template-columns: minmax(0, 1fr); } }

.follow { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.follow > div { overflow: hidden; min-height: 0; }
.follow.open { grid-template-rows: 1fr; }
.follow-inner { display: flex; flex-direction: column; gap: 1.4rem; padding-top: 1.5rem; }
.q { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: .6rem; }
.q legend, .q > label { padding: 0; font-size: 1.05rem; line-height: 1.45; color: var(--ink); margin-bottom: .55rem; }
.q legend { float: left; width: 100%; }
.q legend + * { clear: both; }
.q small { color: var(--ink-soft); font-size: .95rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills label { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border: 1px solid rgba(47,47,45,0.2); border-radius: 999px; cursor: pointer; font-size: 1.02rem; line-height: 1.3; transition: border-color .2s, background-color .2s, color .2s; }
.pills label:hover { border-color: var(--brass); }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills label:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 3px; }
.pills.long { flex-direction: column; align-items: stretch; }
.pills.long label { border-radius: 14px; }

.together { margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 1.4rem; }
.together h3 { font-size: 1.4rem; }
.send { margin-top: 2.2rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.send .btn { min-width: 14rem; }
.field-error { color: var(--danger); font-size: 1rem; }

/* the reply, one short step at a time */
.step { display: flex; flex-direction: column; gap: 1.1rem; }
.step.fwd { animation: step-fwd .45s var(--ease) both; }
.step.back { animation: step-back .45s var(--ease) both; }
@keyframes step-fwd { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes step-back { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step.fwd, .step.back { animation: none; } }
.step h3:focus { outline: none; }
.step .letter-intro { margin-top: -.5rem; }
.step-head { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.45rem, 4.2vw, 1.8rem); line-height: 1.15; text-align: center; margin: 0; }
.progress { display: flex; justify-content: center; align-items: center; gap: .45rem; margin-bottom: -.2rem; }
.progress i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--brass); transition: background-color .3s, width .3s var(--ease), border-radius .3s; }
.progress i.done { background: var(--brass); }
.progress i.now { width: 22px; border-radius: 99px; background: var(--moss); border-color: var(--moss); }
.step-body { display: flex; flex-direction: column; gap: 1.2rem; }
.step-body .guest { margin: 0; padding: 0; border: 0; }
.step-body .guest + .guest { padding-top: 1rem; border-top: 1px solid var(--rule); }
.step-body .guest > legend { font-size: 1.25rem; margin-bottom: .6rem; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding-top: .4rem; }
.step-nav .btn { min-width: 9.5rem; }
.step-nav .pill:only-child { margin-left: auto; }
.same-as { align-self: flex-start; font: inherit; font-size: .98rem; color: var(--moss-dk); background: rgba(143,165,138,.12); border: 1px dashed var(--moss); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
.same-as:hover { background: rgba(143,165,138,.22); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.link { font: inherit; font-size: .98rem; color: var(--ink-soft); background: none; border: 0; padding: .2rem; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.link:hover { color: var(--brass-dk); text-decoration-color: currentColor; }
.thanks h3:focus { outline: none; }

/* thank you */
.thanks { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.thanks .icon { width: 54px; height: 54px; color: var(--moss-dk); stroke-width: 1.2; }
.thanks ul { list-style: none; padding: 0; margin: .6rem 0 0; width: 100%; max-width: 28rem; text-align: left; border-top: 1px solid var(--rule); }
.thanks li { padding: .8rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: .15rem; }
.thanks li strong { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 1.25rem; }
.thanks li span { color: var(--ink-soft); font-size: 1rem; }
.thanks .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .8rem; }

.burst { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* ---------- schedule: from noon to midnight ---------- */
.sky {
  --dusk-at: 62%; --night-at: 72%;
  /* --gold-at, --dusk-at and --night-at are measured from the events by site.js, so each colour change falls between them */
  --gold-at: 48%;
  background: linear-gradient(to bottom,
    var(--wash) 0%, var(--wash) calc(var(--gold-at) - 14%),
    #f6ebd8 var(--gold-at),
    #e3d3d6 calc((var(--gold-at) + var(--dusk-at)) / 2),
    #c7bccd var(--dusk-at),
    #c3b8cb var(--dusk-end, var(--dusk-at)),
    #59607a calc(var(--night-at) - 0.4%),
    var(--night) calc(var(--night-at) + 1.6%), var(--night) 100%);
  overflow: hidden;
}
.stars { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff6df; box-shadow: 0 0 6px rgba(255, 240, 200, 0.9); opacity: 0; animation: twinkle var(--t, 4s) ease-in-out var(--d, 0s) infinite; }
.star.big { width: 3px; height: 3px; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.95; } }
@media (prefers-reduced-motion: reduce) { .star { animation: none; opacity: 0.6; } }
.timeline-wrap { position: relative; max-width: 44rem; margin: 0 auto; }
.vine { position: absolute; left: calc(5.6rem + 1.1rem + 21px); top: 0.6rem; bottom: 0.6rem; width: 1.5px; background: rgba(180,138,76,0.18); }
.vine-fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--grow, 1)); background: linear-gradient(var(--moss) 0%, var(--moss) 35%, var(--brass) 62%, var(--brass-hi) 100%); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ev { display: grid; grid-template-columns: 5.6rem 44px minmax(0, 1fr); column-gap: 1.1rem; align-items: start; padding-block: 1rem; }
.ev time { font-family: var(--f-label); font-size: 1rem; letter-spacing: 0.08em; text-align: right; padding-top: 0.55rem; font-variant-numeric: tabular-nums lining-nums; transition: color .6s; }
.ev .node { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule); display: grid; place-items: center; color: var(--brass); position: relative; z-index: 1; transition: transform .6s var(--ease), box-shadow .6s, background-color .6s, border-color .6s; }
.ev .node .icon { width: 24px; height: 24px; }
.ev[data-phase="day"] .node { color: var(--moss-dk); border-color: rgba(143,165,138,0.5); }
.ev .ev-body { min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.3rem; }
.ev .ev-body p { color: var(--ink-soft); transition: color .6s; }
.ev[data-phase="night"] time, .ev[data-phase="night"] h3 { color: var(--night-ink); }
.ev[data-phase="night"] .ev-body p { color: var(--night-soft); }
.ev[data-phase="night"] .node { background: #263045; border-color: rgba(228,200,143,0.45); color: var(--brass-hi); }
/* before the vine reaches an event, it waits a little faded; when lit, its node blooms */
.js-timeline .ev { opacity: .42; transition: opacity .6s ease; }
.js-timeline .ev.lit { opacity: 1; }
.js-timeline .ev.lit .node { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(180,138,76,0.1); }
.js-timeline .ev[data-phase="night"].lit .node { box-shadow: 0 0 0 6px rgba(228,200,143,0.12), 0 0 22px rgba(228,200,143,0.35); }
@media (max-width: 560px) {
  .vine { left: 21px; }
  .ev { grid-template-columns: 44px minmax(0, 1fr); }
  .ev time { grid-column: 2; grid-row: 1; text-align: left; padding-top: 0; font-size: 0.85rem; letter-spacing: 0.14em; color: var(--brass-dk); }
  .ev .node { grid-column: 1; grid-row: 1 / span 2; }
  .ev .ev-body { grid-column: 2; padding-top: 0.1rem; }
  .ev[data-phase="night"] time { color: var(--brass-hi); }
}
@media (prefers-reduced-motion: reduce) { .js-timeline .ev { opacity: 1; } }

/* ---------- travel ---------- */
.callout { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--brass); border-radius: 14px; padding: 1.2rem 1.4rem; background: rgba(251,248,242,0.7); }
.callout .icon { color: var(--brass); }
.callout strong { font-weight: 500; }
.route { display: block; width: 100%; max-width: 46rem; height: auto; margin: 2.6rem auto 2.4rem; overflow: visible; }
.route-tall { display: none; max-width: 20rem; }
@media (max-width: 620px) { .route-wide { display: none; } .route-tall { display: block; } }
.route text { font-family: var(--f-label); font-size: 11px; letter-spacing: 0.14em; fill: var(--ink-soft); text-transform: uppercase; }
.route .big { font-family: var(--f-display); font-style: italic; font-size: 17px; letter-spacing: 0; fill: var(--ink); text-transform: none; }
.route .track { fill: none; stroke: #b48a4c; stroke-width: 1.4; stroke-dasharray: 2 6; stroke-linecap: round; opacity: .55; }
.route .trail { fill: none; stroke: #b48a4c; stroke-width: 1.6; stroke-linecap: round; }
.route .stop { fill: #fff; stroke: #b48a4c; stroke-width: 1.4; }
.route .stop-dot { fill: #b48a4c; }
.route .coach rect, .route .coach circle { fill: #fff; stroke: #b48a4c; stroke-width: 1.3; }
.route .coach path { fill: none; stroke: #b48a4c; stroke-width: 1.1; }
.legs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 860px) { .legs { grid-template-columns: minmax(0, 1fr); } }
.leg { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.leg .when { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; font-family: var(--f-label); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-dk); }
.leg .times { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.1; font-variant-numeric: lining-nums; }
.leg .times span { color: var(--brass); font-size: 0.7em; padding-inline: 0.2em; }
.leg p { font-size: 1.05rem; color: var(--ink-soft); }

/* what to wear */
.motto { font-family: var(--f-display); font-style: italic; font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.1; text-align: center; text-wrap: balance; }
.motto-sub { font-family: var(--f-label); font-size: 0.8rem; letter-spacing: 0.26em; text-transform: uppercase; text-align: center; color: var(--brass-dk); margin-top: 1rem; margin-right: -0.26em; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: clamp(2.6rem, 5vw, 3.6rem); }
@media (max-width: 760px) { .trio { grid-template-columns: minmax(0, 1fr); } }
.trio > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; min-width: 0; }
.trio .icon { width: 40px; height: 40px; color: var(--brass); stroke-width: 1.2; }
.trio .green .icon { color: var(--moss-dk); }
.trio p { font-size: 1.05rem; color: var(--ink-soft); max-width: 18rem; }

/* participation */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.6rem; perspective: 1000px; }
@media (max-width: 860px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 1.7rem 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.card .icon { width: 38px; height: 38px; stroke-width: 1.2; color: var(--brass); }
.card.green .icon { color: var(--moss-dk); }
.card p { font-size: 1.05rem; color: var(--ink-soft); }
.card a { color: var(--brass-dk); text-underline-offset: 3px; }
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease), box-shadow .5s, opacity .9s var(--ease); }
.tilt:hover { box-shadow: 0 24px 40px -30px rgba(70,50,20,0.4); }
.tilt.pending { transform: perspective(900px) translateY(18px); }

/* gift list: a small line drawing of Costa Rica, where we're going on honeymoon */
.costa { --costa-bg: var(--wash); display: block; width: min(440px, 100%); height: auto; margin: .4rem auto 1.6rem; overflow: visible; }
.gift-note { max-width: 32rem; margin: .8rem auto 0; color: var(--ink-soft); }
.hummer { transform-box: fill-box; transform-origin: 50% 50%; }
.hummer .wing { transform-box: fill-box; transform-origin: 0% 100%; }
.live .hummer { animation: hover 3.4s ease-in-out infinite; }
.live .hummer .wing { animation: flutter .18s ease-in-out infinite alternate; }
@keyframes hover { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-3px, -4px); } 60% { transform: translate(2px, -1px); } }
@keyframes flutter { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
.costa-cloud { transform-box: fill-box; }
.live .costa-cloud { animation: drift 9s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateX(6px); } }
.parcel { width: 84px; height: 84px; color: var(--brass); stroke-width: 1; margin: 0 auto 1.2rem; display: block; }

/* footer */
.foot { text-align: center; padding-block: 4rem calc(3rem + env(safe-area-inset-bottom, 0px)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); border-top: 1px solid var(--rule); display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.foot .monogram { font-size: 2.2rem; }
.foot .date { font-size: 0.78rem; color: var(--ink-soft); }
.foot .pill { margin-top: 1rem; }

/* ---------- photos of us ---------- */
/* an arched frame: a hairline sage on the left and brass on the right, with a little gem at the top */
.arch { --fx: 50%; --fy: 40%; position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.arch .frame {
  position: relative; display: block; width: 100%; padding: 6px; cursor: zoom-in;
  border: 1px solid transparent; border-radius: 999px 999px 12px 12px;
  background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(90deg, var(--moss) 50%, var(--brass) 50%) border-box;
  transition: transform .5s var(--ease);
}
.arch .frame:hover { transform: translateY(-3px); }
.arch .frame:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.arch .crop { display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 999px 999px 7px 7px; background: var(--wash);
  -webkit-mask-image: -webkit-radial-gradient(#fff, #000); } /* keeps Safari clipping the zoomed photo to the curve */
/* cover the frame, keep the chosen point in place, and zoom in around it */
.arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx) var(--fy); transform: scale(var(--z, 1)); transform-origin: var(--fx) var(--fy); }
.arch .frame::after { /* the gem */
  content: ""; position: absolute; left: 50%; top: -9px; width: 15px; height: 17px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M8 1l7 8-7 8-7-8z' fill='%23dfe8ec' stroke='%23b48a4c'/%3E%3Cpath d='M1 9h14M8 1v16' stroke='%23b48a4c' stroke-width='.5' opacity='.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.arch .frame::before { /* a sprig on the left shoulder, a rivet pair on the right */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 13C6 12.5 3 8 4 4c4.5.3 8 4 8 9zM12 13c1-5 5-7.5 9-6.5-.7 4-4.2 6.5-9 6.5z' fill='%238fa58a'/%3E%3C/svg%3E") 9% 9% / 22px 22px no-repeat,
    radial-gradient(circle, var(--brass-hi) 0 1.6px, var(--brass-dk) 2.1px, transparent 2.6px) 90% 11% / 6px 6px no-repeat,
    radial-gradient(circle, var(--brass-hi) 0 1.6px, var(--brass-dk) 2.1px, transparent 2.6px) 95.5% 20% / 6px 6px no-repeat;
}
.arch figcaption { font-family: var(--f-display); font-style: italic; font-size: 1.02rem; color: var(--ink-soft); text-align: center; line-height: 1.3; }

/* welcome: a portrait beside the words */
.welcome.has-photo .col { max-width: 62rem; }
.welcome-body { display: grid; gap: 2.4rem; align-items: center; }
.welcome.has-photo .welcome-body { grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 4.5rem); }
.welcome.has-photo .portrait { width: 100%; }
@media (max-width: 760px) {
  .welcome.has-photo .welcome-body { grid-template-columns: minmax(0, 1fr); }
  .welcome.has-photo .portrait { max-width: 15rem; margin: 0 auto; }
}

/* our story: up to three arches, the middle one a little taller */
.story-photos { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.9rem, 3.5vw, 2.4rem); margin: 0 auto clamp(2.2rem, 5vw, 3rem); max-width: 46rem; }
.story-photos .arch { flex: 0 1 13.5rem; min-width: 0; }
.story-photos[data-n="3"] .arch:nth-child(2) { flex-basis: 16rem; }
.story-photos[data-n="3"] .arch:nth-child(1) { transform: rotate(-1.5deg); }
.story-photos[data-n="3"] .arch:nth-child(3) { transform: rotate(1.5deg); }
.story-photos[data-n="1"] .arch { flex-basis: 17rem; }
@media (max-width: 560px) { .story-photos .arch figcaption { font-size: .9rem; } }

/* the strip: a band of photos drifting slowly sideways */
.strip-section { padding-inline: 0; overflow: hidden; }
.strip-section .col { padding-inline: var(--gutter-l) var(--gutter-r); }
.strip { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; padding: 14px 0 4px; outline-offset: -4px; }
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; user-select: none; }
.strip.fits { cursor: default; }
.strip-track { display: flex; gap: clamp(1rem, 2.4vw, 1.8rem); width: max-content; padding-inline: var(--gutter-l) var(--gutter-r); }
.strip.fits .strip-track { margin: 0 auto; }
.strip .arch { --h: clamp(210px, 30vw, 330px); --r: min(calc(var(--h) * var(--ar) / 2), calc(var(--h) * .36)); flex: none; width: calc(var(--h) * var(--ar) + 14px); }
.strip .arch .crop { aspect-ratio: auto; height: var(--h); border-radius: var(--r) var(--r) 7px 7px; }
.strip .arch .frame { border-radius: calc(var(--r) + 6px) calc(var(--r) + 6px) 12px 12px; }
.strip .arch.alt .frame { border-radius: 16px; background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(90deg, var(--brass) 50%, var(--moss) 50%) border-box; }
.strip .arch.alt .crop { border-radius: 11px; }
.strip .arch.alt .frame::before { display: none; }
.strip .arch.low { margin-top: 1.6rem; }
.strip-nav { display: flex; justify-content: center; gap: .7rem; margin-top: 1.6rem; }
.strip.fits ~ .strip-nav { display: none; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.round:hover { border-color: var(--brass); transform: translateY(-1px); }
.round svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* looking closer */
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(250, 250, 247, .97); }
.lightbox::backdrop { background: rgba(40, 38, 32, .4); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 64px clamp(16px, 7vw, 90px) 28px; max-width: 100%; max-height: 100%; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; border-radius: 10px; box-shadow: 0 30px 70px -40px rgba(40,30,15,.6); }
.lightbox figcaption { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); text-align: center; }
.lightbox figcaption:empty { display: none; }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: var(--gutter-r); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(calc(-50% - 1px)); }
.lb-prev { left: var(--gutter-l); } .lb-next { right: var(--gutter-r); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; } .lb-prev:hover, .lb-next:hover { transform: none; } .lightbox figure { padding-bottom: 80px; } }
@media (prefers-reduced-motion: reduce) { .arch .frame, .lightbox[open] { transition: none; animation: none; } }

/* ---------- little touches, like the coach on the travel map ---------- */
/* Looping ones only run while their section is on screen (.live, set in site.js), and none run for reduced motion. */
.glyph { position: relative; display: inline-flex; }
.card > .glyph { align-self: flex-start; } /* stay icon-sized inside a card, so the notes rise from the fiddle */

/* our story: a d20 rolls along the trail, and each medallion glows as it arrives */
.story-marks .medallion { z-index: 1; transition: border-color .5s, box-shadow .5s, color .5s; }
.story-marks .medallion.met { border-color: var(--brass); box-shadow: 0 0 0 5px rgba(228, 200, 143, .22), 0 10px 24px -18px rgba(70,50,20,.5); animation: met .6s var(--ease); }
@keyframes met { 40% { transform: scale(1.09); } }
.die { position: absolute; top: 50%; left: var(--x, 32px); width: 24px; height: 24px; margin: -12px 0 0 -12px; color: var(--brass-dk); transform: rotate(var(--spin, 0deg)); opacity: 0; transition: opacity .4s; }
.die .icon { width: 24px; height: 24px; fill: var(--paper); stroke-width: 1.5; }
.die.on { opacity: 1; }

/* the schedule: one shooting star once the vine reaches midnight */
.shooting { position: absolute; width: 110px; height: 1.5px; border-radius: 2px; transform: rotate(-24deg); transform-origin: right center;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 223, .95)); filter: drop-shadow(0 0 4px rgba(255, 240, 200, .9));
  opacity: 0; animation: shoot 1.4s cubic-bezier(.3, .6, .4, 1) forwards; }
@keyframes shoot { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 100% { opacity: 0; translate: -190px 85px; } }

/* what to wear: a flickering fire, and rain past the umbrella */
.flicker .icon { transform-origin: 50% 85%; }
.live .flicker .icon { animation: flicker 2.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) skewX(0); } 25% { transform: scale(.97, 1.05) skewX(-2deg); } 50% { transform: scale(1.02, .97) skewX(1.5deg); } 75% { transform: scale(.98, 1.04) skewX(-1deg); } }
.drops { position: absolute; inset: -14px -10px 4px; pointer-events: none; }
.drops i { position: absolute; top: 0; width: 1.5px; height: 7px; border-radius: 2px; background: var(--moss); opacity: 0; }
.drops i:nth-child(1) { left: 6%; } .drops i:nth-child(2) { left: 34%; } .drops i:nth-child(3) { left: 66%; } .drops i:nth-child(4) { left: 94%; }
.live .drops i { animation: drop 1.9s linear infinite; }
.live .drops i:nth-child(2) { animation-delay: -.6s; } .live .drops i:nth-child(3) { animation-delay: -1.3s; } .live .drops i:nth-child(4) { animation-delay: -.9s; }
/* drops over the canopy stop at it; the outer ones fall past */
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 15% { opacity: .8; } 45% { opacity: .8; } 55%, 100% { transform: translateY(22px); opacity: 0; } }
.live .drops i:nth-child(1), .live .drops i:nth-child(4) { animation-name: drop-past; }
@keyframes drop-past { 0% { transform: translateY(-6px); opacity: 0; } 15% { opacity: .8; } 80% { opacity: .6; } 100% { transform: translateY(54px); opacity: 0; } }

/* participation: notes drift up from the fiddle, and the quill scribbles now and then */
.notes { position: absolute; left: 70%; top: -4px; pointer-events: none; }
.notes i { position: absolute; font-style: normal; font-size: 1rem; line-height: 1; color: var(--moss-dk); opacity: 0; }
.live .notes i { animation: note 4.2s ease-out infinite; }
.live .notes i:nth-child(2) { animation-delay: 1.4s; font-size: .85rem; }
.live .notes i:nth-child(3) { animation-delay: 2.8s; }
@keyframes note { 0% { transform: translate(0, 6px) rotate(-8deg); opacity: 0; } 15% { opacity: .9; } 70% { opacity: .5; } 100% { transform: translate(18px, -30px) rotate(10deg); opacity: 0; } }
.scribble .icon { transform-origin: 20% 90%; }
.live .scribble .icon { animation: scribble 5s ease-in-out infinite 1s; }
@keyframes scribble { 0%, 70%, 100% { transform: none; } 74% { transform: translate(2px, -1px) rotate(-6deg); } 78% { transform: translate(-1px, 1px) rotate(4deg); } 82% { transform: translate(2px, 0) rotate(-5deg); } 86% { transform: none; } }

/* gift list: the parcel hops now and then, as if something's inside */
.glyph.hop { display: block; width: fit-content; margin: 0 auto 1.2rem; }
.glyph.hop .parcel { margin: 0; transform-origin: 50% 100%; }
.live .hop .parcel { animation: hop 4.5s ease-in-out infinite 1.2s; }
@keyframes hop { 0%, 76%, 100% { transform: none; } 80% { transform: translateY(-7px) rotate(-3deg); } 84% { transform: translateY(0) scale(1.04, .96); } 87% { transform: translateY(-3px) rotate(2deg); } 90% { transform: none; } }
.sparks { position: absolute; inset: 0; pointer-events: none; }
.sparks i { position: absolute; width: 9px; height: 9px; opacity: 0;
  background: radial-gradient(circle, var(--brass-hi) 0 1px, transparent 1.6px), linear-gradient(transparent 44%, var(--brass) 44% 56%, transparent 56%), linear-gradient(90deg, transparent 44%, var(--brass) 44% 56%, transparent 56%); }
.sparks i:nth-child(1) { left: -4px; top: 22%; } .sparks i:nth-child(2) { right: -6px; top: 8%; } .sparks i:nth-child(3) { right: 8%; top: -6px; }
.live .sparks i { animation: spark 4.5s ease-out infinite 1.2s; }
.live .sparks i:nth-child(2) { animation-delay: 1.35s; } .live .sparks i:nth-child(3) { animation-delay: 1.5s; }
@keyframes spark { 0%, 78%, 100% { opacity: 0; transform: scale(.3); } 84% { opacity: 1; transform: scale(1) rotate(45deg); } 92% { opacity: 0; transform: scale(.6) rotate(90deg); } }

@media (prefers-reduced-motion: reduce) {
  .live .flicker .icon, .live .drops i, .live .notes i, .live .scribble .icon, .live .hop .parcel, .live .sparks i, .live .hummer, .live .hummer .wing, .live .costa-cloud, .shooting, .story-marks .medallion.met { animation: none !important; }
  .die { display: none; }
}
