/* ====================================================================
   SITE THEME: Heather & Ronin
   All public site styling. To re-theme for another couple, copy this
   file, change the tokens in :root and point theme.site_css at it.
   Motif: the dot-capped hairline that divides H and R in the logo.
   ==================================================================== */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); }

:root {
  --sage: #79836a;
  --sage-deep: #5d6750;
  --sage-night: #3f4636;
  --sage-mist: #e6e9d8;
  --beige: #f5f5dc;
  --linen: #fcfcf3;
  --field: #fffffa;
  --ink: #1f2319;
  --ink-soft: #4c5443;
  --line: #deddc6;
  --greige: #c9c5b1;
  --danger: #8b3b36;

  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Century Gothic", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.1rem, 5vw, 3rem);
  --section: clamp(5rem, 12vw, 9rem);
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 1px 0 rgba(31, 35, 25, 0.03), 0 30px 60px -38px rgba(61, 70, 48, 0.5);
  --head-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); }
body {
  margin: 0; font-family: var(--sans); font-variant-numeric: lining-nums; font-size: 1.0625rem; line-height: 1.65; color: var(--ink);
  background: var(--beige); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; font-variant-numeric: lining-nums; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--sage); color: var(--linen); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--linen); padding: 0.6rem 1rem; border-radius: var(--r-pill); text-decoration: none; transition: top 0.25s var(--ease); }
