/* Invitation styles — shared by every theme.
   Sizes come from the 1080-unit design canvas: write calc(N * var(--u)).
   Colours and fonts arrive as CSS variables set by render.js (see CLAUDE.md). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--page-bg, #E9E5DF);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.embedded { scrollbar-width: none; }
html.embedded::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }

/* ───────────────────────────── page ───────────────────────────── */
#invite {
  /* Fallbacks (Ivory Arch); render.js overrides them per theme. */
  --c-bg: #F8F4EE;
  --c-alt: #F0E9DE;
  --c-card: #FFFDF9;
  --c-ink: #3A342D;
  --c-muted: #80766A;
  --c-accent: #A88A5A;
  --c-soft: #E4D8C6;
  --c-dark: #29241F;
  --c-onDark: #FFFDF9;
  --c-onDarkAccent: #DCC8A4;
  --f-script: "Pinyon Script", cursive;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --f-sans: "Montserrat", system-ui, sans-serif;
  --script-scale: 1;

  max-width: 480px;
  margin: auto;
  min-height: 100vh;
  min-height: 100svh;
  container-type: inline-size;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-serif);
  font-variant-numeric: lining-nums; /* Cormorant's default old-style figures look uneven in dates */
  overflow-x: clip;
  box-shadow: 0 0 80px rgb(0 0 0 / .12);
}

.sec {
  --u: calc(min(100vw, 480px) / 1080);
  --hair: calc(1.5 * var(--u));
  position: relative;
  overflow: hidden;
  padding: calc(120 * var(--u)) calc(110 * var(--u));
  text-align: center;
  background: var(--c-bg);
  color: var(--c-ink);
}
@supports (width: 1cqw) {
  .sec { --u: calc(100cqw / 1080); }
}
.bg-alt { background: var(--c-alt); }
.bg-dark {
  /* Inside dark sections every "ink" becomes light and every gold becomes the light gold. */
  --c-ink: var(--c-onDark);
  --c-accent: var(--c-onDarkAccent);
  --c-muted: rgb(255 255 255 / .78);
  --c-muted: color-mix(in srgb, var(--c-onDark) 78%, transparent);
  background: var(--c-dark);
  color: var(--c-onDark);
}

:where(.sec) :where(h1, h2, h3, p, ol) { margin: 0; }
.sec a { color: inherit; }
.sec :focus-visible { outline: max(2px, calc(3 * var(--u))) solid var(--c-accent); outline-offset: 3px; }

/* ───────────────────────────── shared pieces ───────────────────────────── */
.label {
  --ls: calc(10 * var(--u));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(26 * var(--u));
  line-height: 1.7;
  letter-spacing: var(--ls);
  padding-left: var(--ls); /* balances the trailing letter-spacing so caps stay centred */
  text-transform: uppercase;
  color: var(--c-accent);
}
.label.muted { color: var(--c-muted); }
.label.wide { --ls: calc(24 * var(--u)); }
.label.tiny { --ls: calc(6 * var(--u)); font-size: calc(21 * var(--u)); }
.place span { display: inline-block; }

.script {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: calc(124 * var(--u) * var(--script-scale));
  line-height: 1.2;
  color: var(--c-ink);
  margin: calc(14 * var(--u)) 0 calc(44 * var(--u));
  text-wrap: balance;
}
/* Names are stacked: "Emma" / small gold "&" / "James" — works for long names too. */
.names {
  font-size: calc(168 * var(--u) * var(--script-scale));
  line-height: 1.08;
  margin: calc(58 * var(--u)) 0 calc(30 * var(--u));
  overflow-wrap: anywhere;
}
.amp { /* the serif italic "&" reads better than most script fonts' tiny ampersands */
  display: block;
  margin: calc(-4 * var(--u)) 0 calc(6 * var(--u));
  font-family: var(--f-serif);
  font-style: italic;
  font-size: calc(70 * var(--u));
  line-height: 1;
  color: var(--c-accent);
}

