:root {
  /* postcard stock and printing inks, sampled from the save the date */
  --paper: #F2EBDD;
  --paper-2: #E9E0CD;
  --card: #F7F2E7;
  --text: #2A2622;
  --soft: #6A625A;
  --blue: #2F75A6;     /* the postcard back's printed blue */
  --red: #C8202A;      /* the handwritten red */
  /* the night coast */
  --night: #0D151D;
  --fog: #DAD8D2;
  --ivory: #EFE8D8;
  --dim: #A3A7A4;
  --night-blue: #8FB6D2;
  --glow: #D8222B;    /* the postcard red, a touch brighter for the night ground */
  --line: rgba(47, 117, 166, .35);
  --serif: 'IM Fell English', Georgia, 'Times New Roman', serif;
  --caps: 'IM Fell English SC', 'IM Fell English', Georgia, serif;
  --script: 'emily-austin', 'Emily Austin', 'Snell Roundhand', cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: 1.25rem;
  --sec: 9rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
@media (min-width: 1500px) { html { font-size: max(16px, min(100vw / 93.75, 28px)); } }
body { background: var(--paper); color: var(--text); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3 { font-weight: 400; letter-spacing: -.005em; text-wrap: balance; }
p, dd { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* printed caps, as on the back of the postcard */
.label { font-family: var(--caps); font-size: .875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); line-height: 1.5; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 3rem; padding: 0 1.75rem; font-family: var(--caps); font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); border: 1px solid currentColor; white-space: nowrap; transition: color .5s var(--ease), background .5s var(--ease); }
.btn::after { content: ''; position: absolute; inset: 3px; border: 1px solid currentColor; opacity: .45; pointer-events: none; transition: inset .5s var(--ease); }
.btn:hover { background: var(--blue); color: var(--card); }
.btn:hover::after { inset: 5px; }
.btn-light { color: var(--ivory); }
.btn-light:hover { background: var(--ivory); color: var(--night); }
.btn-off, .btn-off:hover { cursor: default; background: rgba(13, 21, 29, .35); color: var(--ivory); }

/* Navigation bar: clear over the hero, postcard stock once you scroll */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 4.25rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); color: var(--ivory); transition: background .6s var(--ease), color .6s var(--ease), height .6s var(--ease); }
.nav::after { content: ''; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: var(--blue); transform: scaleX(0); transition: transform .9s var(--ease); }
.nav.solid { height: 3.5rem; background: var(--paper); color: var(--text); }
.nav.solid::after { transform: none; }
.nav-date { font-family: var(--caps); font-size: .8125rem; letter-spacing: .22em; opacity: .85; }
.nav-logo { font-size: 2.25rem; line-height: 1; padding-top: .3rem; color: inherit; transition: color .6s var(--ease), font-size .6s var(--ease); }
.nav.solid .nav-logo { color: var(--red); font-size: 2rem; }
.nav-ic { width: 1.875rem; height: 1.875rem; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.05; stroke-linecap: round; transition: transform 1.4s var(--ease); }
.nav-ic .knob { fill: currentColor; stroke: none; }
.nav-toggle:hover .nav-ic { transform: rotate(135deg); }
body.menu-open .nav-ic { transform: rotate(-180deg); }
body.menu-open .nav-toggle:hover .nav-ic { transform: rotate(-315deg); }
.nav-toggle { justify-self: end; display: flex; align-items: center; gap: .75rem; height: 2.5rem; font-family: var(--caps); font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; }
body.menu-open .nav { background: transparent; color: var(--ivory); }
body.menu-open .nav::after { transform: scaleX(0); }
body.menu-open .nav .nav-logo { color: var(--ivory); }