.skip:focus-visible { top: 1rem; }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; z-index: 1; }
.wrap-narrow { width: min(780px, 100% - 2 * var(--gutter)); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--sage); --fg: var(--linen); --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 50px; padding: 0.8rem 1.6rem; border: 1px solid var(--bd); border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); font: 500 0.95rem/1 var(--sans); letter-spacing: 0.03em;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s var(--ease), box-shadow 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 120% at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 240, 0.28), transparent 55%); opacity: 0; transition: opacity 0.4s var(--ease); }
.btn:hover { --bg: var(--sage-deep); box-shadow: 0 14px 28px -18px rgba(61, 70, 48, 0.8); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-quiet { --bg: transparent; --fg: var(--ink); --bd: var(--greige); }
.btn-quiet:hover { --bg: var(--sage-mist); box-shadow: none; }
.btn-light { --bg: rgba(252, 252, 243, 0.08); --fg: var(--linen); --bd: rgba(252, 252, 243, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-light:hover { --bg: var(--linen); --fg: var(--ink); --bd: var(--linen); }
.btn-small { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-wide { width: 100%; }

/* ---------- the hairline motif ---------- */
.stem { position: relative; display: block; width: 1px; height: 64px; margin: 0 auto 1.4rem; background: var(--greige); transform-origin: top; }
.stem::before, .stem::after { content: ""; position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--greige); }
.stem::before { top: -3px; }
.stem::after { bottom: -3px; }
.stem-light, .stem-light::before, .stem-light::after { background: rgba(252, 252, 243, 0.5); }
.js .reveal .stem { transform: scaleY(0); transition: transform 1.1s var(--ease) 0.1s; }
.js .reveal .stem::after { opacity: 0; transition: opacity 0.4s var(--ease) 0.9s; }
.js .reveal.is-in .stem { transform: none; }
.js .reveal.is-in .stem::after { opacity: 1; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==================================================================
   HEADER
   ================================================================== */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h);
  display: flex; align-items: center; gap: 1.5rem; padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  color: var(--linen);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(245, 245, 220, 0.86); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); opacity: 0; transition: opacity 0.5s var(--ease); border-bottom: 1px solid var(--line); }
.site-head.is-scrolled { color: var(--ink); }
.site-head.is-scrolled::before { opacity: 1; }
.brand { position: relative; display: block; width: 58px; height: 48px; flex: none; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 0.5s var(--ease); }
.brand-dark { opacity: 0; }
.is-scrolled .brand-light, .menu-open .brand-light { opacity: 0; }
.is-scrolled .brand-dark, .menu-open .brand-dark { opacity: 1; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.nav-a { position: relative; display: inline-block; padding: 0.4rem 0; font-size: 0.95rem; letter-spacing: 0.03em; text-decoration: none; }
.nav-a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav-a:hover::after, .nav-a.is-current::after { transform: scaleX(1); transform-origin: left; }
.btn-nav { --bg: transparent; --fg: currentColor; --bd: currentColor; min-height: 42px; padding: 0.5rem 1.3rem; }
.is-scrolled .btn-nav { --bg: var(--sage); --fg: var(--linen); --bd: var(--sage); }
.nav-floral { display: none; }
.menu-btn { display: none; }

@media (max-width: 959px) {
  .menu-btn { position: relative; z-index: 2; margin-left: auto; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; }
  .menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 24px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.5s var(--ease), background-color 0.3s var(--ease); }
  .menu-lines { position: relative; }
  .menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
  .menu-lines::before { transform: translateY(-7px); }
  .menu-lines::after { transform: translateY(7px); width: 16px; }
  .menu-open .menu-lines { background: transparent; }
  .menu-open .menu-lines::before { transform: rotate(45deg); }
  .menu-open .menu-lines::after { transform: rotate(-45deg); width: 24px; }
  .menu-open .site-head { color: var(--ink); }

  .site-nav {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    flex-direction: column; justify-content: center; gap: 2.2rem;
    padding: calc(var(--head-h) + 1rem) var(--gutter) 3rem;
    background: var(--beige); color: var(--ink);
    clip-path: circle(0 at calc(100% - var(--gutter) - 24px) calc(var(--head-h) / 2));
    visibility: hidden;
    transition: clip-path 0.75s var(--ease-soft), visibility 0s linear 0.75s;
  }
  .menu-open .site-nav { clip-path: circle(150% at calc(100% - var(--gutter) - 24px) calc(var(--head-h) / 2)); visibility: visible; transition: clip-path 0.8s var(--ease-soft), visibility 0s; }
  .nav-list { flex-direction: column; align-items: center; gap: 0.4rem; }
  .nav-list li { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
  .menu-open .nav-list li { opacity: 1; transform: none; }
  .menu-open .nav-list li:nth-child(1) { transition-delay: 0.18s; }
  .menu-open .nav-list li:nth-child(2) { transition-delay: 0.23s; }
  .menu-open .nav-list li:nth-child(3) { transition-delay: 0.28s; }
  .menu-open .nav-list li:nth-child(4) { transition-delay: 0.33s; }
  .menu-open .nav-list li:nth-child(5) { transition-delay: 0.38s; }
  .menu-open .nav-list li:nth-child(6) { transition-delay: 0.43s; }
  .nav-a { font-family: var(--serif); font-size: clamp(2rem, 9vw, 2.6rem); letter-spacing: 0; padding: 0.15rem 0; }
  .btn-nav, .is-scrolled .btn-nav { --bg: var(--sage); --fg: var(--linen); --bd: var(--sage); min-height: 52px; padding: 0.8rem 2.4rem; opacity: 0; transition: opacity 0.5s var(--ease) 0.5s, background-color 0.3s; }
  .menu-open .btn-nav { opacity: 1; }
  .nav-floral { display: block; position: absolute; right: -40px; bottom: -30px; width: 190px; opacity: 0; transform: translateY(30px) scaleX(-1); transition: opacity 0.8s var(--ease) 0.35s, transform 1s var(--ease) 0.35s; pointer-events: none; }
  .menu-open .nav-floral { opacity: 0.9; transform: scaleX(-1); }
  body.menu-open { overflow: hidden; }
}

/* ==================================================================
   HERO
   ================================================================== */
.hero {
  position: relative; display: grid; place-items: center; min-height: 560px; height: 100vh; height: 100svh;
  overflow: hidden; color: var(--linen); background: var(--sage-night); isolation: isolate;
}
.reel { position: absolute; inset: 0; z-index: -2; overflow: hidden; animation: reel-in 2.6s var(--ease) both; }
.reel-track { display: flex; height: 100%; width: max-content; backface-visibility: hidden; }
.reel-set { display: flex; height: 100%; flex: none; }
.reel picture { display: block; height: 100%; flex: none; }
.reel img { height: 100%; width: auto; max-width: none; object-fit: cover; }
.reel.is-sized img { width: 100%; }
.reel.is-fade .reel-track, .reel.is-fade .reel-set { position: absolute; inset: 0; width: 100%; }
.reel.is-fade picture { position: absolute; inset: 0; width: 100%; opacity: 0; transition: opacity 1.6s ease; }
.reel.is-fade picture.is-on { opacity: 1; }
.reel.is-fade img { width: 100%; height: 100%; }
.reel-debug { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 999; margin: 0; padding: 0.6rem 0.8rem; border-radius: 10px; background: rgba(20, 23, 16, 0.88); color: #fcfcf3; font: 12px/1.45 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; pointer-events: none; }
@keyframes reel-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }

.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 55% at 50% 48%, rgba(20, 23, 16, 0.35), transparent 75%),
    linear-gradient(180deg, rgba(20, 23, 16, 0.62) 0%, rgba(20, 23, 16, 0.38) 38%, rgba(20, 23, 16, 0.42) 62%, rgba(20, 23, 16, 0.72) 100%);
}
.hero-empty { background: radial-gradient(90% 70% at 20% 10%, #8f9980 0%, transparent 60%), radial-gradient(80% 60% at 90% 90%, #6b7560 0%, transparent 60%), var(--sage-deep); }
.hero-empty .hero-shade { background: radial-gradient(60% 50% at 50% 50%, rgba(20, 23, 16, 0.25), transparent 80%); }
.hero-bloom img { position: absolute; opacity: 0.9; }
.hero-bloom-a { top: -2rem; left: -3rem; width: clamp(200px, 32vw, 440px); animation: bloom-a 2.2s var(--ease) both; }
.hero-bloom-b { bottom: -2rem; right: -2rem; width: clamp(170px, 24vw, 340px); transform: scaleX(-1); animation: bloom-b 2.2s var(--ease) 0.2s both; }
@keyframes bloom-a { from { opacity: 0; transform: translate(-30px, -30px) rotate(-6deg) scale(0.94); } to { opacity: 0.9; transform: none; } }
@keyframes bloom-b { from { opacity: 0; transform: scaleX(-1) translate(-30px, 30px) scale(0.94); } to { opacity: 0.9; transform: scaleX(-1); } }

.hero-content { position: relative; text-align: center; padding: calc(var(--head-h) + 1rem) var(--gutter) 5rem; max-width: 1400px; }
.hero-dear { display: inline-block; margin-bottom: 0.9rem; padding: 0.35rem 1.1rem; border: 1px solid rgba(252, 252, 243, 0.4); border-radius: var(--r-pill); font-size: clamp(0.92rem, 2.2vw, 1.02rem); letter-spacing: 0.02em; background: rgba(20, 23, 16, 0.18); animation: hero-fade 1.2s var(--ease) 0.2s both; }
.hero-date { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.5rem); opacity: 0.92; animation: hero-fade 1.2s var(--ease) 0.4s both; }
.hero-names { margin: 0.5rem 0 0.5rem; font-size: clamp(4.2rem, 20vw, 6.2rem); line-height: 0.9; letter-spacing: -0.01em; display: flex; flex-direction: column; align-items: center; }
@media (min-width: 760px) { .hero-names { flex-direction: row; align-items: baseline; justify-content: center; gap: 0 0.24em; white-space: nowrap; font-size: clamp(5rem, 8.4vw, 8.8rem); } }
.hn { display: inline-block; animation: name-in 1.6s var(--ease) both; }
.hn-1 { animation-delay: 0.55s; }
.hn-amp { font-style: italic; font-size: 0.5em; line-height: 1; margin: 0.05em 0 0.08em; color: #e6e3c6; animation-delay: 0.85s; }
@media (min-width: 760px) { .hn-amp { font-size: 0.6em; margin: 0; } }
.hn-2 { animation-delay: 1.05s; }
@keyframes name-in { from { opacity: 0; transform: translateY(0.35em); filter: blur(10px); letter-spacing: 0.08em; } to { opacity: 1; transform: none; filter: blur(0); letter-spacing: -0.01em; } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-line { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.9rem); opacity: 0.95; animation: hero-fade 1.2s var(--ease) 1.35s both; }

.countdown { margin-top: clamp(1.8rem, 5vh, 2.8rem); animation: hero-fade 1.2s var(--ease) 1.6s both; }
.cd { display: flex; justify-content: center; align-items: center; gap: clamp(0.8rem, 3.2vw, 2rem); }
.cd .stem { height: 2.6rem; margin: 0; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 3.2ch; }
.cd-num { position: relative; font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.cd-num.is-tick { animation: tick 0.6s var(--ease); }
@keyframes tick { 0% { opacity: 0.25; transform: translateY(-0.18em); filter: blur(2px); } 100% { opacity: 1; transform: none; filter: blur(0); } }
.cd-label { margin-top: 0.4rem; font-size: 0.8rem; letter-spacing: 0.08em; opacity: 0.82; }
.cd-done { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hero-cta { margin-top: clamp(1.8rem, 5vh, 2.6rem); animation: hero-fade 1.2s var(--ease) 1.85s both; }

.scroll-cue { position: absolute; left: 50%; bottom: max(1.4rem, env(safe-area-inset-bottom)); width: 1px; height: 54px; margin-left: -0.5px; background: rgba(252, 252, 243, 0.3); overflow: hidden; animation: hero-fade 1s var(--ease) 2.3s both; }
.scroll-cue span { position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: var(--linen); animation: cue 2.2s var(--ease-soft) infinite; }
@keyframes cue { 0% { transform: translateY(-20px); } 100% { transform: translateY(56px); } }

/* ==================================================================
   SECTIONS
   ================================================================== */
.section { position: relative; padding-block: var(--section); overflow: hidden; overflow: clip; }
.section-head { text-align: center; margin: 0 auto clamp(2.8rem, 6vw, 4.5rem); }
.section-head-left { text-align: left; margin-left: 0; }
.section-head-left .stem { margin-left: 3px; }
.section-title { font-size: clamp(2.7rem, 6.5vw, 4.8rem); letter-spacing: -0.01em; }
.section-intro { max-width: 52ch; margin: 1.1rem auto 0; color: var(--ink-soft); font-size: 1.12rem; }

/* ---------- note on gifts: deliberately small, a pause between the dress code and RSVP ---------- */
.gifts-note { padding-block: clamp(2.6rem, 7vw, 4.5rem); background: var(--beige); }
.gn-card { position: relative; max-width: 34rem; margin: 0 auto; padding: clamp(1.6rem, 4vw, 2.2rem) clamp(1.3rem, 5vw, 2.6rem); text-align: center;
  background: var(--linen); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.gn-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(201, 197, 177, 0.55); border-radius: calc(var(--r-lg) - 7px); pointer-events: none; }
.gn-mark { width: 44px; height: 44px; margin: 0 auto 0.8rem; fill: none; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gn-mark circle { fill: #d9c493; stroke: #b49a5e; }
.gn-title { font-size: clamp(1.9rem, 5vw, 2.5rem); }
.gn-text { max-width: 40ch; margin: 0.7rem auto 0; color: var(--ink-soft); font-size: 1.05rem; }
.floral { position: absolute; pointer-events: none; z-index: 0; will-change: transform; }

/* ---------- our day ---------- */
.day { background: var(--beige); }
.floral-day { top: -3rem; right: -4.5rem; width: clamp(170px, 24vw, 330px); opacity: 0.92; transform-origin: top right; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.4rem; position: relative; }
.moment { position: relative; display: grid; grid-template-columns: 68px 1fr; column-gap: 1.3rem; align-items: start; }
.moment::before { content: ""; position: absolute; left: 34px; top: 76px; bottom: -2.2rem; width: 1px; background: var(--greige); }
.moment:last-child::before { display: none; }
.event-icon { grid-row: span 3; width: 68px; height: 68px; padding: 15px; border-radius: 50%; background: var(--linen); border: 1px solid var(--line); fill: none; stroke: var(--sage-deep); stroke-width: 0.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.6s var(--spring), background-color 0.4s var(--ease); }
.moment:hover .event-icon { transform: rotate(-8deg) scale(1.06); background: var(--sage-mist); }
.moment-time { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; font-variant-numeric: lining-nums; }
.moment-name { font-family: var(--sans); font-weight: 500; font-size: 1.05rem; letter-spacing: 0.04em; margin-top: 0.35rem; }
.moment-text { color: var(--ink-soft); margin-top: 0.3rem; max-width: 34ch; }
@media (min-width: 820px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .timeline::before { content: ""; position: absolute; top: 34px; left: 16.66%; right: 16.66%; height: 1px; background: var(--greige); }
  .moment { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .moment::before { display: none; }
  .event-icon { grid-row: auto; margin-bottom: 1.4rem; position: relative; z-index: 1; }
  .moment-text { margin-inline: auto; }
}
.day-foot { margin-top: clamp(3rem, 7vw, 4.5rem); display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.day-place { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.6rem); }

.cal { position: relative; }
.cal-menu {
  position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 20; min-width: 270px;
  display: grid; padding: 0.45rem; background: var(--linen); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  transform: translateX(-50%); animation: pop 0.4s var(--spring) both; text-align: left;
}
.cal-item { display: block; padding: 0.75rem 1rem; border-radius: 12px; text-decoration: none; transition: background-color 0.25s var(--ease); }
.cal-item:hover, .cal-item:focus-visible { background: var(--sage-mist); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px) scale(0.97); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- couple ---------- */
.couple { background: var(--linen); }
.pair { display: grid; gap: 1rem; align-items: center; }
.person { position: relative; text-align: center; padding: 4.5rem 0 1rem; }
.initial { position: absolute; left: 50%; top: -1.5rem; transform: translateX(-50%); font-family: var(--serif); font-size: clamp(11rem, 26vw, 17rem); line-height: 1; color: var(--sage); opacity: 0.13; pointer-events: none; user-select: none; }
.person-name { position: relative; font-size: clamp(2.5rem, 5.5vw, 3.6rem); }
.person-role { position: relative; margin-top: 0.4rem; color: var(--sage-deep); font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.letter { position: relative; max-width: 42ch; margin: 1.3rem auto 0; text-align: left; }
.letter-open { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 3.4vw, 1.6rem); line-height: 1.2; color: var(--sage-deep); text-align: center; }
.letter-open::after { content: ""; display: block; width: 46px; height: 1px; margin: 0.8rem auto 0; background: var(--greige); }
.letter-line { margin-top: 0.85rem; font-family: var(--serif); font-size: 1.16rem; line-height: 1.6; color: var(--ink); }
.letter-signoff { margin-top: 0.95rem; font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.4; color: var(--ink); }
.letter-from { margin-top: 0.7rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--sage-deep); text-align: right; }
.pair-stem .stem { height: 90px; margin: 0.5rem auto; }
@media (min-width: 820px) {
  .pair { grid-template-columns: 1fr auto 1fr; gap: clamp(2rem, 6vw, 5rem); }
  .pair-stem { align-self: stretch; display: flex; }
  .pair-stem .stem { height: auto; min-height: 280px; margin: 3rem 0; }
  .js .pair-stem.reveal { transform: none; }
}

/* ---------- story ---------- */
.story { background: var(--beige); }
.floral-story { left: -5rem; bottom: -3rem; width: clamp(170px, 22vw, 300px); opacity: 0.9; }
.chapters { list-style: none; margin: 0; padding: 0 0 0 2.2rem; position: relative; display: grid; gap: clamp(2.4rem, 5vw, 3.4rem); }
.chapters::before { content: ""; position: absolute; left: 3px; top: 0.7rem; bottom: 0.7rem; width: 1px; background: var(--greige); }
.chapter { position: relative; }
.chapter::before { content: ""; position: absolute; left: calc(-2.2rem + 0px); top: 0.55rem; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 6px var(--beige); }
.chapter-when { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--sage-deep); }
.chapter-title { font-size: clamp(2rem, 4.5vw, 2.7rem); margin: 0.15rem 0 0.6rem; }
.chapter-text { color: var(--ink-soft); max-width: 60ch; }
.chapter-text + .chapter-text { margin-top: 0.9rem; }
.story-lead { max-width: 40rem; margin: 0 auto 1.1rem; font-size: clamp(1.05rem, 1.6vw, 1.15rem); color: var(--ink-soft); }
.story-lead:first-of-type { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 1.8rem); line-height: 1.35; color: var(--ink); }
.story-lead:last-of-type { margin-bottom: clamp(2.6rem, 6vw, 3.6rem); }
.story-closing { margin-top: clamp(3rem, 7vw, 4.5rem); text-align: center; }
.story-closing-lead { color: var(--ink-soft); }
.story-quote { margin: 0.5rem auto 0; }
.story-quote p { max-width: 7.5em; margin: 0 auto; font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 5.5vw, 3.4rem); line-height: 1.12; color: var(--ink); }
.story-signoff { margin-top: 1.1rem; font-family: var(--serif); font-size: 1.3rem; color: var(--sage-deep); }

/* ---------- venue ---------- */
.venue { background: var(--linen); }
.venue-grid { display: grid; gap: clamp(3rem, 7vw, 5rem); align-items: center; }
@media (min-width: 900px) { .venue-grid { grid-template-columns: 1fr 1fr; } }
.venue-copy .section-head { margin-bottom: 1.6rem; }
.venue-name { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.1; color: var(--sage-deep); }
.venue-intro { margin-top: 0.9rem; color: var(--ink-soft); max-width: 46ch; }
.venue-note { margin-top: 0.6rem; color: var(--ink-soft); }
.venue-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

.map-arch {
  position: relative; width: min(100%, 460px); aspect-ratio: 4 / 5; margin-inline: auto;
  border-radius: 999px 999px var(--r-lg) var(--r-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 45% at 30% 30%, rgba(121, 131, 106, 0.28), transparent 70%), radial-gradient(55% 40% at 75% 75%, rgba(201, 197, 177, 0.6), transparent 70%), var(--sage-mist);
  box-shadow: 0 0 0 10px var(--linen), 0 0 0 11px var(--greige), var(--shadow);
}
.map-arch iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; animation: hero-fade 0.8s var(--ease) both; }
.map-veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.9rem; padding: 2rem; text-align: center; transition: opacity 0.5s var(--ease); }
.map-arch.is-loaded .map-veil { opacity: 0; pointer-events: none; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke: rgba(252, 252, 243, 0.9); stroke-width: 9; stroke-linecap: round; }
.map-pin { position: relative; width: 38px; height: 38px; border-radius: 50% 50% 50% 0; background: var(--sage-deep); transform: rotate(-45deg); box-shadow: 0 10px 20px -8px rgba(31, 35, 25, 0.6); }
.map-pin::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--linen); }
.map-pin::before { content: ""; position: absolute; left: -10px; bottom: -10px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--sage-deep); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
.map-label { font-family: var(--serif); font-size: 1.9rem; margin-top: 0.4rem; }

/* ---------- dress code ---------- */
.dress { background: radial-gradient(60rem 30rem at 85% 0%, rgba(212, 180, 131, 0.16), transparent 70%), radial-gradient(50rem 30rem at 0% 100%, rgba(111, 78, 55, 0.08), transparent 70%), var(--beige); }
.dress-rule { display: flex; align-items: center; gap: 0.75rem; width: fit-content; max-width: 100%; margin: -1rem auto clamp(2.4rem, 5vw, 3.4rem); padding: 0.7rem 1.3rem 0.7rem 0.8rem; background: var(--linen); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 0.98rem; }
.no-white { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--greige); }
.no-white::after { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 1.6px; margin-left: -0.8px; background: var(--danger); transform: rotate(45deg); }

/* The studio: details and palette together, sized to fit one screen. */
.section-head-tight { margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.section-head-tight .stem { height: 48px; margin-bottom: 1rem; }
.section-head-tight .section-intro { margin-top: 0.7rem; }
.dress .dress-rule { margin: 0 auto clamp(1.2rem, 3vw, 1.8rem); }

.studio { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); padding: clamp(1rem, 3vw, 2rem); background: var(--linen); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .studio { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 2.4rem; }
  .palette { order: -1; }
}

