/* e7ents guest page: the base layer. On its own this IS the Essential design:
   one column, static, light fades, one serif + one sans. signature.css and
   luxe.css are layered on top for those designs; music.css, cinema.css and
   envelope.css come with their add-ons on any design. Mobile-first. Themes are
   custom properties; a host's own palette (add-on) arrives as inline
   properties on <body>. */

/* Motion tokens: every animation on the page takes its duration and easing
   from here. No bounce or overshoot; linear only for continuous effects. */
:root {
  --m-fast: 160ms; --m-base: 320ms; --m-slow: 600ms; --m-cine: 1200ms;
  --e-standard: cubic-bezier(0.2, 0, 0, 1);
  --e-entrance: cubic-bezier(0.16, 1, 0.3, 1);
  --e-exit: cubic-bezier(0.4, 0, 1, 1);
}

:root, .theme-pearl {
  --bg: #fbf8f1;
  --surface: #fffdf8;
  --ink: #1f2a44;
  --muted: #6b6f7b;
  --accent: #b08d57;
  --accent-text: #86683a;
  --accent-soft: #eee3cc;
  --line: #e4d8bf;
  --on-accent: #fffdf8;
  --seal: #1f2a44;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", "Cormorant Garamond", 'Snell Roundhand', Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-linen {
  --bg: #f6f3ea;
  --surface: #fffdf7;
  --ink: #34413a;
  --muted: #5f685f;
  --accent: #7f977b;
  --accent-text: #566d52;
  --accent-soft: #f1d9d3;
  --line: #dfe3d3;
  --on-accent: #fffdf7;
  --seal: #c98f86;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", "Playfair Display", 'Snell Roundhand', Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Rose Gold: the old Champagne, warmed toward blush and rose gold. */
.theme-rose_gold {
  --bg: #faf2ef;
  --surface: #fffaf8;
  --ink: #3d2a2a;
  --muted: #766665;
  --accent: #c3927f;
  --accent-text: #7f5f53;
  --accent-soft: #f0e1db;
  --line: #e7d0c8;
  --on-accent: #ffffff;
  --seal: #8a5a4c;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", "Cormorant Garamond", 'Snell Roundhand', Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-opal {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #27324a;
  --muted: #606879;
  --accent: #8fb4c9;
  --accent-text: #566c79;
  --accent-soft: #e4ecf3;  /* a tint of its own accent: one palette (2026-10-06) */
  --line: #d3e0ea;
  --on-accent: #ffffff;
  --seal: #6f7fa8;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Parisienne", "Cormorant Garamond", 'Snell Roundhand', Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-emerald {
  --bg: #0e2a22;
  --surface: #13352b;
  --ink: #f4ecd8;
  --muted: #afb2a1;
  --accent: #d4af5a;
  --accent-text: #d4af5a;
  --accent-soft: #32422c;
  --line: #535936;
  --on-accent: #0e2a22;
  --seal: #8a723a;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", "Cormorant Garamond", 'Snell Roundhand', Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-sapphire {
  --bg: #0f1f3d;
  --surface: #16284a;
  --ink: #f6f1e4;
  --muted: #b5b7bd;
  --accent: #c9a55a;
  --accent-text: #c9a55a;
  --accent-soft: #22365c;
  --line: #3a4a6a;
  --on-accent: #0f1f3d;
  --seal: #836b3a;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", "Cormorant Garamond", 'Snell Roundhand', Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* The Line-Art Collections (collections.py): each one's first colourway. Made by
   collections.css_block(); a test checks they match. */
.theme-dusty_blue_garden {
  --bg: #eef2f5;
  --surface: #f7f9fa;
  --ink: #26364a;
  --muted: #616c7b;
  --accent: #7d98ad;
  --accent-text: #586a79;
  --accent-soft: #dce4e9;
  --line: #c3d0da;
  --on-accent: #ffffff;
  --seal: #586a79;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-sage_eucalyptus {
  --bg: #f5f4ec;
  --surface: #fafaf6;
  --ink: #2c372f;
  --muted: #676d66;
  --accent: #8a9f86;
  --accent-text: #616f5e;
  --accent-soft: #e4e6dc;
  --line: #ccd4c5;
  --on-accent: #ffffff;
  --seal: #616f5e;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", "Playfair Display", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-blush_peony {
  --bg: #fbf3f1;
  --surface: #fdfaf9;
  --ink: #3f2b2e;
  --muted: #7b6b6c;
  --accent: #d4a5a0;
  --accent-text: #7f6360;
  --accent-soft: #f5e7e4;
  --line: #ecd5d2;
  --on-accent: #ffffff;
  --seal: #947470;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Parisienne", "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-champagne_deco {
  --bg: #f7f1e6;
  --surface: #fbf9f4;
  --ink: #1c1b1a;
  --muted: #625f5b;
  --accent: #b8975a;
  --accent-text: #816a3f;
  --accent-soft: #ede3d0;
  --line: #dfcfb1;
  --on-accent: #ffffff;
  --seal: #816a3f;
  --font-display: "Cinzel", Georgia, serif;
  --font-script: "Pinyon Script", "Cinzel", Georgia, serif;
  --font-body: "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-terracotta_pampas {
  --bg: #f6efe6;
  --surface: #fbf8f4;
  --ink: #3b2a22;
  --muted: #776961;
  --accent: #c0714f;
  --accent-text: #9a5a3f;
  --accent-soft: #eddbce;
  --line: #e1bfad;
  --on-accent: #ffffff;
  --seal: #864f37;
  --font-display: "Bodoni Moda", Georgia, serif;
  --font-script: "Mrs Saint Delafield", "Bodoni Moda", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-lilac_butterflies {
  --bg: #f6f2fa;
  --surface: #fbf9fd;
  --ink: #3a2f4a;
  --muted: #70687c;
  --accent: #a48cc4;
  --accent-text: #736289;
  --accent-soft: #e9e2f1;
  --line: #d7cbe5;
  --on-accent: #ffffff;
  --seal: #736289;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  --font-body: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-rose_gold_gala {
  --bg: #fbf1ee;
  --surface: #fdf9f7;
  --ink: #3b2626;
  --muted: #786766;
  --accent: #c08b7a;
  --accent-text: #866155;
  --accent-soft: #f2e1db;
  --line: #e5cac2;
  --on-accent: #ffffff;
  --seal: #866155;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Pinyon Script", "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-golden_years {
  --bg: #fbf7ee;
  --surface: #fdfbf7;
  --ink: #2b2618;
  --muted: #6e695c;
  --accent: #b9933f;
  --accent-text: #82672c;
  --accent-soft: #f0e7d2;
  --line: #e2d1ac;
  --on-accent: #ffffff;
  --seal: #82672c;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", "Cormorant Garamond", Georgia, serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-midnight_gold_deco {
  --bg: #0f1a2e;
  --surface: #1d2638;
  --ink: #f3ead5;
  --muted: #aaa7a0;
  --accent: #d1ab57;
  --accent-text: #d1ab57;
  --accent-soft: #2e3135;
  --line: #59513e;
  --on-accent: #000000;
  --seal: #92783d;
  --font-display: "Cinzel", Georgia, serif;
  --font-script: "Great Vibes", "Cinzel", Georgia, serif;
  --font-body: "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-olive_dove {
  --bg: #f8f6ee;
  --surface: #fcfbf7;
  --ink: #2f3a2c;
  --muted: #697065;
  --accent: #8c9a6e;
  --accent-text: #697452;
  --accent-soft: #e7e7da;
  --line: #cfd3bd;
  --on-accent: #ffffff;
  --seal: #626c4d;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Parisienne", "Cormorant Garamond", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-homecoming {
  --bg: #f8f1e7;
  --surface: #fcf9f4;
  --ink: #3a2620;
  --muted: #776760;
  --accent: #b5653f;
  --accent-text: #a35b39;
  --accent-soft: #eddbcc;
  --line: #dfbca7;
  --on-accent: #ffffff;
  --seal: #7f472c;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Allura", "Playfair Display", Georgia, serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-class_of {
  --bg: #13213b;
  --surface: #202d44;
  --ink: #f4ecd8;
  --muted: #acaba6;
  --accent: #d0aa55;
  --accent-text: #d0aa55;
  --accent-soft: #31373f;
  --line: #5b5545;
  --on-accent: #000000;
  --seal: #92773c;
  --font-display: "Cinzel", Georgia, serif;
  --font-script: "Pinyon Script", "Cinzel", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-vintage_yearbook {
  --bg: #f3ead9;
  --surface: #faf6ee;
  --ink: #33271b;
  --muted: #706558;
  --accent: #8a6a45;
  --accent-text: #836542;
  --accent-soft: #e2d6c1;
  --line: #cbb9a1;
  --on-accent: #ffffff;
  --seal: #614a30;
  --font-display: "Special Elite", Georgia, serif;
  --font-script: "Homemade Apple", "Special Elite", Georgia, serif;
  --font-body: "Courier Prime", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-alumni_gala {
  --bg: #10291f;
  --surface: #1e352a;
  --ink: #f2ecd9;
  --muted: #aaae9d;
  --accent: #cfac5c;
  --accent-text: #cfac5c;
  --accent-soft: #2f3e29;
  --line: #595b36;
  --on-accent: #000000;
  --seal: #917840;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", "Cormorant Garamond", Georgia, serif;
  --font-body: "Josefin Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-recess {
  --bg: #fbfaf4;
  --surface: #fdfdfa;
  --ink: #1f2a44;
  --muted: #656d7c;
  --accent: #c8452f;
  --accent-text: #c8452f;
  --accent-soft: #f3ddd4;
  --line: #e8b5a9;
  --on-accent: #ffffff;
  --seal: #8c3021;
  --font-display: "Patrick Hand", Georgia, serif;
  --font-script: "Gaegu", "Patrick Hand", Georgia, serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.theme-jersey {
  --bg: #f4f7fb;
  --surface: #fafbfd;
  --ink: #13254a;
  --muted: #5b6883;
  --accent: #1f5fae;
  --accent-text: #1f5fae;
  --accent-soft: #d2dfef;
  --line: #a3bdde;
  --on-accent: #ffffff;
  --seal: #16427a;
  --font-display: "Oswald", Georgia, serif;
  --font-script: "Permanent Marker", "Oswald", Georgia, serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; margin: 0; }
h2 { font-size: 2.1rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { overflow-x: clip; }

/* Not live yet (unpaid or a draft): a mark over the whole page, so a screenshot can't pass for the real one */
.preview-watermark {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  display: grid; place-items: center; overflow: hidden;
}
.preview-watermark span {
  transform: rotate(-30deg); font-size: clamp(3.5rem, 18vw, 9rem); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: color-mix(in srgb, var(--ink) 9%, transparent);
}
@media print { .preview-watermark span { color: rgba(0, 0, 0, .12); } }

.preview-banner {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: var(--bg);
  text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem 1rem;
}

.section {
  padding: 4.5rem 1.5rem;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
/* Essential: simple thin dividers between sections. */
.section + .section { border-top: 1px solid var(--line); }
.eyebrow {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 .6rem; font-weight: 500;
}
.prose { margin: 0 auto 1rem; max-width: 34rem; white-space: pre-line; }
.muted { color: var(--muted); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 12px 30px -18px rgba(31,42,68,.25);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.6rem;
  border-radius: 999px; border: 1px solid var(--accent-text);
  background: var(--accent-text); color: var(--on-accent);
  font: 500 .82rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background var(--m-fast) var(--e-standard), color var(--m-fast) var(--e-standard);
}
.btn:focus-visible, .choice-btn input:focus-visible + span, summary:focus-visible,
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px;
}
.btn-ghost { background: transparent; color: var(--accent-text); }
.btn-small { min-height: 44px; padding: .6rem 1.1rem; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1rem; }

.notice { border-radius: 10px; padding: .8rem 1rem; margin: 0 auto 1.25rem; max-width: 30rem; font-size: .95rem; }
.notice-ok { background: var(--accent-soft); color: var(--ink); }
.notice-error { background: #fbe4e1; color: #7a2419; }

/* ---------- Sample ribbon (demo pages) ---------- */
.sample-ribbon {
  position: fixed; top: 14px; right: -38px; z-index: 60; width: 140px;
  transform: rotate(45deg); text-align: center; pointer-events: none;
  background: #b3261e; color: #fff; padding: .3rem 0;
  font: 600 .66rem/1.2 system-ui, sans-serif; letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.sample-menu {
  position: fixed; left: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 60;
  font: 500 .75rem/1.3 system-ui, sans-serif;
}
.sample-menu summary {
  list-style: none; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center;
  padding: .5rem .9rem; border-radius: 999px; background: #1d1d1f; color: #fff; letter-spacing: .06em;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
}
.sample-menu summary::-webkit-details-marker { display: none; }
.sample-menu ul {
  list-style: none; margin: 0 0 .5rem; padding: .4rem; border-radius: 12px; background: #1d1d1f;
  position: absolute; bottom: 100%; left: 0; min-width: 12rem;
}
.sample-menu a { display: block; padding: .55rem .7rem; color: #fff; text-decoration: none; border-radius: 8px; }
.sample-menu a:hover, .sample-menu a[aria-current="page"] { background: rgba(255,255,255,.14); }

/* ---------- Greeting (Essential: a simple card that fades in) ---------- */
.greeting-simple { padding-top: 3rem; }
.greeting-card { max-width: 26rem; margin: 0 auto; padding: 1.25rem 1.25rem 1.75rem; animation: fade-in var(--m-slow) var(--e-entrance) both; }
.greeting-card .greeting-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; margin: 0 0 1.25rem; }
.greeting-message { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; margin: 0 0 1rem; }
.greeting-date { margin: 0; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Invitation + Essential hero (photo in a framed card) ---------- */
.invitation { padding-top: 3.5rem; }
.framed-photo {
  margin: 0 auto 2rem; max-width: 20rem; padding: .7rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 18px 40px -26px rgba(31,42,68,.45);
}
.framed-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.dear { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; margin: 0 0 .75rem; }
.wording { font-family: var(--font-display); font-size: 1.2rem; max-width: 26rem; margin: 0 auto 1.5rem; }
.names { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 11vw, 3.6rem); line-height: 1.1; }
.amp { color: var(--accent-text); display: inline-block; padding: 0 .1em; }
.rule { width: 64px; height: 1px; background: var(--accent); margin: 1.5rem auto; }
.when { font-family: var(--font-display); font-size: 1.35rem; margin: 0; }
.when-time { letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--muted); margin: .35rem 0 0; }
.hero-framed { margin-bottom: 2rem; }
.hero-framed .when { margin-top: 1rem; }
.seats { margin: 1.5rem auto 0; padding: .7rem 1.2rem; display: inline-block; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .95rem; }

/* ---------- Shared by the fuller greetings and heroes (any design, via add-ons) ---------- */
.greeting-arch { width: min(72vw, 280px); margin: 0 auto 1.6rem; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 999px 999px 16px 16px; box-shadow: 0 26px 50px -30px rgba(0,0,0,.6); }
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; margin-top: 2rem;
  text-decoration: none; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text);
}
.scroll-cue span { animation: bob 2400ms ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.invitation-lead { padding-top: 0; }
.hero-bleed {
  position: relative; width: 100vw; margin: 0 calc(50% - 50vw) 3rem;
  min-height: 92vh; min-height: 92svh; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; color: #fff;
}
.hero-img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.28) 58%, rgba(0,0,0,.72) 100%);
}
.hero-text { position: relative; padding: 0 1.5rem 4.5rem; text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-text .eyebrow { color: #fff; opacity: .92; }
.hero-text .names { color: #fff; }
.hero-text .amp { color: #fff; opacity: .9; }
.hero-date { margin: .8rem 0 0; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; }
@media (min-width: 720px) { .hero-text { padding-bottom: 6rem; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ---------- Story + gallery (Essential: a basic two-column grid) ---------- */
.chapter { margin: 0 auto 1.5rem; max-width: 34rem; }
.chapter h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.chapter p { margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: 2rem; }
.gallery-item { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .7rem .55rem;
  background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-align: left;
}

/* ---------- Venues ---------- */
.venue-cards { display: grid; gap: 1rem; }
.venue h3 { font-size: .75rem; font-family: var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; }
.venue-time { font: 500 1.6rem var(--font-display); margin: .4rem 0 .1rem; }
.venue-name { font: 500 1.3rem var(--font-display); margin: 0; }
.venue-address { color: var(--muted); margin: .25rem 0 0; font-size: .95rem; }

/* ---------- Entourage ---------- */
.entourage-group { margin-top: 2rem; }
.entourage-group h3 { font-size: .75rem; font-family: var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; margin-bottom: .8rem; }
.entourage-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.member-name { display: block; font: 400 1.2rem var(--font-display); }
.member-role { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .08em; }

/* ---------- Dress code ---------- */
.swatches { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; padding: 0; margin: 1.5rem 0 0; }
.swatch { display: block; width: 52px; height: 52px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(0,0,0,.4); }
/* the dress code's colours (dress_code.py, 2026-10-15): each with its name under it; "Please avoid" crossed out */
.dc-colours { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1.1rem; padding: 0; margin: 1.4rem 0 .4rem; }
.dc-colours li { display: flex; flex-direction: column; align-items: center; gap: .35rem; min-width: 56px; }
.dc-swatch { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(0,0,0,.4); }
.dc-name { font-size: .78rem; letter-spacing: .02em; color: var(--muted); }
.dc-names { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }  /* read aloud once */
.dc-avoid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1rem; margin: .8rem 0 1.2rem;
  font-size: .85rem; color: var(--muted); }
.dc-avoid > span:first-child { letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; }
.dc-avoid-item { display: inline-flex; align-items: center; gap: .4rem; }
.dc-avoid .dc-swatch { width: 24px; height: 24px; border-width: 2px; }
.dc-crossed { position: relative; overflow: hidden; }
.dc-crossed::after { content: ""; position: absolute; left: -10%; top: 50%; width: 120%; height: 2px; background: var(--ink);
  transform: rotate(-45deg); box-shadow: 0 0 0 1px var(--surface); }

/* ---------- RSVP ---------- */
.reply-by { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; margin: 0 0 1.25rem; }
.rsvp-summary { margin: 0 auto 1.25rem; max-width: 30rem; }
.rsvp-answer { margin: 0; font-size: 1.05rem; }
.rsvp-names { list-style: none; padding: 0; margin: .75rem 0 0; }
.rsvp-details > summary { list-style: none; }
.rsvp-details > summary::-webkit-details-marker { display: none; }
.rsvp-details[open] > summary { display: none; }
.rsvp-form, .wish-form { text-align: left; max-width: 30rem; margin: 0 auto; display: grid; gap: 1.1rem; }
.rsvp-form .btn, .wish-form .btn { width: 100%; }
.choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choice legend { grid-column: 1 / -1; font: 400 1.2rem var(--font-display); margin-bottom: .6rem; text-align: center; width: 100%; }
.choice-btn { position: relative; }
.choice-btn input { position: absolute; opacity: 0; inset: 0; }
.choice-btn span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: .6rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); font-size: .9rem; cursor: pointer; transition: border-color var(--m-fast) var(--e-standard), background var(--m-fast) var(--e-standard);
}
.choice-btn input:checked + span { border-color: var(--accent-text); background: var(--accent-soft); font-weight: 500; }
.field { display: grid; gap: .35rem; }
.field > span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
  font: 400 16px/1.4 var(--font-body);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; border-color: var(--accent-text); }
.people { display: grid; gap: .9rem; margin-top: .9rem; }
.person { display: grid; gap: .6rem; padding: .9rem; border: 1px dashed var(--line); border-radius: 12px; }
.attending-fields[hidden], .person[hidden] { display: none; }

/* ---------- Gifts ---------- */
.gift-qr { margin: 1.5rem auto; max-width: 15rem; }
.gift-qr img { border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: .6rem; }
.gift-qr figcaption { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; }

/* ---------- Program ---------- */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 24rem; text-align: left; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5.2rem; top: .6rem; bottom: .6rem; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1.4rem; padding: .7rem 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(5.2rem - 4px); top: 1.15rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.t-time { font-size: .8rem; letter-spacing: .06em; color: var(--muted); padding-top: .2rem; text-align: right; }
.t-title { font: 400 1.2rem var(--font-display); }

/* ---------- FAQ ---------- */
.faq-list { text-align: left; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative; font: 500 1.15rem var(--font-display); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .2rem; top: .95rem; font-size: 1.4rem; color: var(--accent-text); transition: transform var(--m-base) var(--e-standard); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 1.1rem; color: var(--muted); }

/* ---------- Wishes ---------- */
.wish-wall { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .8rem; text-align: left; }
.wish p { margin: 0; }
.wish-from { margin-top: .6rem !important; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- Day-of / after ---------- */
.dayof .names, .thankyou .names { margin: .5rem 0 1.5rem; }
.table-card { margin: 1.5rem auto; max-width: 16rem; }
.table-label { margin: 0; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.table-number { margin: .2rem 0 0; font: 500 4rem/1 var(--font-display); color: var(--accent-text); }
.placeholder { margin: 1.5rem auto 0; max-width: 22rem; border-style: dashed; }
.placeholder-title { font: 500 1.35rem var(--font-display); margin: 0; }
.placeholder .muted { margin: .3rem 0 0; }

/* ---------- Footer ---------- */
.site-foot { text-align: center; padding: 3.5rem 1.5rem calc(4.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-names { font: 400 1.8rem var(--font-display); margin: 0; }
.foot-date { margin: .2rem 0 0; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.made-with { margin: 1.75rem 0 0; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.made-with a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }

@media (min-width: 720px) {
  body { font-size: 18px; }
  .section { padding: 4.25rem 2rem; }  /* was 6rem: with the divider, half a screen between sections (2026-10-23) */
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .wish-wall { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}

/* ---- Guest camera page */
.camera-page .camera { max-width: 30rem; margin: 0 auto; padding-top: 2.5rem; }
.camera-names { font: 500 2.2rem/1.1 var(--font-display); margin: .2rem 0 1.5rem; }
.camera-counter { margin: 0 auto 1.25rem; }
.camera-count { margin: 0; font: 500 1.4rem var(--font-display); color: var(--muted); }
.camera-count strong { display: block; font-size: 5rem; line-height: 1; color: var(--ink); }
.camera-count-label { margin: .2rem 0 0; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--muted); }
.camera-form { display: grid; gap: 1rem; }
.camera-pick { display: grid; gap: .7rem; }
.camera-pick .btn { position: relative; width: 100%; min-height: 56px; cursor: pointer; }
.camera-pick input[type=file] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.camera-shoot { font-size: .9rem; }
.camera-preview img { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; background: var(--surface); }
.camera-small { font-size: .85rem; margin: 1rem 0; }
.camera-join { display: grid; gap: .9rem; text-align: left; }
.camera-join .placeholder-title, .camera-join > .muted { text-align: center; margin: 0; }
.camera-mine-title { font-size: 1.5rem; margin: 2rem 0 .3rem; }
.camera-closed, .camera-done { margin: 1rem auto; }

/* ---- Album (after the reveal) */
.album-actions { margin: 0 0 1.25rem; }
.album-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
@media (min-width: 640px) { .album-grid { grid-template-columns: repeat(4, 1fr); gap: .5rem; } }
.album-grid li { margin: 0; }
.album-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--accent-soft); }
.album-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.album-credit { margin: .15rem 0 .4rem; font-size: .72rem; color: var(--muted); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-new { display: inline-block; margin-left: .3rem; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
.album-countdown { margin: .8rem 0 0; font-weight: 500; }
/* The viewer / slideshow: a fixed layer the size of what's visible (100dvh:
   iPhone's toolbars included), clear of the notch and home bar. It works with
   or without real fullscreen; touches stay inside it. */
.album-viewer {
  position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden; background: #0b0b0c; color: #f4f1ea;
  overscroll-behavior: contain; touch-action: none; -webkit-user-select: none; user-select: none;
}
.album-viewer[open] { display: block; }
.album-viewer::backdrop { background: #0b0b0c; }
.album-stage {
  position: absolute; display: flex; align-items: center; justify-content: center;
  top: calc(3.75rem + env(safe-area-inset-top)); bottom: calc(4rem + env(safe-area-inset-bottom));
  left: env(safe-area-inset-left); right: env(safe-area-inset-right);
}
.album-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity var(--m-base) var(--e-standard); }
.album-viewer.is-loading .album-stage img { opacity: .6; }
.album-stage .album-ghost { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; pointer-events: none; }
.album-bar { position: absolute; left: 0; right: 0; bottom: calc(.6rem + env(safe-area-inset-bottom)); text-align: center; pointer-events: none; }
.album-count { margin: 0; font-size: .78rem; letter-spacing: .12em; opacity: .75; }
.album-viewer-credit { margin: .15rem 0 0; font-size: .95rem; }
.album-viewer button {
  position: absolute; z-index: 2; border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.album-viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.album-prev { left: calc(.5rem + env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.album-next { right: calc(.5rem + env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
.album-close { right: calc(.6rem + env(safe-area-inset-right)); top: calc(.6rem + env(safe-area-inset-top)); }
.album-pause { left: calc(.6rem + env(safe-area-inset-left)); top: calc(.6rem + env(safe-area-inset-top)); font-size: 1rem !important; display: none !important; }
.album-viewer.is-slideshow .album-pause { display: flex !important; }
.album-pause .icon-play, .album-viewer.is-playing .album-pause .icon-pause { display: inline; }
.album-pause .icon-pause, .album-viewer.is-playing .album-pause .icon-play { display: none; }
.album-viewer.is-slideshow .album-prev, .album-viewer.is-slideshow .album-next { opacity: .35; }
.album-progress { position: absolute; left: 0; right: 0; top: env(safe-area-inset-top); height: 3px; background: rgba(255, 255, 255, .15); display: none; }
.album-viewer.is-slideshow .album-progress { display: block; }
.album-progress span { display: block; height: 100%; width: 100%; background: #d4af5a; transform: scaleX(0); transform-origin: 0 50%; }
.album-progress span.is-running { animation: album-progress 4500ms linear forwards; }
@keyframes album-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

[hidden] { display: none !important; }
.camera-page main { padding-bottom: 6rem; }

/* ---- Couple monogram (add-on) */
.hero-monogram { width: 96px; height: 96px; margin: 0 auto 1rem; color: var(--accent-text); }
.hero-monogram svg, .hero-monogram img { width: 100%; height: 100%; display: block; }
.hero-text .hero-monogram { color: #fff; }
.hero-monogram-lg { width: 132px; height: 132px; color: #e9cf8a; animation: fade-in var(--m-cine) var(--e-entrance) 200ms both; }
.seal-monogram { display: block; width: 44px; height: 44px; color: rgba(255,255,255,.9); }
.seal-monogram svg { width: 100%; height: 100%; display: block; }

/* ---- Album passcode (album.py) */
.album-passcode { display: grid; gap: .8rem; max-width: 20rem; margin: 1.2rem auto 0; text-align: left; }
.album-passcode label { display: grid; gap: .35rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.album-passcode input { width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: 400 16px var(--font-body); letter-spacing: 0; text-transform: none; }
.album-passcode input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.album-passcode .btn { justify-self: center; }

/* ---- Updates: the banner and the section */
.update-banner { position: relative; margin: 0; padding: 1rem 3.2rem 1rem 1.2rem; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px -24px rgba(0,0,0,.5); animation: fade-in var(--m-slow) var(--e-entrance) both; }
.update-banner-inner { max-width: 34rem; margin: 0 auto; text-align: center; }
.update-banner-label { margin: 0; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-text); }
.update-banner-title { margin: .2rem 0 0; font: 500 1.25rem/1.3 var(--font-display); color: var(--ink); }
.update-banner-text { margin: .2rem 0 0; font-size: .92rem; color: var(--muted); }
.update-banner-more { display: inline-block; margin-top: .3rem; font-size: .8rem; color: var(--accent-text); }
.update-banner-close { position: absolute; top: .4rem; right: .4rem; margin: 0; }
.update-banner-close button { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.update-list { list-style: none; margin: 1.5rem auto 0; padding: 0; max-width: 34rem; display: grid; gap: .8rem; text-align: left; }
.update-item { padding: 1rem 1.2rem; }
.update-item h3 { font-size: 1.25rem; margin: .1rem 0 .3rem; }
.update-item.is-pinned { border-color: var(--accent); }
.update-when { margin: 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.notify { margin: 1.5rem auto 0; max-width: 26rem; text-align: center; }
.notify-note { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }
.notify-ios { margin-top: .8rem; padding: .9rem 1rem; text-align: left; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.notify-ios ol { margin: .4rem 0 0; padding-left: 1.2rem; }

/* ---------- Occasions (occasion.py): what's shared, then each occasion's own touch ---------- */
.occasion-line { margin: .35rem 0 0; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.hero-photo .occasion-line, .hero-cinema .occasion-line { color: inherit; opacity: .9; }
/* a milestone age's small touch under the age line: "Golden 50" with its ornament */
.milestone-touch { display: inline-flex; align-items: center; gap: .45rem; margin: .5rem 0 0; font: italic 400 1.05rem/1.3 var(--font-display, Georgia, serif); color: var(--accent-text); }
.milestone-touch svg { flex: none; }
.hero-photo .milestone-touch, .hero-cinema .milestone-touch { color: inherit; }
.hero-logo img { display: block; max-width: 180px; max-height: 96px; margin: 0 auto 1rem; object-fit: contain; }
.t-speaker { display: block; font-size: .85rem; color: var(--muted); }
.venue-notes { display: grid; gap: 1rem; margin-top: 1.2rem; text-align: left; }
.debut-lists { display: grid; gap: 1rem; }
.debut-names { margin: .6rem 0 0; padding-left: 1.4rem; text-align: left; }
.debut-names li { margin: .35rem 0; }
.debut-message { display: block; font-size: .85rem; font-style: italic; color: var(--muted); }
/* The story / milestones list on every design (Luxe adds its line and dots in luxe.css). */
.story-timeline { list-style: none; margin: 2rem auto 0; padding: 0; max-width: 34rem; }
.story-step { margin: 0 0 2.2rem; }
.story-step:last-child { margin-bottom: 0; }
.story-step h3 { margin: .2rem 0 .4rem; }
.story-step img, .story-step .ph { margin-top: .9rem; }
.years-timeline .year { margin: 0; font-size: .8rem; letter-spacing: .2em; color: var(--accent-text); }
.speaker-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.speaker img { display: block; width: 96px; height: 96px; margin: 0 auto .6rem; border-radius: 50%; object-fit: cover; }
.speaker-name { margin: 0; font-weight: 500; }
.speaker-title { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); }
.sponsor-wall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 2.2rem; }
.sponsor { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.sponsor img { max-width: 150px; max-height: 64px; object-fit: contain; }
.sponsor-name { font-family: var(--font-display); font-size: 1.3rem; }
.sponsor-level { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 720px) {
  .debut-lists { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .venue-notes { grid-template-columns: 1fr 1fr; }
}

/* A company: formal and restrained. No florals or confetti; the seal is the logo. */
.occasion-corporate .names { letter-spacing: .01em; }
.occasion-corporate .seal-logo { width: 72%; height: 72%; object-fit: contain; border-radius: 50%; background: #fff; padding: 8%; }

/* A kids' birthday (playful): rounder shapes, a brighter accent and confetti. */
.tone-playful { --accent: #e0664f; --accent-text: #b8412c; --accent-soft: #fde3d6; }
.tone-playful .card, .tone-playful .btn, .tone-playful .framed-photo, .tone-playful .choice-btn span { border-radius: 22px; }
.tone-playful .invitation, .tone-playful .thankyou {
  background-image:
    radial-gradient(circle at 12% 18%, #f4b942 0 4px, transparent 5px),
    radial-gradient(circle at 86% 12%, #5bb6d8 0 5px, transparent 6px),
    radial-gradient(circle at 78% 72%, #e0664f 0 4px, transparent 5px),
    radial-gradient(circle at 20% 82%, #7cc47f 0 5px, transparent 6px),
    radial-gradient(circle at 50% 6%, #c58be0 0 3px, transparent 4px);
}
/* An elegant birthday: the confetti is only a whisper, in the page's own accent. */
.occasion-birthday.tone-elegant .invitation {
  background-image: radial-gradient(circle at 14% 16%, var(--accent-soft) 0 3px, transparent 4px),
                    radial-gradient(circle at 84% 20%, var(--accent-soft) 0 3px, transparent 4px);
}

/* ---- "Your photo here" (samples, and /design until a photo is added): the
   design's own colours, a fine border, a camera, the display font. The text
   is the page's ink on a light tint (or white on a deep tint in a full-bleed
   hero), so it keeps 4.5:1 (tests/test_placeholders_js.py). */
.ph { position: relative; display: grid; place-items: center; align-content: center; gap: .55rem; width: 100%; padding: 1rem;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--ink); text-align: center; overflow: hidden; border-radius: 12px; }
.ph::before { content: ""; position: absolute; inset: 6px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 8px; pointer-events: none; }
.ph-icon { color: var(--accent-text); opacity: .9; }
.ph-text { font: 400 1.05rem/1.25 var(--font-display, Georgia, serif); letter-spacing: .02em; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--landscape { aspect-ratio: 4 / 3; }
.ph--square, .ph--tile { aspect-ratio: 1; }
.ph--circle { aspect-ratio: 1; width: 7.5rem; border-radius: 50%; margin: 0 auto; padding: .6rem; }
.ph--circle::before { border-radius: 50%; }
.ph--circle .ph-text { font-size: .8rem; }
.ph--logo { aspect-ratio: 3 / 1; max-width: 16rem; margin: 0 auto; padding: .5rem; }
.ph--logo .ph-text { font-size: .85rem; }
.ph--tile { padding: .5rem; }
.ph--tile .ph-text { font-size: .9rem; }
/* full-bleed: the label is a small line by the top (or bottom) edge, clear of any title however long */
.ph--bleed { position: absolute; inset: 0; height: 100%; padding: 0; border: 0; border-radius: 0; align-content: start;
  grid-auto-flow: column; justify-content: center; align-items: center; gap: .5rem; padding-top: calc(30px + env(safe-area-inset-top));
  /* the theme's own colours (accent into its ink), never a black of its own: one palette (2026-10-06) */
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 50%, var(--hero-deep, var(--ink))),
                              color-mix(in srgb, var(--accent) 28%, var(--hero-deep, var(--ink))));
  color: #fff; }
.ph--bleed::before { inset: 14px; border-color: rgba(255, 255, 255, .28); border-radius: 10px; }
.ph--bleed .ph-text { font-size: .9rem; }
.ph--bleed .ph-icon { color: #fff; opacity: .85; }
.ph--bleed.ph--label-bottom { align-content: end; padding: 0 0 calc(30px + env(safe-area-inset-bottom)); }
.split-photo .ph, .framed-photo .ph { height: 100%; }
.hero-logo .ph { min-width: 12rem; }

/* "Made with e7ents": the wordmark, in the page's own muted colour */
.cam-made { text-align: center; }
.cam-plan { position: relative; padding-right: 3rem; }
.cam-plan-title { margin: 0 0 .25rem; font-weight: 500; }
.cam-plan-x { position: absolute; top: .25rem; right: .25rem; min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 1.4rem; color: inherit; cursor: pointer; }
.made-with .e7-logo { display: inline-block; height: 1.15rem; width: auto; vertical-align: -.32em;
  /* the artwork's colours (gold e7, the page's own ink for "ents": dark on light templates, light on dark ones), and
     its hairline "e" drawn heavier: at this size it vanished and the logo read "7ents" (2026-10-23) */
  --e7-logo-ink: var(--ink, currentColor); --e7-logo-gold: color-mix(in srgb, #B8955A 78%, var(--ink, #211E2A)); --e7-logo-e: 4.5; }

/* a sample's note on what comes with which package (only on the samples) */
.sample-tier-note { display: inline-block; margin: .2rem auto .8rem; padding: .25rem .7rem; border: 1px dashed var(--line);
  border-radius: 999px; font-size: .72rem; letter-spacing: .04em; color: var(--muted); }

/* A draft's or an unpublished preview's mark (2026-10-06): a small faint line in the page's own
   flow, between sections, never over a heading or text. */
.e7-draft-tag { position: relative; z-index: 1; margin: 0 auto; padding: .35rem 0; text-align: center; pointer-events: none;
  font: 600 10px/1.2 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); opacity: .32; }
.e7-draft-top { padding-top: calc(.5rem + env(safe-area-inset-top)); }

/* Program icons on every page (2026-10-06): each item its own line icon, never a plain dot. */
.timeline li:has(.t-icon-plain) { grid-template-columns: 4.6rem 28px minmax(0, 1fr); gap: .9rem; }
.timeline li:has(.t-icon-plain)::before { display: none; }
.timeline li .t-icon-plain { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 28px; height: 28px; color: var(--accent-text); }
.timeline li:has(.t-icon-plain) .t-time { grid-column: 1; grid-row: 1; }
.timeline li:has(.t-icon-plain) .t-title { grid-column: 3; grid-row: 1; }
.t-icon-plain .la-icon { width: 24px; height: 23px; }
.timeline:has(.t-icon-plain)::before { left: calc(5.5rem + 14px); }
.timeline li .t-icon-plain { position: relative; z-index: 1; background: var(--bg); border-radius: 50%; }

/* the party QR's page (2026-10-15; wish_routes.py): a themed top in the event's colours (--cam-*), then the steps */
.cam .cam-top { padding: 2.2rem 1.2rem 1.6rem; text-align: center; background: var(--cam-accent, var(--accent)); color: var(--cam-on-accent, #fff); }
.cam .cam-top .camera-names { color: inherit; margin: .2rem 0; }
.cam-hi { margin: 0; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; }
.cam-lede { margin: .3rem 0 0; font-size: .95rem; }
.cam .camera { padding-top: 1.2rem; }
.cam-step { display: grid; gap: .8rem; }
.cam-step h2 { margin: 0; }
.cam-step-no { margin: 0; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cam-adds { display: flex; gap: .5rem; flex-wrap: wrap; }
.cam-add { min-height: 44px; }
.cam-skip { display: inline-flex; align-items: center; min-height: 44px; }
.cam-wish-mini { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 52px;
  margin: 0 0 1rem; padding: .7rem 1rem; text-decoration: none; color: inherit; font-weight: 500; }
.cam-wish-mini > * { margin: 0; line-height: 1.3; }
.cam-wish-mini .cam-wish-go { color: var(--cam-accent, var(--accent)); }
.cam-wish-mini[data-wish-card="sent"] { justify-content: flex-start; gap: .35rem; }
p.cam-wish-mini { font-weight: 400; color: var(--muted); }
.cam-upload { display: grid; gap: .3rem; margin-top: .8rem; }
.cam-upload-left { margin: 0; font-size: .9rem; font-weight: 500; text-align: center; }
.cam-upload-note { margin: .8rem 0 0; padding: .75rem 1rem; border-radius: 10px; background: var(--line); text-align: center; }
.cam-upload .btn, .camera-shoot { min-height: 48px; }
.rsvp-wish { margin-top: 1rem; text-align: center; }
.cam .btn:not(.btn-ghost) { background: var(--cam-accent); border-color: var(--cam-accent); color: var(--cam-on-accent, #fff); }
.cam .btn-ghost { color: var(--cam-accent); border-color: var(--cam-accent); }

/* My photos and My wish on the camera page (mine_routes.py, 2026-10-16) */
.cam-mine h2 { margin-top: 0; }
.cam-mine-grid { list-style: none; margin: .6rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .cam-mine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cam-mine-grid li { position: relative; display: grid; gap: 4px; }
.cam-mine-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.cam-mine-tools { display: flex; gap: 4px; }
.cam-mine-tools form { margin: 0; flex: 1; }
.cam-mine-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 6px; box-sizing: border-box;
  border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font: inherit; font-size: .82rem; text-decoration: none; cursor: pointer; }
.cam-mine-tools > a.cam-mine-btn { flex: 1; width: auto; }
.cam-mine-tag { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 6px; font-size: .7rem; background: rgba(0, 0, 0, .65); color: #fff; }
.cam-wish-edit { display: grid; gap: .5rem; margin-top: .6rem; }

/* RSVP on the group link (_group_rsvp.html, 2026-10-16) */
.group-rsvp { display: grid; gap: .8rem; text-align: left; max-width: 34rem; margin: 0 auto; }
.group-rsvp-title { margin: 0; font-size: 1.15rem; text-align: center; }
.group-rsvp-find input { width: 100%; min-height: 48px; box-sizing: border-box; font-size: 1.05rem; }
.group-rsvp-results { display: grid; gap: .6rem; }
.group-rsvp-results:empty { display: none; }
.group-rsvp-match p { margin: 0 0 .6rem; }
.group-rsvp-form[hidden], [data-group-count-field][hidden] { display: none; }

/* ---- A wish's voice/video message, recorded in the page (recorder.js, 2026-10-18) */
.shot-ask { margin: 0; font-family: var(--font-display, Georgia, serif); font-size: 1.35rem; }
.shot-progress { margin: .2rem 0 .7rem; font-size: .9rem; opacity: .85; }
.shot-cards { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.shot-card { position: relative; min-height: 92px; display: grid; justify-items: center; align-content: center; gap: .35rem; padding: .6rem .5rem;
  border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--cam-accent, var(--accent)) 45%, transparent); text-align: center; cursor: pointer; }
.shot-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.shot-card svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.shot-card.is-done { opacity: .75; background: color-mix(in srgb, var(--cam-accent, var(--accent)) 12%, transparent); }
.shot-tick { position: absolute; top: 6px; right: 10px; font-weight: 600; color: var(--cam-accent, var(--accent)); }
.shot-free { width: 100%; }
.shot-for { margin: 0 0 .5rem; font-weight: 500; }
.shot-for[hidden] { display: none; }
.shot-what { border: 0; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.shot-what legend { padding: 0; margin-bottom: .3rem; font-size: .9rem; }
.shot-chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; padding: 0 .8rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent); font-size: .88rem; }
.wish-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .4rem 0 .8rem; }
.wish-choice { min-height: 64px; display: grid; justify-items: center; align-content: center; gap: .25rem; padding: .5rem; border-radius: 14px;
  border: 1.5px solid color-mix(in srgb, var(--cam-accent, var(--accent)) 45%, transparent); background: none; color: inherit; font: inherit; cursor: pointer; }
.wish-choice[hidden] { display: none; }
.wish-choice svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wish-choice[aria-pressed="true"] { background: var(--cam-accent, var(--accent)); color: var(--cam-on-accent, #fff); border-color: transparent; }
.rec-status { margin: 0 0 .5rem; }
.rec-status[hidden] { display: none; }
.rec { margin: .6rem 0; }
.wish-choices ~ .rec[data-rec-state="idle"] { margin: 0; }  /* opened from the choices: no room until it's used */
.rec[hidden] { display: none; }
.rec-panel { margin-top: .6rem; padding: 1rem; border: 1px solid color-mix(in srgb, var(--cam-accent, var(--accent)) 30%, transparent); border-radius: 14px; text-align: center; }
.rec-ask p { margin: 0 0 .7rem; }
.rec-dial { position: relative; width: 132px; height: 132px; margin: .4rem auto; }
.rec-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.rec-ring circle { fill: none; stroke-width: 8; }
.rec-ring-track { stroke: color-mix(in srgb, currentColor 12%, transparent); }
.rec-ring-left { stroke: var(--cam-accent, var(--accent)); stroke-linecap: round; transition: stroke-dashoffset var(--m-fast) var(--e-standard); }
.rec-big { position: absolute; inset: 18px; border-radius: 50%; border: 0; background: #d33a3a; cursor: pointer; display: grid; place-items: center; }
.rec-big span { width: 30px; height: 30px; border-radius: 50%; background: #fff; transition: border-radius var(--m-fast) var(--e-standard), width var(--m-fast) var(--e-standard), height var(--m-fast) var(--e-standard); }
.rec-big.is-on span { width: 26px; height: 26px; border-radius: 5px; }
.rec-left { font-size: 1.15rem; font-variant-numeric: tabular-nums; margin: .2rem 0; }
.rec-preview, .rec-play { width: 100%; max-height: 52vh; border-radius: 12px; background: #000; object-fit: cover; }
.rec-preview { transform: scaleX(-1); margin-bottom: .4rem; }
.rec-length { margin: 0 0 .6rem; }
.rec-done .btn-row { justify-content: center; flex-wrap: wrap; }
.rec-chosen { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .2rem .8rem; }
.cam-wish-voice { margin: .3rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; }
.rec button.cam-skip { background: none; border: 0; padding: 0 .4rem; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* the back arrow on a camera step (back.js, 2026-10-19) */
.cam-top { position: relative; }
.cam-back { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; }
.cam-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cards in a section (2026-10-23): one card sits centred under its heading at a sensible width, two side
   by side, three or more wrap evenly, every row centred. (A two-column grid left one card in its left half: event
   1513's Where & when.) */
.venue-cards, .venue-notes, .debut-lists { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.venue-cards > *, .venue-notes > * { flex: 1 1 13rem; max-width: 24rem; min-width: 0; }
.debut-lists > * { flex: 1 1 220px; max-width: 24rem; min-width: 0; }
@media (min-width: 720px) {
  .speaker-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 200px)); justify-content: center; }  /* a phone keeps full-width cards */
  .wish-wall > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - .4rem); }
}

/* The calendar block (weddings, calendar_block.py): the month small and quiet, the day in a heart in the accent.
   It wears the page's own fonts and colours, whatever the template or the Design tab chose. */
.calendar-block { padding-top: 3rem; padding-bottom: 3rem; }
.cal-head { margin: 0 0 1rem; font-family: var(--font-display); color: var(--lk-title, var(--ink)); line-height: 1.1; }
.cal-month { display: block; font-size: 1.9rem; letter-spacing: .02em; }
.cal-year { display: block; font-family: var(--font-body); font-size: .74rem; letter-spacing: .32em; color: var(--accent-text); margin-top: .35rem; }
.cal-grid { margin: 0 auto; border-collapse: collapse; width: 100%; max-width: 19.5rem; table-layout: fixed;
            font-family: var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.cal-grid th { font-size: .66rem; letter-spacing: .14em; font-weight: 500; color: var(--muted); padding: 0 0 .55rem; }
.cal-grid td { position: relative; height: 2.5rem; text-align: center; vertical-align: middle; font-size: .92rem; }
.cal-num { position: relative; z-index: 1; }
.cal-day.is-the-day { font-weight: 600; color: var(--ink); }
.cal-heart { position: absolute; left: 50%; top: 50%; width: 2.35rem; height: 2.2rem; transform: translate(-50%, -50%);
             fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2.2; overflow: visible; }
.cal-caption { margin: 1rem 0 0; font-size: .82rem; letter-spacing: .06em; color: var(--muted); }

/* "Full photo" (weddings, partials/hero_poster.html): the photo full screen, the words over a soft shade at the
   bottom. Every word sits inside the shade's solid part (the 7rem above it is the soft fade), so it keeps 4.5:1
   on any photo; --poster-ink and --poster-shade come from page.POSTER, light words or dark by the photo. */
.hero-poster { position: relative; width: 100vw; margin: 0 calc(50% - 50vw) 2.5rem; min-height: 100vh; min-height: 100svh;
               overflow: hidden; display: flex; align-items: flex-end; justify-content: center; color: var(--poster-ink); }
.poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-text { position: relative; width: 100%; padding: 7rem 1.25rem 2.6rem; text-align: center;
               background: linear-gradient(to top, var(--poster-shade) 0, var(--poster-shade) calc(100% - 7rem), rgba(0, 0, 0, 0) 100%); }
.poster-title { margin: 0 0 .9rem; line-height: 1; font-weight: 400; }
.poster-serif { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 13vw, 4.4rem); letter-spacing: .06em;
                text-transform: uppercase; line-height: .95; }
.poster-script { display: block; position: relative; margin-top: -.42em; font-family: var(--font-script); font-size: clamp(3rem, 16vw, 5.4rem);
                 line-height: 1; color: var(--poster-ink); }
.hero-poster .poster-names { color: var(--poster-ink); font-size: clamp(1.9rem, 9vw, 2.8rem); margin: 0; }
.hero-poster .amp, .hero-poster .occasion-line { color: var(--poster-ink); opacity: 1; }
.hero-poster .occasion-line { font-size: .86rem; margin: .5rem 0 0; }
.poster-date { margin: .9rem 0 0; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; }
.hero-poster .countdown { margin-top: 1.2rem; color: var(--poster-ink); }
.hero-poster .countdown .cd-unit, .hero-poster .countdown > .cd-unit { background: none; border-color: currentColor; color: var(--poster-ink); box-shadow: none; }
/* doubled: over a collection's own countdown colours (collection.css loads after this), the words stay the poster's */
.hero-poster.hero-poster .countdown .cd-unit b, .hero-poster.hero-poster .countdown .cd-words, .hero-poster.hero-poster .countdown .cd-today { color: var(--poster-ink); background: none; }
.hero-poster .countdown .cd-unit b::after { display: none; }
@media (min-width: 720px) { .poster-text { padding-bottom: 4rem; } }
.section.invitation:has(> .hero-poster) { padding-top: 0; }  /* the photo starts at the very top of the cover */
/* the words and the countdown fit one phone screen under the photo */
.hero-poster .countdown { gap: .45rem; }
.hero-poster .countdown > .cd-unit { min-width: 0; width: 4.1rem; height: 4.1rem; padding: .35rem .1rem; }
.hero-poster .countdown .cd-unit b { font-size: 1.45rem; }
.hero-poster .countdown .cd-words { font-size: 1rem; margin-bottom: .45rem; }