.lede {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: calc(41 * var(--u));
  line-height: 1.32;
  margin: calc(34 * var(--u)) auto 0;
  max-width: calc(820 * var(--u));
  text-wrap: pretty;
}
.lede.muted { color: var(--c-muted); }
.lede.small { font-size: calc(34 * var(--u)); }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(24 * var(--u));
  margin: calc(76 * var(--u)) auto;
}
.ornament i { width: calc(120 * var(--u)); border-top: var(--hair) solid var(--c-accent); }
.ornament b {
  width: calc(15 * var(--u));
  height: calc(15 * var(--u));
  border: var(--hair) solid var(--c-accent);
  transform: rotate(45deg);
}

.btn {
  display: inline-block;
  margin-top: calc(54 * var(--u));
  padding: calc(30 * var(--u)) calc(76 * var(--u));
  border: var(--hair) solid var(--c-accent);
  border-radius: 999px;
  background: transparent;
  color: var(--c-ink);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(23 * var(--u));
  line-height: 1.4;
  letter-spacing: calc(6 * var(--u));
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
a.btn:hover { background: var(--c-accent); color: var(--c-card); }
.btn.solid { background: var(--c-onDark); border-color: var(--c-onDark); color: var(--c-dark); }
a.btn.solid:hover, button.btn.solid:hover { background: var(--c-onDarkAccent); border-color: var(--c-onDarkAccent); color: var(--c-dark); }

/* Empty photo slot (the buyer has not added a photo yet). */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-soft);
}
.ph::after {
  content: "Your photo";
  font-family: var(--f-sans);
  font-size: calc(22 * var(--u));
  letter-spacing: calc(6 * var(--u));
  text-transform: uppercase;
  color: var(--c-muted);
}

/* Full-bleed background photo + dark overlay (cover.full, rsvp.photo). */
.bleed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bleed.ph { background: var(--c-dark); }
.bleed.ph::after { content: none; }
.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / .1), rgb(0 0 0 / .18) 25%, rgb(0 0 0 / .62) 52%, rgb(0 0 0 / .9));
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--c-dark) 10%, transparent),
    color-mix(in srgb, var(--c-dark) 18%, transparent) 25%,
    color-mix(in srgb, var(--c-dark) 64%, transparent) 52%,
    color-mix(in srgb, var(--c-dark) 90%, transparent));
}
.shade.heavy {
  background: rgb(0 0 0 / .62);
  background: color-mix(in srgb, var(--c-dark) 62%, transparent);
}

/* ───────────────────────────── cover ───────────────────────────── */
.v-arch { padding-top: calc(110 * var(--u)); }
.arch {
  position: relative;
  width: calc(680 * var(--u));
  height: calc(898 * var(--u));
  margin: calc(74 * var(--u)) auto calc(10 * var(--u));
}
.arch::before { /* thin gold outline, 22u outside the photo */
  content: "";
  position: absolute;
  inset: calc(-22 * var(--u));
  border: var(--hair) solid var(--c-accent);
  border-radius: calc(362 * var(--u)) calc(362 * var(--u)) 0 0;
  pointer-events: none;
}
.arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(340 * var(--u)) calc(340 * var(--u)) 0 0;
}

.dateblock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: calc(44 * var(--u));
  margin: calc(56 * var(--u)) auto calc(50 * var(--u));
}
.db-side {
  padding: calc(22 * var(--u)) 0;
  border-top: var(--hair) solid var(--c-accent);
  border-bottom: var(--hair) solid var(--c-accent);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(23 * var(--u));
  line-height: 1.4;
  letter-spacing: calc(6 * var(--u));
  text-transform: uppercase;
  white-space: nowrap;
}
.db-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.db-mid small {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(23 * var(--u));
  letter-spacing: calc(8 * var(--u));
  padding-left: calc(8 * var(--u));
  text-transform: uppercase;
  color: var(--c-accent);
}
.db-mid strong {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(156 * var(--u));
  line-height: .95;
  margin: calc(10 * var(--u)) 0 calc(6 * var(--u));
}

