/* =====================================================================
   BLUSH EDITORIAL — Engagement Invitation
   Colours are set from js/data.js (theme). Values below are fallbacks.
   Fonts: change the Google Fonts <link> in index.html and the two
   --font-* variables below.
   ===================================================================== */

:root {
  --blush: #E8C4C0;
  --blush-light: #F6E7E4;
  --plum: #4A1F2E;
  --sage: #9DAE93;
  --gold: #C4A06A;
  --paper: #FCF8F6;

  --ink: var(--plum);
  --ink-soft: color-mix(in srgb, var(--plum) 76%, var(--paper));
  --line: color-mix(in srgb, var(--plum) 18%, transparent);

  --font-display: "Playfair Display", "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1280px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --radius: 2px;
  --top-h: 68px;
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  :root { --ink-soft: #6b4652; --line: rgba(74, 31, 46, .18); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, .3vw + 14px, 17px);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.is-locked, html.is-locked body { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, ul, ol, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--blush); color: var(--plum); }

:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 2px; }
.footer :focus-visible, .ribbons :focus-visible { outline-color: var(--blush); }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  background: var(--plum); color: var(--paper); padding: 10px 16px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }
.noscript { padding: 24px; text-align: center; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.label {
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-soft);
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.display em { font-weight: 400; color: color-mix(in srgb, var(--plum) 70%, var(--blush)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 1.6em;
  border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--plum);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), border-color .35s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--solid { background: var(--plum); color: var(--paper); }
.btn--solid:hover { background: color-mix(in srgb, var(--plum) 86%, #000); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: var(--paper); transform: translateY(-2px); }
.btn--light { border-color: var(--blush); background: var(--blush); color: var(--plum); }
.btn--light:hover { background: var(--paper); border-color: var(--paper); }

/* ---------- Reveal system ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.mask { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); transition-delay: var(--d, 0s); }
.mask img { transform: scale(1.25); transition: transform 1.8s var(--ease); transition-delay: var(--d, 0s); }
.mask.is-in { clip-path: inset(0 0 0 0); }
.mask.is-in img { transform: scale(1); }
.mask--side { clip-path: inset(0 100% 0 0); }
.mask--side.is-in { clip-path: inset(0 0 0 0); }
.line-reveal { display: block; overflow: hidden; padding-bottom: .08em; }
.line-reveal > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.is-in .line-reveal > span, .line-reveal.is-in > span { transform: none; }

/* Image frames: gradient shows while loading or if the image fails */
.img-frame {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blush-light), var(--blush) 55%, color-mix(in srgb, var(--blush) 70%, var(--sage)));
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame.img-failed img { opacity: 0; }
.img-frame.img-failed::after {
  content: "♡"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 2.4rem; color: color-mix(in srgb, var(--plum) 45%, transparent);
}

/* ======================= INTRO ======================= */
.intro {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 40%, var(--paper) 0%, var(--blush-light) 55%, color-mix(in srgb, var(--blush) 60%, var(--blush-light)) 100%);
  color: var(--plum);
  padding: 24px;
  transition: transform 1s var(--ease-io), border-radius 1s var(--ease-io);
  cursor: pointer;
}
.intro.is-leaving { transform: translateY(-101%); border-bottom-left-radius: 50% 12%; border-bottom-right-radius: 50% 12%; }
.intro__inner { text-align: center; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.intro__ring { width: clamp(96px, 22vw, 136px); height: auto; color: var(--plum); overflow: visible; }
.intro__ring .draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.3s var(--ease) forwards; }
.intro__ring .d1 { animation-duration: 1.4s; }
.intro__ring .d2 { animation-delay: .15s; stroke: var(--gold); }
.intro__ring .d3 { animation-delay: .35s; }
.intro__ring .d4 { animation-delay: .55s; stroke: var(--gold); }
.intro__ring .d5 { animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.intro__sparkle path { fill: var(--gold); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: sparkle 1.6s var(--ease) 1.1s infinite; }
.intro__sparkle path:nth-child(2) { animation-delay: 1.3s; }
.intro__sparkle path:nth-child(3) { animation-delay: 1.5s; }
@keyframes sparkle { 0% { transform: scale(0) rotate(0); opacity: 0; } 30% { transform: scale(1.15) rotate(45deg); opacity: 1; } 70% { transform: scale(.9) rotate(90deg); opacity: 1; } 100% { transform: scale(0) rotate(135deg); opacity: 0; } }
.intro__label { margin-top: 26px; opacity: 0; animation: fadeUp .8s var(--ease) .6s forwards; font-size: .7rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-soft); }
.intro__names {
  margin-top: 10px;
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(2.5rem, 10vw, 5.4rem); line-height: 1.05; letter-spacing: -.01em;
}
.intro__names .ch { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(6px); animation: letter .7s var(--ease) forwards; }
.intro__names .amp { color: color-mix(in srgb, var(--plum) 55%, var(--blush)); padding-inline: .12em; }
@keyframes letter { to { opacity: 1; transform: none; filter: blur(0); } }
.intro__date { margin-top: 8px; opacity: 0; animation: fadeUp .8s var(--ease) 1.5s forwards; font-size: .8rem; letter-spacing: .3em; color: var(--ink-soft); }
.intro__enter {
  margin-top: 32px; min-height: 48px; padding: 0 26px;
  display: inline-flex; align-items: center; gap: 12px;
  background: transparent; border: 1px solid var(--plum); border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  opacity: 0; animation: fadeUp .8s var(--ease) 1.6s forwards;
  position: relative; overflow: hidden;
  transition: color .35s, background .35s;
}
.intro__enter svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.intro__enter:hover { background: var(--plum); color: var(--paper); }
.intro__enter:hover svg { transform: translateX(4px); }
.intro__enter::after { /* auto-proceed progress line */
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--blush); transform-origin: left; transform: scaleX(0);
  animation: progress var(--auto, 2.8s) linear forwards;
}
.intro.no-auto .intro__enter::after { display: none; }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ======================= TOP BAR ======================= */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  height: var(--top-h);
  transition: background .4s, box-shadow .4s, transform .5s var(--ease);
}
.topbar.is-scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar.is-hidden { transform: translateY(-100%); }
.topbar__inner { height: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.monogram {
  font-family: var(--font-display); font-style: italic; font-size: 1.45rem; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; letter-spacing: .02em;
}
.nav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__list a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
}
.nav__list a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__list a:not(.nav__cta):hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 0 20px; border: 1px solid var(--plum); border-radius: 999px; transition: background .3s, color .3s; }
.nav__cta:hover { background: var(--plum); color: var(--paper); }

.burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; position: relative; margin-right: -10px; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--plum); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 450;
  background: var(--blush-light);
  padding: calc(var(--top-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 34px);
  transition: clip-path .8s var(--ease-io);
  overflow-y: auto;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 34px); }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 14px; padding: 12px 0; min-height: 44px; text-decoration: none;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.2;
  transform: translateY(100%); transition: transform .7s var(--ease);
}
.mobile-menu a small { font-family: var(--font-body); font-style: normal; font-size: .7rem; letter-spacing: .2em; color: var(--ink-soft); }
.mobile-menu.is-open a { transform: none; transition-delay: calc(.2s + var(--i) * .06s); }
.mobile-menu__foot { margin-top: 28px; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }

/* ======================= HERO ======================= */
.hero {
  position: relative; min-height: min(100vh, 980px); min-height: min(100svh, 980px);
  padding: calc(var(--top-h) + clamp(16px, 4vw, 40px)) 0 clamp(72px, 9vw, 110px);
  display: flex; align-items: center;
  background:
    radial-gradient(60% 50% at 85% 20%, color-mix(in srgb, var(--blush) 55%, transparent), transparent 70%),
    radial-gradient(50% 45% at 5% 90%, color-mix(in srgb, var(--blush-light) 90%, transparent), transparent 70%),
    var(--paper);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hero__eyebrow { display: flex; align-items: center; gap: 14px; }
.hero__eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; }
.hero__names {
  margin-top: clamp(14px, 2vw, 22px);
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: clamp(3.9rem, 9.2vw, 9rem); line-height: .9; letter-spacing: -.025em;
}
.hero__names .n { display: block; }
.hero__names .n2 { padding-left: .55em; }
.hero__names .amp {
  display: block; font-size: .5em; line-height: 1.1; padding-left: .42em;
  color: color-mix(in srgb, var(--plum) 50%, var(--blush));
  font-style: italic;
}
.hero__names .line-reveal { padding-bottom: .12em; margin-bottom: -.12em; }
.hero__tagline {
  margin-top: clamp(16px, 2.2vw, 26px);
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.1vw, 1.8rem); color: var(--ink-soft);
}
.hero__meta {
  margin-top: clamp(18px, 2.4vw, 28px); padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 26px; max-width: 520px;
}
.hero__meta span { font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.hero__meta span + span::before { content: "✦"; margin-right: 26px; margin-left: -1px; color: var(--gold); letter-spacing: 0; display: inline-block; width: 0; transform: translateX(-17px); }
.hero__cta { margin-top: clamp(24px, 3vw, 38px); display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; padding: 0 0 12% 10%; }
.hero__frame { aspect-ratio: 4 / 5; max-height: min(calc(100svh - var(--top-h) - 150px), 760px); min-height: 360px; width: 100%; margin-left: auto; border-radius: 999px 999px 4px 4px; clip-path: inset(100% 0 0 0 round 999px 999px 4px 4px); transition: clip-path 1.6s var(--ease-io) .1s; }
.hero__par { position: absolute; left: 0; right: 0; top: -8%; height: 116%; will-change: transform; }
.hero__frame img { transform: scale(1.3); transition: transform 2.2s var(--ease) .1s; }
.is-ready .hero__frame { clip-path: inset(0 0 0 0 round 999px 999px 4px 4px); }
.is-ready .hero__frame img { transform: scale(1); }
.hero__polaroid {
  position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 4 / 5; z-index: 2;
  padding: 8px 8px 30px; background: #fff; box-shadow: 0 24px 50px -18px rgba(74, 31, 46, .35);
  transform: rotate(-8deg) translateY(40px); opacity: 0; transition: transform 1.3s var(--ease) .9s, opacity 1s .9s;
}
.hero__polaroid img { height: 100%; }
.is-ready .hero__polaroid { transform: rotate(-7deg); opacity: 1; }
.hero__badge { position: absolute; top: 4%; right: -3%; width: clamp(92px, 11vw, 138px); z-index: 3; opacity: 0; transition: opacity 1s 1.3s; }
.is-ready .hero__badge { opacity: 1; }
.hero__badge .badge-bg { fill: var(--plum); }
.hero__badge text { fill: var(--blush-light); font-family: var(--font-body); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.hero__badge textPath { animation: none; }
.hero__badge .badge-heart { fill: var(--blush); }
.hero__badge { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__text > * { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.hero__text > .hero__names { opacity: 1; transform: none; }
.hero__names .line-reveal > span { transform: translateY(110%); }
.is-ready .hero__text > * { opacity: 1; transform: none; }
.is-ready .hero__names .line-reveal > span { transform: none; }
.is-ready .hero__text > :nth-child(1) { transition-delay: .1s; }
.is-ready .hero__text > :nth-child(3) { transition-delay: .75s; }
.is-ready .hero__text > :nth-child(4) { transition-delay: .9s; }
.is-ready .hero__text > :nth-child(5) { transition-delay: 1.05s; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 44px; min-height: 44px;
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
}
.hero__scroll i { width: 1px; height: 38px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--plum); animation: scrollLine 2s var(--ease-io) infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* ======================= RIBBONS / MARQUEE ======================= */
.ribbons { position: relative; padding: clamp(28px, 5vw, 56px) 0; overflow: hidden; background: var(--paper); }
.ribbon { width: 104%; margin-left: -2%; overflow: hidden; white-space: nowrap; }
.ribbon--a { background: var(--plum); color: var(--blush-light); transform: rotate(-2deg); position: relative; z-index: 2; padding: clamp(12px, 1.6vw, 20px) 0; box-shadow: 0 18px 40px -24px rgba(74, 31, 46, .6); }
.ribbon--b { background: var(--blush); color: var(--plum); transform: rotate(1.6deg); margin-top: -8px; padding: clamp(8px, 1.1vw, 14px) 0; }
.ribbon__track { display: inline-flex; animation: marquee var(--speed, 38s) linear infinite; will-change: transform; }
.ribbon--b .ribbon__track { animation-direction: reverse; --speed: 46s; }
.ribbon__group { display: inline-flex; align-items: center; flex: none; }
.ribbon__item { display: inline-flex; align-items: center; font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.8rem); line-height: 1.2; }
.ribbon--b .ribbon__item { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: clamp(.68rem, 1vw, .82rem); letter-spacing: .3em; text-transform: uppercase; }
.ribbon__item::after { content: "✦"; font-style: normal; font-size: .5em; margin-inline: clamp(18px, 2.6vw, 36px); color: var(--gold); }
.ribbon--b .ribbon__item::after { content: "♥"; font-size: 1em; color: var(--plum); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ======================= SECTIONS ======================= */
.section { position: relative; padding: clamp(80px, 11vw, 160px) 0; }
.section[hidden] { display: none; }
.sec-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(44px, 7vw, 96px); }
.sec-num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(4.6rem, 13vw, 11rem); line-height: .78;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--plum) 45%, transparent);
  letter-spacing: -.04em;
}
.sec-head .label { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sec-head .label::after { content: ""; flex: 1; height: 1px; background: var(--line); max-width: 160px; }
.sec-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sec-head--center .sec-num { margin-bottom: 8px; font-size: clamp(4rem, 9vw, 7.5rem); }
.sec-head--center .label { justify-content: center; }
.sec-head--center .label::before { content: ""; width: 40px; height: 1px; background: var(--line); }
.sec-head--center .label::after { flex: none; width: 40px; }

/* ---------- Story ---------- */
.story { background: var(--paper); }
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: center; }
.chapter + .chapter { margin-top: clamp(72px, 10vw, 150px); }
.chapter__media { grid-column: 1 / span 7; position: relative; }
.chapter__img { aspect-ratio: 5 / 4; }
.chapter__img img { height: 100%; }
.chapter__text { grid-column: 9 / span 4; position: relative; }
.chapter:nth-of-type(even) .chapter__media { grid-column: 6 / span 7; grid-row: 1; }
.chapter:nth-of-type(even) .chapter__text { grid-column: 1 / span 4; grid-row: 1; }
.chapter:nth-of-type(even) .chapter__img { aspect-ratio: 4 / 5; width: 78%; margin-left: auto; }
.chapter__year {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.6rem, 8vw, 7rem); line-height: .9; letter-spacing: -.03em;
  color: var(--blush);
}
.chapter__title { margin-top: 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.12; }
.chapter__title em { color: color-mix(in srgb, var(--plum) 70%, var(--blush)); }
.chapter__body { margin-top: 18px; color: var(--ink-soft); max-width: 42ch; }
.chapter__idx { margin-top: 24px; display: flex; align-items: center; gap: 12px; font-size: .7rem; font-weight: 600; letter-spacing: .26em; color: var(--ink-soft); }
.chapter__idx::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.chapter__tag {
  position: absolute; right: -14px; bottom: -22px; z-index: 2;
  background: var(--blush-light); padding: 14px 20px; font-family: var(--font-hand); font-size: 1.5rem; line-height: 1;
  transform: rotate(-4deg); box-shadow: 0 10px 30px -12px rgba(74, 31, 46, .3);
}
.chapter:nth-of-type(even) .chapter__tag { right: auto; left: 16%; }