/* Four colour families: name beside its row of shades, so the studio still fits one screen. */
.palette { display: grid; gap: clamp(0.35rem, 1.2vw, 0.8rem); }
.family { display: grid; grid-template-columns: clamp(4.4rem, 12vw, 6.6rem) minmax(0, 1fr); align-items: center; gap: clamp(0.4rem, 1.5vw, 1rem); }
.family-name { font-size: clamp(1.02rem, 2.2vw, 1.45rem); line-height: 1.05; margin: 0; }
.shades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.15rem; }
.shade { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.35rem 0.1rem; border: 0; border-radius: 12px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip-svg { width: clamp(28px, 7.8vw, 46px); height: clamp(28px, 7.8vw, 46px); border-radius: 50%; box-shadow: 0 6px 14px -8px rgba(31, 35, 25, 0.55); transition: transform 0.5s var(--spring), box-shadow 0.35s var(--ease); }
.shade:hover .chip-svg { transform: translateY(-3px) scale(1.08); }
.shade[aria-pressed="true"] .chip-svg { transform: scale(1.1); box-shadow: 0 0 0 3px var(--linen), 0 0 0 4.5px var(--ink), 0 10px 20px -10px rgba(31, 35, 25, 0.6); }
.shade-name { font-size: clamp(0.6rem, 0.9vw, 0.72rem); line-height: 1.15; color: var(--ink-soft); text-align: center; overflow-wrap: normal; word-break: normal; hyphens: none; }
.shade[aria-pressed="true"] .shade-name { color: var(--ink); font-weight: 500; }
.is-shimmer .chip-svg { position: relative; }
/* On narrow phones the names move into the details panel, so words never break mid-name. */
@media (max-width: 599px) {
  .shade-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .shade { padding: 0.3rem 0; }
  .shades { gap: 0.1rem; }
}

.explorer { display: grid; gap: clamp(0.7rem, 2vw, 1.1rem); min-width: 0; }
.ex-main { display: flex; align-items: center; gap: clamp(0.8rem, 3vw, 1.4rem); }
.ex-swatch { width: clamp(84px, 22vw, 150px); flex: none; overflow: visible; }
.ex-swatch circle { transition: fill 0.7s var(--ease); transform-origin: center; animation: breathe 7s var(--ease-soft) infinite alternate; }
.ex-swatch.is-pulse circle { animation: swell 0.7s var(--spring), breathe 7s var(--ease-soft) 0.7s infinite alternate; }
@keyframes breathe { from { transform: scale(0.97) rotate(0deg); } to { transform: scale(1.03) rotate(8deg); } }
@keyframes swell { 0% { transform: scale(0.88); } 100% { transform: scale(1); } }
.ex-copy { min-width: 0; }
.ex-family { font-size: 0.85rem; color: var(--ink-soft); }
.ex-name { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-hex { display: inline-flex; align-items: baseline; gap: 0.5rem; margin-top: 0.45rem; padding: 0.3rem 0.8rem; border: 1px solid var(--greige); border-radius: var(--r-pill); background: var(--field); cursor: pointer; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.ex-hex:hover { border-color: var(--sage); background: var(--sage-mist); }
.ex-hex span:first-child { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; font-weight: 500; font-size: 0.9rem; }
.ex-hex-hint { font-size: 0.72rem; color: var(--ink-soft); }
.ex-rows { display: grid; gap: clamp(0.5rem, 1.6vw, 0.8rem); min-width: 0; }
.ex-row { min-width: 0; }
.ex-label { font-size: 0.82rem; font-weight: 500; margin-bottom: 0.3rem; }
/* One line per row, scrolling sideways, so the panel never changes height between colours. */
.ex-chips { display: flex; flex-wrap: nowrap; gap: 0.4rem; min-height: 40px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 1.5rem; }
.ex-chips::-webkit-scrollbar { display: none; }
.ex-chip { flex: none; display: flex; align-items: center; gap: 0.45rem; padding: 0.22rem 0.75rem 0.22rem 0.22rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--field); font-size: 0.8rem; white-space: nowrap; cursor: pointer; animation: chip-in 0.45s var(--ease) both; transition: border-color 0.25s var(--ease), transform 0.3s var(--spring); }
.ex-chip:hover { border-color: var(--sage); transform: translateY(-1px); }
.ex-chip svg { width: 28px; height: 28px; border-radius: 50%; }
.ex-chip-pair svg { width: 40px; height: 28px; border-radius: 14px; }
.no-js .ex-rows { display: none; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* outfit check */
.outfit { margin-top: clamp(2.4rem, 6vw, 3.6rem); display: grid; gap: 2rem; padding: clamp(1.6rem, 4vw, 2.8rem); background: var(--sage-night); color: var(--linen); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.outfit::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40rem 20rem at 100% 0%, rgba(212, 180, 131, 0.22), transparent 70%), radial-gradient(30rem 20rem at 0% 100%, rgba(121, 131, 106, 0.4), transparent 70%); pointer-events: none; }
.outfit > * { position: relative; }
@media (min-width: 900px) { .outfit { grid-template-columns: 0.85fr 1.15fr; align-items: center; } .outfit:not(.has-result) { grid-template-columns: 1fr; text-align: center; } .outfit:not(.has-result) .outfit-intro p { margin-inline: auto; } }
.outfit-title { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 0.8rem; }
.outfit-intro p { max-width: 48ch; color: rgba(252, 252, 243, 0.88); }
.outfit-tip { margin-top: 0.6rem; font-size: 0.92rem; color: rgba(252, 252, 243, 0.7) !important; }
.outfit-pick { --bg: var(--linen); --fg: var(--ink); margin-top: 1.5rem; }
.outfit-pick:hover { --bg: #fff; }
.outfit-pick:focus-within { outline: 2px solid var(--linen); outline-offset: 4px; }
.outfit-result { display: grid; gap: 1.4rem; animation: rise 0.7s var(--ease) both; }
@media (min-width: 600px) { .outfit-result { grid-template-columns: 1fr 1fr; align-items: center; } }
.outfit-photo canvas { width: 100%; height: auto; border-radius: 18px; cursor: crosshair; touch-action: manipulation; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); }
.outfit-hint { margin-top: 0.6rem; font-size: 0.85rem; text-align: center; color: rgba(252, 252, 243, 0.7); }
.outfit-verdict { text-align: center; }
.meter { position: relative; width: 132px; margin: 0 auto 0.6rem; }
.meter svg { width: 100%; transform: rotate(-90deg); }
.meter circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.meter-track { stroke: rgba(252, 252, 243, 0.14); }
.meter-bar { stroke: #d4b483; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.4s var(--ease), stroke 0.6s var(--ease); }
.meter-score { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.meter-unit { font-size: 1.1rem; margin-left: 2px; }
.verdict-title { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.1rem); line-height: 1.1; }
.verdict-text { margin-top: 0.4rem; color: rgba(252, 252, 243, 0.82); font-size: 0.95rem; }
.found { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.45rem; text-align: left; }
.found li { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0.8rem 0.45rem 0.45rem; border-radius: 14px; background: rgba(252, 252, 243, 0.07); animation: chip-in 0.5s var(--ease) both; }
.found svg { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(252, 252, 243, 0.25); }
.found-name { flex: 1; font-size: 0.9rem; line-height: 1.25; }
.found-name small { display: block; opacity: 0.7; font-size: 0.78rem; }
.found-tag { font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: var(--r-pill); background: rgba(252, 252, 243, 0.12); white-space: nowrap; }
.found-tag.is-good { background: rgba(212, 180, 131, 0.3); }
.found-tag.is-bad { background: rgba(190, 90, 80, 0.4); }

/* ---------- rsvp ---------- */
.rsvp { background: radial-gradient(50rem 30rem at 15% 10%, rgba(143, 153, 128, 0.7), transparent 65%), linear-gradient(160deg, var(--sage) 0%, var(--sage-deep) 60%, var(--sage-night) 100%); }
.floral-rsvp-a { top: -2.5rem; left: -3.5rem; width: clamp(160px, 24vw, 330px); opacity: 0.95; }
.floral-rsvp-b { bottom: -2rem; right: -2rem; width: clamp(140px, 18vw, 250px); transform: scaleX(-1); opacity: 0.95; }
.rsvp-card { position: relative; max-width: 560px; margin: 0 auto; padding: clamp(4rem, 10vw, 5.5rem) clamp(1.4rem, 6vw, 3.2rem) 3rem; text-align: center; background: var(--linen); border-radius: 300px 300px var(--r-lg) var(--r-lg); box-shadow: 0 40px 80px -40px rgba(20, 23, 16, 0.7); }
.rsvp-card::before { content: ""; position: absolute; inset: 11px; border: 1px solid var(--greige); border-radius: 290px 290px calc(var(--r-lg) - 8px) calc(var(--r-lg) - 8px); pointer-events: none; }
.rsvp-logo { width: 140px; margin: 0 auto 1rem; }
.rsvp-card .section-title { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.rsvp-soon { margin-top: 1.6rem; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--sage-deep); }
.rsvp-card .section-title:focus { outline: none; }
.rsvp-card.is-steps .rsvp-logo { width: 84px; margin-bottom: 0.4rem; }
.rsvp-card.is-steps .section-title { font-size: clamp(1.7rem, 4.6vw, 2.2rem); }

/* ==================================================================
   RSVP FLOW (rsvp.js)
   One slide at a time. The memorable piece is the progress hairline:
   the logo's dot-capped stem laid flat, with its dot travelling on.
   ================================================================== */
.flow { position: relative; margin-top: 1.4rem; text-align: left; }
.fl-stage { position: relative; }
.fl-stage.is-moving { overflow: hidden; margin: 0 -1rem; padding: 0 1rem; }
.fl-stage.is-loading { min-height: 180px; }
.fl-stage.is-loading::after { content: ""; position: absolute; left: 50%; top: 70px; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; border: 1px solid var(--line); border-top-color: var(--sage); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fl-slide { position: relative; }
.fl-slide.is-leaving { position: absolute; left: 0; right: 0; pointer-events: none; }
.fl-stage.is-moving .fl-slide.is-leaving { left: 1rem; right: 1rem; }
.fl-slide > .st { animation: st-in 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 140ms); }
@keyframes st-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* progress: a flat stem */
.fl-progress { margin: 0 0 1.6rem; }
.fl-progress-label { margin-bottom: 0.55rem; text-align: center; font-size: 0.85rem; color: var(--ink-soft); letter-spacing: 0.02em; }
.fl-track { position: relative; height: 7px; margin: 0 4px; }
.fl-track::before, .fl-fill { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: var(--line); }
.fl-fill { height: 2px; top: 2.5px; background: var(--sage); transform-origin: left; transform: scaleX(0); transition: transform 0.7s var(--ease); }
.fl-track::after { content: ""; position: absolute; right: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.fl-rail { position: absolute; inset: 0; transition: transform 0.7s var(--ease); }
.fl-dot { position: absolute; left: -4.5px; top: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px var(--linen); }
.fl-dot.is-pulse { animation: dot-pulse 0.7s var(--spring); }
@keyframes dot-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.7); } 100% { transform: scale(1); } }

/* text */
.fl-title { font-size: clamp(1.9rem, 6vw, 2.35rem); line-height: 1.08; color: var(--ink); text-align: center; }
.fl-title:focus { outline: none; }
.fl-title-big { font-size: clamp(2.2rem, 7.5vw, 2.9rem); }
.fl-text { margin-top: 0.7rem; color: var(--ink-soft); text-align: center; }
.fl-lead { margin: 0 0 1.4rem; }
.fl-help { margin: 0.5rem 0 0; font-size: 0.95rem; }
.fl-soft { font-size: 0.95rem; }
.fl-notice { margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: 14px; background: var(--sage-mist); color: var(--ink); font-size: 0.95rem; text-align: center; }
.fl-notice.is-soft { background: transparent; border: 1px dashed var(--greige); color: var(--ink-soft); }
.fl-lookup .fl-notice { margin: 0 0 1.2rem; }
.fl-stem { height: 44px; margin-bottom: 1.2rem; }
.fl-body { display: grid; gap: 1.1rem; margin-top: 1.5rem; }

/* fields */
.fl-form { display: grid; gap: 1.1rem; }
.fl-field { display: grid; gap: 0.35rem; }
.fl-label { font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.fl-label-hidden > .fl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fl-input { width: 100%; min-height: 52px; padding: 0.75rem 1rem; border: 1px solid var(--greige); border-radius: 14px; background: var(--field); color: var(--ink); font: 400 1.0625rem/1.4 var(--sans); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); -webkit-appearance: none; appearance: none; }
textarea.fl-input { resize: vertical; min-height: 96px; }
.fl-input:hover { border-color: #b5b29b; }
.fl-input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(121, 131, 106, 0.2); }
.fl-input-big { min-height: 64px; text-align: center; font: 400 1.7rem/1 var(--serif); letter-spacing: 0.08em; font-variant-numeric: lining-nums; }
.fl-input-big::placeholder { letter-spacing: 0; }
.fl-lookup .fl-label, .fl-lookup .fl-hint { text-align: center; }
.fl-hint { min-height: 1.3em; font-size: 0.88rem; color: var(--ink-soft); transition: color 0.25s var(--ease); }
.fl-hint:empty { min-height: 0; }
.fl-lookup .fl-hint:empty { min-height: 1.3em; }
.fl-hint.is-good { color: var(--sage-deep); }
.fl-error { font-size: 0.88rem; color: var(--danger); }
.fl-field.is-bad .fl-input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(139, 59, 54, 0.12); animation: nudge 0.4s var(--ease); }
@keyframes nudge { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
.fl-input-row { display: flex; gap: 0.5rem; }
.fl-pair { display: grid; gap: 1.1rem; }
@media (min-width: 520px) { .fl-pair { grid-template-columns: 1fr 1fr; } }
.fl-number { text-align: center; font: 400 1.45rem/1.2 var(--sans); letter-spacing: 0.06em; color: var(--ink); }
.fl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* choices */
.fl-choices { display: grid; gap: 0.6rem; }
.fl-choices-row { grid-template-columns: 1fr; }
@media (min-width: 520px) { .fl-choices-row, .fl-choices-icons { grid-template-columns: 1fr 1fr; } }
.fl-choice { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fl-choice-face { display: flex; align-items: center; gap: 0.85rem; min-height: 58px; padding: 0.85rem 1rem 0.85rem 1.15rem; border: 1px solid var(--line); border-radius: 18px; background: var(--field); transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.35s var(--spring), box-shadow 0.3s var(--ease); }
.fl-choice:hover .fl-choice-face { border-color: var(--greige); }
.fl-choice:active .fl-choice-face { transform: scale(0.985); }
.fl-choice-label { flex: 1; font-size: 1.02rem; }
.fl-choice-mark { position: relative; flex: none; width: 22px; height: 22px; border: 1px solid var(--greige); border-radius: 50%; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.fl-choice-mark::after { content: ""; position: absolute; left: 7px; top: 3.5px; width: 6px; height: 11px; border: solid var(--linen); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) scale(0); transition: transform 0.4s var(--spring); }
.fl-choice input:checked + .fl-choice-face { border-color: var(--sage); background: #f4f5e8; box-shadow: 0 12px 26px -20px rgba(61, 70, 48, 0.8); }
.fl-choice input:checked + .fl-choice-face .fl-choice-mark { border-color: var(--sage); background: var(--sage); }
.fl-choice input:checked + .fl-choice-face .fl-choice-mark::after { transform: rotate(45deg) scale(1); }
.fl-choice input:focus-visible + .fl-choice-face { outline: 2px solid var(--ink); outline-offset: 3px; }
.fl-choices-icons .fl-choice-face { position: relative; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; padding: 1.3rem 1rem 1.1rem; }
.fl-choices-icons .fl-choice-label { flex: none; }
.fl-icon.fl-choice-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--sage-deep); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.fl-choices-icons .fl-choice-mark { position: absolute; top: 0.8rem; right: 0.8rem; }
/* title chips */
.fl-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: -0.6rem; }
.fl-chips .fl-choice-face { min-height: 42px; padding: 0.45rem 0.95rem; border-radius: var(--r-pill); gap: 0; }
.fl-chips .fl-choice-label { font-size: 0.95rem; }
.fl-chips .fl-choice-mark { display: none; }
.fl-chips .fl-choice input:checked + .fl-choice-face { background: var(--sage); color: var(--linen); }
.fl-chip-toggle { justify-self: start; min-height: 42px; padding: 0.45rem 1rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--field); cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.fl-chip-toggle[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: var(--linen); }

/* actions */
.fl-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.6rem; }
.fl-actions-stack { flex-direction: column; align-items: stretch; max-width: 340px; margin-inline: auto; }
.fl-actions-nav { justify-content: space-between; margin-top: 0.4rem; }
.fl-actions-nav .fl-next { flex: 1; max-width: 18rem; margin-left: auto; padding-inline: 1rem; }
.fl-slide > .fl-form { margin-top: 1.4rem; }
.fl-lookup > .fl-form { margin-top: 0; }
.fl-step > .fl-form { margin-top: 1.2rem; }
.fl-yes { min-height: 58px; font-size: 1.02rem; }
.fl-aside { margin-top: 1.1rem; text-align: center; }
.fl-link { padding: 0.5rem 0.4rem; border: 0; background: none; color: var(--ink-soft); font-size: 0.95rem; text-decoration: underline; text-decoration-color: var(--greige); text-underline-offset: 0.3em; cursor: pointer; }
.fl-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.btn.is-busy { color: transparent; pointer-events: none; }
.btn.is-busy::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 1.5px solid rgba(252, 252, 243, 0.4); border-top-color: var(--linen); animation: spin 0.8s linear infinite; }
.btn-quiet.is-busy::before { border-color: var(--line); border-top-color: var(--sage); }
.btn:disabled:not(.is-busy) { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* people and additional guests */
.fl-icon { display: inline-grid; place-items: center; flex: none; }
.fl-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fl-people { display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.fl-person { display: flex; align-items: center; gap: 0.9rem; min-height: 60px; padding: 0.8rem 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--field); font: 400 1.35rem/1.2 var(--serif); text-align: left; cursor: pointer; transition: border-color 0.3s var(--ease), transform 0.35s var(--spring); }
.fl-person:hover { border-color: var(--sage); }
.fl-person:active { transform: scale(0.985); }
.fl-person .fl-icon { color: var(--sage-deep); }
.fl-person.is-busy { opacity: 0.6; }
.fl-plus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.fl-plus-item { position: relative; display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 0.9rem 0.85rem 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--field); animation: st-in 0.5s var(--ease) both; }
.fl-plus-item > .fl-icon { color: var(--sage-deep); }
.fl-plus-who { flex: 1; display: grid; min-width: 0; }
.fl-plus-name { font: 400 1.2rem/1.2 var(--serif); overflow-wrap: anywhere; }
.fl-plus-phone { font-size: 0.85rem; color: var(--ink-soft); }
.fl-badge { flex: none; padding: 0.2rem 0.65rem; border-radius: var(--r-pill); background: var(--sage-mist); font-size: 0.78rem; color: var(--ink); white-space: nowrap; }
.is-approved .fl-badge { background: var(--sage); color: var(--linen); }
.fl-person-row { flex-wrap: wrap; align-items: flex-start; padding: 1rem 0.6rem 0.6rem 1rem; transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.fl-plus-fields { flex: 1; display: grid; gap: 0.7rem; min-width: 0; }
@media (min-width: 520px) { .fl-plus-fields { grid-template-columns: 1fr 1fr; } }
.fl-plus-fields .fl-hint:empty { display: none; }
.fl-icon-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; }
.fl-icon-btn:hover { background: var(--sage-mist); color: var(--ink); }
.fl-plus-remove { margin-top: 1.4rem; }
.fl-plus-note { flex-basis: 100%; font-size: 0.88rem; color: var(--ink-soft); }
.fl-plus-note:empty { display: none; }
.fl-person-row.is-conflict { background: #f1f0e3; border-style: dashed; }
.fl-person-row.is-conflict .fl-input { color: var(--ink-soft); background: transparent; }
.fl-person-row.is-conflict .fl-plus-note { color: var(--ink); }
.fl-person-row.is-alert { background: #f7efe0; border: 1px solid #c9a86a; border-style: solid; }
.fl-person-row.is-alert .fl-input { color: var(--ink); background: var(--field); }
.fl-person-row.is-alert .fl-plus-note { font-weight: 500; color: #6b4a1c; }
.fl-plus-share { flex-basis: auto; margin: 0.1rem 0 0; padding: 0.35rem 0.9rem; border: 1px solid #c9a86a; border-radius: 999px; background: transparent; color: #6b4a1c; font: inherit; font-size: 0.88rem; cursor: pointer; }
.fl-plus-share:hover { background: #efe2c6; }
.fl-plus-share[hidden] { display: none; }
.fl-person-row.is-ok { border-color: var(--sage); }
.fl-plus-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fl-add { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0.5rem 1.1rem 0.5rem 0.8rem; border: 1px dashed var(--greige); border-radius: var(--r-pill); background: transparent; color: var(--ink); cursor: pointer; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.fl-add:hover { border-color: var(--sage); background: var(--sage-mist); }
.fl-add .fl-icon { color: var(--sage-deep); }

/* review and summary */
.fl-summary { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fl-more { margin-top: 1.2rem; text-align: center; }
.fl-more-toggle { display: inline-block; padding: 0.5rem 0.4rem; color: var(--ink-soft); cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: var(--greige); text-underline-offset: 0.3em; }
.fl-more-toggle::-webkit-details-marker { display: none; }
.fl-more[open] .fl-more-toggle { color: var(--ink); }
.fl-more .fl-summary { margin-top: 0.8rem; text-align: left; animation: st-in 0.5s var(--ease) both; }
.fl-sum-row { display: grid; grid-template-columns: minmax(6.5rem, 34%) 1fr auto; align-items: baseline; gap: 0.3rem 1rem; width: 100%; padding: 0.8rem 0.2rem; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; color: inherit; }
button.fl-sum-row { cursor: pointer; transition: background-color 0.25s var(--ease), padding 0.3s var(--ease); }
button.fl-sum-row:hover { background: #f4f5e8; }
.fl-sum-label { font-size: 0.88rem; color: var(--ink-soft); }
.fl-sum-value { min-width: 0; overflow-wrap: anywhere; }
.fl-sum-edit { align-self: center; color: var(--sage-deep); }
.fl-sum-edit svg { width: 18px; height: 18px; }
@media (max-width: 420px) {
  .fl-sum-row { grid-template-columns: 1fr auto; }
  .fl-sum-label { grid-column: 1; }
  .fl-sum-value { grid-column: 1; }
  .fl-sum-edit { grid-column: 2; grid-row: 1 / span 2; }
}

/* endings */
.fl-seal { position: relative; display: block; width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 50%; border: 1px solid var(--greige); animation: seal-in 0.8s var(--spring) both; }
.fl-seal::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--sage-mist); }
.fl-seal.is-yes::before { background: var(--sage); }
.fl-seal.is-yes::after { content: ""; position: absolute; left: 25px; top: 17px; width: 13px; height: 24px; border: solid var(--linen); border-width: 0 2px 2px 0; transform: rotate(45deg); animation: draw 0.5s var(--ease) 0.45s both; }
.fl-seal:not(.is-yes)::after { content: ""; position: absolute; left: 50%; top: 18px; bottom: 18px; width: 1px; margin-left: -0.5px; background: var(--sage-deep); }
@keyframes seal-in { from { transform: scale(0.3) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.fl-hourglass { display: block; width: 44px; height: 44px; margin: 0 auto 1rem; border: 1px solid var(--greige); border-radius: 50%; background: conic-gradient(var(--sage) 0 25%, transparent 25%); animation: spin 4s linear infinite; }
/* ticket stub on the done screen: a torn-off end of the full ticket */
.fl-stub { margin-top: 1.5rem; animation: stub-print 0.9s var(--ease) 0.35s both; }
.fl-stub-card { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; padding: 1.15rem 1.1rem 1rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; background: var(--field); text-align: left; box-shadow: 0 18px 30px -26px rgba(61, 70, 48, 0.55); }
.fl-stub-card::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; border-top: 2px dashed var(--greige); }
.fl-stub-card::after { content: ""; position: absolute; left: -1px; right: -1px; top: -9px; height: 18px; background: radial-gradient(circle at 0 50%, var(--linen) 8px, transparent 8.5px), radial-gradient(circle at 100% 50%, var(--linen) 8px, transparent 8.5px); }
.fl-stub-qr { width: 112px; height: 112px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.fl-stub-qr svg { width: 100%; height: 100%; }
.fl-stub-copy { min-width: 0; }
.fl-stub-label { font-size: 0.85rem; color: var(--ink-soft); }
.fl-stub-name { margin-top: 0.1rem; font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
.fl-stub-code { margin-top: 0.55rem; font-size: 0.85rem; color: var(--ink-soft); }
.fl-stub-code strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; letter-spacing: 0.16em; color: var(--ink); }
.fl-stub .btn { margin-top: 0.9rem; }
@keyframes stub-print { from { opacity: 0; transform: translateY(-14px); clip-path: inset(-20px -20px 100% -20px); } to { opacity: 1; transform: none; clip-path: inset(-20px -20px -60px -20px); } }
@media (max-width: 360px) { .fl-stub-qr { width: 96px; height: 96px; } .fl-stub-name { font-size: 1.35rem; } }
.fl-cal { margin-top: 1.4rem; text-align: center; }
.fl-cal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; }
/* The couple's note on gifts, under the ticket once a guest says yes. */
.fl-gifts { margin-top: 1.4rem; padding: 1rem 1.1rem 1.05rem; border: 1px solid #e4d6b4; border-radius: 16px; background: #fbf6e8; text-align: center; }
.fl-gifts-title { font: 500 1.3rem/1.15 var(--serif); color: var(--ink); }
.fl-gifts-text { margin-top: 0.35rem; color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; white-space: pre-line; }
.fl-petals { position: absolute; left: 50%; top: 32%; width: 0; height: 0; z-index: 5; pointer-events: none; }
.fl-petal { position: absolute; left: -9px; top: -13px; width: 18px; height: 26px; will-change: transform, opacity; }
.fl-petal svg { width: 100%; height: 100%; }

/* ---------- faq ---------- */
.faq { background: var(--beige); }
.qas { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa-q { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.35rem 0.2rem; cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.65rem); line-height: 1.25; transition: color 0.3s var(--ease); }
.qa-q::-webkit-details-marker { display: none; }
.qa-q:hover { color: var(--sage-deep); }
.qa-mark { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--greige); transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.6s var(--spring); }
.qa-mark::before, .qa-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.4px; margin: -0.7px 0 0 -6px; background: var(--ink); transition: transform 0.5s var(--ease), background-color 0.3s; }
.qa-mark::after { transform: rotate(90deg); }
.qa[open] .qa-mark { background: var(--sage); border-color: var(--sage); transform: rotate(180deg); }
.qa[open] .qa-mark::before, .qa[open] .qa-mark::after { background: var(--linen); }
.qa[open] .qa-mark::after { transform: rotate(0deg); }
.qa-a { overflow: hidden; }
.qa-a p { padding: 0 3.4rem 1.5rem 0.2rem; color: var(--ink-soft); max-width: 64ch; }

/* ---------- footer ---------- */
.site-foot { background: var(--linen); padding: clamp(4rem, 10vw, 6rem) 0 max(2.6rem, env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-direction: column; align-items: center; }
.foot-mark { width: 104px; margin-bottom: 1.4rem; }
.foot-line { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.5vw, 1.9rem); }
.foot-date { color: var(--ink-soft); margin-top: 0.3rem; }
.stem-foot { height: 48px; margin: 2rem auto; }
.credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2.2rem; }
.credit { position: relative; padding: 0.5rem 0.2rem; border: 0; background: none; cursor: pointer; font-size: 0.95rem; }
.credit-lead { color: var(--ink-soft); }
.credit-name { position: relative; font-weight: 500; }
.credit-name::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0.35); transform-origin: left; transition: transform 0.5s var(--ease); }
.credit:hover .credit-name::after { transform: scaleX(1); }

/* ---------- sheets (dialogs) ---------- */
.sheet { width: min(440px, 100%); max-width: 100%; max-height: 100%; margin: auto auto 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.sheet::backdrop { background: rgba(20, 23, 16, 0.42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.sheet[open] { animation: sheet-up 0.55s var(--ease) both; }
.sheet[open]::backdrop { animation: fade 0.35s var(--ease) both; }
.sheet.is-closing { animation: sheet-down 0.3s var(--ease-soft) both; }
.sheet.is-closing::backdrop { animation: fade 0.3s var(--ease) reverse both; }
.sheet-inner { position: relative; display: grid; gap: 1rem; padding: 1.8rem 1.4rem max(1.4rem, env(safe-area-inset-bottom)); background: var(--linen); border-radius: 26px 26px 0 0; text-align: center; }
.sheet-inner::before { content: ""; justify-self: center; width: 42px; height: 4px; margin: -0.8rem 0 0.2rem; border-radius: 4px; background: var(--line); }
@media (min-width: 600px) {
  .sheet { margin: auto; }
  .sheet-inner { border-radius: 26px; padding: 2.2rem 2rem 1.8rem; }
  .sheet-inner::before { display: none; }
  .sheet[open] { animation: sheet-pop 0.45s var(--spring) both; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { from { transform: none; opacity: 1; } to { transform: translateY(40%); opacity: 0; } }
@keyframes sheet-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-kicker { color: var(--ink-soft); font-size: 0.92rem; }
.sheet-title { font-size: 2.2rem; margin-top: -0.4rem; }
.sheet-text { color: var(--ink-soft); }
.sheet-options { display: grid; gap: 0.6rem; margin: 0.4rem 0 0.2rem; text-align: left; }
.option { display: flex; align-items: center; gap: 1rem; text-align: left; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--field); text-decoration: none; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--spring); }
.option:hover { border-color: var(--sage); background: var(--sage-mist); transform: translateY(-2px); }
.option-icon { width: 42px; height: 42px; padding: 9px; flex: none; border-radius: 50%; background: var(--sage); fill: none; stroke: var(--linen); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.option-title { display: block; font-weight: 500; }
.option-sub { display: block; font-size: 0.86rem; color: var(--ink-soft); }
.sheet-actions { display: grid; gap: 0.7rem; }
.store-links { display: flex; justify-content: center; gap: 0.5rem; }
.sheet-check { justify-self: center; position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--sage); animation: pop-check 0.6s var(--spring) both; }
.sheet-check::after { content: ""; position: absolute; left: 22px; top: 15px; width: 12px; height: 22px; border: solid var(--linen); border-width: 0 2px 2px 0; transform: rotate(45deg); animation: draw 0.4s var(--ease) 0.25s both; }
@keyframes pop-check { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: max(1.4rem, env(safe-area-inset-bottom)); z-index: 90; padding: 0.8rem 1.3rem; border-radius: var(--r-pill); background: var(--ink); color: var(--linen); font-size: 0.93rem; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6); transform: translate(-50%, 1.6rem); opacity: 0; transition: transform 0.45s var(--spring), opacity 0.3s var(--ease); pointer-events: none; }
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }

/* ---------- ticket page ---------- */
.tk-page { min-height: 100vh; background: radial-gradient(90% 60% at 10% 0%, rgba(121, 131, 106, 0.16), transparent 70%), radial-gradient(80% 60% at 100% 100%, rgba(121, 131, 106, 0.14), transparent 70%), var(--beige); }
.tk-florals { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.tk-floral { position: absolute; opacity: 0.9; }
.tk-floral-tl { left: -70px; top: -60px; width: clamp(190px, 34vw, 380px); }
.tk-floral-br { right: -40px; bottom: -40px; width: clamp(140px, 22vw, 260px); }
.tk-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding: clamp(1.6rem, 6vw, 3.5rem) var(--gutter) 2.5rem; }
.ticket { position: relative; width: min(440px, 100%); border-radius: 30px; background: var(--linen); box-shadow: var(--shadow), 0 60px 90px -60px rgba(61, 70, 48, 0.5); text-align: center; animation: tk-rise 1s var(--ease) both; }
.ticket::before { content: ""; position: absolute; inset: 12px; border: 1px solid var(--line); border-radius: 22px; pointer-events: none; }
.tk-top { padding: 2rem 1.6rem 1.5rem; }
.tk-logo { width: 150px; margin: 0 auto 1.1rem; }
.tk-date { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; color: var(--ink); }
.tk-venue { margin-top: 0.2rem; color: var(--ink-soft); }
.tk-events { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin: 1.2rem 0 0; padding: 0; }
.tk-events li { display: flex; flex-direction: column; align-items: center; }
.tk-event-name { font-size: 0.85rem; color: var(--ink-soft); }
.tk-event-time { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--sage-deep); }
.tk-tear { position: relative; height: 0; margin: 0 1.9rem; border-top: 2px dashed var(--greige); }
.tk-tear::before, .tk-tear::after { content: ""; position: absolute; top: -17px; width: 32px; height: 32px; border-radius: 50%; background: var(--beige); }
.tk-tear::before { left: calc(-1.9rem - 16px); }
.tk-tear::after { right: calc(-1.9rem - 16px); }
.tk-bottom { padding: 1.5rem 1.6rem 2.1rem; }
.tk-label { font-size: 0.88rem; color: var(--ink-soft); }
.tk-name { margin-top: 0.15rem; font-size: clamp(2rem, 8vw, 2.5rem); line-height: 1.05; color: var(--ink); overflow-wrap: anywhere; }
.tk-seat { display: flex; justify-content: center; gap: 2.4rem; margin: 1rem 0 0; }
.tk-seat dt { font-size: 0.85rem; color: var(--ink-soft); }
.tk-seat dd { margin: 0; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--sage-deep); overflow-wrap: anywhere; }
.tk-seat-later { margin: 0.8rem auto 0; max-width: 20rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.35; color: var(--ink-soft); }
.tk-dress { margin: 1.2rem auto 0; padding-top: 1.1rem; border-top: 1px solid var(--line); max-width: 20rem; }
.tk-dress-line { margin-top: 0.1rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.tk-swatches { display: block; width: auto; height: 20px; margin: 0.55rem auto 0; }
.tk-dress-rule { margin-top: 0.45rem; font-size: 0.86rem; color: var(--ink-soft); }
.tk-qr { width: min(250px, 78%); margin: 1.4rem auto 0; padding: 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; animation: tk-fade 0.8s var(--ease) 0.5s both; }
.tk-qr svg { width: 100%; height: auto; }
.tk-code { display: flex; flex-direction: column; align-items: center; margin-top: 1rem; }
.tk-code-label { font-size: 0.85rem; color: var(--ink-soft); }
.tk-code-value { font-family: var(--serif); font-weight: 500; font-size: 2.1rem; line-height: 1.1; letter-spacing: 0.2em; padding-left: 0.2em; color: var(--ink); }
.tk-show { margin: 0.7rem auto 0; max-width: 18rem; font-size: 0.9rem; color: var(--ink-soft); }
.tk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.6rem; width: min(440px, 100%); }
.tk-actions .btn { flex: 1 1 11rem; }
.tk-status { min-height: 1.6em; margin-top: 0.8rem; font-size: 0.93rem; color: var(--ink-soft); text-align: center; }
.tk-message { width: min(460px, 100%); padding: 2.4rem 1.8rem; border-radius: 240px 240px 26px 26px; background: var(--linen); box-shadow: var(--shadow); text-align: center; animation: tk-rise 0.9s var(--ease) both; }
.tk-message-logo { width: 150px; margin: 0 auto 1rem; }
.tk-message-title { font-size: 2.3rem; }
.tk-message-text { margin-top: 0.7rem; color: var(--ink-soft); }
@keyframes tk-rise { from { opacity: 0; transform: translateY(28px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes tk-fade { from { opacity: 0; } to { opacity: 1; } }

@media print {
  @page { margin: 12mm; }
  html, body, .tk-page { background: #fff !important; }
  .tk-florals, .tk-noprint, .toast { display: none !important; }
  .tk-wrap { min-height: 0; padding: 0; display: block; }
  .ticket { width: 118mm; margin: 0 auto; box-shadow: none; border: 1px solid var(--greige); animation: none; break-inside: avoid; page-break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tk-tear::before, .tk-tear::after { display: none; }
  .tk-qr { animation: none; width: 52mm; margin-top: 4mm; }
  .tk-top { padding: 6mm 6mm 4mm; }
  .tk-bottom { padding: 5mm 6mm 6mm; }
  .tk-logo { width: 30mm; margin-bottom: 3mm; }
  .tk-dress { margin-top: 3mm; padding-top: 3mm; }
}

/* ---------- phase 6: wedding day and memories pages ---------- */
.dp-page { min-height: 100vh; background: radial-gradient(90% 50% at 0% 0%, rgba(121, 131, 106, 0.16), transparent 70%), radial-gradient(80% 50% at 100% 100%, rgba(121, 131, 106, 0.12), transparent 70%), var(--beige); }
.dp { position: relative; z-index: 1; width: min(560px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: clamp(1.6rem, 6vw, 3.2rem) 0 clamp(3.5rem, 10vw, 5.5rem); }
.dp-welcome { padding: 2.6rem 1.6rem 2rem; border-radius: 240px 240px 26px 26px; background: var(--linen); box-shadow: var(--shadow); text-align: center; animation: tk-rise 0.9s var(--ease) both; position: relative; }
.dp-welcome::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: 232px 232px 20px 20px; pointer-events: none; }
.dp-logo { width: 132px; margin: 0 auto 1.1rem; }
.dp-dear { display: inline-block; margin-bottom: 0.7rem; padding: 0.3rem 0.95rem; border-radius: var(--r-pill); background: var(--sage-mist); color: var(--sage-night); font-size: 0.95rem; }
.dp-title { font-size: clamp(2.4rem, 10vw, 3.2rem); color: var(--ink); }
.dp-date { margin-top: 0.55rem; color: var(--ink-soft); }
.dp-lead { margin: 1rem auto 0; max-width: 25rem; color: var(--ink); }
.dp-signoff { margin-top: 1.1rem; font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--sage-deep); }

.dp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1rem; }
.dp-action { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; min-height: 158px; padding: 1.2rem 1.15rem 1.15rem; border: 1px solid var(--line); border-radius: 22px; background: var(--field); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s var(--ease); animation: tk-rise 0.9s var(--ease) 0.12s both; -webkit-tap-highlight-color: transparent; }
.dp-action + .dp-action { animation-delay: 0.22s; }
.dp-action:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(31, 35, 25, 0.03), 0 34px 60px -34px rgba(61, 70, 48, 0.62); }
.dp-action:active { transform: translateY(0) scale(0.985); }
.dp-action:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dp-action-main { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--linen); }
.dp-action-main[aria-expanded="true"] { background: var(--sage-night); }
.dp-icon { width: 40px; height: 40px; margin-bottom: auto; padding-bottom: 0.9rem; box-sizing: content-box; fill: none; stroke: var(--sage-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dp-action-main .dp-icon { stroke: var(--linen); }
.dp-action-title { font-family: var(--serif); font-size: 1.75rem; line-height: 1.05; }
.dp-action-help { font-size: 0.88rem; line-height: 1.4; color: var(--ink-soft); }
.dp-action-main .dp-action-help { color: #eef0e4; }

.dp-find { margin-top: 1rem; padding: 1.6rem 1.3rem 1.4rem; border-radius: 22px; background: var(--linen); box-shadow: var(--shadow); text-align: center; scroll-margin: 1.5rem; }
.dp-find-title { font-size: 2rem; }
.dp-find-title:focus { outline: none; }
.dp-find-form { display: grid; gap: 0.5rem; margin-top: 0.9rem; text-align: left; }
.dp-label { font-size: 0.95rem; font-weight: 500; }
.dp-hint { font-size: 0.88rem; color: var(--ink-soft); }
.dp-msg { min-height: 0; font-size: 0.95rem; color: var(--ink); }
.dp-msg:empty { display: none; }
.dp-msg.is-bad { color: var(--danger); }
.dp-people { list-style: none; margin: 0.2rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.tk-message .dp-people { margin-top: 1.1rem; }
.dp-person-off { display: block; padding: 0.7rem 1rem; border: 1px dashed var(--greige); border-radius: var(--r-pill); color: var(--ink-soft); text-align: center; }
.dp-find-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.dp-find-actions .btn { flex: 1 1 10rem; }

.dp-block { margin-top: clamp(3rem, 10vw, 4.2rem); text-align: center; }
.dp-block .stem { height: 48px; margin-bottom: 1.1rem; }
.dp-block-title { font-size: clamp(2.1rem, 8vw, 2.6rem); }
.dp-schedule { list-style: none; margin: 1.3rem 0 0; padding: 0.35rem; border-radius: 22px; background: var(--linen); box-shadow: var(--shadow); text-align: left; }
.dp-moment { position: relative; display: grid; grid-template-columns: 4.6rem 1fr auto; align-items: center; gap: 0.8rem; min-height: 64px; padding: 0.6rem 1rem 0.6rem 1.9rem; border-radius: 18px; transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }
.dp-moment + .dp-moment::before { content: ""; position: absolute; left: 1.9rem; right: 1rem; top: 0; border-top: 1px solid var(--line); }
.dp-moment::after { content: ""; position: absolute; left: 0.9rem; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--greige); }
.dp-moment-time { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--sage-deep); }
.dp-moment-name { font-size: 1.05rem; }
.dp-moment-tag { font-size: 0.85rem; color: var(--ink-soft); }
.dp-moment.is-done { color: var(--ink-soft); }
.dp-moment.is-done .dp-moment-time { color: var(--ink-soft); }
.dp-moment.is-now { background: var(--sage-deep); color: var(--linen); }
.dp-moment.is-now + .dp-moment::before, .dp-moment.is-now::before { border-color: transparent; }
.dp-moment.is-now .dp-moment-time, .dp-moment.is-now .dp-moment-tag { color: var(--linen); }
.dp-moment.is-now::after { background: var(--linen); box-shadow: 0 0 0 0 rgba(252, 252, 243, 0.6); animation: dp-now 2.4s var(--ease) infinite; }
.dp-moment.is-next .dp-moment-tag { padding: 0.15rem 0.7rem; border-radius: var(--r-pill); background: var(--sage-mist); color: var(--sage-night); }
.dp-moment.is-next::after { background: var(--sage); }
@keyframes dp-now { 0% { box-shadow: 0 0 0 0 rgba(252, 252, 243, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(252, 252, 243, 0); } 100% { box-shadow: 0 0 0 0 rgba(252, 252, 243, 0); } }

.dp-notice-list { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: 0.7rem; text-align: left; }
.dp-notice { padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--linen); box-shadow: var(--shadow); border-left: 3px solid var(--sage); }
.dp-notice-title { font-size: 1.5rem; line-height: 1.1; margin-bottom: 0.25rem; }
.dp-notice-body { color: var(--ink); }
.dp-tight { padding-bottom: 0; }
.dp-wide { position: relative; z-index: 1; }
.dp-wide .section { padding-top: clamp(2.6rem, 8vw, 4rem); }
.dp-quiet { padding-top: clamp(2.2rem, 7vw, 3rem); text-align: center; }
.dp-quiet-line { font-size: 0.95rem; color: var(--ink-soft); }
.dp-quiet-line a { color: var(--sage-deep); text-underline-offset: 0.25em; }

.dp-venue { margin-top: 0.9rem; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.dp-venue-note { margin: 0.5rem auto 0; max-width: 24rem; color: var(--ink-soft); }
.dp-venue-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.3rem; }
.dp-venue-actions .btn { flex: 1 1 12rem; }
.mm-soon .dp-venue-note { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink); }
.dp-page .site-foot { position: relative; z-index: 1; }

@media (max-width: 380px) {
  .dp-actions { grid-template-columns: 1fr; }
  .dp-action { min-height: 0; }
  .dp-icon { margin-bottom: 0; padding-bottom: 0.5rem; }
}

/* ---------- phase 6: the album, the viewer and the gallery ---------- */
.mm-wide { position: relative; z-index: 1; width: min(1140px, 100% - 2 * var(--gutter)); margin: 0 auto; }
.mm-block { margin-top: clamp(2.6rem, 9vw, 4rem); }
.mm-count { margin-top: 0.4rem; color: var(--ink-soft); font-size: 0.95rem; text-align: center; }

/* sharing panel */
.mm-share { text-align: center; }
.mm-share-intro { margin: 0.6rem auto 0; max-width: 32rem; color: var(--ink-soft); }
.mm-share-card { width: min(560px, 100%); margin: 1.3rem auto 0; padding: 1.4rem 1.2rem 1.3rem; border-radius: 22px; background: var(--linen); box-shadow: var(--shadow); text-align: left; transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease); }
.mm-share.is-drop .mm-share-card { background: var(--sage-mist); box-shadow: 0 0 0 2px var(--sage) inset, var(--shadow); }
.mm-name { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.mm-dear { margin-bottom: 0.9rem; color: var(--ink-soft); font-size: 0.95rem; }
.mm-dear-edit { padding: 0; border: 0; background: none; color: var(--sage-deep); font-size: 0.95rem; text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }
.mm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mm-pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.mm-pick { flex: 1 1 14rem; }
.mm-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mm-file:focus-visible + .mm-drop, .mm-file:focus-visible ~ .mm-drop { outline: none; }
.mm-file:focus-visible + .mm-drop { text-decoration: underline; }
.mm-pick:has(+ .mm-file:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.mm-drop { display: none; color: var(--ink-soft); font-size: 0.92rem; }
@media (hover: hover) and (pointer: fine) and (min-width: 700px) { .mm-drop { display: block; } }
.mm-share-note { margin-top: 0.8rem; color: var(--ink-soft); font-size: 0.88rem; }
.mm-msg { margin-top: 0.6rem; font-size: 0.95rem; }
.mm-msg:empty { display: none; }
.mm-msg.is-bad { color: var(--danger); }

/* the sending queue */
.mm-queue { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.mm-queue:empty { display: none; }
.mm-q { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 0.6rem; padding: 0.55rem 0.6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--field); animation: tk-rise 0.4s var(--ease) both; }
.mm-q-thumb { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--sage-mist); }
.mm-q-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mm-q-body { min-width: 0; display: grid; gap: 0.25rem; }
.mm-q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.mm-q-state { font-size: 0.82rem; color: var(--ink-soft); }
.mm-q-bar { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.mm-q-fill { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--sage); transition: width 0.3s var(--ease); }
.mm-q-acts { display: flex; align-items: center; gap: 0.3rem; }
.mm-q-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.mm-q-x:hover { background: var(--sage-mist); color: var(--ink); }
.mm-q-retry { flex: none; padding: 0.35rem 0.75rem; border: 1px solid var(--greige); border-radius: var(--r-pill); background: var(--field); font-size: 0.85rem; cursor: pointer; }
.mm-q-retry:hover { background: var(--sage-mist); }
.mm-q.is-done { border-color: var(--sage); }
.mm-q.is-done .mm-q-state { color: var(--sage-deep); }
/* A failed row gives the message the whole width and puts Try again underneath. */
.mm-q.is-bad { grid-template-columns: 44px minmax(0, 1fr); border-color: var(--danger); }
.mm-q.is-bad .mm-q-state { color: var(--danger); white-space: normal; }
.mm-q.is-bad .mm-q-bar { display: none; }
.mm-q.is-bad .mm-q-acts { grid-column: 1 / -1; justify-content: flex-end; margin-top: 0.1rem; }

/* the album */
.mm-album { margin-top: 1.3rem; }
/* Without scripts, plain CSS columns. With them, album.js lays the tiles out in
   order across the columns (.is-cols), so the newest photos stay side by side. */
.mm-grid { margin: 0; padding: 0; column-count: 2; column-gap: 0.6rem; }
@media (min-width: 620px) { .mm-grid { column-count: 3; column-gap: 0.8rem; } }
@media (min-width: 1000px) { .mm-grid { column-count: 4; } }
.mm-tile { break-inside: avoid; margin: 0 0 0.6rem; }
@media (min-width: 620px) { .mm-tile { margin-bottom: 0.8rem; } }
.mm-grid.is-cols { display: flex; align-items: flex-start; gap: 0.6rem; column-count: auto; }
.mm-col { flex: 1 1 0; min-width: 0; display: grid; gap: 0.6rem; align-content: start; }
.mm-grid.is-cols .mm-tile { margin: 0; }
@media (min-width: 620px) {
  .mm-grid.is-cols { gap: 0.8rem; }
  .mm-col { gap: 0.8rem; }
}
.mm-tile-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: var(--sage-mist); cursor: pointer; box-shadow: 0 1px 0 rgba(31, 35, 25, 0.03), 0 18px 34px -26px rgba(61, 70, 48, 0.55); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); -webkit-tap-highlight-color: transparent; }
.mm-tile-btn:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(31, 35, 25, 0.03), 0 26px 44px -26px rgba(61, 70, 48, 0.7); }
.mm-tile-btn:active { transform: translateY(0) scale(0.99); }
.mm-thumb { width: 100%; height: auto; }
.mm-thumb-none { display: block; aspect-ratio: 4 / 3; background: linear-gradient(150deg, var(--sage-mist), var(--greige)); }
.mm-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(20, 23, 16, 0.5); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.mm-play::after { content: ""; position: absolute; left: 18px; top: 14px; border: solid transparent; border-width: 9px 0 9px 14px; border-left-color: var(--linen); }
.mm-dur { position: absolute; right: 0.5rem; top: 0.5rem; padding: 0.1rem 0.45rem; border-radius: var(--r-pill); background: rgba(20, 23, 16, 0.6); color: var(--linen); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.mm-by { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 0.7rem 0.55rem; background: linear-gradient(transparent, rgba(20, 23, 16, 0.72)); color: var(--linen); font-size: 0.82rem; text-align: left; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-empty { margin-top: 1.4rem; color: var(--ink-soft); text-align: center; }
.mm-more { margin-top: 1.2rem; text-align: center; }
.mm-back { margin-top: 2.2rem; }

/* the viewer */
.viewer { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.viewer::backdrop { background: rgba(12, 14, 9, 0.97); }
.viewer[open] { animation: fade 0.3s var(--ease) both; }
.vw-shell { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: max(0.8rem, env(safe-area-inset-top)) 0.8rem calc(4.6rem + env(safe-area-inset-bottom)); }
.vw-stage { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.vw-media { width: 100%; height: 100%; max-width: 100%; max-height: 100%; border-radius: 10px; object-fit: contain; animation: vw-in 0.35s var(--ease) both; }
@keyframes vw-in { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.vw-nav, .vw-close { position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(252, 252, 243, 0.12); color: var(--linen); cursor: pointer; transition: background-color 0.3s var(--ease); -webkit-tap-highlight-color: transparent; }
.vw-nav:hover, .vw-close:hover { background: rgba(252, 252, 243, 0.26); }
.vw-nav svg, .vw-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vw-close { right: 0.8rem; top: max(0.8rem, env(safe-area-inset-top)); }
.vw-prev { left: 0.6rem; top: 50%; margin-top: -23px; }
.vw-next { right: 0.6rem; top: 50%; margin-top: -23px; }
.vw-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(14, 16, 11, 0.85) 45%); color: var(--linen); }
.vw-by { font-size: 0.95rem; }
.vw-actions { display: flex; gap: 0.5rem; margin-left: auto; }
.vw-act { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; padding: 0.45rem 0.9rem; border: 1px solid rgba(252, 252, 243, 0.45); border-radius: var(--r-pill); background: transparent; color: var(--linen); font-size: 0.9rem; text-decoration: none; cursor: pointer; transition: background-color 0.3s var(--ease); }
.vw-act:hover { background: rgba(252, 252, 243, 0.16); }
.vw-act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.is-viewing body { overflow: hidden; }
@media (max-width: 560px) {
  .vw-prev, .vw-next { top: auto; bottom: calc(4.9rem + env(safe-area-inset-bottom)); margin-top: 0; }
  .vw-by { width: 100%; }
  .vw-actions { margin-left: 0; }
}

/* the gallery on the invitation */
.gallery { padding-top: clamp(3rem, 9vw, 5rem); }
.floral-gallery { right: -90px; top: 8%; width: clamp(150px, 20vw, 300px); opacity: 0.5; }
.gl-collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr); gap: 0.5rem; aspect-ratio: 5 / 3; margin-top: 1.6rem; }
.gl-piece { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--sage-mist); cursor: pointer; box-shadow: 0 1px 0 rgba(31, 35, 25, 0.04), 0 22px 40px -28px rgba(61, 70, 48, 0.7); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.gl-piece img { width: 100%; height: 100%; object-fit: cover; }
.gl-piece:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 1px 0 rgba(31, 35, 25, 0.04), 0 30px 50px -28px rgba(61, 70, 48, 0.8); }
.gl-p1 { grid-column: 1 / 4; grid-row: 1 / 3; }
.gl-p2 { grid-column: 4 / 6; grid-row: 1; }
.gl-p3 { grid-column: 6; grid-row: 1; }
.gl-p4 { grid-column: 4; grid-row: 2; }
.gl-p5 { grid-column: 5 / 7; grid-row: 2; }
.gl-actions { margin-top: 1.4rem; text-align: center; }
.gl-count { margin-left: 0.5rem; opacity: 0.75; font-size: 0.85rem; }
.no-js .gl-actions { display: none; }
@media (max-width: 620px) {
  .gl-collage { grid-template-columns: repeat(5, 1fr); aspect-ratio: 4 / 3; }
  .gl-p1 { grid-column: 1 / 4; grid-row: 1 / 3; }
  .gl-p2 { grid-column: 4 / 6; grid-row: 1; }
  .gl-p3 { grid-column: 4 / 6; grid-row: 2; }
  .gl-p4, .gl-p5 { display: none; }
}

/* the gallery overlay */
.gl-overlay { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--beige); color: var(--ink); }
.gl-overlay::backdrop { background: rgba(20, 23, 16, 0.6); }
.gl-overlay[open] { animation: gl-in 0.4s var(--ease) both; }
@keyframes gl-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.gl-overlay-inner { display: flex; flex-direction: column; height: 100%; }
.gl-overlay-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gutter) 0.9rem; border-bottom: 1px solid var(--line); background: var(--linen); }
.gl-overlay-title { font-size: 1.8rem; }
.gl-overlay-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--field); cursor: pointer; }
.gl-overlay-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.gl-overlay-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); }
.gl-album .mm-album { margin-top: 0; }