.scrollcue {
  width: 0;
  height: calc(120 * var(--u));
  margin: calc(64 * var(--u)) auto 0;
  border-left: var(--hair) solid var(--c-accent);
  transform-origin: top;
}
@media (prefers-reduced-motion: no-preference) {
  .scrollcue { animation: cue 2.6s ease-in-out infinite; }
}
@keyframes cue {
  0%, 100% { transform: scaleY(.35); opacity: .5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.v-full, .v-gradient {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(1900 * var(--u));
  min-height: max(100svh, calc(1600 * var(--u)));
  padding-bottom: calc(150 * var(--u));
}
.full-text { position: relative; z-index: 1; }
.v-full .names, .v-gradient .names { margin-top: calc(30 * var(--u)); }

/* cover.gradient: no photo — a soft glow (theme colour "glow") fading into the dark */
.v-gradient {
  background: linear-gradient(180deg, var(--c-glow, #8E7180), var(--c-dark) 88%);
  background:
    radial-gradient(130% 55% at 50% 0%, color-mix(in srgb, var(--c-glow, #8E7180) 80%, #fff) 0%, transparent 70%),
    linear-gradient(180deg,
      var(--c-glow, #8E7180) 0%,
      color-mix(in srgb, var(--c-glow, #8E7180) 45%, var(--c-dark)) 48%,
      var(--c-dark) 90%);
}
.v-gradient::before { /* fine grain: keeps the gradient velvety instead of banded */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: .16;
  mix-blend-mode: overlay;
}

/* ───────────────────────────── date ───────────────────────────── */
.cal { width: calc(760 * var(--u)); margin: 0 auto; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-head b {
  padding-bottom: calc(22 * var(--u));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(24 * var(--u));
  color: var(--c-accent);
}
.cal-grid > * {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(96 * var(--u));
  font-family: var(--f-serif);
  font-size: calc(46 * var(--u));
}
.cal-grid .on { color: var(--c-card); }
.cal-grid .on::before { /* the wedding day: a filled heart in the accent colour */
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: calc(108 * var(--u));
  height: calc(103 * var(--u));
  background: var(--c-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 3 20 18.35'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2 3 20 18.35'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translate(-50%, -42%); /* the number sits in the heart's wide upper half */
}
.sec-date .cal + .lede { margin-top: calc(40 * var(--u)); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(28 * var(--u));
  margin: calc(44 * var(--u)) 0 calc(6 * var(--u));
}
.cd {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(56 * var(--u)) 0 calc(34 * var(--u));
  background: var(--c-card);
  border: var(--hair) solid var(--c-accent);
  border-radius: 999px 999px 0 0;
}
.cd strong {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(92 * var(--u));
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.cd small {
  margin-top: calc(16 * var(--u));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(18 * var(--u));
  letter-spacing: calc(4 * var(--u));
  padding-left: calc(4 * var(--u));
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ───────────────────────────── music ───────────────────────────── */
.sec-music { padding-top: calc(100 * var(--u)); padding-bottom: calc(110 * var(--u)); }

/* Floating play/pause (render.js puts it on <body>, outside #invite, with its own colours). */
.mini-player {
  position: fixed;
  z-index: 50;
  right: max(16px, calc(50vw - 240px + 16px));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--mp-bg);
  color: var(--mp-fg);
  box-shadow: 0 6px 18px rgb(0 0 0 / .28);
  cursor: pointer;
}
.mini-player:focus-visible { outline: 2px solid var(--mp-bg); outline-offset: 3px; }
.mp-play { width: 20px; height: 20px; fill: currentColor; transform: translateX(1px); }
.mp-eq { display: none; align-items: flex-end; gap: 3px; height: 16px; }
.mp-eq i {
  width: 3px;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  transform-origin: bottom;
  animation: mp-eq 1s ease-in-out infinite;
}
.mp-eq i:nth-child(2) { animation-delay: -.35s; }
.mp-eq i:nth-child(3) { animation-delay: -.7s; }
.mini-player.playing .mp-eq { display: flex; }
.mini-player.playing .mp-play { display: none; }
@keyframes mp-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .mp-eq i { animation: none; } }

/* ───────────────────────────── reminder (add to calendar) ───────────────────────────── */
.cal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(116 * var(--u));
  height: calc(116 * var(--u));
  margin: 0 auto calc(36 * var(--u));
  border: var(--hair) solid var(--c-accent);
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-accent);
}
.cal-icon svg { width: calc(56 * var(--u)); height: calc(56 * var(--u)); }
.sec-reminder .lede { margin-top: 0; }
.addcal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(26 * var(--u));
  margin-top: calc(56 * var(--u));
}
.addcal .btn { min-width: calc(580 * var(--u)); margin: 0; }

/* ───────────────────────────── story ───────────────────────────── */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(40 * var(--u));
  align-items: start;
  margin: 0 0 calc(10 * var(--u));
}
.duo-a, .duo-b {
  width: 100%;
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
}
.duo-b-wrap { position: relative; z-index: 0; margin-top: calc(120 * var(--u)); }
.duo-b-wrap::before { /* offset gold outline behind the right photo */
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(30 * var(--u)) calc(-30 * var(--u)) calc(-30 * var(--u)) calc(30 * var(--u));
  border: var(--hair) solid var(--c-accent);
}
.sec-story .duo + .lede { margin-top: calc(70 * var(--u)); }

.milestones { display: flex; justify-content: center; }
.milestones > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(4 * var(--u)) calc(14 * var(--u));
}
.milestones > div + div { border-left: var(--hair) solid var(--c-accent); }
.milestones strong {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(76 * var(--u));
  line-height: 1.05;
  color: var(--c-accent);
}
.milestones small {
  margin-top: calc(12 * var(--u));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(19 * var(--u));
  line-height: 1.5;
  letter-spacing: calc(4 * var(--u));
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ───────────────────────────── schedule ───────────────────────────── */
.timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline::before { /* the vertical gold line */
  content: "";
  position: absolute;
  left: 50%;
  top: calc(30 * var(--u));
  bottom: calc(30 * var(--u));
  border-left: var(--hair) solid var(--c-accent);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr calc(116 * var(--u)) 1fr;
  align-items: center;
  column-gap: calc(36 * var(--u));
}
.timeline li + li { margin-top: calc(58 * var(--u)); }
.timeline time {
  text-align: right;
  font-family: var(--f-serif);
  font-size: calc(58 * var(--u));
  line-height: 1;
  white-space: nowrap;
}
.tl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(116 * var(--u));
  height: calc(116 * var(--u));
  border: var(--hair) solid var(--c-accent);
  border-radius: 50%;
  background: var(--c-card);
  color: var(--c-accent);
}
.tl-icon svg { width: calc(54 * var(--u)); height: calc(54 * var(--u)); }
.timeline li > div { display: flex; flex-direction: column; text-align: left; }
.timeline b {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(24 * var(--u));
  line-height: 1.5;
  letter-spacing: calc(5 * var(--u));
  text-transform: uppercase;
}
.timeline em {
  margin-top: calc(4 * var(--u));
  font-family: var(--f-serif);
  font-size: calc(34 * var(--u));
  line-height: 1.25;
  color: var(--c-muted);
}
.sec-schedule .lede { margin-top: calc(70 * var(--u)); }

/* ───────────────────────────── venue ───────────────────────────── */
.framed { position: relative; margin: 0 0 calc(60 * var(--u)); }
.framed-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.framed::after { /* thin light frame inside the photo */
  content: "";
  position: absolute;
  inset: calc(26 * var(--u));
  border: var(--hair) solid rgb(255 255 255 / .85);
  pointer-events: none;
}
.venue-name {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(70 * var(--u));
  line-height: 1.15;
  margin-bottom: calc(18 * var(--u));
  text-wrap: balance;
}
.address { line-height: 1.9; }
.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: calc(64 * var(--u)) 0 0;
}
.twocol > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(8 * var(--u)) calc(20 * var(--u));
}
.twocol > div + div { border-left: var(--hair) solid var(--c-accent); }
.twocol small {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: calc(22 * var(--u));
  letter-spacing: calc(8 * var(--u));
  padding-left: calc(8 * var(--u));
  text-transform: uppercase;
  color: var(--c-accent);
}
.twocol strong {
  margin: calc(14 * var(--u)) 0 calc(6 * var(--u));
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(56 * var(--u));
  line-height: 1.1;
}
.twocol em {
  font-family: var(--f-serif);
  font-size: calc(34 * var(--u));
  line-height: 1.25;
  color: var(--c-muted);
}

/* ───────────────────────────── details ───────────────────────────── */
.palette {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: calc(26 * var(--u));
  margin-top: calc(56 * var(--u));
}
.palette i {
  width: calc(92 * var(--u));
  height: calc(92 * var(--u));
  border-radius: 50%;
  border: var(--hair) solid rgb(0 0 0 / .12);
  border: var(--hair) solid color-mix(in srgb, var(--c-ink) 16%, transparent);
}

.player {
  margin: 0 auto;
  max-width: calc(780 * var(--u));
  padding: calc(60 * var(--u)) calc(70 * var(--u)) calc(56 * var(--u));
  background: var(--c-card);
  border: var(--hair) solid var(--c-accent);
  border-radius: calc(24 * var(--u));
}
.sec .label + .player { margin-top: calc(34 * var(--u)); }
.player-title {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: calc(58 * var(--u));
  line-height: 1.2;
}
.bar {
  position: relative;
  height: calc(40 * var(--u));
  margin-top: calc(36 * var(--u));
  cursor: pointer;
  touch-action: manipulation;
}
.bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: var(--hair) solid var(--c-soft);
}
.fill {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: max(1px, calc(3 * var(--u)));
  background: var(--c-accent);
  transform: translateY(-50%);
}
.knob {
  position: absolute;
  left: 0;
  top: 50%;
  width: calc(24 * var(--u));
  height: calc(24 * var(--u));
  border-radius: 50%;
  background: var(--c-accent);
  transform: translate(-50%, -50%);
}
.times {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-serif);
  font-size: calc(28 * var(--u));
  color: var(--c-muted);
  font-variant-numeric: lining-nums tabular-nums;
}
.play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(124 * var(--u));
  height: calc(124 * var(--u));
  margin: calc(18 * var(--u)) auto 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-card);
  cursor: pointer;
}
.play svg { width: calc(48 * var(--u)); height: calc(48 * var(--u)); fill: currentColor; }
.play .i-play { transform: translateX(6%); }
.play .i-pause, .player.playing .i-play { display: none; }
.player.playing .i-pause { display: block; }

/* ───────────────────────────── rsvp ───────────────────────────── */
.v-photo { padding: calc(210 * var(--u)) calc(150 * var(--u)) calc(200 * var(--u)); }
.frame {
  position: absolute;
  inset: calc(46 * var(--u));
  border: var(--hair) solid rgb(255 255 255 / .55);
  border: var(--hair) solid color-mix(in srgb, var(--c-onDark) 55%, transparent);
  pointer-events: none;
}
.rsvp-body { position: relative; z-index: 1; }
.rsvp-body .script { margin-bottom: calc(30 * var(--u)); }
.rsvp-body .lede { margin-top: 0; }

.rsvp-form {
  display: grid;
  gap: calc(26 * var(--u));
  max-width: calc(700 * var(--u));
  margin: calc(56 * var(--u)) auto calc(44 * var(--u));
}
.rsvp-form input,
.rsvp-form select {
  width: 100%;
  margin: 0;
  padding: calc(24 * var(--u)) calc(44 * var(--u));
  border: var(--hair) solid rgb(255 255 255 / .5);
  border: var(--hair) solid color-mix(in srgb, var(--c-onDark) 50%, transparent);
  border-radius: 999px;
  background: rgb(255 255 255 / .08);
  background: color-mix(in srgb, var(--c-onDark) 8%, transparent);
  color: var(--c-onDark);
  font-family: var(--f-serif);
  font-size: max(16px, calc(40 * var(--u))); /* ≥16px stops iOS zooming in */
  line-height: 1.3;
  text-align: center;
  text-align-last: center;
  -webkit-appearance: none;
  appearance: none;
}
.rsvp-form select {
  padding-right: calc(80 * var(--u));
  padding-left: calc(80 * var(--u));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right calc(44 * var(--u)) center;
  background-size: calc(26 * var(--u)) auto;
}
.rsvp-form option { color: #222; background: #fff; }
.rsvp-form ::placeholder { color: var(--c-muted); opacity: 1; }
.rsvp-form .btn { margin: calc(12 * var(--u)) 0 0; width: 100%; }
.rsvp-done {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: calc(44 * var(--u));
  line-height: 1.3;
}
.rsvp-error {
  margin: calc(8 * var(--u)) 0 0;
  font-family: var(--f-sans);
  font-size: calc(26 * var(--u));
  line-height: 1.45;
}
.rsvp-privacy {
  margin: calc(4 * var(--u)) 0 0;
  font-family: var(--f-sans);
  font-size: calc(22 * var(--u));
  letter-spacing: .02em;
  opacity: .72;
}
.rsvp-privacy a { color: inherit; }
/* Bot trap: people never see or fill it. */
.rsvp-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.mono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(190 * var(--u));
  height: calc(190 * var(--u));
  margin: calc(84 * var(--u)) auto calc(44 * var(--u));
  border: var(--hair) solid var(--c-accent);
  border-radius: 50%;
  font-family: var(--f-serif);
  font-size: calc(54 * var(--u));
  letter-spacing: calc(4 * var(--u));
  white-space: nowrap;
}
.rsvp-body .mono + .lede { margin-bottom: calc(26 * var(--u)); }

/* ───────────────────────────── finishing touches ─────────────────────────────
   Opt-in per theme with "decor": [...] in theme.json (render.js adds .decor-<name>). */

/* Thin inset frame on full-height covers (always on — it echoes the RSVP frame). */
.v-full::after, .v-gradient::after {
  content: "";
  position: absolute;
  inset: calc(46 * var(--u));
  border: var(--hair) solid rgb(255 255 255 / .45);
  border: var(--hair) solid color-mix(in srgb, var(--c-onDark) 45%, transparent);
  pointer-events: none;
}

/* paper: a faint grain on light sections, like printed stationery */
.decor-paper .sec { isolation: isolate; }
.decor-paper .sec:not(.bg-dark)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .32 0 0 0 0 .24 0 0 0 -1.5 .86'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23p)'/%3E%3C/svg%3E");
  background-size: 240px;
  opacity: .3;
  mix-blend-mode: multiply;
}

