/* ==================================================================
   BLAKE & KAT — A Rather Special Occasion
   Mobile-first. Sections follow the order of the page.
================================================================== */

:root {
  --blush: #F2D3CC;
  --blush-pale: #FAF0EC;
  --rose: #EC6F95;
  --forest: #33503F;
  --forest-deep: #27402F;
  --ivory: #FDFAF4;
  --paper: #FFFEFB;
  --parchment: #F3E3C3;
  --terracotta: #C0755A;
  --powder: #C3D8E4;
  --gold: #B8923C;
  --gold-light: #EBD08A;
  --gold-deep: #7C5D1F;
  --ink: #23201D;
  --ink-soft: #57504A;

  --display: "Bodoni Moda", "Didot", "Bodoni MT", "Playfair Display", serif;
  --italic: "Cormorant Garamond", "Cormorant", "Garamond", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --accent: var(--forest);
  --script: "La Belle Aurore", "Cormorant Garamond", cursive;
  --sage: #93AC9A;
  --hair: rgba(124, 93, 31, .28);
  --lattice:
    repeating-linear-gradient(45deg, transparent 0 21px, rgba(255, 253, 249, .2) 21px 22px),
    repeating-linear-gradient(-45deg, transparent 0 21px, rgba(255, 253, 249, .2) 21px 22px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--italic);
  font-size: 1.1875rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-sealed { overflow: hidden; height: 100dvh; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol { margin: 0; padding: 0; }
ol { list-style: none; }
svg { display: block; width: 100%; height: auto; overflow: visible; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.defs { position: absolute; }

:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 4px; }
h1:focus-visible, h2:focus-visible { outline: none; }

/* fine paper grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .24 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--sans); font-weight: 400; font-size: .6875rem;
  letter-spacing: .38em; text-transform: uppercase; color: var(--gold-deep);
  text-indent: .38em;
}
.eyebrow .amp, .title .amp { font-family: var(--italic); font-style: italic; text-transform: none; letter-spacing: 0; }
.eyebrow .amp { font-size: 1.35em; }

.display {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 15vw, 6.25rem); line-height: .95; letter-spacing: .02em;
  text-transform: uppercase;
}
.display .amp, .card__names .amp {
  font-family: var(--italic); font-style: italic; font-weight: 400;
  text-transform: none; font-size: .7em; letter-spacing: 0; padding: 0 .04em;
}
.display .amp { display: block; font-size: .5em; line-height: 1; margin: .08em 0 .12em; padding: 0; }
.title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 7.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.005em;
  text-wrap: balance;
}
.title--xl { font-size: clamp(3rem, 13vw, 5rem); }
.romance {
  font-family: var(--italic); font-style: italic; font-weight: 400;
  font-size: clamp(1.45rem, 5vw, 1.9rem); line-height: 1.25; color: var(--accent);
}
.lede { font-size: 1.1875rem; color: var(--ink-soft); max-width: 22em; }

/* gold foil lettering with a slow shimmer */
.foil {
  background: linear-gradient(105deg, #7C5D1F 0%, #9A7833 24%, #CDAE66 38%, #9A7833 52%, #7C5D1F 70%, #B08D42 86%, #7C5D1F 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: foil 9s ease-in-out infinite alternate;
}
@keyframes foil { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .9rem 2.1rem;
  font-family: var(--sans); font-size: .6875rem; font-weight: 500;
  letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--forest); border-radius: 0; background: none; cursor: pointer;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), letter-spacing .6s var(--ease);
}
.btn--line { color: var(--forest); box-shadow: inset 0 0 0 3px var(--ivory), inset 0 0 0 4px var(--hair); }
.btn--solid { background: var(--forest); color: var(--ivory); box-shadow: inset 0 0 0 3px var(--forest), inset 0 0 0 4px rgba(226, 201, 140, .55); }
.btn:hover { letter-spacing: .38em; }
.btn--line:hover { background: var(--forest); color: var(--ivory); box-shadow: inset 0 0 0 3px var(--forest), inset 0 0 0 4px rgba(226, 201, 140, .55); }
.btn--solid:hover { background: var(--forest-deep); border-color: var(--forest-deep); box-shadow: inset 0 0 0 3px var(--forest-deep), inset 0 0 0 4px rgba(235, 208, 138, .6); }
.btn:disabled { cursor: default; }

/* ==================================================================
   Splash · Chicken Nugget trots in with the letter
================================================================== */

.splash {
  position: fixed; inset: 0; z-index: 70; overflow: hidden; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr); place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 1.5rem;
  background: var(--blush); transition: opacity .9s ease, visibility 0s linear .9s;
}
.splash.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.splash__stage { position: relative; width: min(44vw, 180px); padding-bottom: 6px; margin-bottom: 1.2rem; }
.splash__stage::after { content: ""; position: absolute; left: -40%; right: -40%; bottom: 0; height: 1px; background: var(--forest); opacity: .45; }
.splash__run { animation: trot 1.9s cubic-bezier(.25, .6, .3, 1) both; }
.splash__hop { position: relative; transform-origin: 50% 100%; animation: hop .3s ease-in-out 6 alternate, tilt 1.1s var(--ease) 2s forwards; }
/* the invitation, held in her mouth — then presented */
.splash__letter {
  position: absolute; left: 33%; top: 41%; width: 34%; transform: rotate(-9deg);
  filter: drop-shadow(0 2px 2px rgba(60, 40, 20, .22));
  animation: present 1.2s var(--ease) 3.6s forwards;
}
@keyframes present { to { transform: translateY(-430%) rotate(0deg) scale(2.5); } }
.splash__eyebrow { color: var(--forest); animation: rise 1s var(--ease) 1.9s both; }
.splash__line { font-family: var(--script); font-size: clamp(1.8rem, 7vw, 2.5rem); line-height: 1.3; color: var(--forest); animation: rise 1s var(--ease) 2.3s both; }
@keyframes trot { from { transform: translateX(-75vw); } to { transform: none; } }
@keyframes hop { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-13%) rotate(2deg); } }
@keyframes tilt { 0% { transform: rotate(0); } 45% { transform: rotate(-7deg); } 100% { transform: rotate(5deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ==================================================================
   Scene 1 · The Envelope
================================================================== */

.gate {
  position: fixed; inset: 0; z-index: 60; overflow: hidden;
  display: grid; place-items: center; padding: 1.5rem;
  background: var(--ivory);
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__inner {
  position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: clamp(1.4rem, 4vh, 2.4rem);
  text-align: center;
}
.gate__title {
  font-family: var(--italic); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 6vw, 2.1rem); color: var(--accent); margin-bottom: 1.5rem;
}
.gate__text { transition: opacity .6s ease, transform .8s var(--ease); }
.gate.is-opening .gate__text, .gate.is-opening .eyebrow { opacity: 0; transform: translateY(8px); }
.gate .eyebrow { transition: opacity .6s ease, transform .8s var(--ease); }

.gate__sprig { position: absolute; width: clamp(150px, 34vw, 330px); opacity: .95; z-index: 1; pointer-events: none; }
.gate__sprig--tr { top: -3%; right: -4%; transform: rotate(172deg); }
.gate__sprig--bl { bottom: -3%; left: -4%; transform: rotate(-4deg); }
.gate__sprig svg { animation: breathe 9s ease-in-out infinite alternate; transform-origin: 0 100%; }
.gate__sprig--tr svg, .gate__sprig--bl svg { animation-duration: 11s; animation-direction: alternate-reverse; }
@keyframes breathe { from { transform: rotate(-1.4deg); } to { transform: rotate(1.6deg); } }

.env {
  position: relative; width: min(80vw, 430px); aspect-ratio: 7 / 5;
  perspective: 1400px; cursor: pointer; margin-top: clamp(1rem, 6vh, 4rem);
  transition: transform 1.4s var(--ease);
}
.gate.is-opening .env { transform: translateY(12%); }
.env__shadow {
  position: absolute; left: 4%; right: 4%; bottom: -7%; height: 14%;
  background: radial-gradient(closest-side, rgba(70, 48, 20, .28), transparent); filter: blur(6px);
}
.env__back { position: absolute; inset: 0; background: #E7DCC3; border-radius: 2px; }
.env__liner {
  position: absolute; inset: 0; background-color: var(--sage); background-image: var(--lattice);
  clip-path: polygon(0 0, 100% 0, 50% 54%);
}
.env__letter {
  position: absolute; left: 5%; right: 5%; top: 5%; height: 90%; z-index: 2;
  display: flex; flex-direction: column; align-items: center; padding-top: 12%; gap: .5rem;
  background: var(--paper); border: 1px solid var(--hair);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--hair);
  transition: transform 1.2s var(--ease) 1.05s;
}
.env__letter-mono { font-family: var(--display); font-size: clamp(1.4rem, 6vw, 2rem); color: var(--gold-deep); letter-spacing: .06em; }
.env__letter-mono i { font-family: var(--italic); font-size: .8em; }
.env__letter-line { font-family: var(--sans); font-size: .5625rem; letter-spacing: .36em; text-transform: uppercase; color: var(--ink-soft); }
.gate.is-opening .env__letter { transform: translateY(-62%); }
.env__front { position: absolute; inset: 0; height: 100%; z-index: 3; filter: drop-shadow(0 -1px 1px rgba(90, 66, 30, .1)); }
.env__flap {
  position: absolute; inset: 0; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.5, 0, .2, 1) .35s, z-index 0s linear .85s;
}
.gate.is-opening .env__flap { transform: rotateX(180deg); z-index: 1; }
.flap__face { position: absolute; inset: 0; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flap__out { filter: drop-shadow(0 3px 3px rgba(80, 58, 24, .16)); }
.flap__in { transform: rotateX(180deg); }
.env__seal {
  position: absolute; left: 50%; top: 58.4%; width: 21%; z-index: 5;
  transform: translate(-50%, -50%); filter: drop-shadow(0 2px 3px rgba(40, 10, 14, .35));
  transition: transform .5s var(--ease), opacity .45s ease;
}
.env:hover .env__seal { transform: translate(-50%, -50%) scale(1.04) rotate(-3deg); }
.gate.is-opening .env__seal { opacity: 0; transform: translate(-50%, -30%) scale(1.15) rotate(8deg); }

/* ==================================================================
   Fixed furniture: monogram, music, chapter marks
================================================================== */

.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(.9rem, env(safe-area-inset-top)) 1.1rem .9rem;
  pointer-events: none; opacity: 0; transition: opacity 1.2s ease .4s;
}
.masthead > * { pointer-events: auto; }
.is-open .masthead, .is-open .chapters { opacity: 1; }
.masthead__mono, .music {
  display: inline-flex; align-items: center; gap: .55rem; height: 2.75rem; padding: 0 1rem;
  background: var(--ivory); border: 1px solid var(--hair); border-radius: 999px; text-decoration: none;
}
.masthead__mono { font-family: var(--display); font-size: .95rem; letter-spacing: .1em; color: var(--gold-deep); }
.masthead__mono i, .sheet__mono i, .colophon__mono i { font-family: var(--italic); }
.music { cursor: pointer; font-family: var(--sans); font-size: .625rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
.music__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.music__bars i { width: 1.5px; height: 3px; background: var(--accent); transition: height .4s ease; }
.music[aria-pressed="true"] .music__bars i { animation: bars 1.3s ease-in-out infinite alternate; }
.music[aria-pressed="true"] .music__bars i:nth-child(2) { animation-delay: -.5s; }
.music[aria-pressed="true"] .music__bars i:nth-child(3) { animation-delay: -.9s; }
@keyframes bars { from { height: 3px; } to { height: 12px; } }

.chapters {
  position: fixed; z-index: 40; left: 50%; bottom: max(.8rem, env(safe-area-inset-bottom));
  transform: translateX(-50%); display: flex; gap: .1rem; padding: .2rem .5rem;
  background: var(--ivory); border: 1px solid var(--hair); border-radius: 999px;
  opacity: 0; transition: opacity 1.2s ease .6s;
}
.chapters a {
  display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem;
  font-family: var(--display); font-size: .8rem; letter-spacing: .08em; text-decoration: none;
  color: var(--ink-soft); transition: color .4s ease;
}
.chapters a::after { content: ""; position: absolute; }
.chapters a.is-current { color: var(--accent); font-style: italic; }
.chapters a:hover { color: var(--accent); }

/* ==================================================================
   Scenes: shared
================================================================== */

.scene { position: relative; padding: clamp(5.5rem, 16vw, 10rem) 1.5rem; overflow: hidden; }
.wrap { position: relative; max-width: 1120px; margin: 0 auto; }
.wrap--narrow { max-width: 680px; }
.scene__head { text-align: center; display: grid; gap: 1.1rem; justify-items: center; margin-bottom: clamp(2.5rem, 8vw, 4.5rem); }
.scene__intro { font-style: italic; font-size: 1.3rem; max-width: 24em; }

[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 1.4s var(--ease) var(--d, 0s), transform 1.4s var(--ease) var(--d, 0s);
}
[data-reveal="camera"] { transform: scale(1.07) translateY(16px); transition-duration: 2.4s; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ==================================================================
   Scene 2 · The Invitation
================================================================== */

.invitation { min-height: 100svh; padding-top: clamp(6rem, 20vw, 9rem); }
.invitation__grid { display: grid; gap: clamp(2.5rem, 8vw, 5rem); justify-items: center; }
.invitation__text { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.rule { width: 150px; margin: .4rem 0; }

/* cameo portraits of the two of them */
.duo { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.2rem; }
.cameo { display: grid; justify-items: center; gap: .5rem; }
.cameo__frame {
  width: clamp(92px, 25vw, 122px); aspect-ratio: 200 / 250; overflow: hidden; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 6px var(--paper), 0 0 0 7px rgba(184, 146, 60, .7), 0 18px 26px -16px rgba(70, 48, 20, .45);
}
.cameo__frame svg { height: 100%; overflow: hidden; }
.cameo figcaption { font-family: var(--script); font-size: 1.5rem; color: var(--forest); line-height: 1.2; }
.duo__amp { font-family: var(--italic); font-style: italic; font-size: 1.7rem; color: var(--gold-deep); margin-bottom: 2rem; }

/* a loose flock drifting across the whole page */
.flock { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.bird {
  position: absolute; left: -60px; top: var(--y, 16vh); width: var(--w, 22px); opacity: .72;
  animation: fly var(--t, 34s) linear var(--delay, 0s) infinite;
}
.bird--dip { animation-name: fly-dip; }
.bird__wings { transform-origin: 50% 60%; transform-box: fill-box; animation: flap 1s ease-in-out infinite alternate; }
@keyframes fly {
  0% { transform: translate(0, 0); } 30% { transform: translate(34vw, -5vh); }
  60% { transform: translate(68vw, 3vh); } 100% { transform: translate(calc(100vw + 80px), -8vh); }
}
@keyframes fly-dip {
  0% { transform: translate(0, 0); } 35% { transform: translate(36vw, 6vh); }
  70% { transform: translate(72vw, -3vh); } 100% { transform: translate(calc(100vw + 120px), 4vh); }
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }

/* --- the Save-the-Date card --- */

.card-stage { width: 100%; display: grid; justify-items: center; gap: 1.4rem; perspective: 1600px; }
.card {
  --rx: 0deg; --ry: 0deg; --flip: 0deg;
  position: relative; width: min(100%, 430px); cursor: pointer;
  container-type: inline-size; -webkit-tap-highlight-color: transparent;
}
.card__inner {
  position: relative; transform-style: preserve-3d; will-change: transform;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip)));
  transition: transform 1.1s var(--ease);
}
.card.is-tilting .card__inner { transition-duration: .25s; }
.card.is-flipped { --flip: 180deg; }
.card__face {
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--paper); border-radius: 3px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 0 0 1px rgba(124, 93, 31, .18),
    0 2px 3px rgba(70, 48, 20, .1),
    0 28px 50px -22px rgba(70, 48, 20, .38);
}
.card__face::before {
  content: ""; position: absolute; inset: 3.2cqw; pointer-events: none; z-index: 3;
  border: 1px solid var(--gold); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(168, 132, 60, .55);
}
.card__front { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10.5cqw 9cqw 9.5cqw; }
.card__eyebrow { font-family: var(--sans); font-size: 2.3cqw; letter-spacing: .42em; text-indent: .42em; text-transform: uppercase; color: var(--ink-soft); }
.card__names {
  font-family: var(--display); font-size: 9.6cqw; line-height: 1; letter-spacing: .04em; text-transform: uppercase;
  margin: 3cqw 0 5cqw; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .7));
}
.card__art { width: 100%; }
.card__cartouche { width: 25cqw; margin-top: -8.5cqw; position: relative; z-index: 2; filter: drop-shadow(0 2px 2px rgba(70, 48, 20, .25)); }
.card__line { font-family: var(--italic); font-style: italic; font-size: 5.2cqw; color: var(--accent); margin-top: 3cqw; line-height: 1.2; }
.card__date { font-family: var(--sans); font-size: 2.2cqw; letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2.4cqw; }