/* one shared memory (p.php) */
.ph-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; min-height: 100vh; min-height: 100svh; padding: clamp(1.5rem, 6vw, 3rem) var(--gutter); }
.ph-frame { margin: 0; width: min(560px, 100%); padding: 0.7rem; border-radius: 22px; background: var(--linen); box-shadow: var(--shadow); animation: tk-rise 0.8s var(--ease) both; }
.ph-media { width: 100%; height: auto; max-height: 68vh; object-fit: contain; border-radius: 16px; background: var(--sage-mist); }
.ph-cap { padding: 0.8rem 0.4rem 0.3rem; color: var(--ink-soft); font-size: 0.95rem; text-align: center; }
.ph-gone { color: var(--ink-soft); text-align: center; }
.ph-actions { text-align: center; }

/* ---------- small screens ---------- */
@media (max-width: 600px) {
  .cd .stem { height: 2rem; }
  .qa-a p { padding-right: 0.2rem; }
  .venue-actions .btn { flex: 1 1 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .reel.is-fade picture { transition-duration: 1.6s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .fl-slide > .st, .fl-plus-item { animation: none; }
  .fl-stub, .ticket, .tk-qr, .tk-message { animation: none; }
  .dp-welcome, .dp-action, .dp-moment.is-now::after { animation: none; }
}

/* ==================================================================
   SONG SEARCH (assets/js/music.js)
   Shared by the RSVP song step, the admin Music page and the test
   page. The same block sits in site.css and admin.css so either theme
   can be swapped on its own. While a sample plays the cover slides
   away and a record spins in its place, a ring fills round it and
   level bars dance beside the time left.
   ================================================================== */
.mu { display: grid; gap: 0.9rem; text-align: left; }
.mu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.mu-list:empty { display: none; }
.mu-label { display: block; margin-bottom: 0.4rem; font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.mu-hint { min-height: 1.3em; margin-top: 0.4rem; font-size: 0.86rem; color: var(--ink-soft); }
.mu-field { position: relative; }
.mu-input { width: 100%; min-height: 54px; padding: 0.75rem 3.1rem 0.75rem 2.9rem; border: 1px solid var(--greige); border-radius: var(--r-pill); background: var(--field); color: var(--ink); font: 400 1.0625rem/1.3 var(--sans); -webkit-appearance: none; appearance: none; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.mu-input::-webkit-search-cancel-button, .mu-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.mu-input::placeholder { color: #8a8f7f; }
.mu-input:hover { border-color: #b5b29b; }
.mu-input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(121, 131, 106, 0.2); }
.mu-input-plain { min-height: 50px; padding: 0.7rem 1rem; border-radius: 14px; }
.mu-icon { display: inline-grid; place-items: center; flex: none; }
.mu-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mu-icon .mu-fill { fill: currentColor; stroke: none; }
.mu-field-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.mu-clear { position: absolute; right: 0.3rem; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; }
.mu-clear:hover { background: var(--sage-mist); color: var(--ink); }
.mu-spin { position: absolute; right: 3.3rem; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid var(--line); border-top-color: var(--sage); animation: spin 0.8s linear infinite; }

/* a song */
.mu-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.85rem; padding: 0.55rem 0.55rem 0.55rem 0.6rem; border: 1px solid var(--line); border-radius: 18px; background: var(--field); animation: mu-in 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.mu-row.is-playing { border-color: #cfb27a; background: #fbf6e9; box-shadow: 0 16px 30px -24px rgba(122, 94, 34, 0.7); }
.mu-row-picked { border-color: var(--sage); background: #f4f5e8; }
.mu-row-picked.is-playing { background: #f6f3e2; }
.mu-meta { min-width: 0; }
.mu-title { display: flex; align-items: baseline; gap: 0.35rem; margin: 0; font: 500 1.02rem/1.25 var(--sans); color: var(--ink); }
.mu-title > span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.mu-artist { margin: 0.05rem 0 0; font-size: 0.9rem; line-height: 1.3; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; margin: 0.15rem 0 0; font-size: 0.78rem; line-height: 1.35; color: var(--ink-soft); }
.mu-album { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mu-row.is-playing .mu-album, .mu-row.is-loading .mu-album { display: none; }
.mu-badge { padding: 0.05rem 0.55rem; border-radius: var(--r-pill); background: #efe3c6; color: #6d5320; font-size: 0.74rem; white-space: nowrap; }
.mu-explicit { flex: none; display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 3px; background: #dcd8c4; color: var(--ink); font: 500 0.64rem/1 var(--sans); text-decoration: none; cursor: help; }
.mu-itunes { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.2rem; padding: 0.15rem 0; color: var(--ink-soft); font-size: 0.78rem; text-decoration: underline; text-decoration-color: var(--greige); text-underline-offset: 0.25em; }
.mu-itunes .mu-icon svg { width: 14px; height: 14px; }
.mu-itunes:hover { color: var(--ink); text-decoration-color: currentColor; }

/* the cover, the record and the ring */
.mu-art { position: relative; flex: none; width: 60px; height: 60px; }
.mu-sleeve { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--sage-mist); box-shadow: 0 6px 14px -8px rgba(31, 35, 25, 0.55); transition: transform 0.55s var(--ease), opacity 0.4s var(--ease); }
.mu-sleeve-blank { display: grid; place-items: center; color: var(--sage-deep); }
.mu-sleeve-blank .mu-icon svg { width: 26px; height: 26px; }
.mu-disc { position: absolute; inset: 1px; z-index: 1; border-radius: 50%; opacity: 0; transform: scale(0.72) rotate(-20deg); transition: transform 0.6s var(--spring), opacity 0.35s var(--ease); background: repeating-radial-gradient(circle at 50% 50%, #2b2e24 0 0.8px, #17190f 0.8px 2.2px); box-shadow: 0 8px 18px -8px rgba(31, 35, 25, 0.7), inset 0 0 0 1px rgba(255, 255, 240, 0.06); }
.mu-disc-spin { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; }
.mu-disc-label { width: 42%; height: 42%; border-radius: 50%; object-fit: cover; background: #b8914f; box-shadow: 0 0 0 1.5px #c9a86a; }
.mu-disc-spin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--linen); }
.mu-disc-shine { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 240, 0.16) 13%, transparent 19% 52%, rgba(255, 255, 240, 0.1) 59%, transparent 65%); pointer-events: none; }
.mu-ring { position: absolute; inset: -5px; z-index: 0; opacity: 0; transition: opacity 0.3s var(--ease); pointer-events: none; }
.mu-ring svg { width: 100%; height: 100%; overflow: visible; }
.mu-ring circle { fill: none; stroke-width: 2.2; }
.mu-ring-track { stroke: rgba(201, 197, 177, 0.55); }
.mu-ring-fill { stroke: #b8914f; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 30px 30px; }
.mu-row.is-playing .mu-sleeve, .mu-row.is-loading .mu-sleeve { opacity: 0; transform: translateX(-14%) scale(0.82) rotate(-10deg); }
.mu-row.is-playing .mu-disc, .mu-row.is-loading .mu-disc { opacity: 1; transform: none; }
.mu-row.is-playing .mu-disc-spin { animation: mu-spin 2.2s linear infinite; }
.mu-row.is-playing .mu-ring, .mu-row.is-loading .mu-ring { opacity: 1; }
.mu-row.is-loading .mu-ring svg { animation: spin 1.1s linear infinite; }
.mu-row.is-loading .mu-ring-fill { stroke-dashoffset: 78; }
.mu-play { position: absolute; inset: -4px; z-index: 3; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; background: transparent; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mu-play .mu-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(252, 252, 243, 0.92); box-shadow: 0 4px 12px -4px rgba(31, 35, 25, 0.5); transition: transform 0.35s var(--spring), background-color 0.25s var(--ease); }
.mu-play .mu-icon svg { width: 17px; height: 17px; }
.mu-play:hover .mu-icon { transform: scale(1.1); background: var(--linen); }
.mu-play:active .mu-icon { transform: scale(0.94); }
.mu-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mu-i-pause { display: none !important; }
.mu-play[aria-pressed="true"] .mu-i-play { display: none !important; }
.mu-play[aria-pressed="true"] .mu-i-pause { display: grid !important; }
.mu-play[aria-pressed="true"] .mu-icon { background: rgba(252, 252, 243, 0.86); transform: scale(0.82); }
.mu-row.is-failed .mu-play .mu-icon { opacity: 0.55; }
/* The wheel. It turns while a sample is being found (before its play button appears) and again
   after a tap, while the sample is on its way. A cover never shows the pause bars until sound is
   actually coming out, so "looks like playing, hears nothing" cannot happen. */
.mu-i-wait { display: none !important; }
.mu-wheel { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 26 74; transform-origin: 12px 12px; animation: spin 0.85s linear infinite; }
.mu-row.is-checking .mu-play .mu-i-play { display: none !important; }
.mu-row.is-checking .mu-play .mu-i-wait { display: grid !important; }
.mu-row.is-checking .mu-play .mu-icon { background: rgba(252, 252, 243, 0.74); box-shadow: 0 3px 9px -5px rgba(31, 35, 25, 0.5); }
.mu-row.is-checking .mu-play:hover .mu-icon { transform: none; }
.mu-play[aria-busy="true"] .mu-i-play, .mu-play[aria-busy="true"] .mu-i-pause { display: none !important; }
.mu-play[aria-busy="true"] .mu-i-wait { display: grid !important; }
.mu-play[aria-busy="true"] .mu-icon { background: rgba(252, 252, 243, 0.92); transform: none; }
.mu-row.is-nosample .mu-play { display: none; }
.mu-row.is-loading .mu-levels { display: none; }

/* sample playing, with the level bars */
.mu-now { display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; color: #7a5e22; font-weight: 500; }
.mu-now-text { min-width: 0; overflow-wrap: anywhere; }
.mu-levels { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.mu-levels i { display: block; width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: 50% 100%; transform: scaleY(0.35); animation: mu-level 0.9s ease-in-out infinite alternate; }
.mu-levels i:nth-child(2) { animation-duration: 0.62s; animation-delay: -0.3s; }
.mu-levels i:nth-child(3) { animation-duration: 0.78s; animation-delay: -0.55s; }
.mu-levels i:nth-child(4) { animation-duration: 0.54s; animation-delay: -0.1s; }
.mu-levels i:nth-child(5) { animation-duration: 0.84s; animation-delay: -0.42s; }
.mu-row.is-loading .mu-levels i { animation-play-state: paused; }

/* actions */
.mu-add { display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem; min-width: 44px; min-height: 44px; padding: 0.4rem 0.95rem 0.4rem 0.7rem; border: 1px solid var(--greige); border-radius: var(--r-pill); background: transparent; color: var(--ink); font: 500 0.9rem/1 var(--sans); cursor: pointer; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.3s var(--spring); }
.mu-add:hover:not(:disabled) { background: var(--sage-mist); border-color: var(--sage); }
.mu-add:active:not(:disabled) { transform: scale(0.95); }
.mu-add .mu-icon svg { width: 17px; height: 17px; }
.mu-add .mu-i-check { display: none; }
.mu-add.is-on { background: var(--sage); border-color: var(--sage); color: var(--linen); cursor: default; }
.mu-add.is-on .mu-i-plus { display: none; }
.mu-add.is-on .mu-i-check { display: grid; animation: mu-pop 0.45s var(--spring) both; }
.mu-add.is-busy { opacity: 0.6; }
.mu-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer; }
.mu-icon-btn:hover { background: var(--sage-mist); color: var(--ink); }
.mu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 46px; padding: 0.55rem 1.2rem 0.55rem 0.95rem; border: 1px solid var(--sage); border-radius: var(--r-pill); background: var(--sage); color: var(--linen); font: 500 0.92rem/1.2 var(--sans); cursor: pointer; transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease); }
.mu-btn:hover { background: var(--sage-deep); border-color: var(--sage-deep); }
.mu-btn-quiet { background: transparent; border-color: var(--greige); color: var(--ink); }
.mu-btn-quiet:hover { background: var(--sage-mist); border-color: var(--sage); }
.mu-btn .mu-icon svg { width: 18px; height: 18px; }
.mu-link { justify-self: start; padding: 0.45rem 0.2rem; border: 0; background: none; color: var(--ink-soft); font: inherit; font-size: 0.93rem; text-decoration: underline; text-decoration-color: var(--greige); text-underline-offset: 0.3em; cursor: pointer; }
.mu-link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* states */
.mu-count { margin: 0.1rem 0 0; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }
.mu-count:empty { display: none; }
.mu-picked-wrap { display: grid; gap: 0.4rem; }
.mu-full, .mu-notice { margin: 0; padding: 0.75rem 1rem; border-radius: 14px; font-size: 0.93rem; text-align: center; }
.mu-full { background: var(--sage-mist); color: var(--ink); }
.mu-notice { background: #f7efe0; border: 1px solid #d8bf8c; color: #5e4818; }
.mu-empty { display: grid; justify-items: center; gap: 0.7rem; padding: 1rem; border: 1px dashed var(--greige); border-radius: 18px; text-align: center; animation: mu-in 0.4s var(--ease) both; }
.mu-empty-text { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.mu-empty .mu-btn { max-width: 100%; }
.mu-empty .mu-btn span { overflow-wrap: anywhere; }
.mu-typed-wrap { display: grid; }
.mu-typed { display: grid; gap: 0.8rem; padding: 1rem; border: 1px dashed var(--greige); border-radius: 18px; background: rgba(255, 255, 250, 0.6); animation: mu-in 0.4s var(--ease) both; }
.mu-typed-lead { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.mu-typed-fields { display: grid; gap: 0.8rem; }
@media (min-width: 560px) { .mu-typed-fields { grid-template-columns: 1fr 1fr; } }
.mu-typed .mu-btn { justify-self: start; }
.mu-error { margin: 0; font-size: 0.88rem; color: var(--danger); }
.mu.is-searching .mu-results { opacity: 0.55; transition: opacity 0.2s var(--ease); }

@media (max-width: 400px) {
  .mu-row { gap: 0.7rem; padding-left: 0.5rem; }
  .mu-art { width: 54px; height: 54px; }
  .mu-ring-fill { transform-origin: 30px 30px; }
  .mu-add { padding: 0.4rem 0.75rem 0.4rem 0.55rem; }
}
@media (max-width: 340px) {
  .mu-add .mu-add-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mu-add { padding: 0.4rem; }
}

@keyframes mu-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes mu-spin { to { transform: rotate(360deg); } }
@keyframes mu-level { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
@keyframes mu-pop { from { transform: scale(0.3); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .mu-row, .mu-empty, .mu-typed { animation: none; }
  .mu-row.is-playing .mu-disc-spin, .mu-row.is-loading .mu-ring svg { animation: none; }
  .mu-levels i { animation: none; }
  .mu-levels i:nth-child(1) { transform: scaleY(0.5); }
  .mu-levels i:nth-child(2) { transform: scaleY(0.9); }
  .mu-levels i:nth-child(3) { transform: scaleY(0.65); }
  .mu-levels i:nth-child(4) { transform: scaleY(1); }
  .mu-levels i:nth-child(5) { transform: scaleY(0.4); }
}
/* the song step inside the RSVP card */
.fl-songs { gap: 0.9rem; }
.fl-songs .mu-count { margin-top: 0.2rem; }

/* ====================================================================
   HOUSEHOLDS
   One person replying for the whole family. The list of who is in it
   is the first thing they see, and they come back to it after each
   person, so it has to read at a glance on a phone.
   ==================================================================== */

.fl-hh-list { display: grid; gap: 0.6rem; margin-top: 1.4rem; }

.fl-hh-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line); border-radius: 18px; background: var(--field);
  animation: st-in 0.5s var(--ease) both;
}
.fl-hh-row.is-yes { border-color: var(--sage); }
.fl-hh-row.is-no { opacity: 0.72; }

.fl-hh-who { flex: 1 1 10rem; min-width: 0; display: grid; gap: 0.2rem; }
.fl-hh-name { margin: 0; font: 400 1.25rem/1.2 var(--serif); color: var(--ink); overflow-wrap: anywhere; }

.fl-hh-pill {
  justify-self: start;
  padding: 0.12rem 0.6rem; border-radius: 999px;
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.04em;
  background: var(--sage-mist); color: var(--ink-soft);
}
.fl-hh-pill.is-yes { background: var(--sage); color: var(--linen); }
.fl-hh-pill.is-no { background: transparent; border: 1px dashed var(--greige); }

.fl-hh-acts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-left: auto; }

.fl-hh-for {
  margin: 0 0 0.4rem;
  text-align: center;
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 420px) {
  .fl-hh-acts { margin-left: 0; width: 100%; }
  .fl-hh-acts .btn { flex: 1 1 auto; }
}

/* An event somewhere other than the main venue names its own place above the note. */
.moment-where { display: block; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 0.2rem; }
.moment-where a { color: inherit; }
.dp-moment-where { display: block; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.fl-hh-row .btn { flex: 1 1 auto; min-width: 7rem; }
