/* Steveliz Doxa Care Foundation · public site
   Type: Gambetta (display) and Switzer (text), both from Fontshare, self-hosted.
   Colour: the logo's royal blue and gold on warm ivory paper. */

@font-face { font-family: "Gambetta"; src: url("../fonts/Gambetta-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("../fonts/Gambetta-VariableItalic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-VariableItalic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --navy: #0e1747;
  --royal: #1b2c86;
  --royal-2: #2a3fa8;
  --royal-ink: #15206a;
  --gold: #c9a043;
  --gold-2: #e6c77b;
  --gold-ink: #8d6516;            /* gold that is readable as text on ivory */
  --ivory: #fbf7ef;
  --paper: #fffdf9;
  --sand: #f3ebdc;
  --sand-2: #ece1cd;
  --ink: #1b1e35;
  --muted: #5e6178;
  --line: #e5dac6;
  --line-2: #d8cab1;
  --error: #a3322a;
  --ok: #276a43;

  --display: "Gambetta", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Switzer", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gold-metal: linear-gradient(170deg, #f1d891 0%, #c9a043 38%, #a8801f 62%, #e3c370 100%);
  --r: 16px;
  --shadow-sm: 0 1px 2px rgba(14, 23, 71, .06);
  --shadow: 0 1px 2px rgba(14, 23, 71, .05), 0 12px 32px -8px rgba(14, 23, 71, .14);
  --shadow-print: 0 2px 4px rgba(14, 23, 71, .08), 0 24px 48px -12px rgba(14, 23, 71, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--royal-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; margin: 0; color: var(--royal-ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-2); color: var(--navy); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; background: var(--paper); padding: 10px 16px; border-radius: 10px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.req { color: var(--error); }
.hint { color: var(--muted); font-size: .88rem; font-weight: 400; }

.kicker {
  font: 600 .78rem/1.2 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink);
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker-light { color: var(--gold-2); }
.section-heading { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.section-heading em, .hero-names em { font-style: italic; color: var(--gold-ink); font-weight: 450; }

/* Reveal on scroll (only when JavaScript runs) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--text); letter-spacing: .005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .92rem; }
.btn-lg { --h: 56px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-royal { background: var(--royal); color: var(--ivory); box-shadow: 0 6px 16px -6px rgba(27, 44, 134, .55); }
.btn-royal:hover { background: var(--royal-2); }
.btn-ghost { background: transparent; color: var(--royal); border-color: rgba(27, 44, 134, .35); }
.btn-ghost:hover { border-color: var(--royal); background: rgba(27, 44, 134, .04); }
.btn-gold { background: var(--gold-metal); color: var(--navy); box-shadow: 0 6px 18px -6px rgba(201, 160, 67, .6); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-line-light { background: transparent; color: var(--ivory); border-color: rgba(251, 247, 239, .35); }
.btn-line-light:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-quiet { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-quiet:hover { color: var(--ink); border-color: var(--line-2); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-text { background: none; border: 0; padding: 0; font: 600 .92rem var(--text); color: var(--royal-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 239, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.masthead.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14, 23, 71, .4); }
.masthead-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 74px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name span { font: 600 1.18rem/1 var(--display); color: var(--royal-ink); letter-spacing: .01em; }
.brand-name small { font: 600 .62rem/1 var(--text); letter-spacing: .34em; color: var(--gold-ink); margin-top: 5px; text-transform: uppercase; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(27, 44, 134, .06); color: var(--royal); }
.nav a[aria-current="page"] { color: var(--royal); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--royal-ink); transition: transform .25s var(--ease), top .25s; }
.nav-toggle span:first-child { top: 17px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .masthead-inner { gap: 10px; min-height: 66px; }
  .brand img { width: 56px; }
  .brand-name span { font-size: 1.02rem; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
    box-shadow: 0 20px 30px -24px rgba(14, 23, 71, .4);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .masthead-cta { --h: 40px; padding: 0 14px; font-size: .88rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 112px;
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(230, 199, 123, .28), transparent 62%),
    radial-gradient(700px 500px at -6% 96%, rgba(27, 44, 134, .07), transparent 60%),
    var(--ivory);
}
.hero::after { /* fine paper grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .47 0 0 0 0 .33 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.hero-names { font-size: clamp(3rem, 6.6vw, 5.9rem); font-weight: 500; line-height: .96; letter-spacing: -.022em; margin-bottom: 30px; }
.hn-line { display: block; }
.hn-her { font-style: italic; font-weight: 420; color: var(--gold-ink); }
.hn-amp { font-weight: 300; color: var(--gold); }
.hn-family { font-weight: 600; }
.ages { display: flex; align-items: center; gap: 28px; margin: 0 0 28px; }
.age { display: flex; align-items: baseline; gap: 12px; }
.age-num {
  font: italic 500 clamp(3.4rem, 6vw, 4.8rem)/.85 var(--display); letter-spacing: -.03em;
  background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(141, 101, 22, .25));
}
.age-who { font: 600 .74rem/1.25 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); max-width: 6.5em; }
.age-sep { width: 1px; height: 54px; background: linear-gradient(transparent, var(--gold), transparent); }
/* With the wedding anniversary there are three figures, so each label sits under its number. */
.ages-3 { gap: 26px; }
.ages-3 .age { flex-direction: column; align-items: flex-start; gap: 8px; }
.ages-3 .age-who { max-width: none; white-space: nowrap; }
.ages-3 .age-sep { height: 72px; }
.hero-lede { font-size: 1.16rem; line-height: 1.6; color: #34374f; max-width: 34em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; font-size: .95rem; color: var(--muted); }
.hero-proof a { color: inherit; text-decoration: none; }
.hero-proof strong { color: var(--royal-ink); }
.proof-dots { display: flex; }
.proof-dots span {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin-left: -8px;
  background: var(--royal); color: var(--gold-2); border: 2px solid var(--ivory); font: 600 .9rem var(--display);
}
.proof-dots span:first-child { margin-left: 0; }
.proof-dots span:nth-child(2) { background: var(--gold-ink); color: var(--ivory); }
.proof-dots span:nth-child(3) { background: var(--navy); }

.hero-art { position: relative; padding: 0 0 64px 48px; }
.print { margin: 0; position: relative; background: var(--paper); padding: 10px 10px 12px; box-shadow: var(--shadow-print); border-radius: 3px; }
.print img { width: 100%; object-fit: cover; border-radius: 1px; }
.print figcaption {
  position: absolute; font: italic 500 1.15rem/1 var(--display); color: var(--royal-ink);
  background: var(--paper); padding: 8px 14px 9px; border-radius: 2px; box-shadow: var(--shadow-sm);
}
.print-now { transform: rotate(1.4deg); }
.print-now img { aspect-ratio: 5 / 4.4; object-position: 50% 28%; }
.print-now figcaption { right: -14px; top: 26px; transform: rotate(3deg); }
.print-then { position: absolute; left: 0; bottom: 0; width: 38%; transform: rotate(-6deg); padding: 8px 8px 30px; }
.print-then img { aspect-ratio: 5 / 6; filter: sepia(.15) contrast(1.02); }
.print-then figcaption { position: static; box-shadow: none; padding: 7px 0 0; text-align: center; background: none; font-size: 1.05rem; position: absolute; bottom: 6px; left: 0; right: 0; }
.hero-flourish { position: absolute; width: 180px; right: -40px; top: -46px; color: var(--gold); z-index: -1; opacity: .8; }

@media (max-width: 960px) {
  .hero { padding: 28px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; padding: 0 6px 54px 34px; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-copy { text-align: left; }
  .hero-names { font-size: clamp(2.8rem, 12.5vw, 4.4rem); margin-bottom: 22px; }
  .hero-lede { font-size: 1.08rem; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .hero-actions .btn { width: 100%; }
  .ages { gap: 18px; }
  .age-sep { height: 44px; }
  .ages-3 { gap: 14px; }
  .ages-3 .age-num { font-size: 3rem; }
  .ages-3 .age-who { font-size: .64rem; letter-spacing: .12em; }
  .ages-3 .age-sep { height: 60px; }
  .print-now figcaption { right: -6px; }
}

/* ---------- Thanksgiving service ---------- */
.service {
  position: relative; color: var(--ivory); padding: 72px 0;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(42, 63, 168, .55), transparent 60%),
    linear-gradient(180deg, var(--navy), #0b1238);
}
.service::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-metal); }
.service-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.service-title { color: var(--ivory); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 26px; }
.service-facts { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.service-facts li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.08rem; }
.service-facts .icon { color: var(--gold-2); margin-top: 3px; }
.service-facts small { display: block; color: rgba(251, 247, 239, .62); font-size: .9rem; margin-top: 3px; }
.service-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.countdown > div {
  text-align: center; padding: 26px 8px 20px; border-radius: var(--r);
  background: rgba(251, 247, 239, .05); border: 1px solid rgba(230, 199, 123, .25);
}
.countdown span { display: block; font: 500 clamp(2.6rem, 5vw, 3.6rem)/1 var(--display); color: var(--gold-2); font-variant-numeric: lining-nums tabular-nums; }
.countdown small { display: block; margin-top: 10px; font: 600 .74rem var(--text); letter-spacing: .2em; text-transform: uppercase; color: rgba(251, 247, 239, .65); }
.countdown-done { grid-column: 1 / -1; text-align: center; font: italic 500 1.6rem var(--display); color: var(--gold-2); }
@media (max-width: 860px) {
  .service { padding: 56px 0; }
  .service-grid { grid-template-columns: 1fr; gap: 36px; }
  .countdown > div { padding: 20px 6px 16px; }
}

/* ---------- Send a greeting ---------- */
.send { padding: 104px 0; }
.send-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.send-intro { position: sticky; top: 108px; }
.send-intro .section-heading { margin-bottom: 22px; }
.send-lede { font-size: 1.1rem; color: #3a3d55; }
.deadline { display: flex; gap: 12px; align-items: flex-start; background: #fff7e3; border: 1px solid #efd9a3; border-radius: 12px; padding: 14px 16px; color: #5b4510; font-size: .98rem; }
.deadline .icon { color: var(--gold-ink); margin-top: 2px; }
.steps { list-style: none; padding: 0; margin: 30px 0 34px; display: grid; gap: 18px; }
.steps li { display: block; }
.step { display: flex; gap: 16px; align-items: flex-start; color: inherit; text-decoration: none; border-radius: 16px; margin: -6px; padding: 6px; transition: background .2s; }
.step:hover, .step:focus-visible { background: rgba(201, 160, 67, .1); }
.step:hover .step-icon, .step:focus-visible .step-icon { border-color: var(--gold); background: var(--gold); color: var(--paper); }
.step:active .step-icon { transform: scale(.94); }
.steps strong { display: block; font: 600 1.18rem/1.2 var(--display); color: var(--royal-ink); margin-bottom: 2px; }
.steps li > span:last-child { color: var(--muted); font-size: .98rem; }
.step-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--gold-ink); flex: none; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.verse { margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.verse p { font: italic 450 1.3rem/1.45 var(--display); color: var(--royal-ink); margin: 0 0 8px; }
.verse cite { font: 600 .76rem var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); font-style: normal; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.form-head { margin-bottom: 22px; }
.form-head h3 { font-size: 1.9rem; margin-bottom: 4px; }
.form-head p { color: var(--muted); font-size: .92rem; margin: 0; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fbf8f1;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px;
  transition: border-color .15s, background .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235e6178' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 170px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal-2); background: #fff; box-shadow: 0 0 0 4px rgba(42, 63, 168, .1); }
.field ::placeholder { color: #a19d9a; }
.field-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); margin: 7px 0 0; }
.field-error { color: var(--error); font-size: .9rem; margin: 6px 0 0; font-weight: 500; }
.field-error:empty { display: none; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--error) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.photo-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.add-tile, .thumb { aspect-ratio: 1; border-radius: 14px; position: relative; overflow: hidden; }
.field .add-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border: 1.5px dashed var(--line-2); color: var(--royal); font-size: .84rem; font-weight: 600; background: #fbf8f1;
  transition: border-color .2s, background .2s;
}
.add-tile:hover { border-color: var(--royal-2); background: #fff; }
.add-tile .icon { width: 26px; height: 26px; }
.add-tile.is-full { display: none; }
.thumb { background: var(--sand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .6); overflow: hidden; }
.thumb .bar span { display: block; height: 100%; width: 0; background: var(--royal); transition: width .2s; }
.thumb.is-done .bar { display: none; }
.thumb.is-error { outline: 2px solid var(--error); }
.thumb .x {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(14, 23, 71, .72); color: #fff; display: grid; place-items: center; padding: 0;
}
.thumb .x .icon { width: 15px; height: 15px; }

.video-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field .choice {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fbf8f1; font: inherit; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.choice:hover { border-color: var(--royal-2); background: #fff; }
.choice .icon { width: 28px; height: 28px; color: var(--royal); }
.choice strong { display: block; font-size: .96rem; }
.choice span { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.recorder { border-radius: 16px; overflow: hidden; background: #0b0f26; }
.recorder-stage { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.recorder-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.recorder-msg { position: relative; color: rgba(255, 255, 255, .78); text-align: center; padding: 0 24px; margin: 0; font-size: .95rem; }
.rec-badge { position: absolute; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .55); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: .86rem; font-variant-numeric: tabular-nums; }
.rec-badge i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.recorder-controls { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px; background: #0b0f26; }
.rec-btn { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.rec-btn span { width: 46px; height: 46px; border-radius: 50%; background: #e5383b; transition: all .2s var(--ease); }
.rec-btn.is-recording span { width: 24px; height: 24px; border-radius: 5px; }
.rec-btn:disabled { opacity: .4; }
.recorder-controls .btn-quiet { color: rgba(255, 255, 255, .75); border-color: rgba(255, 255, 255, .25); }
.video-item { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: #fbf8f1; }
.video-item video { width: 100%; max-height: 340px; background: #0b0f26; }
.video-item-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.progress { flex: 1; height: 6px; border-radius: 6px; background: var(--sand-2); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--royal); transition: width .2s; }
.progress.is-done span { background: var(--ok); }
.video-status { font-size: .85rem; color: var(--muted); white-space: nowrap; }

.private { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 6px 0 18px; }
.private summary { cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--royal); list-style: none; }
.private summary::-webkit-details-marker { display: none; }
.private summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 400; }
.private[open] summary::before { content: "–"; }
.private[open] summary { margin-bottom: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .95rem !important; cursor: pointer; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--royal); flex: none; }
.form-foot { text-align: center; color: var(--muted); font-size: .86rem; margin: 14px 0 0; }

.notice { border-radius: 12px; padding: 13px 16px; margin-bottom: 18px; font-weight: 500; font-size: .96rem; }
.notice-ok { background: #e9f4ec; color: var(--ok); border: 1px solid #c6e2cf; }
.notice-error { background: #faeceb; color: var(--error); border: 1px solid #efcac6; }

.thanks-card { text-align: center; padding: 48px 34px; }
.thanks-card:focus { outline: none; }
.thanks-mark { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--gold-metal); color: var(--navy); }
.thanks-mark .icon { width: 32px; height: 32px; }
.thanks-card h3 { font-size: 2.4rem; margin-bottom: 12px; }
.thanks-card p { color: #3a3d55; }
.thanks-ask { font-weight: 600; margin-top: 24px; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.closed-card h3 { font-size: 1.8rem; margin-bottom: 8px; }

@media (max-width: 960px) {
  .send { padding: 72px 0; }
  .send-grid { grid-template-columns: 1fr; gap: 40px; }
  .send-intro { position: static; }
  .steps { margin: 24px 0; }
}
@media (max-width: 520px) {
  .form-card { padding: 24px 18px; border-radius: 18px; margin: 0 -4px; }
  .field-row, .video-choice { grid-template-columns: 1fr; gap: 0 14px; }
  .video-choice { gap: 10px; }
  .field-meta span:last-child { display: none; }
}

/* ---------- Wall of wishes ---------- */
.wishes { padding: 104px 0; background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wishes-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.wishes-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wishes-count { font: italic 500 1.25rem var(--display); color: var(--gold-ink); margin: 0; }
.chips { display: flex; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.chip { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font: 600 .88rem var(--text); color: var(--muted); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--royal); color: var(--ivory); }
.wall { columns: 3 320px; column-gap: 22px; }
.wall.is-loading { opacity: .5; transition: opacity .2s; }
.wish {
  break-inside: avoid; margin: 0 0 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 24px 20px; box-shadow: var(--shadow-sm); position: relative;
}
.wish.is-featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, var(--shadow); }
.wish.is-new { animation: arrive .7s var(--ease); }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }
.wish-body { font: 420 1.12rem/1.6 var(--display); color: #24273e; overflow-wrap: anywhere; position: relative; }
.wish-body p { margin: 0 0 .75em; }
.wish-body p:last-child { margin-bottom: 0; }
.wish-body.is-clamped { max-height: 14.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.wish-more { margin-top: 6px; }
.wish-photos { display: grid; gap: 6px; margin-top: 16px; border-radius: 12px; overflow: hidden; }
.wish-photos a { position: relative; display: block; background: var(--sand); }
.wish-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform .5s var(--ease); }
.wish-photos a:hover img { transform: scale(1.03); }
.wish-photos.n1 img { aspect-ratio: auto; max-height: 420px; }
.wish-photos.n2 { grid-template-columns: 1fr 1fr; }
.wish-photos.n3 { grid-template-columns: 1fr 1fr; }
.wish-photos.n3 a:first-child { grid-column: span 2; }
.wish-photos.n3 a:first-child img { aspect-ratio: 16 / 10; }
.wish-photos.n4 { grid-template-columns: 1fr 1fr; }
.more-count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 23, 71, .55); color: #fff; font: 600 1.5rem var(--display); }
.wish-video { position: relative; margin: -24px -24px 18px; border-radius: 18px 18px 0 0; overflow: hidden; background: #0b0f26; }
.wish-video video { width: 100%; max-height: 480px; }
.wish-duration { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .78rem; padding: 3px 8px; border-radius: 999px; pointer-events: none; }
.wish-by { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.wish-initial { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--royal); color: var(--gold-2); font: 600 1.2rem var(--display); }
.wish:nth-child(3n+2) .wish-initial { background: var(--gold-ink); color: var(--ivory); }
.wish:nth-child(3n) .wish-initial { background: var(--navy); }
.wish-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wish-who strong { font-weight: 600; }
.wish-who small { color: var(--muted); font-size: .86rem; }
.wish-flag { font: 600 .68rem var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.wall-empty { text-align: center; padding: 64px 24px; border: 1.5px dashed var(--line-2); border-radius: 22px; background: rgba(255, 253, 249, .6); }
.wall-empty-title { font: italic 500 1.6rem var(--display); color: var(--royal-ink); margin-bottom: 6px; }
.more-btn { display: flex; margin: 16px auto 0; }
@media (max-width: 720px) {
  .wishes { padding: 72px 0; }
  .wishes-tools { align-items: flex-start; }
  .wish { padding: 20px 18px 16px; }
  .wish-video { margin: -20px -18px 16px; }
}

/* ---------- Story ---------- */
.story { padding: 112px 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: center; }
.story-photo { margin: 0; position: relative; padding: 14px 14px 52px; background: var(--paper); box-shadow: var(--shadow-print); transform: rotate(-2deg); max-width: 440px; justify-self: center; }
.story-photo img { width: 100%; filter: sepia(.12); }
.story-photo figcaption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font: italic 500 1.25rem var(--display); color: var(--royal-ink); }
.story-text .section-heading { margin-bottom: 24px; }
.prose { font-size: 1.08rem; color: #34374f; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--royal-ink); font-weight: 650; letter-spacing: .02em; }
.prose em { font-family: var(--display); font-size: 1.12em; color: var(--gold-ink); }
.prose h2 { font-size: 1.8rem; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 1.35rem; margin: 1.2em 0 .4em; }
.prose blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid var(--gold); font: italic 450 1.3rem/1.45 var(--display); color: var(--royal-ink); }
.prose ul { padding-left: 1.2em; }
.story-extra { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .story { padding: 72px 0; } .story-grid { grid-template-columns: 1fr; gap: 48px; } .story-photo { max-width: 320px; } }

/* ---------- Moments ---------- */
.moments { padding: 0 0 112px; }
.moments .section-heading { margin-bottom: 36px; }
.moments-grid { columns: 4 230px; column-gap: 14px; }
.moment { display: block; break-inside: avoid; margin: 0 0 14px; border-radius: 14px; overflow: hidden; background: var(--sand); }
.moment img { width: 100%; transition: transform .8s var(--ease); }
.moment:hover img { transform: scale(1.03); }
@media (max-width: 860px) { .moments { padding-bottom: 72px; } .moments-grid { columns: 2; column-gap: 10px; } .moment { margin-bottom: 10px; } }

/* ---------- Share band ---------- */
.invite-band { background: var(--royal); color: var(--ivory); padding: 72px 0; text-align: center; position: relative; overflow: hidden; }
.invite-band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(230, 199, 123, .3); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.invite-inner { position: relative; }
.invite-title { color: var(--ivory); font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.invite-band p { color: rgba(251, 247, 239, .78); margin-bottom: 26px; }

/* ---------- Footer ---------- */
.colophon { background: var(--paper); padding: 56px 0 40px; }
.colophon-inner { display: flex; align-items: center; gap: 40px; }
.colophon-logo { width: 200px; }
.colophon-tagline { font: italic 450 1.35rem/1.35 var(--display); color: var(--royal-ink); margin-bottom: 10px; }
.colophon-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.colophon-contact a { color: var(--gold-ink); text-decoration: none; font-weight: 500; }
.colophon-base { color: var(--muted); font-size: .86rem; margin: 18px 0 0; }
@media (max-width: 640px) { .colophon-inner { flex-direction: column; text-align: center; gap: 20px; } .colophon-logo { width: 180px; } .colophon-contact { justify-content: center; } }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(9, 13, 36, .94); }
.lightbox figure { margin: 0; max-width: min(94vw, 1200px); text-align: center; }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { color: rgba(255, 255, 255, .82); margin-top: 12px; font: italic 450 1.15rem var(--display); }
.lb-btn { position: fixed; z-index: 2; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }

/* ---------- Simple content pages ---------- */
.content-page { padding: 72px 0 96px; }
.content-page .wrap { max-width: 780px; }
.page-title { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 28px; }
.preview-bar { background: var(--gold-2); color: var(--navy); text-align: center; padding: 10px 16px; font-weight: 600; }
.center { text-align: center; }
.share-note { font-size: .92rem; font-weight: 500; color: var(--ok); }
.invite-band .share-note { color: var(--gold-2); margin: -10px 0 20px; }

/* ---------- "Coming soon" holding page ---------- */
.page-holding { min-height: 100vh; background:
  radial-gradient(900px 520px at 85% 0%, rgba(230, 199, 123, .3), transparent 62%),
  radial-gradient(700px 500px at 0% 100%, rgba(27, 44, 134, .08), transparent 60%), var(--ivory); }
.holding { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.holding-card { max-width: 560px; text-align: center; }
.holding-logo { width: min(300px, 70vw); margin: 0 auto 28px; }
.holding-kicker { justify-content: center; }
.holding-kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.holding-title { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 18px; }
.holding-title em { font-style: italic; font-weight: 450; color: var(--gold-ink); display: block; }
.holding-text { font-size: 1.12rem; color: #3a3d55; }
.holding-tagline { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font: italic 450 1.15rem var(--display); color: var(--royal-ink); }

/* Bar shown to admins/preview viewers while the site is locked */
.locked-bar { background: var(--navy); color: var(--gold-2); text-align: center; font-size: .88rem; padding: 8px 16px; }
.locked-bar a { color: #fff; }