.card__back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  background-color: var(--sage); background-image: var(--lattice);
  display: grid; place-items: center; text-align: center; color: var(--ivory);
}
.card__back::before { border-color: var(--gold-light); box-shadow: inset 0 0 0 3px var(--forest), inset 0 0 0 4px rgba(226, 201, 140, .5); }
.card__back-inner { display: grid; justify-items: center; gap: 3cqw; padding: 12cqw; }
.card__back-title { font-family: var(--display); font-size: 7cqw; letter-spacing: .02em; color: var(--gold-light); }
.card__back-line { font-style: italic; font-size: 4.6cqw; }
.card__back-small { font-family: var(--sans); font-size: 2.2cqw; letter-spacing: .36em; text-transform: uppercase; color: var(--gold-light); margin-top: 5cqw; }

.hint { font-family: var(--sans); font-size: .625rem; letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--ink-soft); }
.hint::before { content: "↻"; display: inline-block; margin-right: .7em; letter-spacing: 0; text-indent: 0; font-size: 1.3em; vertical-align: -.1em; color: var(--gold-deep); }

/* --- the garden painting: an arched window of stacked layers --- */

.garden {
  position: relative; aspect-ratio: 600 / 720; overflow: hidden; isolation: isolate;
  border-radius: 50% 50% 2px 2px / 41.667% 41.667% 2px 2px;
}
.garden > svg { position: absolute; inset: 0; height: 100%; overflow: hidden; }
.garden::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1.5px solid var(--gold); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(168, 132, 60, .7);
}
.garden__layer { will-change: transform; }
.garden__swans { animation: bob 6s ease-in-out infinite alternate; }
.garden__flora { transform-origin: 50% 100%; animation: sway 8s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(.9%); } }
@keyframes sway { from { transform: rotate(-.5deg) scale(1.01); } to { transform: rotate(.5deg) scale(1.01); } }