/* velvet: the grain for dark themes (paper's multiply grain disappears on dark colours) */
.decor-velvet .sec { isolation: isolate; }
.decor-velvet .sec:not(.v-gradient)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: .12;
  mix-blend-mode: overlay;
}

/* botanical: fine line-art laurel in the theme's accent colour (SVGs used as masks) */
.decor-botanical .arch::after { /* a sprig climbing the left side of the arch */
  content: "";
  position: absolute;
  left: calc(-326 * var(--u));
  bottom: calc(190 * var(--u));
  width: calc(560 * var(--u));
  height: calc(180 * var(--u));
  background: var(--c-accent);
  -webkit-mask: url("../assets/decor/sprig.svg") center / contain no-repeat;
  mask: url("../assets/decor/sprig.svg") center / contain no-repeat;
  transform: rotate(-79deg);
  pointer-events: none;
}
.decor-botanical .mono {
  position: relative;
  margin: calc(140 * var(--u)) auto calc(104 * var(--u));
  border-color: transparent;
}
.decor-botanical .mono::before { /* laurel wreath around the monogram */
  content: "";
  position: absolute;
  inset: calc(-82 * var(--u));
  background: var(--c-accent);
  -webkit-mask: url("../assets/decor/wreath.svg") center / contain no-repeat;
  mask: url("../assets/decor/wreath.svg") center / contain no-repeat;
  pointer-events: none;
}

/* gentle fade-in while scrolling (render.js adds .reveal / .in; never inside frames) */
.reveal .sec > * {
  opacity: 0;
  transform: translateY(calc(34 * var(--u)));
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.reveal .sec > .in { opacity: 1; transform: none; }
.reveal .sec > .bleed, .reveal .sec > .shade, .reveal .sec > .frame { transform: none; }

/* ───────────────────────────── messages ───────────────────────────── */
.notfound {
  margin: 0;
  padding: 40vh 24px 0;
  text-align: center;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #6E665C;
}