/* The menu is the back of a postcard */
.menu { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 5rem var(--pad) var(--pad); background: rgba(9, 14, 19, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
body.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.menu-card { position: relative; display: grid; grid-template-columns: 1.15fr auto 1fr; gap: 2.5rem; width: min(62rem, 100%); aspect-ratio: 3 / 2; max-height: calc(100vh - 6rem); padding: 2.5rem; background: var(--card); color: var(--text); box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 40px 80px -30px rgba(0, 0, 0, .6); transform: translateY(3rem) rotate(-2.5deg) scale(.96); transition: transform .9s var(--ease); }
body.menu-open .menu-card { transform: none; }
.menu-msg { display: flex; flex-direction: column; gap: 1.5rem; }
.nav-links { display: flex; flex-direction: column; }
.nav-links a { position: relative; display: inline-block; font-size: clamp(1.75rem, 3vw, 2.625rem); line-height: 1.25; transition: color .4s var(--ease), transform .6s var(--ease); }
.nav-links a:hover { color: var(--red); transform: translateX(.625rem); }
.menu-rule { position: relative; width: 1px; background: var(--blue); }
.menu-rule span { position: absolute; left: 50%; top: 50%; padding: .75rem 0; background: var(--card); font-family: var(--caps); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--blue); white-space: nowrap; transform: translate(-50%, -50%) rotate(90deg); }
.menu-addr { display: flex; flex-direction: column; justify-content: space-between; }
.menu-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.menu-pc { white-space: nowrap; font-family: var(--caps); font-size: clamp(1.75rem, 3.2vw, 2.75rem); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); line-height: 1; }
.menu-lines { display: flex; flex-direction: column; }
.menu-lines li { padding: 0 .25rem .2rem; border-bottom: 1px solid var(--blue); font-size: clamp(1.5rem, 2.3vw, 2.125rem); line-height: 1.7; color: var(--red); }
.menu .nav-links li, .menu .menu-lines li, .menu .menu-top { opacity: 0; transform: translateY(.75rem); transition: opacity .3s, transform .3s; }
body.menu-open .menu .nav-links li, body.menu-open .menu .menu-lines li, body.menu-open .menu .menu-top { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease); }
body.menu-open .nav-links li:nth-child(1) { transition-delay: .15s; }
body.menu-open .nav-links li:nth-child(2) { transition-delay: .19s; }
body.menu-open .nav-links li:nth-child(3) { transition-delay: .23s; }
body.menu-open .nav-links li:nth-child(4) { transition-delay: .27s; }
body.menu-open .nav-links li:nth-child(5) { transition-delay: .31s; }
body.menu-open .nav-links li:nth-child(6) { transition-delay: .35s; }
body.menu-open .menu .menu-top { transition-delay: .25s; }
body.menu-open .menu .menu-lines li:nth-child(1) { transition-delay: .4s; }
body.menu-open .menu .menu-lines li:nth-child(2) { transition-delay: .48s; }
body.menu-open .menu .menu-lines li:nth-child(3) { transition-delay: .56s; }

/* A postage stamp with perforated edges */
.stamp { --r: 4px; display: block; padding: 9px; background: #FBF8F1; -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(var(--r) at var(--r) var(--r), #0000 96%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)) round; mask: linear-gradient(#000 0 0) content-box, radial-gradient(var(--r) at var(--r) var(--r), #0000 96%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)) round; }
.stamp-wrap { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .25)); }
.stamp-in { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.stamp-in::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(251, 248, 241, .6); pointer-events: none; }
.menu-stamp { flex: none; width: 8.5rem; aspect-ratio: 4 / 5; transform: rotate(3deg); }
.menu-stamp img { position: absolute; inset: 0; opacity: 0; transform: scale(1.1); transition: opacity .6s var(--ease), transform 1.1s var(--ease); }
.menu-stamp img.on { opacity: 1; transform: none; }

