:root {
  --cream: #f6ead2; --ash: #cfc5b4; --ember: #ff9a3d; --flame: #ffc56b; --coal: #070b1c; --pad: clamp(22px, 5vw, 72px);
  --hand: var(--font-display); --stamp: var(--font-body); --body: var(--font-body);
}
html { background: var(--coal); }
body { color: var(--cream); font: 400 clamp(17px, 1.25vw, 20px)/1.5 var(--body); overflow-x: clip; }
.defs { position: absolute; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100lvh; max-width: none; z-index: 0; }
#page { position: relative; z-index: 2; }

/* Static night used without WebGL: the painting, a pool of light and a still flame. */
.fallback { position: fixed; inset: 0; z-index: 0; background: #0a1230 url(camp.webp) 50% 100% / cover no-repeat; display: none; }
.fallback::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60vmax 44vmax at 50% 76%, rgba(255, 150, 60, .5), rgba(255, 110, 30, .12) 50%, transparent 72%), linear-gradient(rgba(5, 8, 24, .55), transparent 44%); mix-blend-mode: screen; }
.fallback svg { position: absolute; left: 50%; bottom: 19%; width: clamp(150px, 15vw, 230px); max-width: none; transform: translateX(-50%); z-index: 1; overflow: visible; filter: drop-shadow(0 0 26px rgba(255, 140, 40, .75)); }
.no-gl #gl { display: none; }
.no-gl .fallback { display: block; }
.fallback::before { content: ''; position: absolute; inset: 0; background: rgba(5, 8, 24, .34); }