/* characters come alive on hover / tap */
.rooster__tail, .rooster__head, .monkey__arm, .monkey__tail { transform-box: fill-box; transition: transform 1s var(--ease); }
.rooster__tail { transform-origin: 100% 100%; }
.rooster__head { transform-origin: 40% 100%; }
.monkey__arm { transform-origin: 100% 100%; }
.monkey__tail { transform-origin: 0% 100%; }
.card:hover .rooster__tail, .is-lively .rooster__tail { transform: rotate(-7deg); }
.card:hover .rooster__head, .is-lively .rooster__head { transform: rotate(7deg); }
.card:hover .monkey__arm, .is-lively .monkey__arm { transform: rotate(13deg); }
.card:hover .monkey__tail, .is-lively .monkey__tail { transform: rotate(-9deg); }

/* ==================================================================
   Scene 3 · The Details
================================================================== */

.details { background: var(--blush-pale); }
.details__sprig, .rsvp__sprig { position: absolute; width: clamp(130px, 26vw, 280px); pointer-events: none; opacity: .9; }
.details__sprig--l { left: -5%; bottom: -3%; }
.details__sprig--r { right: -14%; top: -2%; rotate: 176deg; }

.sheet {
  position: relative; background: var(--paper); padding: clamp(2.6rem, 9vw, 4.5rem) clamp(1.6rem, 7vw, 4.5rem);
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(124, 93, 31, .15), 0 30px 60px -34px rgba(70, 48, 20, .4);
  text-align: center;
}
.sheet::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--hair); pointer-events: none; }
.sheet__mono {
  font-family: var(--display); font-size: 1.5rem; letter-spacing: .12em; color: var(--gold-deep);
  text-shadow: 0 1px 0 #fff, 0 -1px 0 rgba(124, 93, 31, .25);
  padding-bottom: 1.6rem; margin-bottom: .6rem; border-bottom: 1px solid var(--hair);
}
.sheet__row {
  display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1.2rem; align-items: center; text-align: left;
  padding: 1.35rem 0; border-bottom: 1px dotted var(--hair);
}
.sheet__icon { grid-row: span 2; width: 3.5rem; }
.sheet dt { font-family: var(--sans); font-size: .625rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-deep); align-self: end; }
.sheet dd { font-family: var(--display); font-size: clamp(1.15rem, 4.6vw, 1.5rem); line-height: 1.25; align-self: start; overflow-wrap: anywhere; }
.sheet__foot { font-style: italic; color: var(--accent); font-size: 1.3rem; margin-top: 2rem; }