/* Hero: night postcard, lighthouse sweep, fog to wipe away */
.hero { position: relative; height: 100vh; min-height: 40rem; overflow: hidden; background: var(--night); color: var(--ivory); }
.hero img { position: absolute; inset: 0; filter: brightness(.66) contrast(1.08); transform: scale(1.1); animation: settle 3s var(--ease) forwards; will-change: transform; }
@keyframes settle { to { transform: scale(1.03); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(ellipse 70% 55% at 50% 55%, rgba(13, 21, 29, .55), transparent 75%), linear-gradient(to top, rgba(13, 21, 29, .9), rgba(13, 21, 29, .2) 45%, rgba(13, 21, 29, .5)); }
.beam { position: absolute; z-index: 1; right: -8vw; top: 18%; width: 0; height: 0; pointer-events: none; mix-blend-mode: screen; }
.beam::before { content: ''; position: absolute; left: -120vmax; top: -120vmax; width: 240vmax; height: 240vmax; background: conic-gradient(from 0deg, transparent 0 250deg, rgba(239, 232, 216, 0) 252deg, rgba(239, 232, 216, .22) 258deg, rgba(239, 232, 216, 0) 266deg, transparent 266deg); animation: sweep 14s linear infinite; filter: blur(6px); }
@keyframes sweep { 0% { transform: rotate(-30deg); } 50% { transform: rotate(40deg); } 100% { transform: rotate(-30deg); } }
.fog { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
#fog { inset: -3%; width: 106%; height: 106%; filter: blur(10px); }
.hero-copy { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem var(--pad) 2rem; text-align: center; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-script { margin-bottom: 1.75rem; font-size: clamp(1.875rem, 3.2vw, 3.25rem); line-height: 1; color: var(--glow); text-shadow: 0 0 30px rgba(13, 21, 29, .8); }
.hero h1 { margin-top: .5rem; font-size: clamp(4rem, 12vw, 12.5rem); line-height: .9; letter-spacing: -.02em; text-shadow: 0 0 60px rgba(13, 21, 29, .6); }
.hero h1 .amp { font-style: italic; }
.hero-when { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.25rem; margin: 2rem 0 2.25rem; color: var(--ivory); }
.hero-when i { width: .3rem; height: .3rem; border-radius: 50%; background: var(--glow); }
.hint { position: absolute; z-index: 4; bottom: 2rem; left: 50%; color: var(--ivory); opacity: 0; transform: translateX(-50%); animation: hintIn 1s var(--ease) 1.8s forwards; transition: opacity .8s; white-space: nowrap; }
@keyframes hintIn { to { opacity: .75; } }
.hint.gone { opacity: 0 !important; }

/* load-in and scroll reveals */
.rise { opacity: 0; transform: translateY(1.5rem); animation: rise 1.2s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
[data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* Shared section head: centered, like a printed card */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; margin: 0 auto 4rem; max-width: 46rem; text-align: center; }
.sec-head::before { content: ''; width: 1px; height: 3.5rem; background: var(--blue); }
.sec-head h2 { font-size: clamp(2.25rem, 4.4vw, 4.25rem); line-height: 1.05; }

/* Countdown */
.count { display: flex; flex-direction: column; align-items: center; gap: 2rem; padding: 6rem var(--pad) 0; text-align: center; }
.count-row { display: grid; grid-template-columns: repeat(4, minmax(0, 11rem)); }
.count-row > div { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 0 1rem; border-left: 1px solid var(--line); }
.count-row > div:first-child { border-left: 0; }
.count-n { display: block; height: 1.05em; overflow: hidden; font-size: clamp(3rem, 6.5vw, 6.5rem); line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.count-n b { display: inline-block; font-weight: 400; animation: roll .6s var(--ease); }
@keyframes roll { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Statement */
.say { display: flex; flex-direction: column; align-items: center; gap: 2rem; padding: var(--sec) var(--pad); text-align: center; }
.say-big { max-width: 22em; font-size: clamp(1.875rem, 3.6vw, 3.5rem); line-height: 1.16; }
.say-big span { opacity: .18; transition: opacity .5s var(--ease); }
.say-big span.lit { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 17rem)); margin-top: 3rem; }
.facts > div { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 0 1.5rem; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dd { font-size: 1.375rem; line-height: 1.25; }

/* The save the date */
.card-sec { padding: var(--sec) var(--pad); background: var(--paper-2); }
.post-wrap { display: flex; flex-direction: column; align-items: center; gap: 2rem; perspective: 1800px; }
.post { width: min(56rem, 92vw); aspect-ratio: 1740 / 1140; cursor: pointer; }
.post-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.1s var(--ease); transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); }
.post.flipped { --flip: 180deg; }
.post-f, .post-b { position: absolute; inset: 0; border-radius: .25rem; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, .16), 0 30px 60px -20px rgba(42, 38, 34, .45); }
.post-b { transform: rotateY(180deg); }

/* The weekend: each event is a postcard in the stack */
.st { height: 360vh; background: var(--night); color: var(--fog); }
.st-pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; padding-top: 4rem; }
.st-head { position: absolute; top: 5.5rem; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.st-head .label, .acc-top .label, .lady .label, .fin-copy .label { color: var(--night-blue); }
.st-kicker { font-size: 2.5rem; line-height: 1; color: var(--glow); }
.st-stack { position: relative; perspective: 1600px; perspective-origin: 50% 0%; width: min(62rem, calc(100vw - 2 * var(--pad))); aspect-ratio: 3 / 1.75; max-height: 64vh; margin-top: 6rem; }
.panel { position: absolute; inset: 0; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--card); color: var(--text); border-radius: .25rem; box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 70px -30px rgba(0, 0, 0, .7); transform-origin: 50% 100%; will-change: transform; }
.panel-img { position: relative; margin: 1rem 0 1rem 1rem; overflow: hidden; min-height: 0; }
.panel-back { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; margin: 1rem 0 1rem 1.75rem; padding: 1rem 2.25rem; border-left: 1px solid var(--blue); }
.panel h2 { font-size: clamp(2.25rem, 3.8vw, 3.75rem); line-height: 1; }
.panel p { max-width: 24rem; color: var(--soft); }
.panel-note { font-size: 2rem; line-height: 1; color: var(--red); }

/* The venue */
.acc { height: 320vh; background: var(--night); color: var(--fog); }
.acc-pin { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 5rem var(--pad) var(--pad); }
.acc-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; background: var(--card); color: var(--text); border-radius: .25rem; overflow: hidden; }
.acc-panel::before { content: ''; position: absolute; inset: .625rem; border: 1px solid var(--line); pointer-events: none; }
.acc .acc-top .label { color: var(--blue); }
.acc-top { display: flex; justify-content: space-between; align-items: center; }
.acc-dots { display: flex; gap: .5rem; }
.acc-dots i { width: .4375rem; height: .4375rem; border-radius: 50%; border: 1px solid var(--blue); transition: background .5s var(--ease); }
.acc-dots i.on { background: var(--blue); }
.acc-mid { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.acc-kicker { font-size: 2.5rem; color: var(--red); line-height: 1.1; }
.mask { position: relative; width: 100%; overflow: hidden; }
.mask span { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.mask span:first-child { position: relative; display: block; }
.acc-title { font-size: clamp(3rem, 5.5vw, 5.5rem); line-height: 1.2; }
.acc-cap { position: relative; height: 3.5rem; }
.acc-cap p { position: absolute; left: 50%; bottom: 0; width: min(24rem, 100%); transform: translateX(-50%); text-align: center; color: var(--soft); opacity: 0; will-change: opacity; }
.acc-strips { display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.acc-strips figure { flex: 1 1 0; min-height: 2.75rem; overflow: hidden; border: .5rem solid var(--card); border-radius: .25rem; background: var(--card); will-change: flex-grow; }

/* The White Lady: a lantern in the dark */
.lady { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; min-height: 100vh; padding: var(--sec) var(--pad); background: #070B0F; color: var(--fog); overflow: hidden; cursor: none; }
.lady-dark { position: relative; justify-self: center; width: min(26rem, 80%); aspect-ratio: 920 / 1455; overflow: hidden; }
.lady-dark img { filter: grayscale(.4) contrast(1.1); -webkit-mask-image: radial-gradient(circle var(--lr, 13rem) at var(--lx, 50%) var(--ly, 40%), #000 0%, rgba(0, 0, 0, .7) 35%, rgba(0, 0, 0, .2) 70%, transparent 100%); mask-image: radial-gradient(circle var(--lr, 13rem) at var(--lx, 50%) var(--ly, 40%), #000 0%, rgba(0, 0, 0, .7) 35%, rgba(0, 0, 0, .2) 70%, transparent 100%); }
.lady::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 18rem at var(--px, 30%) var(--py, 50%), rgba(239, 200, 140, .07), transparent 70%); }
.lady-copy { position: relative; max-width: 30rem; }
.lady-copy h2 { margin: 1rem 0 1.5rem; font-size: clamp(2.5rem, 4.6vw, 4.5rem); line-height: 1; color: var(--ivory); }
.lady-copy p { color: var(--dim); }
.lady-hint { margin-top: 2rem; }

/* Things to do: postcards that turn over */
.pc { height: 320vh; }
.pc-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 3rem; padding-top: 3.5rem; perspective: 1400px; }
.pc-head { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.pc-kicker { font-size: 3rem; line-height: 1; color: var(--red); }
.pc-hint { color: var(--soft); }
.pc-track { display: flex; gap: 2rem; width: max-content; padding: 0 var(--pad); transform-style: preserve-3d; will-change: transform; }
.card { position: relative; flex: none; width: clamp(20rem, 36vw, 38rem); aspect-ratio: 3 / 2; perspective: 1200px; will-change: transform; }
.card-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.card.flipped .card-in { transform: rotateY(180deg); }
.card-f, .card-b { position: absolute; inset: 0; display: block; border-radius: .25rem; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .15), 0 24px 40px -18px rgba(42, 38, 34, .45); }
.card-f { padding: .625rem; background: var(--card); }
.card-f img { transition: transform .8s var(--ease); }
.card:hover .card-f img { transform: scale(1.03); }
.card-f::after { content: ''; position: absolute; inset: .625rem; background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 35%); pointer-events: none; }
.card-t { position: absolute; z-index: 1; left: 1.5rem; bottom: 1.25rem; font-family: var(--caps); font-size: .875rem; letter-spacing: .16em; text-transform: uppercase; color: #FBF8F1; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.card-b { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 2rem; background: var(--card); background-image: linear-gradient(to right, transparent calc(50% - .5px), var(--blue) calc(50% - .5px), var(--blue) calc(50% + .5px), transparent calc(50% + .5px)); }
.card-b .script { width: 46%; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.15; color: var(--red); }
.card-pc { position: absolute; top: 1.25rem; right: 1.5rem; font-family: var(--caps); font-size: 1.5rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* Our colors, as postage stamps */
.colors { padding: var(--sec) var(--pad); background: var(--paper-2); transition: background 1s var(--ease); }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 10rem)); justify-content: center; gap: 2rem 1.75rem; }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: .875rem; cursor: default; }
.swatches .stamp-wrap { width: 100%; transition: transform .7s var(--ease); }
.swatches li:nth-child(odd) .stamp-wrap { transform: rotate(-2deg); }
.swatches li:nth-child(even) .stamp-wrap { transform: rotate(1.5deg); }
.swatches li:hover .stamp-wrap { transform: translateY(-.75rem) rotate(0deg) scale(1.04); }
.swatches .stamp { aspect-ratio: 4 / 5; }
.sw { display: block; width: 100%; height: 100%; background: var(--c); }
.sw-n { font-size: 1.375rem; line-height: 1.1; }
.colors-note { max-width: 30rem; margin: 3.5rem auto 0; text-align: center; color: var(--soft); }