/* Stamps and labels */
.tag { display: inline-block; font: 700 clamp(13px, 1.05vw, 15px)/1 var(--stamp); letter-spacing: .2em; text-transform: uppercase; color: var(--flame); padding: 9px 12px 8px; border: 2px solid currentColor; border-radius: 3px; transform: rotate(-2deg); filter: url(#stamp); }
.is-embed .tag { filter: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; padding: clamp(22px, 5vh, 54px) var(--pad) 0; display: grid; justify-items: center; align-content: start; text-align: center; }
.hero .tag { margin-bottom: clamp(10px, 2vh, 22px); }
h1 { font: 400 clamp(84px, 11.6vw, 200px)/.92 var(--hand); text-shadow: 0 2px 26px rgba(6, 8, 26, .78), 0 0 60px rgba(255, 150, 70, .3); display: flex; flex-wrap: wrap; justify-content: center; column-gap: .24em; }
h1 > span { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform; }
.hero__date { margin-top: clamp(10px, 2vh, 20px); font: 700 clamp(15px, 1.5vw, 22px)/1.2 var(--stamp); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 14px rgba(6, 8, 26, .95); }
.badge { position: absolute; right: clamp(16px, 4vw, 70px); top: 22px; width: clamp(104px, 9.6vw, 150px); aspect-ratio: 1; color: var(--flame); filter: drop-shadow(0 2px 14px rgba(6, 8, 26, .8)); }
.badge svg { width: 100%; height: 100%; overflow: visible; }
.badge .spin { transform-origin: 100px 100px; animation: turn 34s linear infinite; }
.badge text { font: 700 17.2px var(--stamp); letter-spacing: .165em; text-transform: uppercase; fill: currentColor; }
.badge .mono { font: 400 56px var(--hand); letter-spacing: 0; text-transform: none; }
@keyframes turn { to { transform: rotate(360deg); } }
.firebtn { position: fixed; width: 170px; height: 220px; margin: -180px 0 0 -85px; left: 50%; top: 80%; background: none; border: 0; cursor: pointer; border-radius: 50%; z-index: 3; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.firebtn[hidden] { display: none; }
.firehint { position: absolute; left: 50%; bottom: -52px; transform: translateX(-50%); white-space: nowrap; font: 400 clamp(19px, 1.8vw, 24px)/1 var(--hand); color: var(--cream); text-shadow: 0 1px 10px #000, 0 0 24px rgba(0, 0, 0, .9); transition: opacity .5s; animation: hint 2.6s ease-in-out infinite; }
@keyframes hint { 50% { translate: 0 -5px; } }
.thrown .firehint { opacity: 0; }
.cue { position: absolute; left: var(--pad); bottom: 26px; font: 700 12px/1 var(--stamp); letter-spacing: .24em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; text-shadow: 0 0 10px #000; }
.cue::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--flame), transparent); animation: drip 1.9s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Blocks */
.s { position: relative; padding: clamp(70px, 13vh, 150px) var(--pad); max-width: 1320px; margin-inline: auto; }
h2 { font: 400 clamp(52px, 8vw, 120px)/1 var(--hand); text-shadow: 0 2px 24px rgba(6, 8, 26, .8), 0 0 44px rgba(255, 140, 60, .22); }
h2 .wd { display: inline-block; white-space: nowrap; }
h3 { font: 700 clamp(14px, 1.1vw, 16px)/1.25 var(--stamp); letter-spacing: .15em; text-transform: uppercase; color: var(--flame); }
.patch { background: rgba(7, 11, 28, .68); border-radius: 10px; padding: clamp(22px, 3vw, 44px); outline: 1.5px dashed rgba(255, 197, 107, .5); outline-offset: -9px; }
[data-rise] { opacity: 0; }
[data-rise].lit { animation: ember var(--dur, 1.5s) cubic-bezier(.19, .8, .24, 1) both; animation-delay: var(--delay, 0s); }
@keyframes ember {
  0% { opacity: 0; transform: translate3d(calc(var(--drift, 14px) * -1), 140px, 0) rotate(calc(var(--tilt, 2deg) * -1)) scale(.97); filter: brightness(2.1) sepia(1) saturate(2.6) hue-rotate(-18deg); }
  36% { opacity: 1; transform: translate3d(var(--drift, 14px), 22px, 0) rotate(var(--tilt, 2deg)); filter: brightness(1.45) sepia(.6) saturate(1.8) hue-rotate(-12deg); }
  68% { transform: translate3d(calc(var(--drift, 14px) * -.4), -9px, 0) rotate(calc(var(--tilt, 2deg) * -.3)); filter: brightness(1.08) sepia(.1); }
  100% { opacity: 1; transform: none; filter: none; }
}
h2 .ch { transform: translateY(.9em) rotate(calc(var(--r) * 1deg)); opacity: 0; color: var(--ember); transition: transform .95s cubic-bezier(.17, 1.3, .34, 1), opacity .4s, color 1.3s; transition-delay: calc(var(--i) * 28ms + .12s); }
.lit h2 .ch, h2.lit .ch { transform: none; opacity: 1; color: var(--cream); }

/* Countdown: sits above the fire when the camera has moved in. */
.cd { min-height: 100svh; display: grid; align-content: start; justify-items: center; padding-top: clamp(40px, 9vh, 90px); text-align: center; }
.dials { margin-top: clamp(14px, 3vh, 30px); display: grid; grid-template-columns: repeat(4, auto); gap: clamp(14px, 3.4vw, 56px); }
.dials b { display: block; font: 400 clamp(52px, 10.5vw, 158px)/1 var(--hand); color: var(--cream); text-shadow: 0 0 34px rgba(255, 138, 40, .75), 0 2px 18px rgba(6, 8, 26, .9); font-variant-numeric: tabular-nums; min-width: 1.1em; }
.dials span { font: 700 clamp(11px, 1vw, 14px)/1 var(--stamp); letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 0 10px #000; }

/* Venue */
.venue { display: grid; gap: 16px; justify-items: start; }
.venue h2 { font-size: clamp(64px, 13vw, 190px); }
.venue address { font-style: normal; font-size: clamp(18px, 1.7vw, 25px); text-shadow: 0 1px 12px #000; }
.go { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 18px 10px; color: var(--coal); background: var(--flame); font: 700 15px/1 var(--stamp); letter-spacing: .15em; text-transform: uppercase; text-decoration: none; border-radius: 4px; transition: transform .35s cubic-bezier(.2, 1.6, .4, 1), background .3s; transform: rotate(-1.5deg); }
.go:hover { transform: rotate(1deg) scale(1.05); background: #ffdb9a; }

/* Timeline as a constellation */
.sky { position: relative; margin-top: 30px; display: grid; gap: clamp(34px, 7vh, 68px); }
.sky > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sky path { fill: none; stroke: rgba(255, 216, 150, .7); stroke-width: 1.3; stroke-dasharray: 3 7; }
.star { position: relative; width: max-content; max-width: 100%; display: grid; grid-template-columns: auto auto; gap: 2px 22px; align-items: baseline; padding-left: 34px; }
.star:nth-child(2) { margin-left: 0; } .star:nth-child(3) { margin-left: 34%; } .star:nth-child(4) { margin-left: 62%; } .star:nth-child(5) { margin-left: 24%; } .star:nth-child(6) { margin-left: 50%; }
.star::before { content: ''; position: absolute; left: 0; top: .9em; width: 14px; height: 14px; border-radius: 50%; background: #fff5da; box-shadow: 0 0 10px 3px #ffd68c, 0 0 34px 10px rgba(255, 170, 70, .55); animation: tw 3.4s ease-in-out infinite; animation-delay: calc(var(--n) * -.9s); }
@keyframes tw { 50% { transform: scale(.66); opacity: .72; } }
.star time { font: 400 clamp(48px, 6.4vw, 94px)/1 var(--hand); text-shadow: 0 2px 20px #05081c; }
.star span { font: 700 clamp(14px, 1.3vw, 19px)/1.2 var(--stamp); letter-spacing: .15em; text-transform: uppercase; color: var(--flame); text-shadow: 0 1px 10px #05081c; }

/* Practical block */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.2vw, 30px); align-items: start; }
.dress { grid-column: 1 / span 5; }
.menu { grid-column: 6 / span 7; transform: translateY(46px); }
.way { grid-column: 2 / span 9; margin-top: 46px; }
.dress p { font: 400 clamp(25px, 2.5vw, 38px)/1.2 var(--hand); margin-top: 18px; }
.menu ul { margin-top: 18px; display: grid; gap: 14px; }
.menu li { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; align-items: baseline; }
.way > div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin-top: 18px; }
.way h3 { margin-bottom: 7px; }

/* FAQ */
.faq details { border-bottom: 1px dashed rgba(255, 197, 107, .45); padding: 16px 0; }
.faq details:first-of-type { margin-top: 12px; }
.faq summary { font: 400 clamp(24px, 2.6vw, 38px)/1.15 var(--hand); cursor: pointer; list-style: none; display: flex; gap: 14px; justify-content: space-between; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--flame); transition: transform .35s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-top: 10px; max-width: 62ch; }

/* RSVP */
.answer { max-width: 760px; margin-inline: auto; }
.answer h2 { text-align: center; margin-bottom: 26px; font-size: clamp(64px, 10vw, 150px); }
.rsvp { gap: 18px; }
.rsvp__choice legend { font: 700 14px/1 var(--stamp); letter-spacing: .15em; text-transform: uppercase; color: var(--flame); }
.rsvp__choice label span { display: flex; align-items: center; min-height: 48px; padding: 8px 18px; border: 2px solid rgba(255, 197, 107, .6); border-radius: 5px; font: 400 22px/1 var(--hand); transition: transform .3s cubic-bezier(.2, 1.6, .4, 1), background .25s, color .25s; }
.rsvp__choice label:hover span { transform: rotate(-1.5deg) scale(1.03); }
.rsvp__choice input:checked + span { background: var(--flame); color: var(--coal); border-color: var(--flame); transform: rotate(-1.5deg); }
.rsvp__choice input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 3px; }
.rsvp__field > span { font: 700 13px/1.2 var(--stamp); letter-spacing: .13em; text-transform: uppercase; color: var(--ash); }
.rsvp__field input { background: rgba(255, 245, 225, .06); border: 0; border-bottom: 2px solid rgba(255, 197, 107, .65); border-radius: 3px 3px 0 0; padding: 8px 12px; font-size: 18px; }
.rsvp__field input:focus { background: rgba(255, 245, 225, .13); outline: none; border-color: var(--cream); }
.rsvp__submit { background: var(--ember); color: #1b0c02; border: 0; border-radius: 5px; padding: 12px 22px 10px; font: 700 16px/1 var(--stamp); letter-spacing: .15em; text-transform: uppercase; transition: transform .3s cubic-bezier(.2, 1.6, .4, 1), background .3s; }
.rsvp__submit:hover { transform: scale(1.025) rotate(-.5deg); background: var(--flame); }
.rsvp__note { font-size: 16px; opacity: .85; }
.rsvp.is-sent .rsvp__note { font: 400 25px/1.2 var(--hand); color: var(--flame); }
.rsvp.is-error .rsvp__note { color: #ffb19a; }

/* Gift and signature */
.gift { max-width: 860px; margin-inline: auto; text-align: center; }
.gift h2 { font-size: clamp(46px, 6.8vw, 100px); }
.gift > p { margin-top: 18px; }
.iban { margin: 26px auto 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; min-height: 52px; padding: 12px 18px; background: rgba(255, 245, 225, .07); border: 1.5px dashed var(--flame); border-radius: 6px; cursor: pointer; font: 700 clamp(14px, 1.45vw, 19px)/1.2 var(--stamp); letter-spacing: .07em; }
.iban em { font-style: normal; color: var(--flame); letter-spacing: .15em; text-transform: uppercase; font-size: 13px; }
.iban:hover { background: rgba(255, 245, 225, .14); }
.sign { padding: clamp(80px, 22vh, 200px) var(--pad) clamp(60px, 14vh, 130px); text-align: center; }
.sign p:first-child { white-space: nowrap; font: 400 clamp(52px, 14.2vw, 190px)/1 var(--hand); text-shadow: 0 0 44px rgba(255, 150, 70, .4); clip-path: inset(-20% 100% -20% 0); transition: clip-path 2.6s cubic-bezier(.45, 0, .2, 1) .2s; }
.sign.lit p:first-child { clip-path: inset(-20% -5% -20% 0); }
.sign .tag { margin-top: 18px; }

@media (max-width: 760px) {
  h1 { font-size: 27vw; line-height: .88; flex-direction: column; align-items: center; }
  .hero { padding-top: 22px; }
  .hero__date { font-size: 14.5px; letter-spacing: .1em; }
  .badge { right: 12px; top: auto; bottom: 19svh; width: 92px; }
  .cue { left: 18px; bottom: 20px; }
  .dials { gap: 10px; }
  .dials b { font-size: 15vw; }
  .dials span { font-size: 10.5px; letter-spacing: .08em; }
  .star:nth-child(n) { margin-left: 0; padding-left: 28px; grid-template-columns: 1fr; }
  .star:nth-child(3), .star:nth-child(5) { margin-left: 16%; }
  .star:nth-child(4) { margin-left: 30%; }
  .grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .dress, .menu, .way { grid-column: 1; transform: none; margin-top: 0; }
  .menu li { grid-template-columns: 1fr; gap: 3px; }
  .way > div { grid-template-columns: 1fr; }
  .iban { width: 100%; }
}
@media (min-width: 761px) and (max-height: 620px) { h1 { font-size: 15vh; } }
@media (min-width: 761px) and (max-aspect-ratio: 1/1) { h1 { font-size: 15.5vw; } }

.is-embed .hero { min-height: 100vh; }
.is-embed .ch { will-change: auto; }
.is-embed .cue, .is-embed .firehint { display: none; }

@media (prefers-reduced-motion: reduce) {
  [data-rise] { opacity: 1; }
  h2 .ch { transform: none; opacity: 1; color: var(--cream); }
  .sign p:first-child { clip-path: none; }
  .firebtn, .cue::after { display: none; }
}
.still [data-rise] { opacity: 1; }
.still h2 .ch { transform: none; opacity: 1; color: var(--cream); }
.still .sign p:first-child { clip-path: none; }

/* The initial painting is complete before the optional WebGL scene boots. */
:root { --cream: var(--ink); --coal: var(--paper); --flame: var(--accent); --ember: var(--accent2); --ash: var(--ink-soft); }
.fallback { display: block; background-position: 50% 100%; }
.fallback::before { background: linear-gradient(#050918c4, #05091850 50%,#05091844); }
#gl { opacity: 0; transition: opacity .6s; }
.gl-ready #gl { opacity: 1; }
.gl-ready:not(.no-gl) .fallback { visibility: hidden; }
.hero { padding-top: clamp(28px,5vh,58px); gap: 12px; }
h1 { width: 100%; font-size: clamp(84px,12vw,180px); line-height: .95; }
h1 small { font: inherit; font-size: .6em; }
.hero__date { line-height: 1.4; max-width: 35ch; }
.hero__place { font-size: clamp(16px,1.4vw,21px); text-shadow: 0 2px 12px #050918; max-width: 35ch; }
.s { min-height: 90svh; display: grid; align-content: center; }
.cd { min-height: 100svh; align-content: start; padding-top: 70px; }
.cd .v-kicker { font-weight: 700; text-transform: uppercase; color: var(--flame); letter-spacing: .15em; }
.v-count { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(10px,3vw,50px); text-align: center; margin: 20px 0; }
.v-count__n { display: block; font: 400 clamp(44px,10vw,150px)/1 var(--hand); }
.v-count__l { font-size: clamp(11px,1.1vw,16px); }
.cd .v-small { text-align: center; }
.patch { width: 100%; max-width: 1050px; margin-inline: auto; background: color-mix(in srgb,var(--paper) 94%,transparent); outline-color: color-mix(in srgb,var(--accent) 60%,transparent); }
.patch .v-h { margin-bottom: 28px; }
.v-prose { display: grid; gap: 20px; max-width: 65ch; }
.v-dl { display: grid; gap: 28px; }
.v-dl > div { display: grid; grid-template-columns: minmax(100px,1fr) 3fr; gap: 20px; }
.v-dl dt { color: var(--flame); font-weight: 700; }
.v-venue__name { font: 400 clamp(38px,5vw,80px)/1.1 var(--hand); margin-bottom: 18px; }
.v-venue__loc, .v-venue__addr { margin-top: 8px; }
.v-link, .v-copy { display: inline-flex; min-height: 48px; align-items: center; padding: 12px 22px; margin-top: 24px; background: var(--flame); color: var(--coal); border: 0; border-radius: 4px; font-weight: 700; text-decoration: none; cursor: pointer; }
.v-faq { display: grid; gap: 28px; }
.v-faq dt { font: 400 clamp(28px,3vw,44px)/1.2 var(--hand); color: var(--flame); }
.v-faq dd { margin-top: 10px; max-width: 65ch; }
.v-iban { font-size: clamp(16px,1.6vw,24px); margin-top: 24px; overflow-wrap: anywhere; }
.star { max-width: 70%; grid-template-columns: auto minmax(0,1fr); }
.star:nth-child(n) { margin-left: 0; }
.star:nth-child(2n) { margin-left: 25%; }
.star p { grid-column: 2; font-size: 18px; }
.sky { margin-bottom: 30px; }
.sky path { stroke: var(--accent); }
.answer { max-width: 800px; }
.answer .v-h { text-align: left; }
.v-intro { margin-bottom: 24px; }
.vf { --vf-bg: var(--paper); --vf-ink-x: var(--ink); --vf-line-x: #afa38e; --vf-accent: var(--accent); --vf-on-accent: var(--on-accent); --vf-radius: 4px; }
.vf-help { opacity: 1; }
.vf-person { background: transparent !important; }
.vf-btn--quiet { min-height: 44px; }
.v-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 20px; }
.v-gallery img, .v-extra__img { width: 100%; height: auto; }
.sign p:first-child { white-space: normal; overflow-wrap: anywhere; }
.guide button { min-width: 44px; min-height: 44px; }
.fireflies { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.fireflies i { position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%; background: #d3ed90; box-shadow: 0 0 12px 2px #a5d44a; animation: drift 6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.7s); }
.gl-ready:not(.no-gl) .fireflies { display: none; }
@keyframes drift { 0% { transform: translate(-9px,14px); opacity: .3; } 100% { transform: translate(12px,-18px); opacity: .9; } }
.no-gl .fallback > svg { animation: flicker 1.4s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes flicker { to { transform: translateX(-50%) scale(.94,1.06) rotate(2deg); } }
.fire-boost .fallback > svg { animation: flare 1.6s ease-out; }
@keyframes flare { 30% { transform: translateX(-50%) scale(1.2,1.4); filter: drop-shadow(0 0 50px #ff9b42); } }
.fallback > svg { bottom: 16%; width: clamp(110px,14vw,200px); }
.no-gl .firebtn { top: 80%; margin-top: -160px; }
.firehint { bottom: -16px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
@media(max-width:760px) {
 h1 { font-size: 26vw; }
 .hero { padding-inline: 20px; }
 .hero .tag { font-size: 12px; }
 .hero__date { font-size: 13px; letter-spacing: .08em; }
 .hero__place { font-size: 15px; }
 .star:nth-child(n) { margin-left: 0; max-width: 100%; grid-template-columns: 1fr; }
 .star:nth-child(2n) { margin-left: 12%; }
 .star p { grid-column: 1; }
 .v-dl > div { grid-template-columns: 1fr; gap: 8px; }
 .patch { padding: 26px; }
 .s { padding-bottom: 100px; }
 .fallback { background-size: auto 76%; background-color: #070b1c; }
 .fallback::after { background: radial-gradient(ellipse at 50% 72%,#ff962650,transparent 65%); }
 .firebtn { height: 160px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; } [data-rise] { opacity: 1; } .sign p:first-child { clip-path: none; } }
.sky, .star, .star > * { min-width: 0; }
.star { width: auto; }
.star p, .star span { overflow-wrap: anywhere; }
@media(max-width:760px) {
 .star:nth-child(n) { width: 100%; max-width: 100%; margin-left: 0; }
 .fallback { background: #070b1c url(night.webp) center top / cover no-repeat; }
 .fallback::before { top: auto; height: 76%; background: linear-gradient(#070b1c22,#070b1c33),url(camp.webp) center bottom / cover no-repeat; mask-image: linear-gradient(transparent,#000 22%); }
}

html .guide button { min-width: 44px; min-height: 44px; }
.vf .vf-btn--quiet { min-height: 44px; }
/* A dark sky keeps the constellation copy clear of the fire below it. */
.timeline { background: var(--paper); }
.timeline > .tag { justify-self: start; }
.hero { grid-template-columns: minmax(0,1fr); }
.hero > *, .hero h1 > span { min-width: 0; max-width: 100%; }
.firehint { padding: 6px 10px; border-radius: 4px; background: color-mix(in srgb,var(--paper) 94%,transparent); }