/* anything still in [SQUARE BRACKETS] reads as a blank waiting to be inked */
.is-placeholder {
  font-family: var(--sans) !important; font-size: .75rem !important; font-style: normal !important;
  letter-spacing: .2em; text-transform: uppercase; opacity: .62;
  border-bottom: 1px dashed currentColor; padding-bottom: .2em; display: inline-block;
}

/* ==================================================================
   Scene 4 · A Most Interesting Pairing
================================================================== */

.pairing__grid { display: grid; gap: 3.5rem; justify-items: center; }
.portrait { display: grid; gap: 1.6rem; justify-items: center; text-align: center; max-width: 21rem; }
.portrait__frame {
  position: relative; width: min(74vw, 300px); aspect-ratio: 300 / 380; overflow: hidden; cursor: pointer;
  border-radius: 50% 50% 2px 2px / 39.5% 39.5% 2px 2px;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 7px var(--paper), 0 0 0 8px rgba(168, 132, 60, .7), 0 30px 44px -24px rgba(70, 48, 20, .45);
  transition: transform 1s var(--ease);
}
.portrait__frame svg { height: 100%; overflow: hidden; }
.portrait__frame:hover, .portrait__frame.is-lively { transform: translateY(-5px); }
.portrait__frame:hover .rooster__tail { transform: rotate(-7deg); }
.portrait__frame:hover .rooster__head { transform: rotate(7deg); }
.portrait__frame:hover .monkey__arm { transform: rotate(13deg); }
.portrait__frame:hover .monkey__tail { transform: rotate(-9deg); }
.portrait h3, .chaperone h3, .menu h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: .01em; }
.portrait figcaption, .chaperone figcaption { display: grid; gap: .5rem; }
.portrait p, .chaperone figcaption p:not(.eyebrow) { color: var(--ink-soft); }