/* Wedding party */
.party { padding: var(--sec) var(--pad); }
.party-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 24rem)); justify-content: center; gap: 3rem; }
.party-col > .label { display: block; padding-bottom: 1rem; text-align: center; }
.party-col ul { border-top: 1px solid var(--blue); }
.party-col li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.pn { font-size: 1.625rem; line-height: 1.1; transition: color .4s var(--ease); }
.pt { font-family: var(--script); font-size: 1.625rem; line-height: 1; text-align: right; color: var(--red); opacity: .8; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.party-col li:hover .pn { color: var(--red); }
.party-col li:hover .pt { opacity: 1; transform: translateX(-.25rem); }

/* Travel and questions: a ruled card */
.eng { padding: var(--sec) var(--pad); background: var(--paper-2); }
.eng-list { max-width: 52rem; margin: 0 auto; border-top: 1px solid var(--blue); }
.eng-row { border-bottom: 1px solid var(--line); }
.eng-btn { display: grid; grid-template-columns: 1fr 2.5rem; align-items: center; width: 100%; padding: 1.375rem 0; transition: padding .6s var(--ease), color .4s var(--ease); }
.eng-btn:hover { padding-left: 1rem; color: var(--red); }
.eng-t { font-size: clamp(1.625rem, 2.6vw, 2.5rem); line-height: 1.15; }
.eng-btn i { position: relative; justify-self: end; width: .875rem; height: .875rem; transition: transform .6s var(--ease); }
.eng-btn i::before, .eng-btn i::after { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--blue); }
.eng-btn i::after { transform: rotate(90deg); transition: transform .6s var(--ease); }
.eng-row.open .eng-btn i { transform: rotate(180deg); }
.eng-row.open .eng-btn i::after { transform: rotate(0deg); }
.eng-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.eng-more > div { overflow: hidden; }
.eng-more p { max-width: 36rem; padding-bottom: 1.75rem; color: var(--soft); opacity: 0; transform: translateY(.5rem); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.eng-row.open .eng-more { grid-template-rows: 1fr; }
.eng-row.open .eng-more p { opacity: 1; transform: none; transition-delay: .12s; }

/* Closing: Dore's moonlit sea, fog, and the back of a postcard */
.fin { position: relative; background: var(--night); padding-bottom: 2rem; }
.fin-bg { position: relative; height: 100vh; overflow: hidden; background: #0A1016; }
.moonsea { position: absolute; inset: -4% 0; background: rgba(214, 222, 220, .5); -webkit-mask: url(assets/ink/moonsea.webp) center 35% / cover no-repeat; mask: url(assets/ink/moonsea.webp) center 35% / cover no-repeat; animation: swell 18s ease-in-out infinite alternate; }
@keyframes swell { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.06) translateY(-1.5%); } }
.fin-copy { position: absolute; z-index: 4; inset: 0 0 4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; padding: 0 var(--pad); text-align: center; }
.fin-copy h2 { font-size: clamp(3rem, 8vw, 8rem); line-height: .95; color: var(--ivory); text-shadow: 0 0 40px rgba(10, 16, 20, .8); }
.fin-copy h2 .script { display: block; font-size: .8em; color: var(--glow); line-height: 1.2; }
.foot { position: relative; z-index: 5; display: grid; grid-template-columns: 1.15fr auto 1fr; gap: 2.5rem; width: min(72rem, calc(100vw - 2 * var(--pad))); margin: -6rem auto 0; padding: 2.5rem; transform: rotate(-1deg); background: var(--card); color: var(--text); box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 50px 90px -30px rgba(0, 0, 0, .8); }
.foot-msg { display: flex; flex-direction: column; gap: 1.5rem; }
.foot-mark { font-size: clamp(3rem, 5vw, 4.5rem); line-height: 1; color: var(--red); }
.foot-cols { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 2.5rem; }
.foot-cols div { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.foot-cols a { position: relative; font-size: 1.25rem; transition: color .4s var(--ease); }
.foot-cols a::after { content: ''; position: absolute; left: 0; right: 0; bottom: .1rem; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.foot-cols a:hover { color: var(--red); }
.foot-cols a:hover::after { transform: scaleX(1); transform-origin: left; }
.foot-addr { display: flex; flex-direction: column; gap: 2rem; }
.foot-stamp { flex: none; width: 7rem; aspect-ratio: 4 / 5; transform: rotate(3deg); }
.foot-stamp .stamp-in { background: #24303A; }
.foot-house { position: absolute; inset: 12% 10%; background: var(--ivory); -webkit-mask: url(assets/ink/lighthouse.webp) center / contain no-repeat; mask: url(assets/ink/lighthouse.webp) center / contain no-repeat; }
.foot-credit { color: var(--soft); letter-spacing: .14em; font-size: .6875rem; }

@media (max-width: 1000px) {
  :root { --sec: 6rem; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 9rem)); }
  .party-grid { grid-template-columns: minmax(0, 30rem); }
  .lady { grid-template-columns: 1fr; cursor: auto; }
  .menu-card, .foot { grid-template-columns: 1fr; aspect-ratio: auto; gap: 1.75rem; }
  .menu-rule { width: auto; height: 1px; }
  .menu-rule span { transform: translate(-50%, -50%); padding: 0 .75rem; }
  .menu-addr { gap: 1.5rem; }
  .menu-stamp { width: 6rem; }
}
@media (max-width: 760px) {
  :root { --pad: 1rem; }
  body { font-size: 1.125rem; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-date, .nav-tt { display: none; }
  .nav-logo { font-size: 2rem; }
  .menu { place-items: start center; overflow-y: auto; }
  .menu-card { padding: 1.5rem; max-height: none; }
  .menu-addr .menu-top, .menu .menu-rule { display: none; }
  .menu-lines li { font-size: 1.5rem; }
  .hero-when { flex-direction: column; gap: .25rem; }
  .hero-when i { display: none; }
  .count-row { grid-template-columns: repeat(2, minmax(0, 9rem)); row-gap: 1.5rem; }
  .count-row > div:nth-child(3) { border-left: 0; }
  .facts { grid-template-columns: 1fr; gap: 1.75rem; }
  .facts > div { border-left: 0; }
  .st-stack { aspect-ratio: 3 / 4.6; max-height: 70vh; margin-top: 5rem; }
  .panel { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .panel-img { margin: .75rem .75rem 0; }
  .panel-back { margin: 0; padding: 1.25rem; gap: .5rem; border-left: 0; }
  .panel h2 { font-size: 2.25rem; }
  .panel p { font-size: 1rem; line-height: 1.4; }
  .panel-note { font-size: 1.625rem; }
  .acc-pin { grid-template-columns: 1fr; grid-template-rows: 44vh 1fr; }
  .acc-panel { padding: 1.25rem; }
  .card { width: 82vw; }
  .card-b { padding: 1.25rem; }
  .card-b .script { width: 52%; font-size: 1.2rem; }
  .card-pc { font-size: 1rem; }
  .card-t { font-size: .6875rem; left: 1.1rem; bottom: 1rem; }
  .pc-kicker { font-size: 2.5rem; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 9rem)); }
  .foot { padding: 1.5rem; transform: rotate(-.75deg); }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .foot-cols a { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, [data-reveal], .hero img { animation: none; opacity: 1; transform: none; transition: none; }
  .beam, .moonsea { animation: none; }
  html { scroll-behavior: auto; }
  .nav, .menu, .menu *, .btn, .card-in, .post-in { transition-duration: .01s !important; }
}
