/* nishandpooja.com — ivory, ink and one deep red. Light serif headings, small spaced capitals. */
:root {
  --ivory: #f6f2ea;
  --paper: #fbf9f5;
  --sand: #ebe5d9;
  --line: #dbd3c4;
  --ink: #1c1a17;
  --ink-2: #4b463f;
  --muted: #8c857a;
  --accent: #7d1f22;
  --accent-soft: #f3e7e4;
  --good: #3f6b4b;
  --bad: #9b2c2c;
  /* older names still used by admin and form styles */
  --sea: var(--ink);
  --sea-deep: #000;
  --sea-soft: var(--sand);
  --marigold: var(--accent);
  --marigold-soft: var(--accent-soft);
  --coral: var(--accent);
  --radius: 2px;
  --header-bg: rgba(246, 242, 234, .86);
  --book-cover: #5e1d20;
  --mat: #fff;
  --field-bg: #fff;
  --frame-rule: rgba(125, 31, 34, .38);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .25  0 0 0 0 .2  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --btn-bg: var(--ink);
  --btn-fg: var(--ivory);
  --tbd-bg: #f4ead0;
  --tbd-fg: #6b4a00;
  --ok-bg: #e6efe7;
  --err-bg: #f6e5e3;
  /* Fonts picked 18 Oct: Sorts Mill Goudy (headings), Ysabeau Office (body), Pinyon Script (our names only).
     Sorts Mill Goudy has one weight, so headings set to 300 or 500 show at its regular weight. */
  --display: "Sorts Mill Goudy", "Tiro Devanagari Hindi", Georgia, serif;
  --body: "Ysabeau Office", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Pinyon Script", "Tiro Devanagari Hindi", Georgia, serif;
  --vh: 100vh;
  --track: .24em;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

/* Forest theme: dark green, dark brown, burnt orange. The only theme (data-theme="forest" on every page's <html>, Nish 21 Oct 2026);
   the :root values above are only its base. */
:root[data-theme="forest"] {
  color-scheme: dark;
  --ivory: #1d2b22;
  --paper: #2b2019;
  --sand: #34291f;
  --line: rgba(239, 228, 208, .2);
  --ink: #efe4d0;
  --ink-2: #d6c8ae;
  --muted: #a9997e;
  --accent: #e07a2e;
  --accent-soft: rgba(224, 122, 46, .16);
  --good: #9ccc9c;
  --bad: #f0a08f;
  --sea-deep: #fff;
  --header-bg: rgba(29, 43, 34, .88);
  --book-cover: #142019;
  --mat: #f1e8d6;
  --field-bg: rgba(255, 255, 255, .06);
  --frame-rule: rgba(176, 92, 30, .6);
  --btn-bg: var(--accent);
  --btn-fg: #1b140f;
  --tbd-bg: rgba(224, 122, 46, .22);
  --tbd-fg: #f6c79a;
  --ok-bg: rgba(156, 204, 156, .14);
  --err-bg: rgba(240, 160, 143, .14);
}
html:lang(hi) {
  --display: "Tiro Devanagari Hindi", "Sorts Mill Goudy", Georgia, serif;
  --body: "Noto Sans Devanagari", "Ysabeau Office", -apple-system, sans-serif;
  --script: "Tiro Devanagari Hindi", Georgia, serif; /* Pinyon Script has no Hindi letters */
  --track: .02em;
}

*, *::before, *::after { box-sizing: border-box; }
/* Type grows with the window: 16px on phones and laptops, up to 20px on large monitors. Everything sized in rem follows. */
html { -webkit-text-size-adjust: 100%; font-size: clamp(16px, calc(9px + .55vw), 20px); }
/* Computers: every screen (and each open spread of the photobook) is a stop the page always lands on, one per scroll:
   mandatory snapping keeps it "sticky" (Nish, 25 Oct 2026), and scroll-snap-stop: always stops a fast trackpad flick
   at the next screen instead of flying past several (the "very fast" feel, Nish, 24 Oct 2026).
   Phones and touch screens: gentle snapping, settling only when a swipe stops near a screen (Nish, 18 Oct 2026). */
html:has(body.onepage) { scroll-snap-type: y proximity; scroll-behavior: smooth; }
@media (hover: hover) and (min-width: 901px) {
  html:has(body.onepage) { scroll-snap-type: y mandatory; }
  .screen, .snap-mark { scroll-snap-stop: always; }
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
html:lang(hi) body { line-height: 1.8; }
body.menu-open { overflow: hidden; }
main { width: 100%; max-width: 980px; margin: 0 auto; padding: 32px 16px 64px; }
body.onepage main { max-width: none; padding: 0; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.5rem; font-weight: 400; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* placeholder text, visible while CONFIG.highlightPlaceholders is on */
.tbd { background: var(--tbd-bg); color: var(--tbd-fg); padding: 0 .3em; font-style: italic; }

.eyebrow {
  font: 400 .7rem/1.4 var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px;
}
html:lang(hi) .eyebrow { letter-spacing: .04em; font-size: .85rem; }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 46ch; }
.quiet { border-left: 1px solid var(--accent); padding: 2px 0 2px 16px; color: var(--ink-2); font-size: .95rem; margin: 0 0 24px; }

/* ---------- one-page layout ---------- */
.screen { position: relative; min-height: var(--vh); scroll-snap-align: start; }
@media (hover: none), (max-width: 900px) { .screen { scroll-snap-align: none; } } /* see scroll-snap-type above */

/* menu: centered, hidden over the film, light or dark to match the section below it */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; align-items: center;
  padding: 14px 16px; color: #fff;
  transition: opacity .5s ease, transform .5s ease, background-color .4s ease, color .4s ease;
}
/* over photos: a dark glass bar so the small white type stays readable */
.site-header[data-tone="dark"] {
  background: rgba(14, 13, 11, .34);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.site-header.is-hidden { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.site-header[data-tone="light"] {
  color: var(--ink); background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(28, 26, 23, .35);
}
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 3.2vw, 44px); flex-wrap: wrap; }
.site-nav a, .menu-toggle, .site-nav .nav-signout {
  color: inherit; text-decoration: none; background: none; border: 0; cursor: pointer;
  font: 500 .62rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 1.5px solid transparent; transition: border-color .25s ease, color .25s ease;
}
.site-nav a:hover, .site-nav .nav-signout:hover { color: inherit; border-bottom-color: currentColor; }
.site-nav a[aria-current] { border-bottom-color: var(--accent); }
.site-header[data-tone="dark"] .site-nav a[aria-current] { border-bottom-color: currentColor; }
.site-nav .nav-signout { border: 1px solid currentColor; padding: 7px 14px; border-radius: 2px; opacity: .85; } /* a button (Nish, 22 Oct 2026) */
.site-nav .nav-signout:hover { opacity: 1; background: rgba(255, 255, 255, .08); border-bottom-color: currentColor; }
/* RSVP and Reserve as buttons in the menu bar (Nish, 24 Oct 2026); RSVP is filled. RSVP, Reserve and Sign out are one size. */
.site-nav .nav-cta, .site-nav .nav-signout { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 6.75rem; height: 32px; padding: 0 14px; line-height: 1; }
.site-nav .nav-cta { border: 1px solid currentColor; border-radius: 2px; }
.site-nav .nav-cta:hover { background: rgba(255, 255, 255, .08); border-bottom-color: currentColor; }
.site-nav .nav-cta-rsvp { background: var(--accent); border-color: var(--accent); color: #1b140f; }
.site-nav .nav-cta-rsvp:hover { background: var(--accent); filter: brightness(1.08); color: #1b140f; }
/* switches, e.g. [ English | हिंदी ] */
.switches { display: flex; align-items: center; gap: 14px; }
.switch-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid currentColor; border-radius: 999px; --on-bg: var(--ink); --on-fg: var(--ivory); }
.site-header[data-tone="dark"] .switch { --on-bg: #fff; --on-fg: #141414; }
.switch button {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: inherit; cursor: pointer;
  font: 500 .58rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; opacity: .8;
}
.switch button:hover { opacity: 1; }
.switch button[aria-pressed="true"] { background: var(--on-bg); color: var(--on-fg); opacity: 1; }
.switch button:lang(hi) { font-family: "Noto Sans Devanagari", var(--body); letter-spacing: .02em; font-size: .8rem; text-transform: none; }
.simple-header { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
html:lang(hi) .site-nav a, html:lang(hi) .site-nav .nav-signout { font-size: .8rem; letter-spacing: .04em; }
.menu-toggle { display: none; }

@media (max-width: 980px) {
  .site-header { padding: 16px; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .site-nav {
    display: none; position: fixed; inset: 0; z-index: 1;
    background: var(--ivory); color: var(--ink);
    flex-direction: column; gap: 26px; padding: 80px 16px;
    /* one column that scrolls on short screens; wrapping put Sign out and the language switch in a second
       column off the right edge (tester, 19 Oct 2026). The auto margins center it when it fits. */
    flex-wrap: nowrap; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain;
  }
  .site-nav > :first-child { margin-top: auto; }
  .site-nav > :last-child { margin-bottom: auto; }
  .nav-open .site-nav { display: flex; }
  /* a backdrop-filter would trap the fixed overlay inside the bar */
  .site-header.nav-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ivory); }
  .nav-open .menu-toggle { color: var(--ink); }
  .site-nav a, .site-nav .nav-signout { font: 300 2rem/1.1 var(--display); letter-spacing: .01em; text-transform: none; }
  .site-nav .nav-signout, .site-nav .nav-cta { font: 500 .8rem var(--body); letter-spacing: .18em; text-transform: uppercase; height: auto; min-width: 13em; padding: 12px 24px; margin-top: 6px; }
  .switches { flex-direction: column; gap: 18px; margin-top: 20px; }
  .switch-wrap { display: grid; justify-items: center; gap: 8px; }
  .switch-label { position: static; width: auto; height: auto; clip: auto; font: 400 .64rem var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
  .switch button { font-size: .72rem; padding: 9px 16px; }
}
/* short phones: tighter menu so the language switch fits without scrolling */
@media (max-width: 980px) and (max-height: 760px) {
  .site-nav { gap: 16px; padding: 64px 16px 24px; }
  .site-nav a { font-size: 1.6rem; }
  .switches { margin-top: 8px; }
}

/* 1. landing film */
.film { height: var(--vh); overflow: hidden; background: #0d0c0a; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #fff; text-decoration: none; font: 400 .65rem var(--body); letter-spacing: .32em; text-transform: uppercase;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue::after { content: ""; width: 1px; height: 44px; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); animation: cue 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.film-toggle {
  position: absolute; right: 20px; bottom: 24px; background: none; color: #fff; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 6px 14px;
  font: 400 .62rem var(--body); letter-spacing: .24em; text-transform: uppercase; opacity: .7;
}
.film-toggle:hover { opacity: 1; }

/* The words on top of the film, fading in one by one after about 5 seconds (film.js). */
.film-overlay::before { opacity: 0; transition: opacity 2.2s ease; }
.film-overlay.is-shown::before { opacity: 1; }
.film-overlay .scroll-cue, .film-overlay .film-toggle { z-index: 3; }
/* Names, venue and dates up top; welcome and RSVP near the bottom; the two of us stay clear in the middle. */
.film-overlay .hero-text { align-self: stretch; margin: 0; display: flex; flex-direction: column; align-items: center; padding: max(76px, 9vh) 16px 112px; }
.film-overlay .hero-welcome { margin-top: auto; }
.film.film-overlay::before { /* .film too, so this wins over the .hero::before further down */
  background:
    linear-gradient(180deg, rgba(10, 12, 8, .62) 0%, rgba(10, 12, 8, .18) 34%, rgba(10, 12, 8, 0) 50%, rgba(10, 12, 8, .2) 64%, rgba(10, 12, 8, .66) 100%);
}
.film-overlay .hero-text > * { opacity: 0; transform: translateY(16px); filter: blur(4px); transition: opacity 1.6s ease, transform 1.8s cubic-bezier(.2, .7, .2, 1), filter 1.6s ease; }
.film-overlay.is-shown .hero-text > * { opacity: 1; transform: none; filter: none; }
.film-overlay.is-shown .hero-text > :nth-child(2) { transition-delay: .7s; }
.film-overlay.is-shown .hero-text > :nth-child(3) { transition-delay: 1s; }
.film-overlay.is-shown .hero-text > :nth-child(4) { transition-delay: 1.6s; }
.film-overlay.is-shown .hero-text > :nth-child(5) { transition-delay: 2.1s; }
@media (prefers-reduced-motion: reduce) { .film-overlay .hero-text > *, .film-overlay::before { transition: none; } }

/* words over a photo or the film: the opening and the Thank you screen */
.hero { height: var(--vh); overflow: hidden; color: #fff; display: grid; place-items: center; background: #1f2a1d; }
.cover, .cover img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover img { object-fit: cover; object-position: 50% 62%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 60% 42% at 50% 40%, rgba(10, 12, 8, .42), rgba(10, 12, 8, 0) 70%),
    linear-gradient(180deg, rgba(10, 12, 8, .5) 0%, rgba(10, 12, 8, .25) 45%, rgba(10, 12, 8, .45) 100%);
}
.hero-text { position: relative; z-index: 2; text-align: center; padding: 0 16px; margin-top: -14vh; }
.hero h1 { color: #fff; font-weight: 300; font-size: clamp(3.4rem, 11vw, 8rem); line-height: .95; letter-spacing: .01em; margin: 0; }
.hero-venue { margin: 28px 0 10px; font: 500 clamp(.8rem, 1.1vw, .92rem) var(--body); letter-spacing: .3em; text-transform: uppercase; }
.hero-dates { margin: 0; font: 400 italic clamp(1.5rem, 2.8vw, 2.1rem) var(--display); }
html:lang(hi) .hero-venue { letter-spacing: .04em; font-size: .9rem; }
html:lang(hi) .hero-dates { font-style: normal; }
.hero-text p, .hero h1 { text-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 2px 18px rgba(0, 0, 0, .55); }
.hero-welcome { margin: 34px 0 0; display: grid; gap: 8px; justify-items: center; }
.hero-welcome-line { font: 400 clamp(1.15rem, 1.8vw, 1.45rem) var(--display); }
/* RSVP heads-up on the first screen: the deadline and a shortcut to the RSVP section */
.hero-rsvp { margin-top: 26px; display: grid; justify-items: center; gap: 22px; } /* more room between the date line and the buttons (Nish, 24 Oct 2026) */
.hero-rsvp p { margin: 0; font: 500 .8rem var(--body); letter-spacing: .18em; text-transform: uppercase; }
.hero-rsvp .em-date { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .7); padding-bottom: 1px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-light-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-light-ghost:hover { background: #fff; color: #1c1a17; }
html:lang(hi) .hero-rsvp p { letter-spacing: .02em; font-size: .95rem; text-transform: none; }
/* 9. thank-you: the last screen, text low over the photo so faces stay clear */
.thanks { place-items: end center; }
.thanks .cover img { object-position: 50% 30%; }
.thanks::before { background: linear-gradient(180deg, rgba(10, 12, 8, .1) 0%, rgba(10, 12, 8, 0) 40%, rgba(10, 12, 8, .62) 100%); }
.thanks-text { position: relative; z-index: 2; text-align: center; padding: 0 16px clamp(56px, 12vh, 120px); }
.thanks h2 { color: #fff; font-weight: 300; font-style: italic; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1; margin: 0; }
.thanks-body { margin: 18px 0 0; font: 300 clamp(1.05rem, 1.8vw, 1.3rem) var(--display); }
.thanks-names { margin: 22px 0 0; font: 400 .7rem var(--body); letter-spacing: .32em; text-transform: uppercase; opacity: .85; }
.thanks-text p { text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.thanks-questions { margin: 26px 0 0; font-size: .9rem; opacity: .92; }
html:lang(hi) .thanks h2 { font-style: normal; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* 3. our story photobook */
.book-section { position: relative; height: calc(var(--pages, 5) * var(--vh)); background: var(--ivory); }
.snap-mark { position: absolute; left: 0; width: 1px; top: calc(var(--k) * var(--vh)); height: var(--vh); scroll-snap-align: start; pointer-events: none; }
.book-stage {
  position: sticky; top: 0; height: var(--vh); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  padding: 68px 16px 24px;
}
.book-stage .eyebrow { margin: 0; }
/* The book: a cloth hardcover board behind two paper pages, stacked page edges on the outside,
   a shaded gutter at the spine, and photos mounted with a paper border. Turning pages lift and cast shade. */
.book {
  --pw: min(calc((var(--vh) - 240px) * .75), 38vw);
  --edge: #e7e0d2;
  position: relative; width: calc(var(--pw) * 2); height: calc(var(--pw) / .75);
  perspective: calc(var(--pw) * 14);
}
:root[data-theme="forest"] .book { --edge: #3a2d23; }
.book::before { /* hardcover */
  content: ""; position: absolute; inset: -16px -18px -18px; z-index: 0; border-radius: 5px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, rgba(0, 0, 0, .035) 2px 4px),
    linear-gradient(to right, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 6%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0) 94%, rgba(0, 0, 0, .25)),
    var(--book-cover);
  box-shadow: 0 60px 70px -45px rgba(20, 14, 10, .65), 0 18px 30px -18px rgba(20, 14, 10, .4);
}
.book::after { /* the stack of pages under the right-hand page */
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: var(--pw); z-index: 0;
  background: var(--paper);
  box-shadow: 1px 1px 0 var(--edge), 2px 2px 0 var(--paper), 3px 3px 0 var(--edge), 4px 4px 0 var(--paper), 5px 5px 0 var(--edge);
}
.book-left, .page { position: absolute; top: 0; width: var(--pw); height: 100%; margin: 0; z-index: 1; }
.book-left, .face { background-color: var(--paper); background-image: var(--grain); }
.book-left { left: 0; box-shadow: -1px 1px 0 var(--edge), -2px 2px 0 var(--paper), -3px 3px 0 var(--edge), -4px 4px 0 var(--paper), -5px 5px 0 var(--edge); }
.book-left, .face.back { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--pw) * .14) calc(var(--pw) * .13) calc(var(--pw) * .18); } /* a page's width, not the book's: % padding on .book-left was double the other pages' (24 Oct 2026) */
/* gutter: the page darkens toward the spine */
.book-left::before, .face.back::before, .face.front::before { content: ""; position: absolute; top: 0; bottom: 0; width: 16%; pointer-events: none; z-index: 2; }
.book-left::before, .face.back::before { right: 0; background: linear-gradient(to left, rgba(40, 28, 18, .16), rgba(40, 28, 18, 0)); }
.face.front::before { left: 0; background: linear-gradient(to right, rgba(40, 28, 18, .16), rgba(40, 28, 18, 0)); }
.page {
  left: 50%; transform-origin: left center; transform-style: preserve-3d; will-change: transform;
  transform: rotateY(calc(var(--t, 0) * -180deg)) translateZ(calc(var(--shade, 0) * 14px));
}
.face { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.face.front { padding: 7% 7% 7% 8%; }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 0); z-index: 3; }
.face.front::after { background: linear-gradient(to left, rgba(0, 0, 0, .32), rgba(0, 0, 0, .06) 40%, rgba(255, 255, 255, .08) 75%, rgba(0, 0, 0, 0)); }
.face.back::after { background: linear-gradient(to right, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 70%); }
.face.front img:not(.shot) { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 1px 2px rgba(20, 14, 10, .25), 0 6px 14px -8px rgba(20, 14, 10, .35); }
.face.front figcaption { display: none; }
.face.back { transform: rotateY(180deg); }
.book-left .page-no, .face.back .page-no { position: absolute; left: 0; right: 0; bottom: 7%; margin: 0; text-align: center; }
.page-no { font: 400 .62rem var(--body); letter-spacing: .3em; color: var(--muted); margin-bottom: 22px; font-variant-numeric: lining-nums; }
.page-text { position: relative; font: 300 clamp(1rem, 1.2vw, 1.15rem)/1.6 var(--display); color: var(--ink-2); margin: 0; } /* a paragraph per chapter (24 Oct 2026), smaller and upright */
.page-text::before { content: ""; display: block; width: 32px; height: 1px; background: var(--accent); margin-bottom: 22px; }
.book-caption { display: none; }
.book-dots { display: flex; gap: 4px; }
.dot { width: 22px; height: 22px; padding: 8px; border: 0; background: none; cursor: pointer; }
.dot::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s; }
.dot[aria-current]::before { background: var(--ink); }
/* Our Story as a timeline (Nish, 21 Oct 2026) */
/* the years sit above each chapter's words, in the accent colour */
.book-left .page-no, .face.back .page-no, .page-copy .page-no { position: static; text-align: left; margin: 0 0 18px; font-size: .8rem; letter-spacing: .22em; color: var(--accent); }
/* the dots become a line of years; the current one is filled */
.book-dots.is-timeline { position: relative; gap: 0; margin-top: 6px; }
.book-dots.is-timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 13px; border-top: 1px solid var(--line); }
.is-timeline .dot { position: relative; width: auto; height: auto; min-width: 5.2rem; padding: 10px 4px 0; display: grid; justify-items: center; gap: 8px; }
.is-timeline .dot::before { width: 7px; height: 7px; box-shadow: 0 0 0 3px var(--ivory); }
.is-timeline .dot[aria-current]::before { background: var(--accent); transform: scale(1.4); }
.dot-year { font: 400 .62rem var(--body); letter-spacing: .12em; color: var(--muted); white-space: nowrap; font-variant-numeric: lining-nums; }
.is-timeline .dot[aria-current] .dot-year { color: var(--ink); }
@media (max-width: 600px) {
  .book-dots.is-timeline { width: 100%; }
  .is-timeline .dot { min-width: 0; flex: 1; }
  .dot-year { white-space: normal; max-width: 4.2em; text-align: center; line-height: 1.5; font-size: .6rem; letter-spacing: .06em; }
}
/* tablets held upright: the 38vw cap left the book small in a tall empty screen (iPad check, 19 Oct 2026) */
@media (min-width: 761px) and (orientation: portrait) { .book { --pw: min(calc((var(--vh) - 240px) * .75), 43vw); } }
@media (max-width: 760px) {
  .book { --pw: min(66vw, calc((var(--vh) - 470px) * .75)); width: var(--pw); } /* smaller, to leave room for the chapter's paragraph */
  .book::before { inset: -10px -12px -12px; }
  .book::after { left: 0; }
  .book-left, .face.back { display: none; }
  .page { left: 0; }
  .face.front::before { display: none; }
  .book-caption { display: block; text-align: left; max-width: 34ch; min-height: 10.5em; margin: 0; font: 300 .98rem/1.5 var(--display); color: var(--ink-2); }
}

/* 4–7. split screens: photo on one side, content on the other */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--ivory); }
.split-photo { position: sticky; top: 0; height: var(--vh); overflow: hidden; }
.split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-rev .split-photo { order: 2; }
.split-body { padding: clamp(96px, 14vh, 150px) clamp(24px, 6vw, 112px) 72px; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 46rem; margin: 0 auto; }
.split-body h2 { margin-bottom: 24px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-photo { position: relative; height: 48vh; }
  .split-rev .split-photo { order: 0; }
  .split-body { padding: 40px 16px 64px; }
}

/* schedule */
.events { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.ev { display: grid; grid-template-columns: 11rem 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ev-time { white-space: nowrap; font: 400 .72rem/1.6 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: 8px; font-variant-numeric: lining-nums; }
.ev h3 { font-size: 1.7rem; font-weight: 400; margin: 0; }
.ev-venue { color: var(--muted); font-size: .9rem; margin: 2px 0 8px; }
.ev details summary, .accordion summary { cursor: pointer; list-style: none; }
.ev details summary { font: 400 .68rem var(--body); letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-2); display: inline-flex; gap: 8px; }
/* a chevron at the end: points down when closed, up when open */
.ev details summary { align-items: center; }
.ev details summary::after, .accordion summary::after {
  content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .25s ease;
}
.ev details[open] summary::after, .accordion details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.ev summary::-webkit-details-marker, .accordion summary::-webkit-details-marker { display: none; }
.ev dl { margin: 12px 0 0; display: grid; gap: 4px; }
.ev dt { font: 400 .65rem var(--body); letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.ev dd { margin: 0 0 10px; color: var(--ink-2); font-size: .95rem; }
.pill { display: inline-block; font: 400 .62rem var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 3px 10px; border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; vertical-align: middle; margin-left: 10px; }
@media (max-width: 600px) { .ev { grid-template-columns: 1fr; gap: 4px; } .ev-time { padding-top: 0; } }
/* the "Break · free time" line between two blocks on a day */
.ev-break { display: flex; align-items: center; gap: 14px; margin: 28px 0 16px; font: 400 .68rem var(--body); letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.ev-break::before, .ev-break::after { content: ""; flex: 1; border-top: 1px dashed var(--line); }
.all-events li.ev-break { padding: 10px 0; border-bottom: 0; margin: 0; }

/* accordions: travel, FAQ */
.accordion { margin-top: 28px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px 18px 0; font: 400 1.3rem/1.3 var(--display); }
.accordion summary::after { width: 9px; height: 9px; color: var(--muted); }
.accordion details > :not(summary) { padding-bottom: 18px; color: var(--ink-2); margin: 0; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }

/* text sheets: RSVP, FAQ */
.sheet { background: var(--paper); }
#rsvp { background: var(--ivory); }
.sheet-inner { max-width: 48rem; margin: 0 auto; padding: clamp(110px, 16vh, 160px) 16px 72px; }
.tabs-min { display: flex; gap: clamp(18px, 4vw, 36px); border-bottom: 1px solid var(--line); margin: 36px 0 32px; overflow-x: auto; }
.tabs-min button {
  background: none; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; padding: 12px 0; cursor: pointer; white-space: nowrap;
  font: 400 .7rem var(--body); letter-spacing: var(--track); text-transform: uppercase; color: var(--muted);
}
html:lang(hi) .tabs-min button { font-size: .9rem; }
.tabs-min button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.rsvp-intro { margin-bottom: 8px; color: var(--ink-2); }
/* deadlines: the date in bold accent (I18N.fill wraps {date} / {deadline}), and the RSVP and
   book-by lines set apart as a callout */
.em-date { font-weight: 600; color: var(--accent); white-space: nowrap; }
.rsvp-intro, .book-by { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 12px 16px; color: var(--ink); }
.rsvp-intro.quiet { font-weight: 500; display: flex; align-items: center; gap: 10px; }
/* closed: a padlock before the notice, every answer greyed and visibly locked */
.rsvp-intro.quiet::before {
  content: ""; flex: none; width: 16px; height: 18px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M4 8V5a4 4 0 0 1 8 0v3h1.5A1.5 1.5 0 0 1 15 9.5v7a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 16.5v-7A1.5 1.5 0 0 1 2.5 8zm2 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M4 8V5a4 4 0 0 1 8 0v3h1.5A1.5 1.5 0 0 1 15 9.5v7a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 1 16.5v-7A1.5 1.5 0 0 1 2.5 8zm2 0h4V5a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* footer */
.site-footer { text-align: center; padding: 56px 16px 48px; color: var(--ink-2); }
.onepage .site-footer { max-width: 48rem; margin: 0 auto; border-top: 1px solid var(--line); }
.site-footer p { margin: 0 0 .4em; }
.footer-names { font: 300 2.2rem var(--display); color: var(--ink); }

.demo-bar {
  position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 60; max-width: calc(100% - 24px);
  background: rgba(28, 26, 23, .88); color: #f6f2ea; font-size: .75rem; padding: 8px 12px;
}
.demo-bar a { color: #f6f2ea; }
.demo-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* the bar sits mid-left (clear of the RSVP's Back / Next); just the button, and the panel opens above it */
.demo-bar > span { display: none; }
.demo-bar { padding: 6px; }
.demo-panel { margin-top: -40px; }
/* demo controls (demo mode only) */
.demo-toggle { font: 500 .62rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #1c1a17; background: #f4ead0; border: 0; padding: 7px 10px; cursor: pointer; }
.demo-panel {
  position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 61; width: min(380px, calc(100% - 24px)); max-height: calc(var(--vh) - 120px); overflow: auto;
  background: #1f1c18; color: #f6f2ea; font: 400 .85rem/1.45 var(--body); padding: 16px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
}
.demo-panel[hidden] { display: none; }
.demo-panel-head { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(246, 242, 234, .15); }
.demo-panel-head span { grid-column: 1; }
.demo-close { grid-column: 2; grid-row: 1 / span 2; align-self: start; width: 32px; height: 32px; border: 1px solid rgba(246, 242, 234, .25); background: none; color: #f6f2ea; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.demo-close:hover, .demo-close:focus-visible { background: rgba(246, 242, 234, .15); outline: none; }
.demo-panel-head span, .demo-note { color: rgba(246, 242, 234, .62); font-size: .78rem; margin: 0; }
.demo-group { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid rgba(246, 242, 234, .1); }
.demo-group h4 { margin: 0; font: 500 .62rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: #f4ead0; }
.demo-btn, .demo-persona { text-align: left; background: rgba(246, 242, 234, .07); color: #f6f2ea; border: 1px solid rgba(246, 242, 234, .14); padding: 8px 10px; font: inherit; cursor: pointer; }
.demo-btn:hover, .demo-persona:hover, .demo-btn:focus-visible, .demo-persona:focus-visible { background: rgba(246, 242, 234, .15); outline: none; }
.demo-persona { display: grid; gap: 1px; }
.demo-persona span { font-size: .8rem; color: #f4ead0; }
.demo-persona small { font-size: .74rem; color: rgba(246, 242, 234, .62); }
.demo-danger { border-color: rgba(240, 160, 143, .5); color: #f0a08f; }
.demo-panel .status { margin: 10px 0 0; }

/* ---------- buttons, cards, notices ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 400 .7rem/1 var(--body); letter-spacing: var(--track); text-transform: uppercase; text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg);
  padding: 15px 28px; border-radius: 0; min-height: 46px; transition: background .2s, color .2s;
}
html:lang(hi) .btn { font-size: .9rem; }
.btn:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--btn-bg); color: var(--btn-fg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ivory); }
.btn-warm { background: var(--accent); border-color: var(--accent); }
.btn-warm:hover { color: var(--accent); }
.btn-light { background: #fff; border-color: #fff; color: #1c1a17; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-small { padding: 10px 16px; min-height: 36px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.card { background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.card + .card { margin-top: 20px; }
.notice { border-left: 1px solid var(--accent); padding: 4px 0 4px 16px; margin-bottom: 24px; color: var(--ink-2); }
.notice p:last-child { margin-bottom: 0; }
.status { margin-top: 12px; padding: 10px 14px; font-size: .92rem; }
.status-ok { background: var(--ok-bg); color: var(--good); }
.status-error { background: var(--err-bg); color: var(--bad); }
.status-busy { background: var(--sand); color: var(--ink-2); }
.page-head { text-align: center; margin-bottom: 32px; }
.page-head p { color: var(--ink-2); max-width: 620px; margin: 0 auto; }
.ornament { display: block; width: 40px; height: 1px; margin: 14px auto 20px; background: var(--ink); opacity: .4; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- forms ---------- */
form { display: grid; gap: 22px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
legend { font: 400 1.6rem var(--display); margin-bottom: 4px; padding: 0; }
.field { display: grid; gap: 4px; }
.field > span, .field > label { font: 400 .66rem var(--body); letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
html:lang(hi) .field > span { font-size: .85rem; }
.help { font-size: .88rem; color: var(--muted); }
.field > span.help { font: inherit; font-size: .85rem; letter-spacing: 0; text-transform: none; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=password], select, textarea {
  font: max(16px, 1rem) var(--body); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0; width: 100%; min-height: 44px;
}
textarea { min-height: 84px; resize: vertical; border: 1px solid var(--line); padding: 10px 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); cursor: pointer; background: transparent; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.choice input { margin-top: 4px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; min-height: 38px; transition: background .2s, color .2s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
:root[data-theme="forest"] .chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #1b140f; }
.chip input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }

/* RSVP section: a split screen (photo right) with a card that opens the RSVP page (rsvp.js) */
#rsvp { min-height: var(--vh); }
#rsvp .split-photo img { object-position: 60% 88%; } /* the two of them sit low in the photo */
#rsvp .sheet-inner { max-width: 46rem; padding: clamp(96px, 14vh, 150px) clamp(24px, 6vw, 112px) 72px; } /* the same column as the other split screens (.split-body) */
@media (max-width: 900px) { #rsvp .sheet-inner { padding: 40px 16px 64px; } }
#rsvp h2 { margin: 0 0 12px; font-size: clamp(2.2rem, 3.6vw, 2.9rem); }
#rsvp .lead { margin: 0 0 12px; }
/* Preview notes (demo mode only): sign-in screen */
.preview-note { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.signin-inner .preview-note { margin: -8px 0 8px; }
.signin-inner .signin-desktop { margin-top: -4px; font-style: italic; }
/* RSVP fields are boxes, so their edges don't look like the lines between sections */
.rsvp-form input[type=text], .rsvp-form input[type=email], .rsvp-form input[type=tel], .rsvp-form input[type=number], .rsvp-form textarea {
  border: 1px solid var(--line); background: var(--field-bg); padding: 10px 12px; border-radius: 3px; margin-top: 6px;
}
.rsvp-form input:focus, .rsvp-form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.step-no { font: 500 .72rem var(--body); color: var(--accent); border: 1px solid var(--accent); border-radius: 50%; width: 26px; height: 26px; display: inline-grid; place-items: center; flex: none; position: relative; z-index: 1; }
/* who's coming: a row per person, a column per event; stacked per person on phones */
.rsvp-grid-head, .rsvp-row { display: grid; grid-template-columns: 9.5rem repeat(var(--cols), minmax(0, 1fr)); gap: 8px 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--sand); }
.rsvp-grid-head { border-top: 0; padding-top: 0; }
.rsvp-col { display: grid; justify-items: center; text-align: center; }
.rsvp-cell { display: flex; justify-content: center; }
.rsvp-col .ev-name { font: 400 1.15rem/1.2 var(--display); }
.rsvp-col .ev-when { font-size: .78rem; color: var(--muted); }
/* names stand out: display face, larger, full ink, with a small accent mark */
.rsvp-person, .person-name { font: 500 1.3rem/1.2 var(--display); color: var(--ink); }
.rsvp-person::before, .person-name::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: middle; transform: translateY(-2px); }
.person-name { font-size: 1.45rem; }
.cell-label { display: none; }
.yn { flex-wrap: nowrap; gap: 6px; }
.yn .chip span { padding: 6px 14px; min-height: 34px; }
/* each person's details */
.person-card { display: grid; gap: 12px; padding: 20px 0; border-top: 1px solid var(--sand); }
.person-card:first-of-type { border-top: 0; }
.person-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.person-fields { display: grid; gap: 12px; }
.person-card .not-coming { display: none; font-size: .9rem; }
.person-card.is-out .not-coming { display: inline; }
.person-card.is-out .person-fields { display: none; }
.age-input { max-width: 6rem; }
.field .opt { text-transform: none; letter-spacing: 0; }
.field .opt::before { content: " · "; }
@media (max-width: 820px) {
  .rsvp-grid-head { display: none; }
  .rsvp-row { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .rsvp-person { font-size: 1.4rem; margin-bottom: 2px; }
  .rsvp-cell { justify-content: space-between; align-items: center; gap: 12px; }
  .rsvp-cell.not-invited { display: none; }
  .cell-label { display: inline; font: 400 .95rem/1.2 var(--body); color: var(--ink-2); }
}

/* photos */
.dropzone { border: 1px dashed var(--line); padding: 28px 16px; text-align: center; }
.dropzone.drag { border-color: var(--ink); background: var(--paper); }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 14px; }
.previews:empty { display: none; }
.previews img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.gallery { columns: 2 180px; column-gap: 10px; margin-top: 28px; }
.gallery figure { margin: 0 0 10px; break-inside: avoid; background: var(--paper); }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { font-size: .82rem; color: var(--ink-2); padding: 6px 2px 2px; }
.progress { height: 2px; background: var(--sand); overflow: hidden; }
.progress > div { height: 100%; background: var(--ink); width: 0; transition: width .3s; }

/* reduced motion: no page turns; the story becomes a row of photos with captions */
@media (prefers-reduced-motion: reduce) {
  html:has(body.onepage) { scroll-behavior: auto; }
  .scroll-cue::after { animation: none; }
  .book-section { height: auto; scroll-snap-align: start; }
  .snap-mark, .book-left, .face.back, .book-caption, .book-dots, .book::before, .book::after, .face.front::before { display: none !important; }
  .book-stage { position: relative; height: auto; min-height: var(--vh); }
  .book { width: min(100%, 1100px); height: auto; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; perspective: none; padding-bottom: 8px; }
  .page { position: relative; left: auto; flex: 0 0 min(72vw, 340px); height: auto; transform: none !important; scroll-snap-align: center; }
  .face { position: relative; }
  .face::after { display: none; }
  .face.front img:not(.shot) { aspect-ratio: 3 / 4; height: auto; }
  .face.front figcaption { display: block; padding: 12px 4px 0; font: 300 1.1rem/1.4 var(--display); }
}

/* ---------- utility pages ---------- */
.simple-header { position: sticky; top: 0; z-index: 20; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 16px; text-align: center; }
.brand { font: 300 1.7rem var(--display); color: var(--ink); text-decoration: none; }

/* slideshow */
body.slideshow { background: #0b0a09; color: #fff; overflow: hidden; }
.ss-stage { position: fixed; inset: 0; }
.ss-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; display: grid; place-items: center; }
.ss-slide.on { opacity: 1; }
.ss-slide img { max-width: 100vw; max-height: 100vh; object-fit: contain; position: relative; z-index: 1; }
.ss-slide .ss-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) brightness(.45); }
.ss-caption { position: fixed; left: 0; right: 0; bottom: 0; padding: 40px 32px 24px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); z-index: 2; font-size: 1.4rem; }
.ss-brand { position: fixed; top: 18px; left: 24px; z-index: 3; font: 300 2rem var(--display); text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.ss-qr { position: fixed; right: 20px; bottom: 20px; z-index: 3; background: #fff; color: var(--ink); padding: 12px; text-align: center; font-size: .85rem; }
.ss-qr canvas, .ss-qr img { width: 130px; height: 130px; margin: 0 auto 6px; }
.ss-tools { position: fixed; top: 16px; right: 16px; z-index: 3; display: flex; gap: 8px; opacity: .25; transition: opacity .2s; }
.ss-tools:hover { opacity: 1; }
.ss-tools .btn { background: #fff; color: var(--ink); border-color: #fff; }
.ss-empty { position: fixed; inset: 0; display: grid; place-items: center; font: 300 2.2rem var(--display); color: #ddd; text-align: center; padding: 24px; }

/* admin */
body.admin main { max-width: 1200px; }
/* the admin header scrolls away, so it never covers a table's pinned header row */
body.admin .simple-header { position: static; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--paper); border: 1px solid var(--line); padding: 14px 16px; }
.stat .v { font-variant-numeric: lining-nums tabular-nums; font: 300 2.4rem/1 var(--display); color: var(--ink); }
.stat .l { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.countdown-title { font-size: 1.25rem; margin: 6px 0 10px; }
.stats.countdowns .stat.ours { border-color: var(--accent); }
.stats.countdowns .stat.ours .v { color: var(--accent); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs button { font: 400 .72rem var(--body); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); background: transparent; padding: 9px 14px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sand); font-weight: 500; position: sticky; top: 0; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ok { color: var(--good); font-weight: 500; }
.no { color: var(--bad); }
.pending { color: var(--muted); }
/* movable, resizable columns (Admin.table with a name) */
th[draggable="true"] { cursor: grab; padding-right: 18px; }
th.is-dragging { opacity: .45; }
th.drop-before { box-shadow: inset 3px 0 0 var(--accent); }
th.drop-after { box-shadow: inset -3px 0 0 var(--accent); }
.col-resize { position: absolute; top: 0; right: 0; bottom: 0; width: 12px; cursor: col-resize; touch-action: none; z-index: 1; }
.col-resize::after { content: ""; position: absolute; top: 25%; bottom: 25%; right: 4px; width: 1px; background: var(--line); }
th:hover .col-resize::after, .col-resize:active::after { background: var(--ink-2); width: 2px; }
table.is-sized { table-layout: fixed; }
table.is-sized th, table.is-sized td { overflow: hidden; text-overflow: ellipsis; }
table.is-sized .cell { max-width: none; }
td.empty { color: var(--muted); text-align: center; padding: 18px 12px; }
/* admin tables: one line per row, sized to the data, header row pinned inside the table's own scroll box */
body.admin .table-wrap { max-height: calc(var(--vh) - 150px); overflow: auto; }
body.admin table { font-size: .86rem; }
body.admin th, body.admin td { padding: 5px 10px; line-height: 1.35; white-space: nowrap; vertical-align: middle; }
body.admin th { z-index: 2; }
.cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .badges { flex-wrap: nowrap; }
.cell .share { flex-wrap: nowrap; }
body.admin td .btn-small { padding: 4px 10px; }
body.admin .rownum { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; padding: 5px 8px 5px 6px; }
body.admin th[draggable="true"] { padding-right: 16px; }
.table-tools { display: flex; justify-content: flex-end; gap: 18px; margin: 0 0 6px; font-size: .85rem; }
/* a table opened full screen covers the page; Esc or "Exit full screen" closes it */
body.admin .table-block.is-full { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; padding: 12px 16px; background: var(--ivory); }
body.admin .table-block.is-full .table-wrap { flex: 1; max-height: none; }
body.table-full-open { overflow: hidden; }
.share { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filter-row input, .filter-row select { width: auto; min-height: 38px; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-me { font-size: .9rem; color: var(--muted); }
.admin-warn { margin: 0 0 12px; padding: 12px 16px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); font-size: .95rem; }
#tabs { margin-top: 24px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.th-sort { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: inherit; cursor: pointer; white-space: nowrap; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; }
.badge { font-size: .72rem; line-height: 1; padding: 4px 6px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.badge-not-answered, .badge-address-incomplete, .badge-part-invited-to-haldi { border-color: var(--accent); }
.badge-confirmation-not-sent, .badge-nobody-can-sign-in, .badge-can-t-sign-in, .badge-differs-from-rsvp-log { border-color: var(--bad); color: var(--bad); }
tr.is-archived td { opacity: .55; }
tr.is-hl td { animation: admin-hl 2.4s ease-out; }
@keyframes admin-hl { from { background: color-mix(in srgb, var(--accent) 35%, transparent); } to { background: transparent; } }
.mismatch summary { cursor: pointer; color: var(--bad); margin: 10px 0; }
.totals { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--ink-2); margin: 0 0 12px; }
.totals b { font-weight: 600; color: var(--ink); }
.filter-chip { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; }
td .sent { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn-danger { color: var(--bad); border-color: var(--bad); }
/* editing panel (admin-edit.js): a side panel on computers, full screen on phones */
.admin-layer { position: fixed; inset: 0; z-index: 1500; background: rgba(0, 0, 0, .35); display: flex; justify-content: flex-end; }
.admin-panel { background: var(--paper); color: var(--ink); width: min(520px, 100%); height: 100%; overflow-y: auto; padding: 20px 20px 0; box-shadow: -8px 0 24px rgba(0, 0, 0, .2); }
.admin-panel h2 { margin: 0 0 16px; }
.admin-panel h3 { margin: 0 0 8px; font-size: 1.05rem; }
.admin-panel .field { margin-bottom: 12px; }
.party-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; white-space: nowrap; }
.admin-panel .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-panel fieldset { border: 1px solid var(--line); padding: 10px 12px; margin: 0 0 12px; }
.admin-panel .chip { margin: 0 8px 6px 0; }
.admin-panel .person-rsvp { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.admin-panel .panel-actions { position: sticky; bottom: 0; background: var(--paper); padding: 12px 0 20px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); margin-top: 12px; }
@media (max-width: 600px) { .admin-panel .row-2 { grid-template-columns: 1fr; } }

@media print { .site-header, .site-footer, .film { display: none; } }

/* sign-in gate: the only thing on screen until signin.js unlocks the page.
   Desktop: photo left, card right. Phones: photo on top, card below.
   After signing in, the two halves swing open like a folded invitation (data-opening), revealing the film. */
.signin { display: none; }
html[data-locked] .signin, html[data-opening] .signin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
html[data-locked] main, html[data-locked] .site-header { display: none; }
.signin-photo { position: relative; min-height: 100%; overflow: hidden; background: #0d0c0a; }
.signin-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.signin-card { display: grid; place-items: center; background: var(--ivory); }
.signin-inner { width: 100%; max-width: 30rem; display: grid; gap: 12px; padding: 48px 16px; text-align: center; }
.signin-inner h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0 0 20px; }
.signin-inner form { display: grid; gap: 14px; text-align: left; }
.signin-inner .btn { justify-self: center; min-width: 12rem; }
.signin .switches.signin-switches { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.signin-resuming { display: none; }
html[data-resuming] .signin-resuming { display: block; }
html[data-resuming] #signin-form { display: none; }
.signin-who { display: grid; gap: 12px; }
html[data-resuming] .signin-who { display: none; }
.signin-who h2 { margin: 0; }
.signin-who #signin-party { margin: -6px 0 6px; }
.signin-people { display: grid; gap: 10px; justify-items: center; }
.signin-inner .signin-people .btn { min-width: 16rem; max-width: 100%; }

/* the opening: seal appears at the fold, the panels swing away, the film is already playing behind */
html[data-opening] .signin { position: fixed; inset: 0; z-index: 200; perspective: 2400px; pointer-events: none; }
html[data-opening] .signin-photo, html[data-opening] .signin-card { -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform; }
html[data-opening] .signin-photo { transform-origin: left center; animation: fold-left 1.7s cubic-bezier(.65, 0, .25, 1) .55s both; }
html[data-opening] .signin-card { transform-origin: right center; animation: fold-right 1.7s cubic-bezier(.65, 0, .25, 1) .55s both; }
html[data-opening] .signin-inner { animation: fade-away .45s ease both; }
.signin-photo::after, .signin-card::after { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.signin-card { position: relative; }
.signin-photo::after { background: linear-gradient(to left, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1)); }
.signin-card::after { background: linear-gradient(to right, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05)); }
html[data-opening] .signin-photo::after, html[data-opening] .signin-card::after { animation: fold-shade 1.7s ease .55s both; }
.signin-seal {
  position: fixed; left: 50%; top: 50%; z-index: 210; width: 104px; height: 104px; margin: -52px 0 0 -52px;
  display: grid; place-items: center; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #a3393c, var(--accent) 55%, #4f1214);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 6px rgba(255, 255, 255, .06), inset 0 0 0 7px rgba(0, 0, 0, .15);
  color: #f6e9d4; font: 400 1.5rem/1 var(--display); letter-spacing: .04em;
  animation: seal 1.2s cubic-bezier(.3, 1.4, .5, 1) both;
}
@keyframes fold-left { to { transform: rotateY(-108deg); } }
@keyframes fold-right { to { transform: rotateY(108deg); } }
@keyframes fold-shade { to { opacity: 1; } }
@keyframes fade-away { to { opacity: 0; transform: translateY(-6px); } }
@keyframes seal { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1); } 60% { opacity: 1; transform: scale(1.04); } 100% { opacity: 0; transform: scale(1.5); } }
@media (max-width: 900px) {
  html[data-locked] .signin, html[data-opening] .signin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .signin-photo { height: 46vh; height: 46svh; min-height: 0; }
  .signin-photo img { object-position: 50% 48%; }
  .signin-inner { padding: 28px 16px 40px; }
  /* phones: the halves fold up and down instead of left and right */
  html[data-opening] .signin-photo { transform-origin: center top; animation-name: fold-up; }
  html[data-opening] .signin-card { transform-origin: center bottom; animation-name: fold-down; }
  .signin-photo::after { background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1)); }
  .signin-card::after { background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05)); }
  .signin-seal { top: 46svh; }
}
@keyframes fold-up { to { transform: rotateX(108deg); } }
@keyframes fold-down { to { transform: rotateX(-108deg); } }

/* accommodations: a split screen (resort photo + text and "Book your room") */
#book-action { margin: 20px 0 8px; }
#book-action .btn { font-size: .8rem; padding: 16px 34px; }

/* wedding party: six square tiles of the same size, by family. On desktop Nish's family is a 2x2 block and
   Pooja's a column of two beside it (three tile columns in all), sized from the screen height (or width,
   whichever runs out first) and centred. Hovering, focusing or tapping a photo (not the name) shows the second photo. */
.party { display: flex; }
.party-inner { width: 100%; max-width: 112rem; margin: auto; padding: 84px clamp(16px, 3vw, 56px) 28px; text-align: center; }
.party-inner .eyebrow { margin-bottom: 8px; }
.party-inner h2 { font-size: clamp(2.2rem, 3.6vw, 2.9rem); margin: 0 0 2px; }
.party-hint { margin: 0 0 8px; }
#party-root {
  --gap: clamp(10px, 1.2vw, 18px);
  --pair-gap: clamp(20px, 3vw, 48px);
  /* two tiles and their names stacked per column: about 2w + 440px of height; three columns across */
  --w: min(calc((var(--vh) - 440px) / 2), calc((min(100vw, 112rem) - 2 * clamp(16px, 3vw, 56px) - 2 * var(--pair-gap) - 16px) / 3));
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 16px var(--pair-gap);
}
.party-block { display: grid; justify-items: center; align-content: start; }
@media (min-width: 901px) {
  /* The families share one grid of rows (subgrid): the headings, then two rows of tiles. A name that wraps to two lines
     in one family lowers that row for both, so every tile in a row starts at the same height. Before, each family
     stacked on its own and Punit & Bina sat 21px above Nish's bottom row wherever "Basu & Ratna Ullagaddi" wrapped
     (laptops up to about 1366px wide; Nish, 25 Oct 2026). */
  #party-root { display: grid; grid-auto-flow: column; grid-auto-columns: auto; grid-template-rows: auto auto auto;
    justify-content: center; align-items: start; gap: 0 var(--pair-gap); }
  .party-block { grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; justify-items: center; }
  .party-block .party-group { grid-row: 1; }
  .party-block .party-row { grid-row: 2 / span 2; display: grid; grid-template-rows: subgrid; grid-template-columns: var(--w);
    gap: 16px var(--gap); align-items: start; }
  .party-block .party-card { width: var(--w); }
  /* Nish's family is two tiles wide (his parents beside him, his siblings below), so the couple meet in the middle */
  .party-block-nish .party-row { grid-template-columns: var(--w) var(--w); }
}
.party-group { font: 400 .7rem var(--body); letter-spacing: var(--track); text-transform: uppercase; color: var(--accent); margin: 6px 0 10px; }
html:lang(hi) .party-group { font-size: .9rem; letter-spacing: .04em; }
.party-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px var(--gap); }
.party-card { flex: 0 0 var(--w); }
/* Each photo sits in a frame: a white mat with a thin rule inside it, lifted off the page by a soft shadow. */
.party-photo {
  --matw: clamp(8px, .8vw, 13px);
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 0; cursor: pointer;
  background: var(--mat);
  box-shadow: 0 0 0 1px rgba(40, 28, 18, .06), 0 1px 2px rgba(40, 28, 18, .08), 0 14px 30px -16px rgba(40, 28, 18, .45);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s ease;
}
.party-photo::after { content: ""; position: absolute; inset: calc(var(--matw) * .45); border: 1px solid var(--frame-rule); pointer-events: none; }
.party-pic { position: absolute; inset: var(--matw); overflow: hidden; background: var(--sand); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.party-photo:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(40, 28, 18, .06), 0 2px 4px rgba(40, 28, 18, .08), 0 22px 40px -18px rgba(40, 28, 18, .5); }
.party-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.party-photo .p2 { opacity: 0; transform: scale(1.08); }
/* The second photo: on keyboard focus, after a click or tap (data-picked="2"), or on hover with a mouse.
   A click overrides hover until the mouse leaves (data-picked="1" goes back to the first photo). */
.party-card:not([data-picked]) .party-photo:focus-visible .p1, .party-card[data-picked="2"] .p1 { transform: scale(1.05); }
.has-alt:not([data-picked]) .party-photo:focus-visible .p1, .has-alt[data-picked="2"] .p1 { opacity: 0; }
.party-card:not([data-picked]) .party-photo:focus-visible .p2, .party-card[data-picked="2"] .p2 { opacity: 1; transform: scale(1); }
@media (hover: hover) {
  .party-photo:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(40, 28, 18, .06), 0 2px 4px rgba(40, 28, 18, .08), 0 22px 40px -18px rgba(40, 28, 18, .5); }
  .party-card:not([data-picked]) .party-photo:hover .p1 { transform: scale(1.05); }
  .has-alt:not([data-picked]) .party-photo:hover .p1 { opacity: 0; }
  .party-card:not([data-picked]) .party-photo:hover .p2 { opacity: 1; transform: scale(1); }
  .party-card:has(.party-photo:hover) .party-name { letter-spacing: .02em; }
}
.party-photo:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }
.party-name { font: 400 1.15rem/1.15 var(--display); margin: 10px 0 2px; transition: letter-spacing .5s ease; }
.party-role { margin: 0; font-size: .8rem; line-height: 1.3; color: var(--muted); }
/* below 900px the pairs wrap, one pair per row, still all the same size */
@media (max-width: 900px) {
  #party-root { --w: min(calc((100vw - 2 * clamp(16px, 3vw, 56px) - var(--gap) - 4px) / 2), 15rem); }
}
@media (max-width: 700px) {
  .party-inner { padding-top: 72px; }
  #party-root { display: block; --gap: 12px; --w: calc(50% - var(--gap) / 2); }
  .party-block { display: block; justify-items: normal; }
  .party-group { margin: 24px 0 12px; }
  .party-name { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .party-photo, .party-photo img, .party-name { transition: none; transform: none !important; }
}

/* schedule: the By day | All events switch, and the all-events screen */
.schedule-view { margin-bottom: 28px; }
.schedule-all-inner { width: 100%; max-width: 72rem; margin: 0 auto; padding: clamp(96px, 14vh, 150px) clamp(16px, 5vw, 64px) 72px; }
.schedule-all-days { display: grid; grid-template-columns: repeat(var(--days), minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 12px; }
.all-day-name { font-size: 1.6rem; margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.all-events { list-style: none; margin: 0; padding: 0; }
.all-events li { padding: 14px 0; border-bottom: 1px solid var(--sand); }
.all-events h3 { font-size: 1.45rem; font-weight: 400; margin: 2px 0 0; }
.all-events .ev-time { padding-top: 0; }
.all-events .ev-venue { margin: 2px 0 0; }
@media (max-width: 900px) { .schedule-all-days { grid-template-columns: 1fr; } }

/* Our names, in Pinyon Script (picked 18 Oct). Kept last so it wins over each spot's own font. */
#signin-title, .hero h1, .thanks-names, .brand, .footer-names, .ss-brand { font-family: var(--script); font-weight: 400; letter-spacing: 0; text-transform: none; }
.thanks-names { font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.2; }
.hero h1 { margin-bottom: .22em; } /* room for the tail of the j in Pooja */

/* ------------------------------------------------------------------ finishing touches (assets/js/pages/effects.js) */

/* the names write themselves in ink: the SVG sits exactly over the heading, whose own text turns transparent */
.ink-wrap { position: relative; }
.ink {
  position: absolute; font-size: clamp(3.4rem, 11vw, 8rem); /* same as .hero h1 */
  top: -.0741em; left: calc(50% - 2.4668em); width: 4.9985em; height: 1.1826em; /* from the font's metrics */
  overflow: visible; pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)) drop-shadow(0 2px 14px rgba(0, 0, 0, .5));
}
.ink path {
  fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
}
.film-overlay.is-shown .ink path {
  animation: ink-line 1.3s cubic-bezier(.45, .05, .35, 1) calc(var(--i) * .13s) forwards,
             ink-fill 1s ease calc(var(--i) * .13s + .8s) forwards;
}
@keyframes ink-line { to { stroke-dashoffset: 0; } }
@keyframes ink-fill { to { fill-opacity: 1; stroke-width: 0; } }
html:not(:lang(hi)) .film-overlay.inked .ink-wrap h1 { color: transparent; text-shadow: none; }
html:lang(hi) .ink { visibility: hidden; }
html:not(:lang(hi)) .film-overlay.inked .hero-text > .ink-wrap { opacity: 1; transform: none; filter: none; }
/* the rest waits for the names: venue, dates, countdown, welcome, RSVP */
.film-overlay.inked.is-shown .hero-text > :nth-child(2) { transition-delay: 1.9s; }
.film-overlay.inked.is-shown .hero-text > :nth-child(3) { transition-delay: 2.2s; }
.film-overlay.inked.is-shown .hero-text > :nth-child(4) { transition-delay: 2.5s; }
.film-overlay.inked.is-shown .hero-text > :nth-child(5) { transition-delay: 3.1s; }
.film-overlay.inked.is-shown .hero-text > :nth-child(6) { transition-delay: 3.6s; }
.film-overlay.is-shown .hero-text > :nth-child(6) { transition-delay: 2.5s; }
.film-overlay.is-shown .hero-text > .hero-countdown { transition-delay: 1.2s; }
.film-overlay.inked.is-shown .hero-text > .hero-countdown { transition-delay: 2.5s; }

/* countdown under the dates */
.hero-countdown {
  display: flex; align-items: center; gap: 14px; margin: 14px 0 0;
  font: 500 .72rem var(--body); letter-spacing: .32em; text-transform: uppercase; font-variant-numeric: lining-nums tabular-nums;
}
.hero-countdown::before, .hero-countdown::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
html:lang(hi) .hero-countdown { letter-spacing: .04em; font-size: .85rem; }

/* section headings rise from behind a line as they arrive */
.rise { clip-path: inset(0 0 100% 0); transform: translateY(100%); transition: clip-path 1.1s cubic-bezier(.2, .7, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.rise.is-in { clip-path: inset(0); transform: none; }
h2.rise { transition-delay: .12s; }

/* large photos drift in slowly once they're on screen */
img.drift { transition: transform 22s cubic-bezier(.25, .1, .25, 1); transform-origin: 50% 40%; }
img.drift.is-in { transform: scale(1.08); }

/* marigold petals */
.petals { position: fixed; inset: 0; z-index: 150; pointer-events: none; overflow: hidden; perspective: 600px; }
.petals i {
  position: absolute; top: 0; display: block; opacity: 0;
  border-radius: 55% 55% 50% 50% / 75% 75% 30% 30%;
  background: radial-gradient(ellipse at 50% 85%, rgba(120, 40, 0, .28), transparent 60%), var(--c);
  box-shadow: inset 0 -2px 3px rgba(150, 60, 0, .25);
}

/* RSVP: the wax seal stamps the answers */
.rsvp-seal {
  position: relative; justify-self: center; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a3393c, var(--accent) 55%, #4f1214);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28), inset 0 0 0 5px rgba(255, 255, 255, .06), inset 0 0 0 6px rgba(0, 0, 0, .15);
  color: #f6e9d4; font: 400 1.15rem/1 var(--display); letter-spacing: .04em; transform: rotate(-8deg);
}
.rsvp-seal.is-stamping { animation: stamp .9s cubic-bezier(.5, 0, .3, 1) both; }
.rsvp-seal::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.rsvp-seal.is-stamping::before { animation: stamp-ring 1s ease-out .5s both; }
@keyframes stamp { 0% { opacity: 0; transform: scale(1.7) rotate(-20deg); } 55% { opacity: 1; transform: scale(.95) rotate(-8deg); } 72% { transform: scale(1.03) rotate(-8deg); } 100% { opacity: 1; transform: scale(1) rotate(-8deg); } }
@keyframes stamp-ring { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

/* a gold light passes once across the seals */
.signin-seal::after, .rsvp-seal.is-stamping::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 228, 160, .6) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0; mix-blend-mode: screen;
}
.signin-seal::after { animation: shimmer .9s ease .3s both; }
.rsvp-seal.is-stamping::after { animation: shimmer 1.2s ease 1.1s both; }
@keyframes shimmer { to { background-position: -30% 0; } }

/* RSVP: each step slides in from the side it comes from */
.rsvp-step-panel.step-in-next { animation: step-next .5s cubic-bezier(.2, .7, .2, 1) both; }
.rsvp-step-panel.step-in-back { animation: step-back .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes step-next { from { opacity: 0; transform: translateX(28px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-28px); } }

@media (prefers-reduced-motion: reduce) {
  .rise, img.drift, .rsvp-step-panel { transition: none; animation: none; clip-path: none; transform: none; }
  .rsvp-seal, .rsvp-seal::before, .rsvp-seal::after, .signin-seal::after { animation: none; }
}

/* ?test: the site is talking to the test server (api.js) */
.test-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; background: #b3261e; color: #fff; text-align: center; font: 600 .75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; pointer-events: none; }

/* our story: "scroll to turn the page" under the book until the first page turns */
.book-hint {
  margin: -18px 0 0; display: flex; align-items: center; gap: 10px;
  font: 400 .66rem var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transform: translateY(6px); transition: opacity .6s ease, transform .6s ease; pointer-events: none;
}
.book-hint.is-on { opacity: 1; transform: none; }
html:lang(hi) .book-hint { letter-spacing: .04em; font-size: .85rem; text-transform: none; }
.book-hint-arrow { width: 1px; height: 26px; background: currentColor; position: relative; overflow: hidden; }
.book-hint-arrow::after { content: ""; position: absolute; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: book-hint 1.8s ease-in-out infinite; }
@keyframes book-hint { 0% { top: -8px; } 100% { top: 28px; } }
@media (hover: none) { /* touch: the dot travels up, the way the finger goes */
  .book-hint-arrow::after { animation-direction: reverse; }
}
@media (prefers-reduced-motion: reduce) {
  .book-hint { transition: none; }
  .book-hint-arrow::after { animation: none; top: 10px; }
}

/* ------------------------------------------------------------------ trial link only (assets/js/trial.js, ?intro=overlay) */
/* Nothing on trial right now. */

/* ---- RSVP on its own page (rsvp.html, trial mockup 22 Oct 2026): one person per screen, phone first ---- */
.rsvp-page-body { background: var(--ivory); color: var(--ink); min-height: 100vh; min-height: 100dvh; }
.rsvp-page { max-width: 34rem; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 18px calc(110px + env(safe-area-inset-bottom)); }
.rp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0 18px; font-size: .9rem; color: var(--muted); }
.rp-progress { font: 500 .7rem var(--body); letter-spacing: var(--track); text-transform: uppercase; }
.rp-family { margin: 0; font: 500 .72rem var(--body); letter-spacing: var(--track); text-transform: uppercase; color: var(--accent); }
.rp-note { margin: 12px 0 0; padding: 12px 14px; border-left: 2px solid var(--accent); color: var(--ink-2); font-size: .95rem; }
.rp-name { font: 400 clamp(2rem, 8vw, 2.6rem)/1.15 var(--display); margin: 18px 0 18px; }
.rp-event { padding: 16px 0; border-top: 1px solid var(--line); }
.rp-event-name { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; font: 400 1.25rem/1.3 var(--display); }
.rp-when { font: 400 .7rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rp-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-choice, .rp-chip { min-height: 52px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
.rp-choice.is-on, .rp-chip.is-on { background: var(--accent); border-color: var(--accent); color: #1b140f; }
.rp-sorry { margin: 16px 0 0; font-style: italic; }
.rp-details { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.rp-sub { font: 400 1.3rem var(--display); margin: 0; }
.rp-diet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rp-chip { min-height: 46px; font-size: .7rem; letter-spacing: .08em; }
.rp-status { margin-top: 16px; }
.rp-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 10px; justify-content: space-between;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--ivory); border-top: 1px solid var(--line); }
.rp-nav .btn { flex: 1; max-width: 16rem; margin-left: auto; }
.rp-nav .btn-ghost { flex: 0 0 auto; margin-left: 0; }
.rp-review { list-style: none; margin: 0; padding: 0; }
.rp-review li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.rp-review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rp-done { text-align: center; padding-top: 12vh; display: grid; gap: 14px; justify-items: center; }
.rsvp-card { display: grid; gap: 16px; justify-items: start; max-width: 32rem; margin-top: 8px; }
.rsvp-deadline { margin: 0; width: 100%; background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 12px 16px; color: var(--ink); }
@media (max-width: 900px) { .rsvp-card { margin-bottom: 48px; } } /* room below the button on phones */
.rsvp-card .help { margin: 0; }
.rsvp-card-text { margin: 0; font-size: 1.05rem; color: var(--ink-2); }
.rp-line { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; }
.rp-label { color: var(--muted); }
.rp-yes { color: var(--accent); font-weight: 500; }
.rp-address, .rp-note-text { font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.rp-count { margin: 6px 0 0; text-align: right; font-size: .8rem; }
.day-tbd { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: -6px 0 18px; font: 400 .68rem var(--body); letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.all-day .day-tbd { margin: 2px 0 10px; flex-direction: column; gap: 2px; }
/* the celebration after Save (rsvp.html), and the RSVP section's status card (rsvp.js) */
.rp-celebrate { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.rp-celebrate .rsvp-seal { position: static; margin-bottom: 6px; }
.rsvp-badge { margin: 0; padding: 6px 14px; border-radius: 999px; font: 500 .72rem var(--body); letter-spacing: .16em; text-transform: uppercase; }
.rsvp-badge.is-todo { border: 1px solid var(--accent); color: var(--accent); }
.rsvp-badge.is-done { background: var(--accent); color: #1b140f; }
.rsvp-status-list { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; text-align: left; }
.rsvp-status-list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.rsvp-status-list li span { color: var(--ink-2); font-size: .9rem; }
/* arriving at a section from a link (index.html#rsvp): hidden for a moment while the page settles there (signin.js) */
html[data-arriving] main, html[data-arriving] .site-header { opacity: 0; }
main { transition: opacity .35s ease; } /* the menu bar has its own opacity transition */

/* Our Story's photos (24 Oct 2026): one fills the page; two overlap like prints, each keeping its shape */
.shots { position: absolute; inset: 0; }
.face.front .shot, .shot { position: absolute; height: auto; object-fit: cover; border: clamp(3px, .55vw, 7px) solid #fbf7ef; box-shadow: 0 2px 4px rgba(20, 14, 10, .3), 0 10px 22px -10px rgba(20, 14, 10, .55); z-index: 1; }
.shot-2 { z-index: 2; }
.shots-one .shot, .face.front .shots-one .shot { left: 8%; top: 7%; width: 85%; height: 86%; border: 0; box-shadow: 0 1px 2px rgba(20, 14, 10, .25), 0 6px 14px -8px rgba(20, 14, 10, .35); }
.shots-pp .shot-1 { left: 4%; top: 4%; width: 52%; aspect-ratio: 3 / 4; transform: rotate(-3deg); }
.shots-pp .shot-2 { right: 4%; bottom: 4%; width: 52%; aspect-ratio: 3 / 4; transform: rotate(2.5deg); }
.shots-lp .shot-1 { left: 5%; top: 5%; width: 78%; aspect-ratio: 4 / 3; transform: rotate(-2deg); }
.shots-lp .shot-2 { right: 5%; bottom: 4%; width: 46%; aspect-ratio: 3 / 4; transform: rotate(3deg); }
/* chapters alternate sides on a two-page spread (story.js); phones always show the photos */
.page-copy { display: none; }
@media (min-width: 761px) {
  .page.text-front .face.front { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--pw) * .14) calc(var(--pw) * .13) calc(var(--pw) * .18); }
  .page.text-front .face.front .shots { display: none; }
  .page.text-front .face.front .page-copy { display: block; }
  .page.photo-back .face.back { padding: 0; }
}
/* ideas for the note on the RSVP page (24 Oct 2026) */
.note-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.note-ideas-label { width: 100%; margin: 0; font-size: .85rem; color: var(--muted); }
.note-idea { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink-2); font: 400 .85rem var(--body); text-align: left; cursor: pointer; }
.note-idea:hover, .note-idea:focus-visible { border-color: var(--accent); color: var(--ink); }

/* ---------- Our Story on phones: a slideshow (Nish, 24 Oct 2026; see the end of pages/story.js) ---------- */
.sv, .sv-mark { display: none; }
/* Phones that allow motion; with reduced motion, phones keep the plain row of pages (section 3 above). */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .book-section { height: calc(var(--vh) + (var(--slides, 8) - 1) * var(--vh) * .8); }
  .book-section .snap-mark,
  .book-stage > .book,
  .book-stage > .book-caption,
  .book-stage > .book-dots,
  .book-stage > .book-hint { display: none !important; }
  .book-stage { justify-content: flex-start; gap: 12px; padding: 66px 16px 16px; }
  .sv { display: flex; flex-direction: column; gap: 14px; width: 100%; flex: 1; min-height: 0; }
  .sv-mark { display: block; position: absolute; left: 0; width: 1px; height: 1px; top: calc(var(--k) * var(--vh) * .8); scroll-snap-align: start; pointer-events: none; }
  /* The photo area is a size container: each print is sized by both its width (cqw) and its height (cqh), so two
     prints fit together and only their corners overlap. */
  .sv-photos { position: relative; flex: 1; min-height: 0; container-type: size; }
  .sv-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(6%) scale(.98); transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .sv-slide.is-past { transform: translateY(-6%) scale(.98); }
  .sv-slide.is-on { opacity: 1; transform: none; }
  .sv-shot { position: absolute; height: auto; object-fit: cover; border: 5px solid #fbf7ef;
    box-shadow: 0 2px 4px rgba(20, 14, 10, .3), 0 14px 28px -12px rgba(20, 14, 10, .6); }
  .sv-n2 { z-index: 1; }
  .sv-one .sv-shot { left: 50%; top: 50%; width: min(100cqw, 75cqh); aspect-ratio: 3 / 4; transform: translate(-50%, -50%) rotate(-1.2deg); }
  .sv-pp .sv-n1 { left: 0; top: 0; width: min(60cqw, 48cqh); aspect-ratio: 3 / 4; transform: rotate(-2.5deg); }
  .sv-pp .sv-n2 { right: 0; bottom: 0; width: min(60cqw, 48cqh); aspect-ratio: 3 / 4; transform: rotate(2deg); }
  .sv-lp .sv-n1 { left: 0; top: 2%; width: min(88cqw, 80cqh); aspect-ratio: 4 / 3; transform: rotate(-1.5deg); }
  .sv-lp .sv-n2 { right: 0; bottom: 0; width: min(48cqw, 45cqh); aspect-ratio: 3 / 4; transform: rotate(2.5deg); }
  .sv-words { flex: none; min-height: 12.6em; transition: opacity .22s ease; }
  .sv-words.is-out { opacity: 0; }
  .sv-no { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 400 .78rem var(--body); letter-spacing: .22em; color: var(--accent); font-variant-numeric: lining-nums; }
  .sv-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid currentColor; border-radius: 50%; letter-spacing: 0; font-size: .72rem; }
  .sv-text { margin: 0; font: 300 .98rem/1.5 var(--display); color: var(--ink-2); }
  .sv-dots { flex: none; display: flex; justify-content: center; gap: 4px; }
  .sv-dots button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); font: 400 .72rem var(--body); font-variant-numeric: lining-nums; cursor: pointer; }
  .sv-dots button[aria-current] { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
}