.pairing__centre { display: grid; gap: 1.6rem; justify-items: center; text-align: center; max-width: 24rem; }
.pairing__fountain { width: 130px; }
.fountain { position: relative; }
.fountain__water { position: absolute; inset: 0; }
.fountain__water g { animation: pour 1.6s linear infinite; }
@keyframes pour { to { stroke-dashoffset: -20; } }
.pairing__quote p { font-style: italic; font-size: clamp(1.45rem, 5.4vw, 1.75rem); line-height: 1.32; color: var(--accent); text-wrap: balance; }
.pairing__quote::before, .pairing__quote::after { content: ""; display: block; width: 2.5rem; height: 1px; background: var(--gold); margin: 0 auto 1.4rem; }
.pairing__quote::after { margin: 1.4rem auto 0; }

.chaperone {
  display: grid; gap: 1.4rem; justify-items: center; text-align: center;
  margin: clamp(4rem, 12vw, 6.5rem) auto 0; max-width: 22rem;
  padding-top: clamp(3rem, 9vw, 4.5rem); border-top: 1px solid var(--hair);
}
.chaperone__frame {
  width: 176px; aspect-ratio: 300 / 380; overflow: hidden; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 6px var(--paper), 0 0 0 7px rgba(168, 132, 60, .7), 0 22px 30px -18px rgba(70, 48, 20, .45);
}
.chaperone__frame svg { height: 100%; overflow: hidden; }

/* ==================================================================
   Scene 5 · The Evening's Particulars
================================================================== */

.evening { background-color: var(--sage); background-image: var(--lattice); color: var(--ivory); }
.evening::before, .evening::after { content: ""; position: absolute; left: 1rem; right: 1rem; height: 1px; background: rgba(226, 201, 140, .45); }
.evening::before { top: 1rem; } .evening::after { bottom: 1rem; }
.evening .eyebrow { color: var(--gold-light); }
.evening .scene__intro { color: #E9E0CC; }
.menu { display: grid; gap: 1px; background: rgba(226, 201, 140, .3); border: 1px solid rgba(226, 201, 140, .3); }
.menu__item {
  background: var(--forest); padding: 2.6rem 1.5rem; text-align: center;
  display: grid; justify-items: center; align-content: start; gap: .55rem;
}
.menu__icon { width: 4.6rem; padding: .7rem; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 1px var(--gold-light), 0 0 0 5px var(--forest), 0 0 0 6px rgba(226, 201, 140, .45); margin-bottom: 1rem; }
.menu__when { font-style: italic; color: var(--gold-light); font-size: 1.15rem; }
.menu__note { color: #E9E0CC; }
.menu__note:not(.is-placeholder) { font-style: italic; }

/* ==================================================================
   Scene 6 · The RSVP
================================================================== */

.rsvp { background: var(--blush); padding-bottom: clamp(8rem, 22vw, 12rem); }
.rsvp__sprig--l { left: -5%; top: 4%; rotate: 96deg; }
.rsvp__sprig--r { right: -5%; bottom: 4%; rotate: -84deg; }
.reply {
  position: relative; background: var(--paper); text-align: center; overflow: hidden;
  padding: clamp(3.2rem, 11vw, 5.5rem) clamp(1.5rem, 7vw, 4rem);
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(124, 93, 31, .15), 0 34px 60px -34px rgba(107, 30, 42, .45);
}
.reply::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--hair); pointer-events: none; }
.reply__ask, .reply__done { display: grid; gap: 1.1rem; justify-items: center; transition: opacity .7s ease, transform .9s var(--ease); }
.reply__buttons { display: grid; gap: .8rem; width: 100%; max-width: 19rem; margin-top: 1.4rem; }
.reply__small { font-style: italic; color: var(--ink-soft); font-size: 1.05rem; margin-top: .8rem; }
.reply.is-leaving .reply__ask { opacity: 0; transform: translateY(-10px); }
.reply__done[hidden], .reply__ask[hidden], .reply__link[hidden] { display: none; }
.reply__done { animation: arrive 1.2s var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(14px); } }
.reply__link { margin-top: 1rem; }

.heart { width: 88px; margin-bottom: .6rem; }
.heart__line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) .2s forwards; }
.heart__fill { fill: url(#g-gold); opacity: 0; transform-origin: 50% 60%; transform-box: fill-box; animation: bloom 1.2s var(--ease) 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bloom { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

.reply__petals { position: absolute; inset: 0; pointer-events: none; }
.petal {
  position: absolute; top: -20px; left: var(--x); width: var(--s); height: calc(var(--s) * 1.35);
  background: var(--c); border-radius: 60% 40% 60% 40% / 70% 50% 50% 30%; opacity: 0;
  animation: fall var(--t) cubic-bezier(.3, .1, .5, 1) var(--w) forwards;
}
@keyframes fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  12% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx), var(--fall)) rotate(var(--r)); }
}

.colophon { background: var(--blush); text-align: center; padding: 0 1.5rem 7rem; font-style: italic; color: var(--ink-soft); font-size: 1.05rem; }
.colophon__mono { font-family: var(--display); font-style: normal; font-size: 1.2rem; letter-spacing: .12em; color: var(--accent); margin-bottom: .5rem; }