.pullquote { margin: clamp(90px, 12vw, 170px) auto 0; max-width: 980px; text-align: center; position: relative; padding-top: 40px; }
.pullquote::before {
  content: "“"; position: absolute; top: -.18em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: clamp(7rem, 16vw, 13rem); line-height: 1; color: var(--blush); z-index: 0;
}
.pullquote p { position: relative; font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.18; letter-spacing: -.01em; }
.pullquote cite { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.pullquote cite::before { content: ""; width: 40px; height: 1px; background: currentColor; }

/* ---------- Countdown ---------- */
.countdown { background: var(--blush-light); overflow: hidden; }
.countdown::before {
  content: ""; position: absolute; width: min(80vw, 820px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--plum) 12%, transparent); left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.countdown::after {
  content: ""; position: absolute; width: min(64vw, 640px); aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--plum) 10%, transparent); left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.countdown .wrap { position: relative; z-index: 1; }
.clock { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); max-width: 1120px; margin: 0 auto; }
.clock__unit { text-align: center; padding: 10px clamp(6px, 1.5vw, 20px); position: relative; }
.clock__unit + .clock__unit::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line); }
.clock__digits { display: inline-flex; justify-content: center; font-family: var(--font-display); font-weight: 400; font-size: clamp(3.4rem, 8.4vw, 8rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.digit { display: inline-block; height: 1.12em; overflow: hidden; width: .62em; position: relative; }
.digit__strip { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.65, 0, .25, 1.25); }
.digit__strip span { height: 1.12em; line-height: 1.12em; display: block; text-align: center; }
.clock__label { display: block; margin-top: 10px; font-size: .7rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.countdown__date span { white-space: nowrap; }
.countdown__date { margin-top: clamp(36px, 5vw, 64px); text-align: center; font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.countdown__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.countdown__passed { text-align: center; font-family: var(--font-display); font-style: italic; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.15; max-width: 22ch; margin: 0 auto; }

/* ---------- Events ---------- */
.events { background: var(--paper); }
.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.event-list.single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.event:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
.event__img { aspect-ratio: 3 / 2; }
.event__img img { height: 100%; transition: transform 1.2s var(--ease); }
.event:hover .event__img.is-in img { transform: scale(1.05); }
.event__body { position: relative; padding: clamp(22px, 3vw, 36px) 0 0; }
.event__time { display: flex; align-items: baseline; gap: 14px; font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -.03em; }
.event__time small { font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.event__name { margin-top: 12px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.15; }
.event__name em { color: color-mix(in srgb, var(--plum) 70%, var(--blush)); }
.event__meta { margin-top: 18px; border-top: 1px solid var(--line); }
.event__meta li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.event__meta b { font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.event__text { margin-top: 18px; color: var(--ink-soft); max-width: 46ch; }

.dress { margin-top: clamp(72px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(28px, 5vw, 64px); background: var(--blush-light); position: relative; }
.dress::before { content: ""; position: absolute; inset: 12px; border: 1px solid color-mix(in srgb, var(--plum) 14%, transparent); pointer-events: none; }
.dress h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.dress h3 em { color: color-mix(in srgb, var(--plum) 70%, var(--blush)); }
.dress p { margin-top: 14px; color: var(--ink-soft); max-width: 40ch; }
.swatches { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.6vw, 22px); justify-content: flex-start; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.swatch i {
  width: clamp(54px, 5.6vw, 84px); aspect-ratio: 1; border-radius: 50%; display: block;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(74, 31, 46, .12), 0 14px 30px -14px rgba(74, 31, 46, .45);
  transition: transform .5s var(--ease);
}
.swatch:hover i { transform: translateY(-6px) scale(1.05); }
.swatch span { font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- Gallery ---------- */
.gallery { background: linear-gradient(var(--paper), var(--blush-light) 30%, var(--blush-light) 70%, var(--paper)); overflow: hidden; }
.polaroids { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px) clamp(16px, 2.4vw, 36px); padding: 10px 0 30px; }
.polaroid {
  --r: 0deg; --y: 0px;
  position: relative; background: #fff; padding: 10px 10px 0; border: 0; text-align: left; width: 100%;
  box-shadow: 0 2px 4px rgba(74, 31, 46, .06), 0 22px 44px -20px rgba(74, 31, 46, .4);
  transform: translateY(var(--y)) rotate(var(--r));
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.polaroid.reveal { transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s), box-shadow .7s var(--ease); }
.polaroid.reveal.is-in:hover, .polaroid.reveal.is-in:focus-visible { transition-delay: 0s; }
.polaroid.reveal { opacity: 0; transform: translateY(calc(var(--y) + 40px)) rotate(calc(var(--r) * 2)); }
.polaroid.reveal.is-in { opacity: 1; transform: translateY(var(--y)) rotate(var(--r)); }
.polaroid:hover, .polaroid:focus-visible { transform: translateY(calc(var(--y) - 10px)) rotate(0deg) scale(1.04); box-shadow: 0 4px 8px rgba(74, 31, 46, .08), 0 34px 60px -22px rgba(74, 31, 46, .5); z-index: 3; }
.polaroid.reveal.is-in:hover, .polaroid.reveal.is-in:focus-visible { transform: translateY(calc(var(--y) - 10px)) rotate(0deg) scale(1.04); }
.polaroid .img-frame { aspect-ratio: 1 / 1.08; }
.polaroid img { height: 100%; }
.polaroid figcaption { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1; padding: 14px 4px 16px; color: var(--plum); }
.polaroid::before { /* washi tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 76px; height: 24px; transform: translateX(-50%) rotate(-4deg); z-index: 2;
  background: color-mix(in srgb, var(--blush) 75%, transparent); box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.polaroid.tape-sage::before { background: color-mix(in srgb, var(--sage) 65%, transparent); transform: translateX(-50%) rotate(5deg); }
.gallery__hint { display: none; }

/* ---------- Venue ---------- */
.venue { background: var(--paper); }
.venue__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.map { position: relative; }
.map::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; background: var(--blush); z-index: 0; }
.map__frame { position: relative; z-index: 1; aspect-ratio: 4 / 3; background: var(--blush-light); overflow: hidden; }
.map__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-decoration: none; color: var(--plum);
  background: repeating-linear-gradient(45deg, transparent 0 22px, color-mix(in srgb, var(--blush) 30%, transparent) 22px 23px), var(--blush-light); }
.map__fallback svg { width: 54px; height: 54px; }
.map__fallback span { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.12) saturate(.9); }
.venue__name { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.02em; }
.venue__name em { color: color-mix(in srgb, var(--plum) 70%, var(--blush)); }
.venue__addr { margin-top: 20px; font-size: 1.02rem; }
.venue__note { margin-top: 14px; color: var(--ink-soft); max-width: 44ch; font-size: .95rem; }
.venue__when { margin-top: 24px; padding: 16px 0; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.venue__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__grid .sec-head { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.faq__grid .sec-num { margin-bottom: 30px; }
.faq__grid .sec-head { position: sticky; top: calc(var(--top-h) + 30px); margin-bottom: 0; }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px;
  padding: 20px 0; background: none; border: 0; text-align: left;
  font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.3;
}
.acc__btn:hover { color: color-mix(in srgb, var(--plum) 70%, var(--blush)); }
.acc__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .35s, transform .5s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon { background: var(--blush); border-color: var(--blush); transform: rotate(180deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 56px 24px 0; color: var(--ink-soft); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }

/* ---------- Footer ---------- */
.footer { background: var(--blush-light); padding: clamp(80px, 10vw, 140px) 0 calc(40px + env(safe-area-inset-bottom)); text-align: center; overflow: hidden; position: relative; }
.footer__msg { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--ink-soft); }
.footer__names { margin-top: 12px; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(3rem, 10vw, 8.5rem); line-height: 1; letter-spacing: -.03em; }
.footer__tag {
  display: inline-block; margin-top: 18px; padding: 10px 22px; border-radius: 999px; background: var(--plum); color: var(--blush-light);
  font-size: clamp(.8rem, 1.3vw, 1rem); font-weight: 700; letter-spacing: .18em;
}
.contacts { scroll-margin-top: 90px; margin: clamp(48px, 6vw, 80px) auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 900px; }
.contact { flex: 1 1 240px; max-width: 320px; padding: 22px; border: 1px solid var(--line); background: var(--paper); text-align: center; }
.contact b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; }
.contact > span { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.contact__num { margin-top: 12px; font-weight: 600; letter-spacing: .04em; }
.contact__btns { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.contact__btns .btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 .9em; font-size: .66rem; letter-spacing: .16em; }
.contact__btns .btn svg { width: 16px; height: 16px; }
.footer__small { margin-top: 48px; font-size: .75rem; color: var(--ink-soft); line-height: 1.6; }
.footer__small p + p { margin-top: 4px; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 480; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s var(--ease); pointer-events: none; }
.is-ready .fab { opacity: 1; transform: none; pointer-events: auto; }
.fab__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--plum); display: grid; place-items: center; box-shadow: 0 12px 30px -14px rgba(74, 31, 46, .5); transition: transform .35s var(--ease), background .3s; }
.fab__btn:hover { transform: translateY(-3px); }
.fab__btn svg { width: 22px; height: 22px; }
.fab__btn[hidden] { display: none; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.bars i { width: 3px; height: 45%; background: currentColor; border-radius: 2px; transition: height .3s; }
.bars i:nth-child(2) { height: 80%; } .bars i:nth-child(3) { height: 60%; } .bars i:nth-child(4) { height: 35%; }
.fab__music[aria-pressed="true"] { background: var(--plum); color: var(--blush-light); }
.fab__music[aria-pressed="true"] .bars i { animation: eq 1s ease-in-out infinite; }
.fab__music[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: .2s; }
.fab__music[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: .4s; }
.fab__music[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); z-index: 950; background: var(--plum); color: var(--paper); padding: 12px 22px; border-radius: 999px; font-size: .85rem; opacity: 0; pointer-events: none; transition: opacity .4s, transform .5s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 920; background: color-mix(in srgb, var(--plum) 94%, #000); display: grid; place-items: center; padding: 64px 72px; opacity: 0; transition: opacity .4s; }
.lightbox[hidden] { display: none; }
.lightbox.is-on { opacity: 1; }
.lightbox__figure { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; transform: scale(.94); transition: transform .5s var(--ease); }
.lightbox.is-on .lightbox__figure { transform: none; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 180px); max-height: calc(100svh - 180px); object-fit: contain; background: #fff; padding: 10px; }
.lightbox__figure figcaption { margin-top: 14px; font-family: var(--font-hand); font-size: 1.7rem; color: var(--blush-light); }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--blush-light) 35%, transparent); background: transparent; color: var(--blush-light); display: grid; place-items: center; transition: background .3s; }
.lightbox button:hover { background: color-mix(in srgb, var(--blush-light) 14%, transparent); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox button:focus-visible { outline-color: var(--blush); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Cursor (desktop only) ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 990; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--plum); }
.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid color-mix(in srgb, var(--plum) 55%, transparent); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--blush) 40%, transparent); border-color: transparent; }
.cursor.is-hidden { opacity: 0; }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1080px) {
  .nav__list { gap: 16px; }
  .nav__list li.opt { display: none; }
}
@media (max-width: 900px) {
  :root { --top-h: 62px; }
  .nav { display: none; }
  .burger { display: block; }
  .hero { min-height: 0; padding-top: calc(var(--top-h) + 18px); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero__names { font-size: clamp(3.6rem, 20vw, 9rem); }
  .hero__visual { padding: 0 0 16% 12%; max-width: 560px; width: 100%; margin: 0 auto; }
  .hero__frame { max-height: none; min-height: 0; }
  .hero__badge { right: 0; top: -4%; }
  .hero__visual { max-width: 520px; }
  .hero__scroll { display: none; }

  .chapter { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chapter__media, .chapter__text,
  .chapter:nth-of-type(even) .chapter__media, .chapter:nth-of-type(even) .chapter__text { grid-column: 1; grid-row: auto; }
  .chapter:nth-of-type(even) .chapter__img { width: 86%; aspect-ratio: 4 / 5; }
  .chapter:nth-of-type(odd) .chapter__img { width: 94%; }
  .chapter__tag { right: 0; }
  .chapter:nth-of-type(even) .chapter__tag { left: 6%; }
  .chapter__text { padding-top: 12px; }

  .event-list { grid-template-columns: minmax(0, 1fr); }
  .event:nth-child(even) { margin-top: 0; }
  .dress { grid-template-columns: minmax(0, 1fr); }

  .venue__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__grid .sec-head { position: static; }
  .map::before { inset: 16px -12px -16px 16px; }
  .map { margin-right: 12px; }

  .polaroids { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sec-num { font-size: clamp(4.4rem, 26vw, 7rem); margin-bottom: 14px; }
  .sec-head--center .sec-num { margin-bottom: 6px; }
  .swatches { gap: 14px 10px; }
  .swatch i { width: 50px; }
  .swatch span { font-size: .58rem; letter-spacing: .12em; }
  .clock { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .clock__unit:nth-child(3)::before { display: none; }
  .clock__digits { font-size: clamp(3.4rem, 17vw, 6rem); }

  /* swipeable polaroids */
  .polaroids {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1); padding: 26px var(--gutter) 44px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .polaroids::-webkit-scrollbar { display: none; }
  .polaroid { flex: 0 0 74%; scroll-snap-align: center; --y: 0px !important; }
  .gallery__hint { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; font-size: .68rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
  .gallery__hint::before, .gallery__hint::after { content: ""; width: 26px; height: 1px; background: currentColor; }

  .acc__panel p { padding-right: 0; }
  .lightbox { padding: 72px 12px 90px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .hero__meta span + span::before { display: none; }
  .hero__meta { gap: 6px 18px; }
  .venue__actions .btn, .countdown__actions .btn { flex: 1 1 100%; }
}
@media (max-width: 359px) {
  .hero__cta .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .swatches { gap: 12px; }
  .event__meta li { grid-template-columns: 74px minmax(0, 1fr); }
  .btn { padding: 0 1.2em; letter-spacing: .16em; }
}
@media (min-width: 1600px) {
  :root { --max: 1440px; }
}

/* ======================= REDUCED MOTION ======================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ribbon__track, .hero__badge { animation: none !important; }
  .reveal, .mask, .mask img, .line-reveal > span, .hero__text > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .polaroid.reveal { opacity: 1 !important; transform: rotate(var(--r)) !important; }
  .intro__names .ch { opacity: 1; transform: none; filter: none; }
}

/* weblivites: story chapters without a photo, dress code without swatches */
.chapter--text .chapter__text,
.chapter--text:nth-of-type(even) .chapter__text { grid-column: 3 / span 8; grid-row: auto; text-align: center; }
.chapter--text .chapter__body { margin-left: auto; margin-right: auto; }
.chapter--text .chapter__idx { justify-content: center; }
.chapter--text + .chapter--text { margin-top: clamp(56px, 7vw, 96px); }
.dress--plain { grid-template-columns: minmax(0, 1fr); text-align: center; }
.dress--plain p { margin-left: auto; margin-right: auto; }
@media (max-width: 680px) {
  .chapter--text .chapter__text, .chapter--text:nth-of-type(even) .chapter__text { grid-column: 1; }
}

/* weblivites: keep the page out of layout-shift accounting while the intro covers it */
html.is-loading #main { visibility: hidden; }