/* ==================================================================
   The Bel-Air mood: stucco pink, white and garden green, script
   lettering, a mission arch, treillage and a pair of swans
================================================================== */

.romance, .gate__title, .card__line, .card__back-line, .sheet__foot, .menu__when {
  font-family: var(--script); font-style: normal; letter-spacing: 0;
}
.romance { font-size: clamp(1.75rem, 6.2vw, 2.35rem); line-height: 1.3; }
.gate__title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
.card__line { font-size: 6.2cqw; }
.card__back-line { font-size: 5.6cqw; }
.sheet__foot { font-size: 1.65rem; }
.menu__when { font-size: 1.4rem; color: var(--forest); }

.invitation { background: var(--blush); }
.display, .gate .eyebrow, .invitation .eyebrow { color: var(--forest); }
.invitation .lede { color: var(--ink); }
.details { background: var(--ivory); }
.pairing { background: var(--blush-pale); }

/* the details sheet takes the shape of a garden arch */
.sheet { border-radius: 50% 50% 3px 3px / 120px 120px 3px 3px; padding-top: clamp(4.2rem, 13vw, 6.5rem); }
.sheet::before { border-radius: 50% 50% 2px 2px / 112px 112px 2px 2px; }

/* the card back: white, with the swans */
.card__back { background: var(--paper); color: var(--forest); }
.card__back::before { border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(184, 146, 60, .55); }
.card__back-swans { width: 56cqw; margin-bottom: 5cqw; }
.card__back-title { color: var(--forest); }
.card__back-small { color: var(--gold-deep); }

/* the evening: a white menu card against garden treillage */
.evening { background-color: var(--forest); }
.menu { background: var(--hair); border: 0; box-shadow: 0 0 0 1px var(--paper), 0 0 0 7px var(--forest), 0 0 0 8px rgba(235, 208, 138, .7), 0 40px 60px -30px rgba(0, 0, 0, .5); }
.menu__item { background: var(--paper); color: var(--ink); }
.menu__note { color: var(--ink-soft); }
.menu__icon { background: var(--blush-pale); box-shadow: 0 0 0 1px var(--hair); }

/* the supper painting, under a wide garden arch */
.supper { display: grid; justify-items: center; gap: 1.4rem; margin: 0 auto clamp(3rem, 9vw, 5rem); max-width: 640px; }
.supper__frame {
  width: 100%; aspect-ratio: 640 / 430; overflow: hidden;
  border-radius: 50% 50% 3px 3px / 58% 58% 3px 3px;
  box-shadow: 0 0 0 1.5px var(--gold-light), 0 0 0 8px var(--paper), 0 0 0 9px rgba(235, 208, 138, .8), 0 40px 60px -30px rgba(0, 0, 0, .55);
}
.supper__frame svg { height: 100%; overflow: hidden; }
.supper figcaption { font-family: var(--script); font-size: clamp(1.4rem, 5vw, 1.8rem); color: var(--gold-light); text-align: center; line-height: 1.3; }

/* the keepsakes page: every portrait, with downloads */
.colophon__link { margin-top: 1.4rem; font-style: normal; }
.colophon__link a, .keepsake__links a, .menu__link a {
  font-family: var(--sans); font-size: .6875rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--forest); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .25em;
}
.colophon--plain { background: var(--ivory); }
.keepsakes { background: var(--ivory); }
.keepsakes .scene__head .btn { margin-top: .8rem; }
.keepsakes__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 3.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); }
.keepsake { min-width: 0; display: grid; justify-items: center; gap: .6rem; text-align: center; align-content: start; }
.keepsake__art { position: relative; width: 100%; aspect-ratio: 1; background: var(--blush-pale); margin-bottom: .8rem; box-shadow: 0 0 0 1px var(--hair); }
.keepsake__art img { position: absolute; inset: 1.4rem; width: calc(100% - 2.8rem); height: calc(100% - 2.8rem); object-fit: contain; }
.keepsake h2 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.keepsake__links { display: flex; gap: .9rem; align-items: center; margin-top: .3rem; color: var(--gold-deep); }
.keepsake__links--minor { margin-top: .1rem; }
.keepsake__links--minor a { color: var(--ink-soft); border-bottom-color: transparent; }

/* palms at the edges of the garden */
.palm { position: absolute; bottom: -2%; width: clamp(120px, 24vw, 270px); pointer-events: none; }
.palm svg { transform-origin: 45% 100%; animation: breathe 11s ease-in-out infinite alternate; will-change: transform; }
.palm--inv-l { left: -5%; }
.palm--inv-r { right: -6%; width: clamp(90px, 17vw, 190px); scale: -1 1; }
.palm--inv-r svg, .palm--rsvp-r svg { animation-duration: 14s; animation-direction: alternate-reverse; }
.palm--pair { right: -4%; width: clamp(90px, 15vw, 180px); scale: -1 1; opacity: .9; }
.palm--rsvp-l { left: -5%; width: clamp(100px, 19vw, 210px); }
.palm--rsvp-r { right: -5%; width: clamp(120px, 23vw, 260px); scale: -1 1; }

/* Chicken Nugget's silhouette, trotting along the foot of the last scene */
.rsvp::after { content: ""; position: absolute; left: 0; right: 0; bottom: clamp(1.6rem, 5vw, 2.6rem); height: 1px; background: var(--forest); opacity: .35; }
.walker {
  position: absolute; left: 12%; bottom: clamp(1.6rem, 5vw, 2.6rem); width: clamp(58px, 13vw, 92px);
  color: var(--forest); pointer-events: none; animation: stroll 26s linear infinite;
}
.walker__body { animation: trot-bob .38s ease-in-out infinite alternate; }
.walker__leg { transform-box: fill-box; transform-origin: 50% 0; animation: step .38s ease-in-out infinite alternate; }
.walker__leg--b { animation-direction: alternate-reverse; }
@keyframes stroll { from { transform: translateX(-40vw); } to { transform: translateX(100vw); } }
@keyframes step { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
@keyframes trot-bob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }

.menu__link { display: grid; justify-items: center; gap: .7rem; margin-top: 1.1rem; }
.menu__link[hidden] { display: none; }
.menu__link--after { margin-top: 2.6rem; }
.menu__link--after a { color: var(--gold-light); }
.evening .menu__link--after span { color: #E9E0CC; }
.menu__note { max-width: 19em; text-wrap: pretty; }
.menu__link span { font-style: italic; font-size: 1.05rem; color: var(--ink-soft); line-height: 1.3; }

/* the film, at the foot of the page */
.cinema { background: var(--paper); }
.cinema .scene__head { margin-bottom: clamp(2rem, 6vw, 3rem); }
.cinema__frame { display: grid; justify-items: center; gap: 1.2rem; max-width: 980px; margin: 0 auto; }
.cinema__frame video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--black);
  border: 4px solid var(--black); border-radius: 4px; box-shadow: 0 0 0 9px #F29AAE, 0 0 0 12px var(--black), 10px 14px 0 12px rgba(31, 28, 27, .14);
}
.cinema__frame figcaption { font-family: var(--hand); text-transform: uppercase; letter-spacing: .14em; font-size: 1rem; color: var(--black); margin-top: .8rem; }
@media (max-width: 700px) and (orientation: portrait) {
  .cinema__frame video { aspect-ratio: 9 / 16; max-width: 22rem; }
}

.colophon__swans { width: 96px; margin: 0 auto 1.2rem; }

/* ==================================================================
   Marker and crayon — the same hand as the film.
   Black brush line, colour scribbled so the paper shows through,
   red hand-lettered capitals, a pink border round the whole page.
================================================================== */

:root {
  --hand: "Covered By Your Grace", "Marker Felt", "Comic Sans MS", cursive;
  --black: #1F1C1B;
  --red: #D8402F;
  --paper: #FDFAF4;
  --ivory: #FDFAF4;
  --accent: var(--red);
  --hair: rgba(31, 28, 27, .5);
  --crayon-yellow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .21' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .949 0 0 0 0 .851 0 0 0 0 .541 -6 0 0 0 3.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --crayon-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .21' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .965 0 0 0 0 .725 0 0 0 0 .769 -6 0 0 0 3.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --crayon-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .21' numOctaves='2' seed='14' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .733 0 0 0 0 .839 0 0 0 0 .961 -6 0 0 0 3.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  --crayon-aqua: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='700'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008 .21' numOctaves='2' seed='21' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .624 0 0 0 0 .863 0 0 0 0 .878 -6 0 0 0 3.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
}

/* the pink border, with its black line */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 85; pointer-events: none;
  border: 9px solid #F29AAE; box-shadow: inset 0 0 0 3px var(--black);
}
.masthead { padding: max(1.3rem, env(safe-area-inset-top)) 1.4rem .9rem; }
.chapters { bottom: max(1.4rem, env(safe-area-inset-bottom)); }

/* lettering */
.eyebrow, .title, .display, .romance, .gate__title, .splash__line, .sheet__foot, .menu__when,
.portrait h3, .chaperone h3, .menu h3, .keepsake h2, .cameo figcaption, .supper figcaption,
.btn, .hint, .music, .sheet dt, .chapters a, .masthead__mono, .sheet__mono, .colophon__mono,
.colophon__link a, .keepsake__links a, .menu__link a {
  font-family: var(--hand); font-style: normal; font-weight: 400; text-transform: uppercase; letter-spacing: .13em;
}
.eyebrow { font-size: 1.05rem; letter-spacing: .2em; text-indent: 0; color: var(--black); }
.eyebrow .amp, .title .amp, .display .amp { font-family: var(--hand); font-style: normal; font-size: 1em; }
.display { color: var(--red); font-size: clamp(3.4rem, 17vw, 6.4rem); letter-spacing: .08em; line-height: 1; }
.display .amp { font-size: .6em; margin: .1em 0; }
.title { color: var(--black); font-size: clamp(1.9rem, 7.6vw, 3.3rem); line-height: 1.12; letter-spacing: .1em; }
.title--xl { font-size: clamp(2.8rem, 12vw, 4.6rem); color: var(--red); }
.romance, .gate__title, .splash__line, .sheet__foot { color: var(--red); font-size: clamp(1.25rem, 4.6vw, 1.7rem); line-height: 1.3; }
.menu__when { color: var(--red); font-size: 1.15rem; }
.cameo figcaption { color: var(--red); font-size: 1.25rem; }
.supper figcaption { color: var(--red); font-size: clamp(1.1rem, 4vw, 1.4rem); background: var(--paper); border: 3px solid var(--black); padding: .5em 1em .4em; rotate: -1deg; }
.portrait h3, .chaperone h3, .menu h3, .keepsake h2 { font-size: 1.55rem; letter-spacing: .1em; line-height: 1.15; }
.sheet dt, .hint { font-size: .95rem; color: var(--black); }
.sheet dd { font-family: var(--italic); font-size: clamp(1.3rem, 5vw, 1.7rem); }
.masthead__mono, .sheet__mono, .colophon__mono { color: var(--red); letter-spacing: .14em; text-shadow: none; }
.masthead__mono i, .sheet__mono i, .colophon__mono i { font-family: var(--hand); font-style: normal; }
.sheet__mono { font-size: 1.9rem; }
.music, .chapters a { font-size: .95rem; color: var(--black); }
.chapters a.is-current { color: var(--red); font-style: normal; }
.colophon__link a, .keepsake__links a, .menu__link a { font-size: .95rem; color: var(--black); }

/* buttons, pills and plates: paper, with a brush-drawn edge */
.btn { font-size: 1.1rem; letter-spacing: .16em; text-indent: 0; border: 3px solid var(--black); border-radius: 4px; box-shadow: none; color: var(--black); background: var(--paper); }
.btn:hover { letter-spacing: .2em; }
.btn--solid { background: var(--red); color: var(--paper); box-shadow: none; }
.btn--line:hover, .btn--solid:hover { background: var(--black); color: var(--paper); border-color: var(--black); box-shadow: none; }
.masthead__mono, .music, .chapters { border: 3px solid var(--black); background: var(--paper); }
.music__bars i { background: var(--red); }

/* each scene is a sheet of coloured-in paper */
.gate, .splash, .invitation, .keepsakes { background: var(--paper); }
.details { background: var(--paper) var(--crayon-yellow); }
.pairing { background: var(--paper) var(--crayon-pink); }
.evening { background: var(--paper) var(--crayon-blue); color: var(--ink); }
.rsvp, .colophon { background: var(--paper) var(--crayon-aqua); }
.colophon--plain { background: var(--paper); }
.evening::before, .evening::after { display: none; }
.evening .eyebrow { color: var(--black); }
.evening .scene__intro { color: var(--ink); }
.rsvp::after { background: var(--black); opacity: 1; height: 3px; }
.walker { color: var(--black); }
.colophon { color: var(--ink); }

/* section headings sit on a painted sign, as in the film */
.pairing .scene__head, .evening .scene__head, .details .scene__head {
  background: var(--paper); border: 4px solid var(--black); border-radius: 8px; padding: 1.5rem 1.6rem 1.3rem;
  box-shadow: 0 0 0 7px #F2A25C, 0 0 0 10px #2B4FA0; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; rotate: -.6deg;
}

/* cards and frames: black line instead of gold */
.sheet, .reply, .keepsake__art { border: 4px solid var(--black); box-shadow: 8px 9px 0 rgba(31, 28, 27, .16); }
.sheet::before, .reply::before { display: none; }
.sheet { border-radius: 50% 50% 4px 4px / 120px 120px 4px 4px; }
.sheet__mono { border-bottom: 3px solid var(--black); }
.sheet__row { border-bottom: 2px dashed var(--hair); }
.menu { background: var(--black); gap: 4px; border: 4px solid var(--black); box-shadow: 8px 9px 0 rgba(31, 28, 27, .16); }
.menu__icon { background: var(--paper); box-shadow: 0 0 0 3px var(--black); }
.portrait__frame { box-shadow: 0 0 0 4px var(--black), 0 0 0 12px var(--paper), 0 0 0 15px var(--black), 9px 12px 0 15px rgba(31, 28, 27, .14); }
.chaperone__frame, .cameo__frame { box-shadow: 0 0 0 3px var(--black), 0 0 0 9px var(--paper), 0 0 0 12px var(--black); }
.supper__frame { box-shadow: 0 0 0 4px var(--black), 0 0 0 12px var(--paper), 0 0 0 15px var(--black), 9px 12px 0 15px rgba(31, 28, 27, .14); }
.garden::after { border: 3px solid var(--black); box-shadow: none; }
.chaperone { border-top: 3px solid var(--black); }
.pairing__quote p { color: var(--black); }
.pairing__quote::before, .pairing__quote::after { background: var(--black); height: 3px; }
.evening .menu__link--after span { color: var(--ink); }
.menu__link--after a { color: var(--black); }
.is-placeholder { font-family: var(--hand) !important; font-size: .95rem !important; }
.splash__stage::after { background: var(--black); opacity: 1; height: 3px; }
.splash__eyebrow, .gate .eyebrow, .invitation .eyebrow { color: var(--black); }

/* ==================================================================
   Larger screens
================================================================== */

@media (min-width: 720px) {
  .sheet__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
  .details__sprig--r { right: -5%; top: 2%; }
  .sheet__row:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; min-width: 46%; }
  .keepsakes__grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  .reply__buttons { grid-template-columns: 1fr 1fr; max-width: 30rem; }
  .menu { grid-template-columns: repeat(3, 1fr); }
  .chaperone { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; column-gap: 2.5rem; max-width: 34rem; }
  .chaperone figcaption { justify-items: start; }
  .chaperone .eyebrow { text-indent: 0; }
}

@media (min-width: 980px) {
  .masthead { padding: 1.4rem 1.8rem; }
  .chapters { left: auto; right: 1.8rem; bottom: auto; top: 50%; transform: translateY(-50%); flex-direction: column; padding: .5rem .2rem; }
  .invitation__grid { grid-template-columns: 1fr minmax(0, 430px); align-items: center; justify-items: start; column-gap: 6rem; max-width: 1020px; }
  .invitation__text { justify-items: start; text-align: left; gap: 1.3rem; }
  .invitation__text .eyebrow { text-indent: 0; }
  .display { font-size: clamp(4.5rem, 7.6vw, 7rem); }
  .display .amp { margin-left: .05em; }
  .pairing__grid { grid-template-columns: 1fr 1.05fr 1fr; align-items: center; gap: 2rem; }
  .menu { grid-template-columns: repeat(3, 1fr); }
  .menu__item { padding: 3.4rem 1.6rem; }
  .colophon { padding-bottom: 4rem; }
}

/* ==================================================================
   Reduced motion: everything arrives, nothing travels
================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .bird, .reply__petals { display: none; }
  .heart__line { stroke-dashoffset: 0; }
  .heart__fill { opacity: 1; }
}
