/*
 * The guest-facing site.
 *
 * This is the stylesheet from heypulkits/wedding-site, taken as-is rather
 * than reinterpreted: it is a finished design that has been used for a real
 * wedding, and every attempt to approximate it from screenshots landed
 * somewhere worse. The markup in src/routes/tenant.ts emits the same class
 * names, driven by a couple's own data instead of hard-coded content.
 *
 * Deliberately separate from app.css. Nothing here should inherit the
 * product's chrome: this page belongs to the couple, not to us.
 *
 * Additions of ours live at the end of the file, under one marked heading,
 * so the ported block stays diffable against its source.
 */
:root {
  --ivory: #FBF6EA;
  --cream: #F5EEDC;
  --sand: #EEE5CB;
  --off-white: #FEFCF8;
  --burgundy: #5A1F2E;
  --deep-burgundy: #3F1520;
  --wine: #6B2C3D;
  --gold: #B8935A;
  --gold-light: #D4B888;
  --gold-deep: #8B6D3B;
  --blush: #E8C4B8;
  --charcoal: #2A2020;
  --charcoal-soft: #4A3C3C;
  --muted: #7A6D68;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-devanagari: 'Tiro Devanagari Sanskrit', serif;

  --transition: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.9s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 1200px;
  --shadow-soft: 0 20px 60px -20px rgba(58, 20, 30, 0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

/* Grain overlay for luxury feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.12 0 0 0 0 0.18 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  z-index: 100;
  mix-blend-mode: multiply;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(251, 246, 234, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 40px;
  border-bottom: 1px solid rgba(184, 147, 90, 0.15);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--burgundy);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-menu a:hover { color: var(--burgundy); }
.nav-menu a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--burgundy);
  font-size: 24px;
  cursor: pointer;
}

/* Language toggle */
.lang-toggle { position: relative; display: inline-block; }
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(184, 147, 90, 0.4);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--charcoal-soft);
  transition: var(--transition);
  border-radius: 100px;
}
.lang-current:hover {
  border-color: var(--gold);
  color: var(--burgundy);
}
.lang-flag { font-size: 14px; line-height: 1; }
.lang-code { letter-spacing: 0.2em; }
.lang-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--off-white);
  border: 1px solid var(--gold);
  padding: 6px;
  min-width: 160px;
  z-index: 60;
  box-shadow: 0 12px 32px -8px rgba(58, 20, 30, 0.2);
}
.lang-panel::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 12px; height: 12px;
  border: 1px solid var(--gold);
  border-right: 0; border-bottom: 0;
}
.lang-panel::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 12px; height: 12px;
  border: 1px solid var(--gold);
  border-left: 0; border-top: 0;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}
.lang-option:hover { background: var(--cream); color: var(--burgundy); }
.lang-option.active {
  background: linear-gradient(90deg, rgba(232, 196, 184, 0.3), transparent 60%);
  color: var(--burgundy);
  font-weight: 500;
}

/* Devanagari script gets a more elegant serif */
html[lang="hi"] body {
  font-family: 'Noto Sans Devanagari', var(--font-body);
}
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3,
html[lang="hi"] .hero-names .name,
html[lang="hi"] .section-title,
html[lang="hi"] .event-name,
html[lang="hi"] .venue-info h3,
html[lang="hi"] .story-content h2,
html[lang="hi"] .hero-next-name {
  font-family: 'Noto Serif Devanagari', var(--font-display);
  font-style: normal;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 140px;
  position: relative;
  /* The wash under every card.

     These two radials were literal `rgba(232,196,184)` and `rgba(184,147,90)`
     -- the blush and the brass of the *original* palette, hard-coded, laid
     over whatever ground the theme had chosen. So Sage's green hero carried
     a pink veil and read as grey-white, which is a large part of why the
     three themes looked like one template with three tints (docs/16 section
     9). They are the palette's own blush and brass now, at the same two
     weights, so the cast follows the theme.

     Nothing published moves: the only live site runs `background: gradient`,
     and `.hero--grad-*` sets `background-image`, which replaces both layers.
     A `solid` ground is the case this corrects. */
  background:
    radial-gradient(ellipse at top, color-mix(in srgb, var(--blush) 55%, transparent), transparent 60%),
    radial-gradient(ellipse at bottom, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%),
    var(--ivory);
  overflow: hidden;
}

.hero-ornament {
  position: absolute;
  width: 180px;
  height: 180px;
  opacity: 0.6;
  color: var(--gold);
}
.hero-ornament.tl { top: 40px; left: 40px; }
.hero-ornament.tr { top: 40px; right: 40px; transform: scaleX(-1); }
.hero-ornament.bl { bottom: 40px; left: 40px; transform: scaleY(-1); }
.hero-ornament.br { bottom: 40px; right: 40px; transform: scale(-1, -1); }

.hero-content {
  text-align: center;
  max-width: 1400px;
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-mantra {
  font-family: var(--font-devanagari);
  color: var(--gold-deep);
  font-size: 18px;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  opacity: 0.8;
}

.hero-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--burgundy);
  margin: 0 auto 28px;
  position: relative;
}

.hero-monogram::before,
.hero-monogram::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--gold));
}
.hero-monogram::before { right: 100%; margin-right: 24px; --dir: left; }
.hero-monogram::after { left: 100%; margin-left: 24px; --dir: right; }

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 24px;
}

.hero-names {
  font-family: var(--font-display);
  color: var(--burgundy);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(8px, 2vw, 24px);
  white-space: nowrap;
}

.hero-names .name {
  font-size: clamp(28px, 6.8vw, 116px);
  font-style: italic;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-names .amp {
  font-size: clamp(34px, 7.8vw, 132px);
  color: var(--gold);
  font-weight: 300;
  font-style: italic;
  font-family: var(--font-display);
  transform: translateY(-8px);
  padding: 0 8px;
  white-space: nowrap;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--charcoal-soft);
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px auto;
  max-width: 400px;
}

.hero-divider .line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  flex: 1;
}

.hero-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.hero-next-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.hero-next-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 4.4vw, 52px);
  color: var(--burgundy);
  font-weight: 400;
  margin-bottom: 14px;
  line-height: 1.1;
}

.hero-date {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--deep-burgundy);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.hero-venue {
  display: block;
  width: fit-content;
  margin: 0 auto 60px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}

.hero-venue:hover {
  color: var(--burgundy);
  border-bottom-color: var(--gold);
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.countdown-item {
  min-width: 100px;
  text-align: center;
}

.countdown-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  color: var(--burgundy);
  line-height: 1;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-item + .countdown-item {
  border-left: 1px solid rgba(184, 147, 90, 0.25);
  padding-left: 24px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--gold-deep);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: bounce 2.4s ease-in-out infinite;
}
.scroll-indicator span {
  margin-top: 8px;
  font-size: 20px;
  letter-spacing: 0;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ============ SECTION BASE ============ */
section {
  padding: 120px 20px;
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  color: var(--burgundy);
  text-align: center;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.1;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--charcoal-soft);
  text-align: center;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 60px;
  font-weight: 300;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 60px;
  max-width: 240px;
}
.section-divider .line {
  height: 1px;
  background: var(--gold);
  flex: 1;
  opacity: 0.6;
}
.section-divider .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ============ STORY ============ */
.story {
  background: var(--off-white);
  border-top: 1px solid rgba(184, 147, 90, 0.2);
  border-bottom: 1px solid rgba(184, 147, 90, 0.2);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/*
 * Our story with no photograph is one centred column, not a column and a
 * hole. (12 Nov 2026.)
 *
 * Pulkit: *"This Our Story part is not centre aligned."* Two faults stacked,
 * and only the smaller of them was alignment. Measured at 1440 with a
 * 194-word story and no photograph: the eyebrow, the heading and the divider
 * all centre at **720**; `.story-grid` is `510px 510px`, and with nothing in
 * the second track the words sit in the first -- 170 to 680, centre **425**.
 * The body was 295px left of the heading over it before a single character
 * was aligned.
 *
 * `text-align` alone would have centred the text *inside that half*, which
 * is the same section still reading as two halves that disagree. So the
 * track declaration is corrected first, exactly as the gallery's was on the
 * same day: a grid declares the columns it has content for.
 *
 * **This rule is not new, it was only never applied here.** `.mod-ti`, the
 * words-and-a-picture module, carries the identical line twelve hundred
 * lines down -- *"With no photograph chosen yet it is a single column, not a
 * column and a hole"* -- and `.mod-text` is `max-width: 680px; margin: 0
 * auto`. 680px is this stylesheet's measure for a paragraph somebody reads;
 * the module that borrowed `.story-grid` from Our story got it and Our story
 * did not. So this is the house rule arriving where it came from, not a
 * value invented for one complaint.
 *
 * Both halves are conditioned on the photograph. Beside a photograph the two
 * tracks are real, the column has a hard edge to range against, and centred
 * rag against that edge reads as a mistake rather than a composition -- see
 * the note on `.story-content` below.
 *
 * `:has()` with no fallback, which is what `.mod-ti` already does. A browser
 * without it keeps exactly today's layout: the bug, not a broken page.
 *
 * **Scoped to `.story`, and it has to be.** A text-and-image module is
 * `<div class="story-grid mod-ti">` wrapping a `.story-content` -- it
 * borrows both class names, not just the grid -- so an unscoped rule here
 * would restyle every such module on every site. `.mod-ti` carries its own
 * copy of the single-column line already, so the module is unaffected either
 * way, and ADR 0009 is explicit that a module adds no vocabulary of its own:
 * it is not for a fix to Our story to give it one.
 */
.story .story-grid:not(:has(.story-image)) {
  grid-template-columns: 1fr;
  max-width: 680px;
}

.story-image {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, rgba(90, 31, 46, 0.15), rgba(184, 147, 90, 0.25)),
    var(--sand);
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.story-image::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(251, 246, 234, 0.4);
  pointer-events: none;
}

.story-image-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(251, 246, 234, 0.7);
  font-size: 20px;
  letter-spacing: 0.1em;
}

.story-content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--burgundy);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.1;
}

.story-content p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal-soft);
  margin-bottom: 20px;
  line-height: 1.9;
  font-weight: 300;
}

/* And the words themselves, which is what Pulkit asked for in those terms.
   The opening paragraph is set as an `h2` and the rest as `p`, so this goes
   on the container: the large opening line and the ordinary paragraphs under
   it centre together, however many of them there are, and the sign-off with
   them. One declaration rather than four, so a fifth element added to this
   block cannot be the one that forgets.

   Scoped to the no-photograph case by the same `:has()` as the grid above,
   and to `.story` for the same reason: `.mod-ti` wraps a `.story-content`
   too, and a module is not Our story. Beside a photograph the column is
   deliberately asymmetric and the text stays ranged left. */
.story .story-grid:not(:has(.story-image)) .story-content { text-align: center; }

.story-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--gold-deep);
  margin-top: 32px;
}

/* ============ HASHTAG ============ */
.hashtag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding: 8px 20px;
  border: 1px solid rgba(184, 147, 90, 0.45);
  border-radius: 100px;
  background: rgba(232, 196, 184, 0.18);
  font-weight: 500;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hashtag-hero {
  margin: 24px auto 0;
}

.hashtag-section {
  margin: 8px auto 40px;
}

.hashtag-footer {
  margin: 12px auto 24px;
  border-color: rgba(212, 184, 136, 0.4);
  background: rgba(212, 184, 136, 0.08);
  color: var(--gold-light);
}

@media (max-width: 640px) {
  .hashtag { font-size: 10px; letter-spacing: 0.28em; padding: 7px 16px; }
}

/* ============ PROFILES ============ */
.profiles {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--ivory) 100%);
  border-top: 1px solid rgba(184, 147, 90, 0.2);
  border-bottom: 1px solid rgba(184, 147, 90, 0.2);
}

.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
}

/*
 * One person is one column. (12 Nov 2026.)
 *
 * The same fault as Our story's, found while checking whether it was only
 * Our story's: two declared tracks, one of them never filled, so the single
 * card sat in the first and the heading over it stayed centred. Measured at
 * 1100 with one person: heading centre 550, card 52 to 520, centre 286 --
 * **264px** out.
 *
 * The card's own words were never the problem; `.profile-card` has been
 * `text-align: center` since it was written. Only its position was.
 *
 * 520px is not a new number: it is exactly what a card is when there are two
 * of them in the 1100px band -- (1100 - 60) / 2 -- so one person is the same
 * card as either of two, in the middle, rather than a card stretched to fill
 * a row it was never drawn for.
 *
 * **Three people are deliberately untouched.** A last row holding one card
 * of two is a half-filled row, which is what a grid does and what every
 * other grid on this page does; a track that is never filled at all is a
 * declaration that was wrong. The line is drawn there on purpose, and moving
 * it would mean centring the orphan of every odd-numbered list on the site.
 */
.profiles-grid:has(.profile-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 520px;
}

.profile-card {
  text-align: center;
  padding: 44px 40px 48px;
  background: var(--off-white);
  border: 1px solid rgba(184, 147, 90, 0.25);
  position: relative;
}

.profile-card::before,
.profile-card::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
}
.profile-card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.profile-card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.profile-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 50px -18px rgba(58, 20, 30, 0.35);
  border: 3px solid var(--off-white);
  outline: 1px solid rgba(184, 147, 90, 0.4);
  outline-offset: 4px;
  background: var(--sand);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.profile-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(38px, 5vw, 52px);
  color: var(--burgundy);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 10px;
}

.profile-location {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}

.profile-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}
.profile-divider .line {
  height: 1px;
  background: var(--gold);
  flex: 1;
  opacity: 0.6;
}
.profile-divider .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.profile-bio {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--charcoal-soft);
  font-weight: 300;
  /* Centred with the rest of the card. It was the one line in a centred
     card that was not, which is what Pulkit saw. Left-aligned is the better
     setting for a long paragraph and that is the argument for the old rule,
     but this is one sentence about a person under a centred name, a centred
     role and a centred city, and a single ragged edge in the middle of that
     reads as a mistake rather than as typography. */
}

/* ============ EVENTS ============ */
.events {
  background:
    linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
}

/* A wrapping row rather than a grid, because the last row has to centre
   itself and a grid cannot be told to do that.

   What was here was `repeat(6, 1fr)` with every card spanning 2 -- three to a
   row -- plus `:nth-child(4) { grid-column: 2 / span 2 }` and
   `:nth-child(5) { grid-column: 4 / span 2 }` to centre a last row of two.
   Those two rules are the whole bug Pulkit found at six ceremonies: they are
   written for one count. Measured at 1280px before the change, cards 357px
   wide in a 1136px band:

   | ceremonies | row 2 | row 3 |
   |---|---|---|
   | 4 | one card at x=267, which is 194px left of centre (461) | -- |
   | 5 | x=267 and x=656, centred -- the case they were written for | -- |
   | 6 | x=267 and x=656, offset under a row starting at x=72 | card 6 alone at x=72 |

   So four was already wrong and six was the report. A `:nth-child(6)` would
   have fixed six and left four, and seven would have broken it again.
   `flex-wrap` plus `justify-content: center` centres whatever the last row
   holds at every count, including one, so no rule here knows how many
   ceremonies a couple has. The cards keep the same widths they had: a third
   of the row minus the gaps on desktop, a half on tablet. */
.events-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* `flex: 0 1 <basis>` and not `1`: a card that grew would make a last row of
   one card as wide as the row, and the carousel below 640px needs a card that
   does not stretch either. The basis is stated before the media queries
   because the `.event-card` block further down this file is later in the
   cascade and would otherwise win over them. */
.event-card { flex: 0 1 100%; min-width: 0; }

.events-swipe-hint { display: none; }

@media (min-width: 640px) and (max-width: 899px) {
  .event-card { flex-basis: calc((100% - 32px) / 2); }
}

@media (min-width: 900px) {
  .event-card { flex-basis: calc((100% - 64px) / 3); }
}

.event-card {
  background: var(--off-white);
  padding: 48px 32px;
  text-align: center;
  border: 1px solid rgba(184, 147, 90, 0.25);
  position: relative;
  transition: var(--transition);
}

.event-card::before,
.event-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold);
  border-style: solid;
  transition: var(--transition);
}
.event-card::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}
.event-card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.event-card:hover::before,
.event-card:hover::after {
  width: 32px;
  height: 32px;
}

/* `.event-date-line` lived here: an 11px gold `CEREMONY ONE` above the name,
   with 12px under it. Both the element and the rule are gone -- see the note
   at the render site in src/routes/tenant.ts. The margin went with the
   element, so nothing is left holding a gap open; what the card loses is the
   whole 30px that line occupied, which is the point. */

.event-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  color: var(--burgundy);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1;
}

.event-date {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.event-time {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--charcoal-soft);
  margin-bottom: 24px;
}

.event-mini-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto;
  opacity: 0.5;
}

.event-venue {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.event-desc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--charcoal-soft);
  line-height: 1.6;
  margin-top: 12px;
}

.event-dress {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed rgba(184, 147, 90, 0.3);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ============ VENUE ============ */

/* ---- why this section is no longer the ink colour (11 Nov 2026) ----

   Pulkit: *"why is this venue part red by itself?"* It was
   `background: var(--burgundy)`, and `--burgundy` is the theme's ink: the
   colour of every display heading, every link and every button on the page.
   So this one section used the page's ink as its paper and then needed a
   second set of colours for everything inside it -- gold-light headings,
   ivory body, an outlined CTA -- while every other section is a tone of the
   couple's paper. On the three presets it reads as deep teal, deep brown or
   deep red; on the sample Pulkit was looking at, red.

   It was deliberate, and it came with the ported design, where Venue was one
   band of fixed height in a fixed position between two pale sections. Two
   things this product does are not true of that page, and together they are
   why the band stopped working rather than merely looking different:

   - **It is not one band any more.** One block per venue, so the section is
     as tall as the couple's data: measured at 1280px on a site with five
     venues, `.venue` was 4,362px of unbroken dark against an 1,048px events
     section above it. That is not an accent, it is a differently coloured
     half of the invitation.
   - **The couple picks the colour.** `body.palette-custom` maps
     `--burgundy` to their accent, and an accent is chosen as *ink on paper*.
     Measured on a site with `#E8C4B8` as the accent -- a perfectly ordinary
     blush -- the section drew ivory body text at **1.50:1** and the venue
     name at **1.17:1** on its own background. Unreadable, on a published
     page, with nothing in the editor to warn them. A colour cannot be both
     the ink and the paper, and only one of those two jobs was ever checked.

   So the ground joins the paper family and the text goes back to the ink
   colours the rest of the page uses. `--blush` rather than flattening it to
   `--ivory`: it is the most tinted of the four paper tones, always derived
   from the couple's own base, so the section still arrives as its own
   chapter at any height and on any palette. What made it a statement other
   than the darkness is kept -- the gold frame inset into the section, the
   gold divider under the title, the brass eyebrow and the outlined
   Directions button.

   Contrast after the change, measured on the guest page rather than
   computed: see CONTEXT.md. */
.venue {
  background: var(--blush);
  color: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.venue::before {
  content: '';
  position: absolute;
  inset: 40px;
  /* 0.45 rather than 0.3: the same brass that read as a frame against a dark
     ground disappears into paper at 30%. */
  border: 1px solid rgba(184, 147, 90, 0.45);
  pointer-events: none;
}

/* The two overrides that used to be here -- `.venue .section-eyebrow` in
   gold-light and `.venue .section-title` in ivory -- are gone rather than
   restated. They existed only to undo the page's own heading colours against
   a dark ground, and the page's own are `--gold-deep` and `--burgundy`,
   which is what this section now wants. One fewer place to disagree with
   `.section-title`. */

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.venue-info h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  /* The ink, like `.event-name` and `.profile-name`: the venue's name is a
     display heading, and on paper that is what a display heading is. */
  color: var(--burgundy);
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.1;
}

.venue-info .venue-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  /* `--charcoal-soft`, not `--muted`: this is the venue's address, and
     `--muted` lands at 3.05:1 on the toran ground. */
  color: var(--charcoal-soft);
  margin-bottom: 32px;
}

.venue-info p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 20px;
  font-weight: 300;
  /* No `color` here, deliberately, and this is the 6 Nov audit's rule --
     *do not style bare elements inside a container that holds components*.
     `.venue-info p` is (0,1,1) and `.venue-eyebrow` is (0,1,0), so for as
     long as this rule set a colour the eyebrow's own was dead: it asked for
     brass and painted whatever this line said, which nobody noticed because
     both were legible on the dark ground. The text colour now comes from
     `.venue`, and anything with a class of its own states its own. */
}

.venue-details {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 147, 90, 0.45);
}

.venue-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 13px;
}

.venue-detail-row .label {
  /* Ink, not brass. On the dark ground this label was `--gold-light` at
     about 6.8:1; brass on the blush ground measures 2.99-4.21 across the
     three presets, which would be shipping a legibility regression to fix a
     colour complaint. So: on paper, brass draws and ink writes. The brass is
     still here in everything that has no words in it -- the frame inset into
     the section, the divider under the title, the rule above these rows and
     the diamond between venues. */
  color: var(--charcoal-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.venue-detail-row .value {
  color: var(--charcoal);
  font-weight: 400;
}

.venue-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 16px 40px;
  background: transparent;
  /* The ink rather than the brass. Outlined brass on paper measures
     2.99:1 on the diwali ground, and a button at 2.99 is exactly the defect
     the 6 Nov design audit wrote up. The ink is 4.22-7.80 across the three
     presets and keeps the ghost shape the design wanted. */
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: var(--transition);
}

.venue-cta:hover {
  background: var(--burgundy);
  color: var(--ivory);
}

.venue-map {
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(184, 147, 90, 0.3);
  position: relative;
  overflow: hidden;
  /* The tile behind a map that has not painted yet. It was ivory at 4% --
     invisible on anything but a dark ground, which is what this section used
     to be. */
  background: rgba(42, 32, 32, 0.05);
}

.venue-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(0.18) saturate(0.9) hue-rotate(-8deg) brightness(0.98);
}

.venue-map::before {
  content: '';
  position: absolute;
  inset: 12px;
  /* Brass, not ivory: this line is drawn over the map, which is pale. */
  border: 1px solid rgba(184, 147, 90, 0.35);
  pointer-events: none;
  z-index: 2;
}

.venue-map-open {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(63, 21, 32, 0.94);
  color: var(--gold-light);
  padding: 12px 22px;
  border: 1px solid var(--gold-light);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.venue-map-open:hover {
  background: var(--gold-light);
  color: var(--burgundy);
}

.venue-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 20px;
  opacity: 0.9;
}

.venue-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 90px auto;
  max-width: 460px;
  padding: 0 20px;
}

.venue-separator .line {
  height: 1px;
  /* The deep brass, for the same reason as the frame: `--gold-light` was
     drawn to carry across a dark band. */
  background: linear-gradient(to right, transparent, rgba(139, 109, 59, 0.55), transparent);
  flex: 1;
}

.venue-separator .diamond {
  width: 10px;
  height: 10px;
  background: var(--gold-deep);
  transform: rotate(45deg);
  opacity: 0.9;
}

.venue-grid.reversed .venue-info { order: 2; }
.venue-grid.reversed .venue-map { order: 1; }

/* A venue card drawn before its map resolved. (12 Nov 2026.)
 *
 * Edit mode only -- see the note on `pending` in src/routes/tenant.ts. The
 * card exists so `paintVenueMap` in editor.js has a `[data-event]` node to
 * paint into; it is hidden for exactly as long as `--nomap` is on it, which
 * is the class that painter removes the moment a link resolves. So one line
 * of CSS, keyed on state the editor already maintains, does the showing --
 * no second `hidden` attribute for the painter to know about.
 */
.venue-grid--pending.venue-grid--nomap { display: none; }
/* And the section, when every card in it is one of those. `:has()` rather
   than a server-side count because the count changes while you type. On a
   browser without `:has()` a couple with no maps sees the Venues heading on
   its own in their own preview, which is the mildest possible fallback and
   never reaches a guest. */
.venue--pending:not(:has(.venue-grid:not(.venue-grid--pending),
                        .venue-grid--pending:not(.venue-grid--nomap))) {
  display: none;
}

/* ============ GALLERY ============ */
.gallery {
  background: var(--ivory);
}

/* Masonry gallery — natural aspect ratios, ZERO cropping */
/*
 * The number of columns is the number of photographs, up to three.
 * (12 Nov 2026.)
 *
 * It was a flat `column-count: 3`, and a multi-column box fills its columns
 * left to right and leaves the remainder empty. So a gallery of two sat in
 * tracks one and two of three, inside a box that was itself centred: the
 * BOX's centre was the page's, the PHOTOGRAPHS' centre was 186px to the left
 * of it, and the heading above them -- centred, correctly -- looked wrong by
 * exactly that much. Measured at 1440: heading centre 720, photographs 170 to
 * 898, centre 534.
 *
 * `--gal-n` is written on the element by the server, which is the only place
 * that knows how many there are. `--gal-max` is this stylesheet's cap and the
 * one thing the phone rule below changes. The track count is corrected, not
 * the position: no margin, no transform, nothing that would have to be undone
 * when a third photograph arrives.
 *
 * `max-width` follows from the same two numbers so a tile is 356px wide
 * whether there are two of them or three -- three tiles and two gaps is the
 * 1100px this box has always been, so a full gallery does not move a pixel.
 *
 * The plain declarations come first on purpose. Integer arithmetic in
 * `column-count` is css-values-4 and a browser that will not parse it drops
 * the second pair and keeps the three-column box it has today, which is the
 * bug but not a broken page.
 */
.gallery-grid {
  --gal-n: 3;
  --gal-max: 3;
  --gal-gap: 16px;
  --gal-c: min(var(--gal-max), var(--gal-n));
  column-count: 3;
  column-count: var(--gal-c);
  column-gap: var(--gal-gap);
  max-width: 1100px;
  max-width: calc(var(--gal-c) * 356px + (var(--gal-c) - 1) * var(--gal-gap));
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--sand);
  display: block;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  /* The hover zoom is a custom property rather than its own `transform`, so
     that a framed tile's own zoom and the hover's compose in one declaration
     instead of one silently replacing the other. ADR 0047. */
  transform: scale(calc(var(--cr-zoom, 1) * var(--gal-hover, 1)));
  transform-origin: var(--cr-x, 50%) var(--cr-y, 50%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(184, 147, 90, 0);
  pointer-events: none;
  transition: border-color 0.4s ease, inset 0.4s ease;
}

.gallery-item:hover img { --gal-hover: 1.04; }
.gallery-item:hover::after {
  inset: 8px;
  border-color: rgba(212, 184, 136, 0.55);
}


/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(42, 32, 32, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
  cursor: zoom-out;
  animation: lb-fade 0.28s ease-out;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: transparent;
  border: 1px solid rgba(212, 184, 136, 0.5);
  color: var(--gold-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover {
  background: var(--gold-light);
  color: var(--burgundy);
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* ============ RSVP ============ */
.rsvp {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
  position: relative;
}

.rsvp-container {
  /* `medium`, restated. See the block at the foot of this file: the three
     size classes set `--rf-scale` and `--rf-w`, and the medium one is these
     two numbers, so a site that has never touched the control renders the
     pixels it always did. */
  --rf-scale: 1;
  --rf-w: 640px;
  max-width: var(--rf-w);
  margin: 0 auto;
  background: var(--off-white);
  padding: calc(64px * var(--rf-scale)) calc(56px * var(--rf-scale));
  border: 1px solid rgba(184, 147, 90, 0.3);
  position: relative;
  box-shadow: var(--shadow-soft);
}

.rsvp-container::before,
.rsvp-container::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--gold);
  border-style: solid;
}
.rsvp-container::before {
  top: -8px;
  left: -8px;
  border-width: 1px 0 0 1px;
}
.rsvp-container::after {
  bottom: -8px;
  right: -8px;
  border-width: 0 1px 1px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(20px * var(--rf-scale, 1));
  margin-bottom: calc(20px * var(--rf-scale, 1));
}

.form-group {
  margin-bottom: calc(20px * var(--rf-scale, 1));
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  /* Floored. The scale is allowed to shrink the geometry freely and the
     words only so far: 11px of tracked uppercase at 0.76 is 8.4px, which is
     a decoration rather than a label. Measured on a laptop, not guessed.
     `max()` leaves medium and large at the numbers they already had. */
  font-size: max(10px, calc(11px * var(--rf-scale, 1)));
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: calc(10px * var(--rf-scale, 1));
}

.req {
  color: var(--burgundy);
  font-size: 13px;
  letter-spacing: 0;
  margin-left: 2px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: calc(14px * var(--rf-scale, 1)) calc(16px * var(--rf-scale, 1));
  border: 1px solid rgba(184, 147, 90, 0.4);
  background: var(--ivory);
  font-family: var(--font-body);
  /* Floored for the same reason as the label above: 15px at 0.76 is 11.4px,
     which is small for something a guest types their own name into. The
     phone keeps its own flat 16px further down, to stop iOS zooming. */
  font-size: max(13px, calc(15px * var(--rf-scale, 1)));
  color: var(--charcoal);
  transition: border-color var(--transition);
  font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--off-white);
}

.form-group textarea {
  min-height: calc(100px * var(--rf-scale, 1));
  resize: vertical;
  font-family: var(--font-body);
}

.rsvp-radio-group {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.rsvp-radio {
  flex: 1;
  padding: 16px;
  border: 1px solid rgba(184, 147, 90, 0.4);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--charcoal-soft);
  background: var(--ivory);
}

.rsvp-radio input { display: none; }

.rsvp-radio.selected {
  background: var(--burgundy);
  color: var(--ivory);
  border-color: var(--burgundy);
}

/* Event chips — modern wedding-site style */
.event-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.event-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 12px;
  background: var(--off-white);
  border: 1px solid rgba(184, 147, 90, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body) !important;
  font-weight: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 !important;
  color: var(--charcoal) !important;
  font-size: 14px !important;
  text-align: left !important;
}

.event-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.event-chip:hover {
  border-color: var(--gold);
  background: var(--cream);
}

.event-chip.checked {
  border-color: var(--burgundy);
  background: linear-gradient(135deg, rgba(232, 196, 184, 0.3), rgba(232, 196, 184, 0.08));
  box-shadow: 0 2px 8px -2px rgba(90, 31, 46, 0.15);
}

.event-chip.checked::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--burgundy);
}

.event-chip-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--burgundy);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}

.event-chip.checked .event-chip-name {
  color: var(--deep-burgundy);
}

.event-chip-date {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-weight: 300;
  text-transform: uppercase;
}

.event-chip.checked .event-chip-date {
  color: var(--gold-deep);
}

@media (max-width: 640px) {
  .event-chips {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .event-chip { padding: 12px 12px 10px; }
  .event-chip-name { font-size: 16px; }
  .event-chip-date { font-size: 10px; }
}

@media (max-width: 380px) {
  .event-chips { grid-template-columns: 1fr; }
}

/* Guest slider */
.guest-slider {
  padding: 20px 12px 8px;
  background: var(--off-white);
  border: 1px solid rgba(184, 147, 90, 0.35);
}

.guest-slider-track {
  position: relative;
  height: 36px;
  margin: 34px 6px 0;
}

.guest-slider-fill {
  position: absolute;
  top: 15px;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  width: 0%;
  border-radius: 4px;
  pointer-events: none;
  transition: width 0.1s ease-out;
}

.guest-slider-track input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(184, 147, 90, 0.22);
  height: 6px;
  margin: 15px 0 0 0;
  outline: none;
  border-radius: 4px;
  cursor: pointer;
}
.guest-slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--burgundy);
  box-shadow: 0 2px 10px -1px rgba(90, 31, 46, 0.4);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guest-slider-track input[type="range"]::-webkit-slider-thumb:hover,
.guest-slider-track input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.12);
  box-shadow: 0 4px 16px -2px rgba(90, 31, 46, 0.5);
}
.guest-slider-track input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--burgundy);
  box-shadow: 0 2px 10px -1px rgba(90, 31, 46, 0.4);
  cursor: grab;
}

.guest-slider-bubble {
  position: absolute;
  top: -32px;
  transform: translateX(-50%);
  min-width: 40px;
  padding: 4px 12px;
  background: var(--burgundy);
  color: var(--off-white);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  border-radius: 4px;
  pointer-events: none;
  transition: left 0.1s ease-out;
  letter-spacing: 0;
}
.guest-slider-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--burgundy);
}

.guest-slider-scale {
  display: flex;
  justify-content: space-between;
  padding: 12px 6px 0;
  font-family: var(--font-body);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 400;
}

.guest-slider-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 147, 90, 0.18);
}
.guest-slider-input-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.guest-slider-input {
  width: 60px;
  padding: 6px 10px;
  border: 1px solid rgba(184, 147, 90, 0.5);
  background: var(--off-white);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--burgundy);
  text-align: center;
  outline: none;
  border-radius: 4px;
}
.guest-slider-input:focus { border-color: var(--burgundy); }
.guest-slider-input::-webkit-inner-spin-button,
.guest-slider-input::-webkit-outer-spin-button {
  opacity: 1;
}
.guest-slider-input-suffix {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--charcoal-soft);
  font-style: italic;
}

@media (max-width: 640px) {
  .guest-slider-scale { font-size: 9px; }
  .guest-slider-track { margin: 30px 4px 0; }
  .guest-slider-bubble { font-size: 18px; }
  .guest-slider-input-row { flex-wrap: wrap; }
}

/* Single-select variant (Number of Guests) */
.single-option {
  display: block;
  width: 100%;
  padding: 16px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--burgundy);
  text-align: left;
  border-bottom: 1px solid rgba(184, 147, 90, 0.18);
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  letter-spacing: 0;
}
.single-option:last-child { border-bottom: none; }
.single-option:hover {
  background: var(--cream);
  color: var(--deep-burgundy);
}
.single-option.selected {
  background: linear-gradient(90deg, rgba(232, 196, 184, 0.28), rgba(232, 196, 184, 0.04));
  color: var(--deep-burgundy);
}
.single-option.selected::before {
  content: '·';
  margin-right: 12px;
  color: var(--gold);
  font-size: 26px;
  line-height: 0;
  vertical-align: middle;
}

.btn-primary {
  display: block;
  width: 100%;
  /* The only `.btn-primary` on a guest's page is the reply form's Send, so
     it scales with the card -- with a floor, because it is the one control
     that the scale alone took under a thumb. Measured at 375px: 49.3px at
     medium, 41.6px at small. The floor costs medium and large nothing, since
     both are already well over it, and it is on the base rule rather than
     inside the phone block because `small` on a laptop lands at 42px too. */
  padding: calc(18px * var(--rf-scale, 1));
  min-height: 44px;
  background: var(--burgundy);
  color: var(--ivory);
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  margin-top: calc(20px * var(--rf-scale, 1));
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--deep-burgundy);
  letter-spacing: 0.4em;
}

.form-note {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--deep-burgundy);
  color: var(--ivory);
  padding: 80px 20px 40px;
  text-align: center;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.footer-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(251, 246, 234, 0.7);
  margin-bottom: 32px;
  font-size: 18px;
}

.footer-date {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 32px;
}

.footer-count-label {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(251, 246, 234, 0.75);
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-countdown {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.footer-count-value {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 42px;
  color: var(--gold-light);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.footer-count-label-small {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(251, 246, 234, 0.55);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 300;
}

@media (max-width: 640px) {
  .footer-countdown { gap: 16px; }
  .footer-count-value { font-size: 34px; }
  .footer-count-label-small { font-size: 9px; letter-spacing: 0.2em; }
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(251, 246, 234, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-copy {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(251, 246, 234, 0.4);
  letter-spacing: 0.15em;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 147, 90, 0.15);
}

/* ---- the credit, and the last line on the page ----

   "Made with Toran", after the couple's own closing content. Quiet on
   purpose: the brief is that it reads as a line of the invitation rather
   than as a sticker on it, and the three decisions that get it there are

   `var(--ivory)`, not a literal. `.footer-copy` above hardcodes
   `rgba(251, 246, 234, .4)`, which is the ivory of the default palette
   written out -- on `body.palette-custom`, where every colour is derived
   from the couple's two, that literal is the one thing on the footer still
   painted in somebody else's scheme. `--ivory` plus `opacity` gets the same
   grey at a tenth of the weight and follows all three themes and any custom
   palette without naming them.

   **No `font-family` at all**, which is the fix for a bug this rule shipped
   with for an hour. It said `font-family: var(--font-body)`, and that is the
   Latin stack: `body.lang-hi` four hundred lines down sets
   `--font-deva-body` on `body` precisely so every line of a Hindi page
   inherits a Devanagari face, and naming `--font-body` here opted this one
   line back out of it. Measured in a browser on a `?lang=hi` page:
   "तोरण से बना" came out in Inter, falling back
   per-glyph -- the exact mismatch the comment on that rule says it exists to
   prevent. Inheriting gets the Latin stack on an English page and the
   Devanagari one on a Hindi page with no rule of its own, which is also why
   this needs no entry in the `body.lang-hi` list below.

   `opacity: .55`, which is quieter than the footer links at .7 and brighter
   than `.footer-copy`'s .4, and the reason is measured rather than taste.
   This is a link, and a link nobody can read is not a quiet link, it is a
   broken one. Contrast of the composited text against each theme's own
   footer, read out of a browser on 12 Nov 2026 with the themes as #112
   rebuilt them:

                     at .55        at .40
     toran            4.84          3.25
     haldi            4.58          3.12
     diwali           4.96          3.21

   So .55 clears WCAG AA for body text (4.5:1) on all three and .4 -- what
   `.footer-copy` above uses -- clears it on none. That is why this rule does
   not simply reuse that class.

   No `text-transform` and no tracking. Every other label in this footer is
   uppercase with 0.15em to 0.4em of letter-spacing, which is the Latin
   display idiom this design is built on -- and it is exactly what the
   `body.lang-hi` block undoes for our words further down, because tracking
   pulls a matra off its consonant and Devanagari has no capitals to make.
   Starting from neither means the Hindi credit needs no exception and the
   English one is a sentence rather than a caption, which is what makes it
   read as a line of the page.

   `margin-top`, not `padding-top` with a rule: `.footer-copy`'s hairline
   would draw a second horizontal line two thirds down a footer that already
   has one across its top, and a rule above our own credit is the sticker
   this was asked not to be. */
.footer-credit {
  font-size: 12px;
  color: var(--ivory);
  opacity: 0.55;
  margin: 36px 0 0;
}

.footer-credit__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: var(--transition);
}

/* Hover and focus take the line to full ivory and move the underline to the
   page's own gold, rather than recolouring the text gold.

   The first version did recolour the text, and measuring it is what caught
   the problem: --gold-light over the toran footer comes out at 4.38:1, so
   pointing at the link made it *harder* to read than leaving it alone -- a
   hover state that argues against itself. Full opacity is 12.57:1 on toran,
   and the gold still does the signalling, on the border rather than on the
   words. */
.footer-credit:hover,
.footer-credit:focus-within { opacity: 1; }
.footer-credit__link:hover,
.footer-credit__link:focus-visible { border-bottom-color: var(--gold-light); }

/* ============ REVEAL ANIMATION ============ */
/* Scoped to .js, which an inline script in <head> sets. Unscoped, a page
   whose JavaScript fails to load renders entirely blank — and this page gets
   opened from a WhatsApp link on patchy mobile data, which is exactly when
   it fails. Without JS everything is simply visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ RESPONSIVE ============ */
/* ## The burger is a phone's, and arrives at 700px (11 Nov 2026)

   It used to arrive at 900, which put the header links behind a menu button
   on every laptop with a narrow window and in every editor preview. Pulkit,
   on the preview: a burger at 1440px is a phone pattern on a desktop. Half
   of that was the preview rendering the page in a 603px frame and is fixed
   in app.css; this is the other half.

   640 is measured, and it is also this stylesheet's own word for a phone --
   eight other blocks already break there. The widest header this product can
   build out of our own words is the six sections (a module is never in the
   header), and the whole bar with those six, the brand and its padding
   measures 734px at the 36px gap and 605px at 18px.

   Hence three bands rather than two, and the sweep that settled them, taken
   in the editor's preview at nine widths:

     1440, 1100, 900   bar, 36px gap, 169px of room at the narrowest
     761               bar, 36px gap, 42px of room -- the tight end of this band
     760 ... 641       bar, 18px gap, 36px of room at 641
     640 and below     the burger

   The same six links in Hindi measure 454px, so a Hindi or bilingual site
   has more room rather than less (a `both` site shows one script in the bar;
   see the `.bi__en` rule below).

   A couple who writes six 40-character labels can still outgrow the bar.
   That was true at 901px before today too -- it is a different problem, and
   collapsing every laptop to a phone was not a fix for it. */
@media (min-width: 641px) and (max-width: 760px) {
  .nav-menu { gap: 18px; }
}

@media (max-width: 900px) {
  .nav { padding: 16px 20px; }

  .hero-ornament { width: 100px; height: 100px; }
  .hero-ornament.tl, .hero-ornament.tr { top: 20px; }
  .hero-ornament.tl, .hero-ornament.bl { left: 20px; }
  .hero-ornament.tr, .hero-ornament.br { right: 20px; }
  .hero-ornament.bl, .hero-ornament.br { bottom: 20px; }

  .countdown-item + .countdown-item {
    border-left: none;
    padding-left: 0;
  }
  .countdown { gap: 16px; }
  .countdown-item { min-width: 70px; }

  section { padding: 80px 20px; }

  .story-grid,
  .venue-grid,
  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile-card { padding: 36px 28px 40px; }
  .profile-image { width: 170px; height: 170px; }

  .venue-grid.reversed .venue-info,
  .venue-grid.reversed .venue-map { order: 0; }

  .venue-separator { margin: 60px auto; }

  /* Two columns at most here, and the width cap goes back to the flat
     1100px: below 900px the container is narrower than that anyway, so the
     calc above would only shrink a tablet's gallery for no reason. */
  .gallery-grid { --gal-max: 2; --gal-gap: 12px; column-count: 2;
                  column-count: var(--gal-c); max-width: 1100px; }
  .gallery-item { margin-bottom: 12px; }

  .rsvp-container {
    padding: calc(40px * var(--rf-scale)) calc(24px * var(--rf-scale));
  }
  .form-row { grid-template-columns: 1fr; }
  .rsvp-radio-group { flex-direction: column; gap: 10px; }
  .rsvp-radio { font-size: 16px; padding: 14px; }

  .venue-info h3 { font-size: 36px; }
}

@media (max-width: 640px) {
  .hero-names {
    flex-direction: column;
    gap: 4px;
    line-height: 1;
  }
  .hero-names .name {
    font-size: clamp(52px, 14vw, 96px);
  }
  .hero-names .amp {
    font-size: clamp(40px, 10vw, 68px);
    transform: none;
    padding: 8px 0;
  }

  /* Horizontal carousel for the ceremony cards.

     `nowrap` and `flex-start` are stated rather than inherited: the section
     is a wrapping centred row above this breakpoint, and both of those are
     wrong for a scroller. Wrapping would stack the cards instead of letting
     them run off the side, and centring overflowing content puts the first
     card out of reach of a scroll that starts at zero. */
  .events-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
    gap: 18px;
    padding: 12px 20px 30px;
    margin: 0 -20px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .events-grid::-webkit-scrollbar { display: none; }

  .event-card {
    flex: 0 0 84%;
    max-width: 340px;
    min-width: 258px;
    scroll-snap-align: center;
    padding: 40px 26px;
  }

  /* Little swipe hint below the cards */
  .events-swipe-hint {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    animation: swipeHint 2.4s ease-in-out infinite;
  }
  .events-swipe-hint span {
    color: var(--gold-deep);
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
  }
  @keyframes swipeHint {
    0%, 100% { transform: translateX(0); opacity: 0.5; }
    50% { transform: translateX(6px); opacity: 1; }
  }

  /* Compact RSVP form on mobile — 2-col rows, tight vertical rhythm */
  .rsvp-container {
    padding: calc(30px * var(--rf-scale)) calc(18px * var(--rf-scale))
             calc(36px * var(--rf-scale));
  }
  .rsvp-container::before,
  .rsvp-container::after {
    width: 20px;
    height: 20px;
  }
  .form-row {
    grid-template-columns: 1fr 1fr !important;
    gap: calc(10px * var(--rf-scale, 1));
    margin-bottom: calc(12px * var(--rf-scale, 1));
  }
  .form-group {
    margin-bottom: calc(14px * var(--rf-scale, 1));
  }
  /* Type stops scaling here, and that is the point of the breakpoint.
     9px of label at the small setting is 6.7px, which is a decoration rather
     than a word, and a field under 16px makes iOS zoom the page the moment a
     guest taps it -- the two things the 6 Nov phone pass was for. The
     geometry above still scales, so `small` on a phone is a tighter rhythm
     and the same legible controls. */
  .form-group label {
    font-size: 9px;
    letter-spacing: 0.24em;
    margin-bottom: calc(6px * var(--rf-scale, 1));
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: calc(12px * var(--rf-scale, 1)) calc(13px * var(--rf-scale, 1));
    font-size: 16px; /* keep 16px to prevent iOS auto-zoom */
    min-height: 44px;
  }
  .form-group textarea { min-height: 72px; }
  .rsvp-radio-group {
    flex-direction: row !important;
    gap: 8px;
  }
  .rsvp-radio {
    font-size: 12px;
    padding: 12px 6px;
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.3;
  }
  .btn-primary {
    padding: calc(16px * var(--rf-scale, 1));
    font-size: 10.5px;
    letter-spacing: 0.28em;
    margin-top: calc(14px * var(--rf-scale, 1));
  }
  .form-note {
    font-size: 12px;
    margin-top: 14px;
  }

  /* Tighter section headers on mobile */
  section { padding: 60px 20px; }
  .section-title { font-size: 34px !important; margin-bottom: 12px; }
  .section-subtitle { font-size: 15px !important; margin-bottom: 32px; }
  .section-eyebrow { font-size: 10px; margin-bottom: 12px; }
  .section-divider { margin-bottom: 40px; max-width: 200px; }
}

@media (max-width: 380px) {
  .rsvp-container {
    padding: calc(26px * var(--rf-scale)) calc(16px * var(--rf-scale));
  }
  .form-row { gap: calc(8px * var(--rf-scale, 1)); }
  .event-card { flex-basis: 88%; }
}

/* ============================================================
   OURS — everything below this line is Toran's, not the port.
   The ported design had a single hard-coded RSVP; this product's whole
   point is one answer per ceremony, so that part is built here.
   ============================================================ */

.rsvp-ceremonies { display: block; }

.chip-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: calc(14px * var(--rf-scale, 1)) 0;
  border-bottom: 1px solid rgba(58, 20, 30, .1);
}
.chip-row:last-child { border-bottom: 0; }
.chip-name {
  font-family: var(--font-display); font-size: 21px; color: var(--charcoal);
}
.chip-name em {
  display: block; font-style: normal; font-family: var(--font-body);
  font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-top: 2px;
}
.chip-btns { display: flex; gap: 8px; flex-shrink: 0; }
.chip {
  padding: 8px 20px; font-family: var(--font-body); font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  color: var(--charcoal-soft); background: transparent;
  border: 1px solid rgba(58, 20, 30, .22); border-radius: 2px;
  transition: var(--transition);
}
.chip:hover { border-color: var(--burgundy); color: var(--burgundy); }
.chip.is-on { background: var(--burgundy); border-color: var(--burgundy); color: var(--ivory); }

.gallery-note {
  margin: 28px 0 0; text-align: center; font-family: var(--font-body);
  font-size: 12px; color: var(--muted);
}

/* The bar a couple sees over their own draft, before it is published. */
.ts-preview-bar {
  position: sticky; top: 0; z-index: 200; padding: 10px 16px; text-align: center;
  background: var(--deep-burgundy); color: var(--ivory);
  font-family: var(--font-body); font-size: 13px;
}
.ts-preview-bar a { color: var(--gold-light); }
/* The nav is `position: fixed; top: 0`, so it has to start below this bar or
   it draws underneath it — which is how a couple's own monogram ends up cut
   in half behind "Preview", on a direct ?preview=1 visit as much as in the
   editor. A fixed element cannot read a sibling's height without script, so
   the offset is a constant, as it already is for the sample bar below.

   41px, measured rather than guessed: the bar's one line of 13px text fits on
   one line at every width from 320px up, so its height does not change. If
   this copy ever grows, measure it again. */
body.is-preview .nav { top: 41px; }
@media (max-width: 640px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(251, 246, 234, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) { body.is-preview .nav-menu.open { top: 41px; } }

@media (max-width: 600px) {
  .rsvp-ceremonies { display: block; }

.chip-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* The sample bar is stuck above a fixed nav, so the nav needs to start below
   it — 58px wide, 107px once the bar's text wraps on a phone. Measured, not
   guessed; a fixed element cannot read a sibling's height without script. */
body[data-sample] .nav { top: 58px; }
@media (max-width: 900px) { body[data-sample] .nav { top: 107px; } }
@media (max-width: 640px) { body[data-sample] .nav-menu.open { top: 107px; } }

/* ---- the card's background treatments (ADR 0008) ----

   A class, not an inline style, so the theme still owns the colours and this
   only picks the treatment. They stack in order of how much they assert:
   solid is the theme as it was, gradient lifts one corner, texture adds paper
   grain, and a photograph overrides all of it because painting a gradient
   under an image that covers it is pointless.

   Everything here is CSS. No image is downloaded for any option except the
   couple's own photograph, which matters on a phone opened from WhatsApp on
   a train. */
/* Both treatments below were written against `--accent` and `--ink`, which
   are the *product's* token names (tokens.css) and are not declared anywhere
   in this stylesheet or on a tenant page. An unresolvable `var()` inside
   `color-mix()` makes the declaration invalid at computed-value time, so
   `background-image` fell back to its initial value — `none`. Gradient and
   Paper have therefore drawn nothing at all since they shipped, and less than
   Plain, which at least keeps `.hero`'s own two washes. Measured in the
   browser, not read: `getComputedStyle` returns "none" for both.

   They are written against `--gold` and `--charcoal` now, which every theme
   declares, including a couple's own. No new variable names: `--accent` would
   be third vocabulary for a colour this file already has a word for. */

/* Four gradients, not one.
   "Gradient" used to be a single hard-coded look with no way to influence it;
   the chip row that picks between these appears only when Gradient is
   chosen. Each is two washes — the ink and the metal — so they read as part
   of the palette at every theme rather than as a grey veil. */
.hero--grad-halo {
  background-image:
    radial-gradient(85% 65% at 50% 40%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 72%),
    radial-gradient(120% 95% at 50% 115%, color-mix(in srgb, var(--burgundy) 16%, transparent), transparent 66%);
}
.hero--grad-sunrise {
  background-image:
    linear-gradient(0deg, color-mix(in srgb, var(--gold) 34%, transparent) 0%, transparent 55%),
    radial-gradient(120% 70% at 50% 108%, color-mix(in srgb, var(--burgundy) 22%, transparent), transparent 70%);
}
.hero--grad-sunset {
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--burgundy) 26%, transparent) 0%, transparent 58%),
    radial-gradient(130% 75% at 50% -10%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 72%);
}
.hero--grad-corners {
  background-image:
    radial-gradient(120% 90% at 18% 0%, color-mix(in srgb, var(--burgundy) 24%, transparent), transparent 62%),
    radial-gradient(110% 80% at 100% 100%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 58%);
}
/* A layout stored with `background: gradient` and no style named. Nothing can
   have one — the field is new — but the renderer defaults to halo and this is
   the belt to that brace, so the class alone is never a blank hero. */
.hero--gradient:not([class*="hero--grad-"]) {
  background-image:
    radial-gradient(85% 65% at 50% 40%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 72%),
    radial-gradient(120% 95% at 50% 115%, color-mix(in srgb, var(--burgundy) 16%, transparent), transparent 66%);
}

/* Paper grain from two crossed gradients rather than a texture file. Close
   enough at the scale a hero is read, and nothing to download. */
.hero--texture {
  background-image:
    repeating-linear-gradient(103deg, color-mix(in srgb, var(--charcoal) 4%, transparent) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(7deg, color-mix(in srgb, var(--charcoal) 3%, transparent) 0 1px, transparent 1px 6px),
    radial-gradient(130% 100% at 50% 0%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%);
}

/* ---- a palette of the couple's own ----

   Two colour inputs, not thirteen, and not the three the presets actually
   differ by. `--c-base` is the paper and `--c-accent` is the ink; the
   renderer and the editor's live repaint each set only those two, and every
   other variable the design uses is mixed from them here. One definition of
   the derivation, in the language that has `color-mix`, rather than one in
   TypeScript and a second in the editor that drifts from it.

   The grounds are the paper carried toward the ink in four steps, which is
   what the three presets already are: Sage's ivory, cream, sand and blush
   are one green getting progressively less pale. The text colours are the ink
   carried toward black for the same reason.

   The metal is the one thing not derived from the accent alone, and that is
   the deliberate part. It is the colour that makes a card read as an
   invitation rather than as a web page, every printed Indian wedding card
   uses roughly the same brass, and it is the colour a couple has no opinion
   about and gets wrong — a lime-green divider is one colour input away. So it
   stays brass, carrying a little of their accent so it belongs to the
   palette. Two decisions, three roles.

   Scoped to `body`, not `:root`: the server emits the two anchors on `:root`
   and sets this class on `body`, and everything painted on a tenant page is
   inside `body`. A derived value declared here would not be visible to a rule
   on `html`, and there is no such rule that uses a colour. */
body.palette-custom {
  --ivory:         var(--c-base);
  --off-white:     color-mix(in srgb, var(--c-base) 55%, #fff);
  --cream:         color-mix(in srgb, var(--c-base) 92%, var(--c-accent));
  --sand:          color-mix(in srgb, var(--c-base) 85%, var(--c-accent));
  --blush:         color-mix(in srgb, var(--c-base) 74%, var(--c-accent));

  --burgundy:      var(--c-accent);
  --wine:          color-mix(in srgb, var(--c-accent) 86%, #fff);
  --deep-burgundy: color-mix(in srgb, var(--c-accent) 68%, #000);

  --gold:          color-mix(in srgb, #b8935a 84%, var(--c-accent));
  --gold-light:    color-mix(in srgb, #d4b888 84%, var(--c-accent));
  --gold-deep:     color-mix(in srgb, #8b6d3b 84%, var(--c-accent));

  --charcoal:      color-mix(in srgb, var(--c-accent) 34%, #141414);
  --charcoal-soft: color-mix(in srgb, var(--c-accent) 40%, #3a3a3a);
  --muted:         color-mix(in srgb, var(--c-accent) 32%, #78736e);
}

.hero--photo { position: relative; }

/* ---- the header over a photograph (18 Nov 2026) ----
 *
 * `.nav` is fixed and transparent until `.scrolled`, which is drawn for a
 * pale paper hero and is unreadable over a photograph. Pulkit, on his own
 * published site: *"The image starts from the top of the screen, so nothing
 * is visible. The left side branding is not visible, the headers are not
 * visible... the image should start after the header. The header should be
 * in the colour, and then it should start."*
 *
 * Both halves of that sentence, and they are two rules:
 *
 *   1. the header gets a ground of its own -- the theme's own paper, so it
 *      is the same band `.scrolled` fades in rather than a second look;
 *   2. the hero starts below it, so the photograph never passes under it.
 *
 * `--nav-h` is the band's height: 20px of padding each side of a 26px brand
 * line, and 16px each side below 900 where `.nav` already narrows. It is a
 * measured constant rather than a `getBoundingClientRect`, because the hero
 * has to be in the right place in the first paint and not after one.
 *
 * Only `.hero--photo` moves. Every other ground keeps the floating header it
 * was drawn with, which is the look on every site live today.
 */
:root { --nav-h: 66px; }
@media (max-width: 900px) { :root { --nav-h: 58px; } }

.nav--ground {
  background: var(--ivory);
  border-bottom: 1px solid rgb(0 0 0 / 0.06);
}
.hero--photo {
  margin-top: var(--nav-h);
  /* It filled the window; it now fills what is left of it, so the fold is
     still exactly one screen and the first section still begins below it. */
  min-height: calc(100vh - var(--nav-h));
  /* The top padding was clearing the floating header. The band does that
     now, so the names sit where the picture starts. */
  padding-top: 40px;
}

/* ---- the couple's photograph, and the four numbers that frame it ----
 *
 * This was `background-image` on `.hero` itself until 16 Nov 2026. It is a
 * layer of its own now for one reason: `background-size: cover` and a zoom
 * are two values of the same property, so a photograph painted onto the
 * section could never be scaled. A layer can be transformed.
 *
 * **Every piece of arithmetic about the photograph is in this block and
 * nowhere else.** The renderer writes four integers (`heroPhotoVars`) and
 * the editor's painter writes the same four onto the same element; neither
 * composes a gradient, a position or a transform. That is ADR 0017 section 2
 * applied to the hero photograph -- the editor preview and the live page
 * cannot drift apart over a formula neither of them holds.
 *
 * The fallbacks in each `var()` are what every site with a photograph
 * rendered before these fields existed: cover, centred, unscaled. So a
 * document that has never heard of them needs no branch anywhere.
 */
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-photo);
  background-repeat: no-repeat;
  background-size: cover;
  /* Focal point. `background-position: 44% 28%` aligns the point 44% across
     and 28% down the *photograph* with the same point of the *card*, so a
     face put there survives every aspect ratio -- which is the entire point
     of the control. Identical semantics to `object-position`; this is the
     background spelling of it. */
  background-position: var(--hero-fx, 50%) var(--hero-fy, 50%);
  /* The zoom comes from the couple's crop rectangle -- `1 / max(w, h)`,
     computed once in `cropZoom` and written here as a number. The origin is
     the rectangle's centre, not the box's: coming in on a couple standing to
     one side must not walk them out of the frame. `.hero` is
     `overflow: hidden`, so the overflow is a crop rather than a scrollbar. */
  transform: scale(var(--hero-zoom, 1));
  transform-origin: var(--hero-fx, 50%) var(--hero-fy, 50%);
}
/* Fit, not fill: the whole frame is visible and the card's own wash shows
   around it. A class rather than a fifth custom property because a keyword
   in a `var()` is one typo away from an invalid declaration that drops the
   whole rule in silence, and a class either matches or does not. */
.hero-photo--fit { background-size: contain; }

/* ---- the scrim ----
 *
 * What makes the names legible over somebody's actual photograph, which we
 * have not seen and cannot art-direct.
 *
 * It used to be three fixed stops -- 42% at the head, **28% at 45% down**,
 * 55% at the foot -- and `.hero-content` is centred, so the one band
 * carrying white type was the one band with the least help. Pulkit's own
 * card, 16 Nov 2026: the names landed on a busy patterned shirt and were
 * barely readable. The curve peaks across the middle now instead of dipping
 * there, and its strength is the couple's to set. ADR 0023.
 *
 * `--hero-scrim` is the peak alpha as a percentage, 0 to 100, defaulting to
 * 58 -- which is NOT what yesterday rendered, and is the one deliberate
 * exception in this change. 0 is honoured and means no scrim: a real answer
 * on a dark, quiet photograph.
 */
/* ---- the scrim carries the theme (18 Nov 2026) ----
 *
 * **Amends ADR 0023**, which made this a pure black gradient. See the
 * amendment appended to that ADR for the measurement; the short version is
 * here because this is the rule it is about.
 *
 * The switch on the design step puts the couple's photograph behind all six
 * designs at once, and with a black scrim all six went the same near-black:
 * the shelf stopped being a shelf at the moment it is meant to sell a design.
 * Pulkit's own description is of six designs that still look like six —
 * *"all the themes change, garlands are there, arches are there, all those
 * things are there... photos appear in all six."*
 *
 * So the ink is **26% of the theme's own accent, 74% black**. `--burgundy`
 * rather than `--c-accent`, because that one exists only for a couple's own
 * palette while `--burgundy` is defined by every preset AND mapped to
 * `--c-accent` by `body.palette-custom` — one hook that covers both.
 *
 * **26 is a measured ceiling, not a taste.** White text over the scrim on a
 * pure white photograph — the worst case there is — holds **4.56:1 at the
 * weakest theme (Ochre)**, above the 4.5:1 floor, and every other theme is
 * higher. At 30% Ochre falls to 4.45 and the floor breaks, so 26 is where
 * this stops. On a dark photograph every theme is about 20:1.
 *
 * **The plateau is 28%-74%, widened from 38%-66%.** `.hero` centres
 * `.hero-content`, so the monogram, eyebrow, names and date sit roughly 30%
 * to 70% down the section — outside the old full-alpha band at both ends,
 * where the measured contrast fell to 3.91:1. Widening the plateau is what
 * makes the floor above true of the text rather than of a band next to it.
 * The peak alpha, the 0.62 top and the 0.72 foot are ADR 0023's and are
 * untouched.
 */
.hero--photo::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  /* A percentage rather than ADR 0023's 0-to-1 number, because `color-mix`
     takes a percentage. `--hero-scrim` is unchanged: still 0 to 100, still
     what the editor's panel writes. */
  --scrim-a: calc(var(--hero-scrim, 58) * 1%);
  --scrim-ink: color-mix(in srgb, var(--burgundy, #000) 26%, #000);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--scrim-ink) calc(var(--scrim-a) * 0.62), transparent) 0%,
    color-mix(in srgb, var(--scrim-ink) var(--scrim-a), transparent) 28%,
    color-mix(in srgb, var(--scrim-ink) var(--scrim-a), transparent) 74%,
    color-mix(in srgb, var(--scrim-ink) calc(var(--scrim-a) * 0.72), transparent) 100%);
}
/* The scrim is a positioned layer at z-index 1, so everything that is meant
   to sit over the photograph has to say so. The garland and the frame come
   after it in the markup and match its index, which puts them above it; the
   content is above both. Before the scrim had an index at all these three
   stacked by document order and it happened to work -- it does not happen to
   work once the photograph below needs an index of its own. */
.hero--photo .hero-content { position: relative; z-index: 2; }
.hero--photo .hero-orn,
.hero--photo .hero-frame { z-index: 1; }

/* The crosshair, the focal-point handle and the `is-focalling` rules USED
   TO BE HERE, for a drag on the hero photograph in the editor's preview.
   Gone with that drag. ADR 0047's amendment: the hero is cropped by the same
   component as every other photograph now, so it has no gesture of its own
   to style. */
.hero--photo .hero-names .name,
.hero--photo .hero-eyebrow,
.hero--photo .hero-monogram,
.hero--photo .hero-next-name,
.hero--photo .hero-date,
.hero--photo .hero-venue,
.hero--photo .hero-tagline,
.hero--photo .countdown-value,
.hero--photo .countdown-label { color: #fff; }

/* ---- typography pairings ----
   The pairing rides on <body> so a theme and a typeface are independent
   choices: any of three palettes with any of three pairings.

   None of the Latin faces here is actually fetched: there is no @import and
   doc() only links app.css, whose import carries Fraunces and Mukta. So they
   resolve through the fallbacks, which is why nothing blocks painting.

   The Devanagari faces are the exception now that Hindi is more than a
   toggle: a Hindi site links Tiro and Mukta from the document, and the rules
   that use them are under HINDI at the end of this file. */
body.font-classic { --font-display: 'Cormorant Garamond', Georgia, serif; --font-body: 'Inter', -apple-system, sans-serif; }
body.font-modern  { --font-display: 'Inter', -apple-system, sans-serif;   --font-body: 'Inter', -apple-system, sans-serif; letter-spacing: -0.01em; }
body.font-script  { --font-display: 'Tiro Devanagari Sanskrit', 'Cormorant Garamond', serif; --font-body: 'Inter', -apple-system, sans-serif; }

/* ---- the garland across the top of the card ----
   A band, not a background: it sits over the card's own treatment so a
   gradient or a photograph still shows beneath it. Fixed height so a long
   name never pushes it off, and it is decorative so it is aria-hidden at
   the markup. */
/* `position: relative` matters: .hero is only positioned in the photo
   variant, so without it the band escapes to the nearest positioned ancestor.
   The 72px offset clears the nav, which floats transparently over the hero —
   marigolds behind the word EVENTS is busy rather than festive. */
.hero--orn { position: relative; padding-top: 170px; }
.hero-orn {
  position: absolute; top: 72px; left: 0; right: 0; height: 108px;
  background-image: var(--orn); background-size: auto 100%;
  background-repeat: repeat-x; background-position: top center;
  pointer-events: none;
}
/* The artwork ships as transparent PNG8. The first attempt blended a JPEG
   with mix-blend-mode, which only drops white, and these grounds are sage
   and blush — so the band stayed. Keying the ground out, cropping to the ink
   and quantising to 64 colours took six ornaments from 1.4MB to 40KB. */
@media (max-width: 640px) { .hero--orn { padding-top: 124px; } .hero-orn { top: 58px; height: 72px; } }

/* ---- the music control ---------------------------------------------- *
   Fixed, small, and out of the way. It is the only moving part on a guest's
   page and it does nothing until tapped — ADR 0008. */
.ts-music { position: fixed; left: 16px; bottom: 16px; z-index: 40; }
.ts-music__btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(20,20,20,.58); color: #fff;
  font: inherit; font-size: 12.5px; letter-spacing: .02em;
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  max-width: min(68vw, 280px);
}
.ts-music__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A triangle while paused, two bars while playing. Borders rather than an
   SVG, so the control costs no extra request. */
.ts-music__ico {
  width: 0; height: 0; flex: none;
  border-left: 9px solid currentColor;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  margin-left: 1px;
}
.ts-music.is-on .ts-music__ico {
  width: 9px; height: 12px; border: 0; margin-left: 0;
  background: linear-gradient(to right, currentColor 0 3px, transparent 3px 6px, currentColor 6px 9px);
}
.ts-music__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) { .ts-music { left: 12px; bottom: 12px; } }

/* ---- motion, opt-in -------------------------------------------------- *
   Nothing moves unless the couple switched it on (`body.motion`), and
   nothing moves for anyone who asked their system not to. Both gates, not
   one: the preference is the stronger claim and overrides the choice. */
.motion .hero-orn { animation: toran-sway 9s ease-in-out infinite; transform-origin: 50% 0; }
.motion .hero-monogram { animation: toran-rise 1.1s ease-out both; }
.motion .hero-names { animation: toran-rise 1.1s .12s ease-out both; }
.motion .hero-tagline { animation: toran-rise 1.1s .22s ease-out both; }
.motion .hero-divider .diamond { animation: toran-glow 4.5s ease-in-out infinite; }

@keyframes toran-sway {
  0%, 100% { transform: rotate(-.5deg) translateY(0); }
  50%      { transform: rotate(.5deg) translateY(2px); }
}
@keyframes toran-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes toran-glow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
  .motion .hero-orn, .motion .hero-monogram, .motion .hero-names,
  .motion .hero-tagline, .motion .hero-divider .diamond { animation: none; }
}

/* A radio pair on the reply form: the room question, and any yes/no question
   the couple added. Radios rather than a checkbox because an unchecked
   checkbox and an unanswered question look identical on the wire, and "has
   not said" is a real answer — a guest who skipped the bus question has not
   said they are making their own way. */
.rsvp-pick { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.rsvp-pick__o {
  display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; font-size: 15px; letter-spacing: 0; text-transform: none;
}
.rsvp-pick__o input { width: 17px; height: 17px; accent-color: var(--gold); flex: none; }

/* What just happened, said on the reply form.
   `?saved=1` has been written since the first build and nothing ever read it:
   a guest pressed Yes, the page reloaded, and looked identical. That is
   survivable for somebody who already knows they are on the list and not for
   a stranger who has just typed their name and number in. */
.rsvp-said {
  margin: 0 0 20px; padding: 13px 16px; border-radius: 10px;
  font-size: 15px; line-height: 1.55; text-align: left;
}
.rsvp-said--ok {
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  color: var(--charcoal);
}
.rsvp-said--no {
  background: color-mix(in srgb, #B3261E 9%, transparent);
  border: 1px solid color-mix(in srgb, #B3261E 34%, transparent);
  color: #B3261E;
}
/* The hint under the ceremony radios on the open form. */
.rsvp-note { margin: 10px 0 0; font-size: 13.5px; opacity: .72; }

/* A venue whose stored map does not survive validation in `safeEmbedUrl`:
   the text has nothing to sit beside, so it gets the whole row rather than
   half of one. See the venue section in src/routes/tenant.ts. */
.venue-grid--nomap { grid-template-columns: 1fr; }

/* ---- how large the venue map is drawn (6 Nov 2026) ----
   Pulkit: "rn its big". It was a fixed 4:5 in an even two-column grid, which
   is right for one venue on a phone and overbearing for three on a laptop.

   The size is on the grid, not on the map, because a smaller map has to give
   its column back to the address beside it — shrinking the box alone leaves
   the same hole with a smaller picture in it. `large` is what every site
   rendered before there was a choice, so nothing already live moves. */
/* The column rules are behind `min-width: 901px` deliberately. `.venue-grid`
   stacks to one column under `max-width: 900px` earlier in this file, and
   these are class selectors appended after it — without the guard they would
   outrank that rule and hold the venue in two columns on a phone, which is
   the kind of thing the append-only convention makes easy to do by accident
   and hard to notice. */
@media (min-width: 901px) {
  .venue-grid--map-large { grid-template-columns: 1fr 1fr; }
  .venue-grid--map-medium { grid-template-columns: 1fr 0.8fr; gap: 48px; }
  .venue-grid--map-small { grid-template-columns: 1fr 0.5fr; gap: 40px; }
}

.venue-grid--map-large .venue-map { aspect-ratio: 4 / 5; }
.venue-grid--map-medium .venue-map { aspect-ratio: 4 / 3; }
.venue-grid--map-small .venue-map { aspect-ratio: 3 / 2; }

/* Stacked, the map is full width whatever the setting, so the choice has to
   mean height instead — a 4:5 map on a phone pushes the next ceremony a
   whole screen down. */
@media (max-width: 900px) {
  .venue-grid--map-medium .venue-map { aspect-ratio: 16 / 10; }
  .venue-grid--map-small .venue-map { aspect-ratio: 16 / 9; }
}

/* ============================================================
   HINDI
   ============================================================

   The language control used to swap one typeface and nothing else. Two rules
   lived down here, they named `--font-devanagari`, nothing ever fetched that
   face, and so switching a site to Hindi changed the shape of two headings on
   a device that happened to have a Devanagari serif and changed nothing at
   all anywhere else. The strings themselves are in src/i18n/chrome.json; this
   is what the page does with them.

   `html[lang="hi"]` is the server's doing (doc() in views/layout.ts) and
   `body.lang-*` is the editor's, which repaints the preview by swapping a
   body class rather than reloading. Both have to work, so every rule below
   is written against the body class — the one the editor can reach — and the
   server sets both. */

/* The faces. Tiro for display, Mukta for body: both are linked from the
   document only when the site is in Hindi (see DEVANAGARI_FONTS in
   routes/tenant.ts), so an English site still fetches neither. */
body.lang-hi, body.lang-both {
  --font-devanagari: 'Tiro Devanagari Sanskrit', 'Noto Serif Devanagari', serif;
  --font-deva-body: 'Mukta', 'Noto Sans Devanagari', system-ui, sans-serif;
}

/* Everything, not two headings. A Devanagari page set in Inter falls back
   per-glyph, which gives a line of Hindi in one face and the couple's Latin
   name in another — the exact mismatch the first attempt left behind. */
body.lang-hi, body.lang-both {
  font-family: var(--font-deva-body);
}
body.lang-hi .hero-names, body.lang-both .hero-names,
body.lang-hi .hero-next-name, body.lang-both .hero-next-name,
body.lang-hi .section-title, body.lang-both .section-title,
body.lang-hi .story-content h2, body.lang-both .story-content h2,
body.lang-hi .profile-name, body.lang-both .profile-name,
body.lang-hi .event-name, body.lang-both .event-name,
body.lang-hi .venue-info h3, body.lang-both .venue-info h3 {
  font-family: var(--font-devanagari);
  font-style: normal;
}

/* The same treatment for the editor's preview, which renders our words as
   plain text rather than inside a `.hi` span (see `bare` in i18n/index.ts).
   These are every slot the editor makes editable, by name. */
body.lang-hi .section-eyebrow,
body.lang-hi .hero-eyebrow,
body.lang-hi .hero-next-label,
body.lang-hi .countdown-label,
body.lang-hi .footer-count-label-small,
body.lang-hi .venue-detail-row .label,
body.lang-hi .section-subtitle,
body.lang-hi .footer-tag,
body.lang-hi .nav-menu a {
  text-transform: none;
  letter-spacing: normal;
}

/* ---- Both: Hindi leads, English follows ----

   Not everything twice. Two full copies of every heading would be ugly and
   two copies of every form label would be unusable, so the pairing has two
   shapes and some strings are not paired at all — the reasoning is on
   `Chrome` in src/i18n/index.ts, which is also the one place to change it.

   A block pair stacks: the Hindi line, then the English under it, smaller and
   lighter, so it reads as a designed bilingual heading rather than as
   duplication. */
.bi--block { display: block; }
.bi--block .bi__hi { display: block; }
.bi--block .bi__en {
  display: block;
  margin-top: 0.35em;
  font-family: var(--font-body);
  font-size: 0.6em;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.62;
}

/* An inline pair stays on one line: a stacked pair inside a form row or on a
   button wrecks the row. The separator is drawn rather than typed so it never
   gets selected, copied or read aloud. */
.bi--inline .bi__en {
  font-family: var(--font-body);
  font-size: 0.82em;
  letter-spacing: 0.06em;
  text-transform: none;
  opacity: 0.6;
}
.bi--inline .bi__en::before {
  content: '';
  display: inline-block;
  width: 1px; height: 0.78em;
  margin: 0 0.5em -0.08em;
  background: currentColor;
  opacity: 0.45;
}

/* A subtitle is already a full sentence in a quiet grey; stacking a second
   sentence under it in uppercase makes it a wall. It keeps sentence case and
   its own size. */
.section-subtitle .bi--block .bi__en,
.rsvp-note .bi--block .bi__en,
.rsvp-said .bi--block .bi__en,
.gallery-note .bi--block .bi__en {
  font-size: 0.92em;
  letter-spacing: 0.01em;
  text-transform: none;
  opacity: 0.7;
}

/* On a button, the English half shrinks further rather than wrapping the
   button onto two lines. */
.btn-primary .bi--inline .bi__en,
.chip .bi--inline .bi__en,
.venue-cta .bi--inline .bi__en { font-size: 0.74em; }

/* A countdown cell is 70-odd pixels wide. Two units side by side do not fit,
   so there the pair stacks even though it is an inline one. */
.countdown-label .bi--inline,
.footer-count-label-small .bi--inline { display: block; line-height: 1.25; }
.countdown-label .bi--inline .bi__hi,
.countdown-label .bi--inline .bi__en,
.footer-count-label-small .bi--inline .bi__hi,
.footer-count-label-small .bi--inline .bi__en { display: block; }
.countdown-label .bi--inline .bi__en::before,
.footer-count-label-small .bi--inline .bi__en::before { display: none; }

/* The header has room for one language. Hindi is the one that leads, and the
   English label is already the anchor's href target and the footer's link. */
.nav-menu .bi__en, .footer-links .bi__en { display: none; }
.nav-menu .bi__hi, .footer-links .bi__hi { display: inline; }

/* Our Hindi, wherever it is. The Latin design tracks and small-caps its
   eyebrows, labels and buttons; Devanagari has no capitals to make and
   letter-spacing pulls a matra off the consonant it belongs to, so both come
   off — and only off our words. A couple's own venue name is still their text
   in their design. */
.hi, .bi__hi { letter-spacing: normal; text-transform: none; }

/* ---- the reply form on a phone (6 Nov 2026) ----------------------------
   This is the most-used screen this product has. Almost every guest who ever
   touches Toran touches this form, on a phone, once. It was the narrowest
   thing in the product.

   Measured at 375: `YOUR NAME` and `PHONE` were **114.5px each** — about ten
   characters — and both placeholders ("So they know who replied", "For the
   last-minute changes") were cut mid-word.

   **Two separate reasons, and the second is the larger one.**

   One: `.form-row` is a two-column grid. The 900px block already takes it to
   one column, and then the 640px block below puts it **back** to
   `1fr 1fr !important` under a comment reading "Compact RSVP form on mobile
   — 2-col rows". That is right for a pair of short controls and wrong for
   the two fields every guest must type into: the narrower the screen got,
   the more the form insisted on splitting it. One column below 640.

   Two: **three nested paddings stacked to 136px of gutter on a 375px
   screen** — `section.rsvp` 20+20, `.container` 32+32, `.rsvp-container`
   16+16 — so 36% of the phone was spent before a field started. The middle
   one buys nothing here: the section already holds the form off the edge and
   the form holds its own content off its border. Drop only that one, only
   inside the RSVP section, only on a phone.

   Together: the name and phone fields go from 115px to about 301px at 375,
   and no placeholder truncates. Nothing above 640px changes — this is the
   same breakpoint the form already switches at. */
@media (max-width: 640px) {
  .rsvp .container { padding-left: 0; padding-right: 0; }
  .form-row { grid-template-columns: 1fr !important; }
}
/* ============ THE SCROLL CUE, AND THE SECONDS COLUMN ============
   Appended, so read the warning that `.venue-grid--map-*` earned above: a
   rule down here outranks nothing by specificity but wins every tie by
   order, and the one below 900px is where that bites. Neither rule here is
   a tie with anything and neither is inside a width that matters: the first
   turns off a link decoration nothing else was claiming, and the second
   restates a default the markup already relies on. Nothing here touches a
   stacking rule, so nothing here needs the guard -- which is worth saying,
   because the next rule appended to this file probably will. */

/* The cue was an empty `<a>`: `.scroll-indicator` and `.scroll-indicator
   span` have both been in this file since it was written, styling nothing,
   and the element computed to 0x0. It has the word and the arrow now, and
   these two lines are everything that was missing once it did.

   **The underline is the real fix.** The original is a `<div>`; this is an
   `<a href="#story">`, so it takes the browser's link decoration. Every
   other anchor on this page turns it off by name -- there is no blanket
   `a { text-decoration: none }` in this file -- and this one never had to,
   because it had nothing to underline. Give it two words and the cue
   arrives with a line under both.

   **The sizes are deliberately not touched.** `.scroll-indicator` declares
   `font-size: 10px` and `letter-spacing: 0.3em`, and neither reaches
   anything: `.scroll-indicator span` sets 20px and `letter-spacing: 0` on
   every child, and both children are spans. So the cue is a 20px uppercase
   word over a 20px arrow, which looks larger than the parent rule reads --
   and it is exactly what the original renders, measured rather than
   assumed. This is the hero Pulkit asked for, so it is the one that wins
   over the stylesheet's own description of itself. Left as a note instead
   of a change, because "fix" here would mean altering a block copied from
   the original verbatim to make Toran's cue differ from the thing it is
   meant to match. */
.scroll-indicator { text-decoration: none; }

/* The seconds cell is in the markup on every site and carries `hidden` when
   it is switched off, so that the server can write its translated label once
   and the editor only has to toggle a boolean.

   `hidden` is a presentation hint and loses to any `display` declaration
   that matches the element, silently. `.countdown-item` and
   `.footer-count-item` set no `display` of their own today, so the attribute
   works -- but they are flex children, and a later rule giving either of
   them a `display` would switch a couple's seconds column back on without
   anyone touching the setting. Stated rather than relied on.

   There is deliberately no rule suppressing the column stroke beside a
   hidden cell. `.countdown-item + .countdown-item` draws it on the left, and
   Seconds is the last unit, so hiding it removes its own stroke and leaves
   nothing dangling. A rule for the middle-cell case would be CSS for an
   arrangement nothing produces. */
.countdown-item[hidden], .footer-count-item[hidden] { display: none; }

/* ===========================================================================
   MODULES (ADR 0009)

   A module is a thing the couple added to their page -- a text, a
   photograph, words beside a picture, a divider -- as opposed to a section,
   which is the wedding's own structure.

   The constraint these rules exist to keep: **a module adds no visual
   vocabulary.** ADR 0009 gives a module no padding, margin, font, colour or
   alignment of its own, at most a choice between two theme grounds, because
   "what we have is what I want" is the whole brief. So every value below is
   one this stylesheet already uses for a section: a module's heading reuses
   `.section-title`, its paragraphs match `.story-content p` exactly, its
   two-column arrangement reuses `.story-grid`, and its divider is
   `.section-divider`. Nothing here introduces a size, a face or a colour
   that a section does not already have.

   That is also why there is no rule for per-module spacing, and why a
   module's background is two named grounds rather than a colour input. The
   FERMÀT funnel this was read against is what a page looks like a month
   after authors get a font-size control.
   =========================================================================== */

/* A module is a quieter band than a section. Sections are 120px at each end;
   four modules in a row at that height would be a page of gaps. */
section.mod { padding: 72px 20px; }
.mod--plain { background: var(--off-white); }
.mod--tinted { background: var(--ivory); }

/* Two modules on the same ground are one band, not two stacked ones. */
section.mod.mod--plain + section.mod.mod--plain,
section.mod.mod--tinted + section.mod.mod--tinted { padding-top: 0; }

/* A module's heading is `.section-title`, which carries `margin-bottom: 20px`
   for a section that follows it with a subtitle. A module has none, so the
   gap belongs to the body instead. */
.mod .section-title { margin-bottom: 36px; }

.mod-text { max-width: 680px; margin: 0 auto; }
.mod-text__p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal-soft);
  margin-bottom: 20px;
  line-height: 1.9;
  font-weight: 300;
}
.mod-text__p:last-child { margin-bottom: 0; }

/* A verse is the one place a line break a couple typed is kept as a line
   break: `pre-line`, edited in the panel, because canvas editing collapses
   whitespace. It is also how emphasis is done without bold existing. */
.mod-text--verse { text-align: center; }
.mod-text--verse .mod-text__p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.6;
  color: var(--burgundy);
  white-space: pre-line;
}

/* Words and a picture: `.story-grid`, which Our story already uses, so the
   columns, the gap and the stacking at narrow widths are the same. */
.mod-ti__p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--charcoal-soft);
  margin-bottom: 20px;
  line-height: 1.9;
  font-weight: 300;
}
.mod-ti__p:last-child { margin-bottom: 0; }
.mod-ti--right .story-image { order: 2; }
/* With no photograph chosen yet it is a single column, not a column and a
   hole. The editor draws an empty module so the words can be typed into it. */
.mod-ti:not(:has(.story-image)) { grid-template-columns: 1fr; max-width: 680px; }

.mod-img { margin: 0 auto; max-width: 900px; text-align: center; }
.mod-img--wide { max-width: none; }
.mod-img__i { width: 100%; height: auto; display: block; }
.mod-img figcaption {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  margin-top: 14px;
}

/* The ornament on its own. `.section-divider` carries `margin: 0 auto 60px`
   for the heading it normally sits under; on its own the module's padding is
   the spacing, so the bottom margin comes off. */
.mod--divider { padding: 8px 20px; background: var(--off-white); }
.mod--divider .section-divider { margin: 0 auto; }

/* ---- Garland, Countdown and Video. (11 Nov 2026.) -------------------------

   Same constraint as everything above: no new visual vocabulary. The garland
   is the hero band's own technique at the hero band's own height; the
   countdown is `.countdown` exactly as the card draws it; the video's cover
   is sized like `.mod-img` and its caption is `.mod-img figcaption`. Three
   new modules, no new face, size or colour.
   -------------------------------------------------------------------------- */

/* The garland: the drawn ornament, repeated across the page, in the flow.

   A MASK, not a background image -- which is the whole reason one SVG serves
   three themes and any palette a couple mixes, and the reason the module is
   offered for the drawn set only: a raster ornament has its colour in its
   pixels and needs one file per theme, and a module's render function is not
   told the theme.

   `currentColor` at 38% is the hero band's own strength, and it is quiet on
   purpose: a row of silhouettes that competes with the couple's names is the
   mistake the card's band already made once. The band is `aria-hidden` and
   has no `.reveal`: a rule between two things that fades in is a rule
   drawing attention to itself, and a painter-made `.reveal` that forgets
   `visible` is invisible for ever. */
section.mod.mod--garland { padding: 36px 0; color: var(--gold); }
.mod-garland {
  height: 88px;
  /* `--orn-ink` and `--orn-alpha` are the couple's choice, written inline by
     the renderer and by the editor's painter -- the same two properties, set
     by the same two functions, that the card's `.hero-orn--drawn` reads
     above. (Item 14, 12 Nov 2026: this module had an ornament and a
     background and no colour at all.)

     Both are defaults rather than values, so a garland module saved before
     this renders to exactly what it rendered to: `currentColor` is the gold
     `section.mod--garland` sets, and 38% is the weight it was designed at. */
  background-color: color-mix(in srgb, var(--orn-ink, currentColor) var(--orn-alpha, 38%), transparent);
  -webkit-mask-image: var(--orn);
  mask-image: var(--orn);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  -webkit-mask-position: top center;
  mask-position: top center;
  pointer-events: none;
}
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .mod-garland { background-color: var(--orn-ink, currentColor); opacity: .38; }
}
/* A full-colour artwork is a picture, not a silhouette: no mask, no tint, no
   weight. The same split the hero makes between `.hero-orn--drawn` and
   `.hero-orn`, written here because a module's band is its own element.
   (12 Nov 2026, the drawn artwork family.)

   It overrides the mask properties rather than relying on cascade order,
   because the two rules sit in different parts of this file and a reorder
   would otherwise leave an artwork being masked by its own image. */
.mod-garland--art {
  background-color: transparent;
  -webkit-mask-image: none; mask-image: none;
  background-image: var(--orn);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: top center;
  opacity: 1;
}

/* The countdown, away from the card. `.countdown` and its three children are
   the card's own rules, so the numbers are the same face at the same size.
   Only the gap under a heading and the line under the board are new, and
   both are values a section already uses. */
.mod .mod-timer { margin: 0 auto; }
.mod-timer__note,
.mod-timer__none {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin-top: 22px;
}

/* The video, before anybody taps it.

   What is on the page is the couple's own cover photograph, or the theme's
   ground, with a play mark drawn in CSS. **No request reaches YouTube or
   Vimeo until the tap** -- not for the player, not for a thumbnail, not for
   a font. That is why the mark is a border and a triangle rather than a
   service's own button.

   `aspect-ratio` so the box is the shape the film will be and the page does
   not jump when the iframe arrives in its place. */
.mod-video {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--ivory);
  overflow: hidden;
}
.mod-video__tap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  color: var(--ivory);
}
.mod-video__cover,
.mod-video__ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mod-video__ground { background: var(--burgundy); }
/* A scrim, so the play mark and the words are legible on any photograph a
   couple chooses, including a bright one. */
.mod-video__tap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(32, 20, 16, .34);
  transition: background .18s ease;
}
.mod-video__tap:hover::after { background: rgba(32, 20, 16, .46); }
.mod-video__tap:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.mod-video__play,
.mod-video__say { position: relative; z-index: 1; }
.mod-video__play {
  width: 76px;
  height: 76px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: block;
}
/* The triangle, centred by the same optical nudge a play mark always needs:
   a triangle's visual centre is left of its bounding box's. */
.mod-video__play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-44%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--gold);
}
.mod-video__say {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
/* Once a guest has tapped, the iframe is the box. */
.mod-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mod-video__from,
.mod-video__caption {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}
/* Who the film plays from, said quietly but said. A tap sends a guest's
   address to a third party and this page's whole pitch is that it is the
   couple's own, so the one thing we owe a reader is knowing which tap does
   that. */
.mod-video__from { font-style: normal; font-size: 12px; letter-spacing: .04em; }
/* ---- the film's own thumbnail behind the mark (12 Nov 2026, ADR 0020) ----

   Pulkit: "Show the YouTube thumbnail in the back, a little dark, so the
   'Play the film' overlay comes on top of it."

   The structure above already does the stacking -- image, then the `::after`
   scrim, then the mark and the words at `z-index: 1`. What a video
   thumbnail needs on top of a couple's own cover is more darkening and one
   thing darkening cannot buy.

   **No scrim makes the gold mark legible, and that is arithmetic rather than
   taste.** Gold is #B8935A, which sits in the MIDDLE of the range, so
   darkening the picture moves it towards the mark before it moves away.
   Measured against the 90th-percentile pixel of the area the mark actually
   occupies, on YouTube's own maxres thumbnail for aqz-KE-bpKQ:

     alpha  .34  .42  .48  .52  .58  .64
     gold  1.26 1.02 1.17 1.32 1.59 1.95     <- never reaches 3:1
     ivory 2.10 2.61 3.10 3.49 4.22 5.17

   It bottoms out at 1.02:1 -- invisible -- and climbs so slowly that the
   picture is mud long before the mark is readable. So the mark gets its own
   ground: a dark disc inside the circle, which puts the gold on a colour we
   choose instead of one YouTube chose. That is also what every player does,
   and it is what makes the mark read as a button.

   With the disc, the scrim only has to serve the words. .52 gives ivory
   3.49:1 on that hostile thumbnail and 5.82:1 on a dim one, and the shadow
   below covers the gap for 11px text without darkening the picture further
   -- which is the half of "a little dark" that matters. */
.mod-video__play--onphoto { background: rgba(26, 16, 13, .55); }
/* The words, on a picture rather than on our own flat colour. A shadow, not
   more scrim: it is invisible where the picture is already dark and it costs
   the bright half of the thumbnail nothing. */
.mod-video__say--onphoto {
  text-shadow: 0 1px 3px rgba(20, 12, 10, .85), 0 0 10px rgba(20, 12, 10, .55);
}
/* The darkening under a thumbnail: centred, not flat.

   A flat scrim at .52 was tried and looked at, which is the only way this
   was ever going to be settled. The mark was fine on its disc and **"PLAY
   THE FILM" dissolved into the bunny's white face** -- the arithmetic above
   had said so (ivory 3.49:1 against that thumbnail's bright patch, where
   11px uppercase wants 4.5) and it was still worth seeing. Flat .64 fixes
   the words and makes the picture mud, which loses the feature: Pulkit asked
   for "a little dark", not for a dark rectangle with a photograph rumoured
   to be behind it.

   So the darkening goes where the overlay is. A soft ellipse over a light
   base: the corners stay at .38 and the picture reads, the middle composites
   to about .64 -- 1 - (1 - .38)(1 - .42) -- which is where the words are.
   Nothing is darkened that does not have text on it.

   A class the server writes rather than `:has(.mod-video__cover--thumb)`.
   `:has` works in every browser that matters today, and it would still make
   the stylesheet depend on a selector feature to say something the renderer
   already knows -- on the one page that has to render on whatever phone a
   guest owns. */
.mod-video__tap--onphoto::after {
  background:
    radial-gradient(ellipse 62% 72% at 50% 50%,
      rgba(20, 12, 10, .42) 0%, rgba(20, 12, 10, .26) 55%, rgba(20, 12, 10, 0) 78%),
    linear-gradient(rgba(32, 20, 16, .38), rgba(32, 20, 16, .38));
}
.mod-video__tap--onphoto:hover::after {
  background:
    radial-gradient(ellipse 62% 72% at 50% 50%,
      rgba(20, 12, 10, .48) 0%, rgba(20, 12, 10, .30) 55%, rgba(20, 12, 10, 0) 78%),
    linear-gradient(rgba(32, 20, 16, .46), rgba(32, 20, 16, .46));
}
@media (prefers-reduced-motion: reduce) { .mod-video__tap::after { transition: none; } }

@media (max-width: 640px) {
  section.mod { padding: 56px 20px; }
  /* Stacked, the picture goes above the words whichever side it was on:
     `order: 2` on one column of a single-column grid would put the
     photograph after the text on one module and before it on the next, for
     no reason a reader could see. */
  .mod-ti--right .story-image { order: 0; }
  /* The same proportion the card's band takes on a phone. */
  section.mod.mod--garland { padding: 24px 0; }
  .mod-garland { height: 58px; }
  .mod-video__play { width: 58px; height: 58px; }
  .mod-video__play::before { border-width: 9px 0 9px 14px; }
}

/* Where the music pill sits. (6 Nov 2026.)

   It was fixed bottom-left, and on Pulkit's own card it covered the hero
   wordmark. Nine positions now, drawn in the editor as the 3x3 grid of dots
   he asked for.

   `bottom-left` repeats what `.ts-music` already does rather than relying on
   the base rule: a site saved before this has no `position`, the renderer
   writes `ts-music--bottom-left` for it, and the two have to agree exactly or
   every existing site moves a few pixels on deploy.

   The centred ones use translate rather than a flex parent because `.ts-music`
   is `position: fixed` and has no parent to lay it out. `mid-*` and `centre`
   need both axes, so the transform composes two translations. */
.ts-music--bottom-left   { top: auto; bottom: 16px; left: 16px; right: auto; transform: none; }
.ts-music--bottom-centre { top: auto; bottom: 16px; left: 50%; right: auto; transform: translateX(-50%); }
.ts-music--bottom-right  { top: auto; bottom: 16px; left: auto; right: 16px; transform: none; }
.ts-music--top-left      { top: 16px; bottom: auto; left: 16px; right: auto; transform: none; }
.ts-music--top-centre    { top: 16px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%); }
.ts-music--top-right     { top: 16px; bottom: auto; left: auto; right: 16px; transform: none; }
.ts-music--mid-left      { top: 50%; bottom: auto; left: 16px; right: auto; transform: translateY(-50%); }
.ts-music--mid-right     { top: 50%; bottom: auto; left: auto; right: 16px; transform: translateY(-50%); }
.ts-music--centre        { top: 50%; bottom: auto; left: 50%; right: auto; transform: translate(-50%, -50%); }

/* The phone keeps the same nine, tighter to the edge. The base rule already
   moves `left`/`bottom` to 12px at this width; these restate it per position
   so a top-right pill is 12px from both edges and not 12 from one and 16
   from the other. */
@media (max-width: 600px) {
  .ts-music--bottom-left   { bottom: 12px; left: 12px; }
  .ts-music--bottom-centre { bottom: 12px; }
  .ts-music--bottom-right  { bottom: 12px; right: 12px; }
  .ts-music--top-left      { top: 12px; left: 12px; }
  .ts-music--top-centre    { top: 12px; }
  .ts-music--top-right     { top: 12px; right: 12px; }
  .ts-music--mid-left      { left: 12px; }
  .ts-music--mid-right     { right: 12px; }
}

/* A picture in the header instead of the typed monogram. (6 Nov 2026.)

   Height-capped rather than width-capped: the header is a fixed-height bar
   and a tall logo would push it open, while a wide one simply takes the room
   it needs beside the menu. 34px is the cap height of `.nav-brand`'s italic
   display face, so a monogram and a wordmark sit on the same line as each
   other across a couple changing their mind.

   `object-fit: contain` and `width: auto` because a monogram is usually
   square and a wordmark is not, and cropping somebody's logo to fit a box is
   not a thing to do quietly. */
.nav-brandimg { display: inline-flex; align-items: center; line-height: 0; }
.nav-brandimg img {
  height: 34px; width: auto; max-width: min(52vw, 320px);
  object-fit: contain; display: block;
}
@media (max-width: 600px) { .nav-brandimg img { height: 28px; } }

/* The guest's language switcher. (6 Nov 2026.)

   Modelled on the pill from heypulkits/wedding-site, which is what Pulkit
   asked for: a rounded outline, a flag or letterform, and the language code.
   It sits in the header bar beside the menu button rather than floating over
   the page, because a floating control is one more thing to collide with the
   music pill, and that collision is item 12 on the same list.

   Quiet by default and only as loud as the nav links beside it: a guest who
   does not need it should not have their eye pulled to it on every scroll. */
.nav-lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; margin-right: 4px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 999px;
  font-size: 12px; letter-spacing: .08em; line-height: 1;
  text-decoration: none; color: inherit; white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease;
}
.nav-lang:hover {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 7%, transparent);
}
.nav-lang:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* The code is the whole label. (12 Nov 2026: the flag and the `अ` beside it
   are gone -- see the note in tenant.ts.) It keeps a class of its own so the
   phone rule below can shrink the words rather than the pill's own
   `font-size`, which used to be set to 0 to hide a label that no longer has
   a mark to fall back to. */
.nav-lang__c { font-size: inherit; line-height: 1; }
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .nav-lang { border-color: currentColor; }
}
/* On a phone the header is the brand, this, and the hamburger. The pill
   tightens and the code goes down a point; it is never hidden, because the
   code is now the only thing in it. */
@media (max-width: 420px) {
  .nav-lang { padding: 5px 9px; gap: 4px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .nav-lang { transition: none; } }

/* The same pill as a <summary>, for the dropdown a `both` site gets.
   (11 Nov 2026.)

   A `both` site has three destinations -- Hindi, English, and the
   invitation as the couple composed it -- so the control there is the pill
   with a menu under it rather than a toggle. The pill itself is unchanged:
   `.nav-lang` goes on the summary, not on the <details>, because the
   <details> also wraps the open menu and a border around that is a box
   around a box.

   The disclosure triangle comes off and a caret goes on in its place. Not
   decoration: the triangle is drawn on the far side of the content in Safari
   and inline before it in Chrome, so the one thing a reader uses to tell a
   menu from a link would sit in a different place per browser. */
.langsw { position: relative; display: inline-flex; }
.langsw > summary { cursor: pointer; list-style: none; }
.langsw > summary::-webkit-details-marker { display: none; }
.langsw > summary::marker { content: ''; }
.nav-lang__caret {
  font-size: 9px; line-height: 1; opacity: .7;
  transition: transform .15s ease;
}
.langsw[open] > summary .nav-lang__caret { transform: rotate(180deg); }
.langsw[open] > summary { border-color: currentColor; }

/* The menu. Right-aligned under the pill, because the pill sits at the right
   end of the header and a left-aligned panel would hang off the screen on a
   phone.

   `z-index: 60` sits above the nav's own 50 and below the ornament border's
   70. The border is `pointer-events: none` and lives at the page edges, so
   the worst it can do is lay a strand of marigold over the panel's outer
   corner; taking the panel above it would instead put a menu over the page
   border on every open, which is the louder of the two. */
.langsw__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 6px;
  min-width: 164px;
  list-style: none;
  /* `--off-white` rather than `--cream`: every theme and every palette a
     couple mixes derives it as lighter than `--ivory`, which is the page, so
     the panel reads as raised over whatever ground it opens on. `--cream` is
     a shade darker than the page on all three presets and the panel read as
     a hole in it. Measured on the toran palette, where the two are #F7FAF7
     and #E2EBE2 over a #EEF3EE page. */
  background: var(--off-white, #fefcf8);
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .langsw__menu { border-color: rgba(184, 147, 90, .35); }
}
.langsw__menu li { margin: 0; }
.langsw__menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: inherit; text-decoration: none;
  font-size: 14px; letter-spacing: .02em; line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}
.langsw__menu a:hover,
.langsw__menu a:focus-visible {
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.langsw__menu a:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
/* The row you are already reading. A tick rather than a bolder weight: the
   three rows are in three different scripts and weight does not read as
   "this one" across them. */
.langsw__menu a[aria-current] { font-weight: 600; }
.langsw__menu a[aria-current]::after {
  content: '\2713';
  margin-left: auto; padding-left: 10px;
  font-weight: 400; opacity: .55;
}
/* The pair in the third row is a menu row, not a countdown cell: it stays on
   one line with its drawn separator, which is what `.bi--inline` does
   everywhere except where a 70px column forces a stack. */
.langsw__menu .bi--inline .bi__en { font-size: .82em; }
/* The caret keeps its size through the phone rule above, which takes the
   code down a point: shrinking the caret with it would leave the one thing a
   reader uses to tell a menu from a link too small to read as a caret. */
@media (max-width: 420px) {
  .langsw > summary { gap: 4px; }
  .nav-lang__caret { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .nav-lang__caret { transition: none; } }

/* The drawn ornament library, and the border. (6 Nov 2026.)

   A drawn ornament is a one-colour SVG used as a MASK, not as a background
   image. That is the whole reason one file serves three themes and any
   palette a couple mixes: the shape comes from the file, the colour comes
   from `background-color` underneath it. A background-image would have the
   colour baked in, which is what made the raster ornaments need one file per
   theme in the first place.

   The colour is the body ink at a low alpha rather than the accent: an
   ornament is the quietest thing on the card, and at full strength a row of
   62 silhouettes competes with the couple's names.

   `--orn-ink` is the couple's choice, set inline by the renderer and by the
   editor's painter, and it falls back to `currentColor` -- which is what
   every site live before 11 Nov 2026 is painted with, so an unset page is
   byte-for-byte the page it was.

   **The alpha was fixed, and is now a floor rather than a cage.** (Amended
   11 Nov 2026.) The paragraph that stood here argued that 38% is about what
   an ornament is *for* and so should survive the couple's choice of colour.
   That is right for a colour we chose for them -- Charcoal, Ink and Gold are
   roles in the palette and the alpha is part of what the role means, and
   they still get it. It is wrong the moment somebody types a hex: Pulkit set
   `#000000`, got grey, and read it as the picker not working. He was not
   wrong. A product that quietly serves 38% of what you typed is overruling
   you while looking broken.

   So `--orn-alpha` is an override and these three numbers are the defaults
   it falls back to -- 38% for the band, 34% for the border and the corners,
   each the weight its own composition was drawn at, which one stored number
   could never have expressed. The renderer writes the property only for a
   colour of the couple's own; see `ornamentInkAlpha` in src/lib/layout.ts.
   Every page published with a preset keeps the weight it has.

   The `@supports` fallback below keeps the fixed weight. A browser without
   `color-mix` is one that cannot do the blend at all, and `opacity` takes a
   number rather than a percentage, so honouring the control there would mean
   a second stored shape for the sake of a browser that is already seeing an
   approximation. */
.hero-orn--drawn {
  background-image: none;
  background-color: color-mix(in srgb, var(--orn-ink, currentColor) var(--orn-alpha, 38%), transparent);
  -webkit-mask-image: var(--orn);
  mask-image: var(--orn);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  -webkit-mask-position: top center;
  mask-position: top center;
}
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .hero-orn--drawn { background-color: var(--orn-ink, currentColor); opacity: .38; }
}

/* The border: the same tile around all four edges.

   Four elements would be four nodes to keep in step; this is one element with
   four mask layers, each repeating along its own edge and sized so the
   corners meet. The left and right edges use the same tile rotated, which
   only works because a silhouette has no up -- it is why the border is
   offered for the drawn set and not for the raster artwork.

   `position: fixed` so the frame stays around the window while the page
   scrolls, which is what "a border for the whole page" means to a reader. It
   is `pointer-events: none` throughout, so it never eats a tap. */
/* 100px, not 0 -- which is `.hero`'s own top padding, restated.
   `.hero` is `padding: 100px 20px 140px` and `min-height: 100vh`, so it
   grows with its content rather than clipping it: whatever is set here is
   literally where the first line of the card starts. `0` therefore started
   the card at y=0, under a nav that is fixed and about 74px tall, and the
   line it hid is the invocation -- which docs/16 section 1.1 argues is the
   most important line on an Indian wedding card, and which this theme puts
   there by default. Measured on /sample/haldi at 1440x900: the mantra's box
   was 59-88px, the nav's bottom edge 135px.
   The intent was to drop the *band's* extra 170px, and the band's padding is
   `.hero--orn`, a different class. This drops that and keeps the base. */
.hero--ornborder { padding-top: 100px; }
.hero-orn--border {
  position: fixed;
  inset: 0;
  top: 0; left: 0; right: 0; bottom: 0;
  height: auto;
  /* Above the sticky nav (50) and the music pill (40), below a dialog (200).

     The first pass put it at 3 and the top edge disappeared behind the nav
     bar, which makes a border with three sides. A frame that stops where the
     header starts is not what "around the whole page" means, and it is the
     one edge a reader looks at first. `pointer-events: none` throughout, so
     sitting over the nav costs the menu button nothing. */
  z-index: 70;
  pointer-events: none;
  background-color: color-mix(in srgb, var(--orn-ink, currentColor) var(--orn-alpha, 34%), transparent);
  --orn-w: 46px;
  -webkit-mask-image: var(--orn), var(--orn), var(--orn), var(--orn);
  mask-image: var(--orn), var(--orn), var(--orn), var(--orn);
  -webkit-mask-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  mask-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  -webkit-mask-size: auto var(--orn-w), auto var(--orn-w), var(--orn-w) auto, var(--orn-w) auto;
  mask-size: auto var(--orn-w), auto var(--orn-w), var(--orn-w) auto, var(--orn-w) auto;
  -webkit-mask-position: top left, bottom left, left top, right top;
  mask-position: top left, bottom left, left top, right top;
}
/* Bottom edge flipped, so the ornament hangs inwards from it rather than
   off the bottom of the window; the two side edges are the tile turned a
   quarter turn each way. Done with four stacked pseudo-free layers above
   rather than transforms, because transforming a mask layer is not something
   every engine agrees on -- these are plain repeats of the same file. */
@media (max-width: 600px) { .hero-orn--border { --orn-w: 30px; } }
@media (prefers-reduced-motion: reduce) { .hero-orn--border { animation: none; } }

/* ---- the corners -----------------------------------------------------
   Pulkit, 11 Nov 2026: *"add option just for corners on the page and let
   choose 2 top corner 2 bottom corner and 4 corners"*.

   The same technique as the border and deliberately the same element: fixed
   to the window, `z-index: 70` above the sticky nav, `pointer-events: none`,
   one node with a mask layer per corner. The only differences are
   `no-repeat` and how many layers there are -- two for a pair, four for all
   of them -- so a corner is a border that stopped repeating.

   `position: fixed` for the same reason the border is fixed: Pulkit said
   "corners on the page", and a reader looking at the corners of the window
   is what that means. Absolute to the hero would put them at the corners of
   the first screen and nowhere else, which on a long invitation is three
   quarters of the page with no ornament at all.

   Corners are drawn-only, the same refusal as the border: a corner motif has
   to sit in four orientations and a silhouette has no up, where a rotated
   photographic marigold is marigolds lying down.

   The tile is not flipped per corner, and that is a choice rather than an
   omission. The tiles are 120x60 with the string along the top and the
   motifs hanging off it, so every corner gets a strand hanging the way a
   strand hangs. Flipping the bottom pair would need a transform on one mask
   layer, which is the thing the border's note already says engines disagree
   about -- and a garland that hangs upward is not a thing anybody has seen.
   The border's bottom edge is unflipped for the same reason. */
/* The same correction, and the same reason. See `.hero--ornborder`. */
.hero--orncorners { padding-top: 100px; }
.hero-orn--corners {
  position: fixed;
  inset: 0;
  top: 0; left: 0; right: 0; bottom: 0;
  height: auto;
  z-index: 70;
  pointer-events: none;
  background-color: color-mix(in srgb, var(--orn-ink, currentColor) var(--orn-alpha, 34%), transparent);
  /* The height of one tile. 84px puts a 168px-wide strand in each corner --
     wide enough to read as an ornament, and at 375px two of them are 336px
     of a 375px row, so they very nearly meet and do not overlap. The mobile
     step below is what keeps that true with room to spare. */
  --orn-c: 84px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: auto var(--orn-c);
  mask-size: auto var(--orn-c);
}
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .hero-orn--corners { background-color: var(--orn-ink, currentColor); opacity: .34; }
}
.hero-orn--corners-top {
  -webkit-mask-image: var(--orn), var(--orn);
  mask-image: var(--orn), var(--orn);
  -webkit-mask-position: top left, top right;
  mask-position: top left, top right;
}
.hero-orn--corners-bottom {
  -webkit-mask-image: var(--orn), var(--orn);
  mask-image: var(--orn), var(--orn);
  -webkit-mask-position: bottom left, bottom right;
  mask-position: bottom left, bottom right;
}
.hero-orn--corners-all {
  -webkit-mask-image: var(--orn), var(--orn), var(--orn), var(--orn);
  mask-image: var(--orn), var(--orn), var(--orn), var(--orn);
  -webkit-mask-position: top left, top right, bottom left, bottom right;
  mask-position: top left, top right, bottom left, bottom right;
}
@media (max-width: 600px) { .hero-orn--corners { --orn-c: 52px; } }
@media (prefers-reduced-motion: reduce) { .hero-orn--corners { animation: none; } }

/* ---- how large the reply form is drawn (11 Nov 2026) ----

   Pulkit: *"give option to make the size of the form small big mid.. rn its
   big.. option to make it smaller size visually"*. The form, not the number
   of questions -- that is the tick list in the same panel.

   ## One number, not six controls

   "Size" is one scalar, `--rf-scale`, multiplying every piece of the card's
   geometry: its padding, the gap between fields, a field's own padding, the
   label, the textarea's floor and the Send button. A set of independent
   sliders would let a couple produce a card with 64px of padding around a
   9px field, which is not a smaller form, it is a broken one. One number
   keeps the proportions the design already has and only changes how much
   room it takes.

   `--rf-w` is separate because width does not scale like padding: a form at
   0.76 of 640px is 486px, which is narrower than the design wants for two
   fields side by side. It is set per size instead.

   ## `max-width` here, against the standing preference

   Eleven `max-width: 720px` caps were deliberately removed from `/app/*` on
   6 Nov, and this is not one of them. Those capped **a dashboard page** --
   a tool, where the window is the canvas and a cap wastes it. This caps a
   **form inside a designed invitation**, where the card has been centred in
   a 640px column since the first build; the cap is the layout, and the only
   new thing is that the couple can pick the number. Removing it rather than
   scaling it would stretch a six-field form across a 1680px screen.

   ## A control's hit area is never scaled

   The chips a guest taps to answer a ceremony, and the Yes/No radios, keep
   their own padding at every setting. That is the whole reason `small` is
   safe on a phone: there is no setting in which a hit area shrinks, by
   construction rather than by a floor somebody has to remember. The 6 Nov
   phone pass stays true at all three sizes, and the numbers are in CONTEXT.

   `medium` is the default and restates the values that were hard-coded in
   `.rsvp-container` above, so every invitation already live renders exactly
   what it rendered. The class is always emitted, including for medium, so
   view-source says which setting a page is on and the editor has one thing
   to swap. */
.rsvp-form--small { --rf-scale: .76; --rf-w: 520px; }
.rsvp-form--medium { --rf-scale: 1; --rf-w: 640px; }
.rsvp-form--large { --rf-scale: 1.18; --rf-w: 760px; }

/* ============================================================================
   THEME VOCABULARY -- ADR 0017
   ----------------------------------------------------------------------------
   Until 12 Nov 2026 a theme was fourteen custom properties and the three
   sample pages rendered byte-identical at 23,215 bytes (docs/16 section 9).
   These are the other things a theme now decides: the mark between the
   names, whether the card is ruled, and one ground that goes dark.

   Everything here is keyed on a class the renderer only emits when the
   couple's document actually holds the field, and every "absent" value is
   the look that was already on the page. A site published before today
   carries none of these classes except `hero-divider--diamond`, which
   restates what `.hero-divider .diamond` already drew.
   ========================================================================= */

/* ---- the divider ----------------------------------------------------------
   One element, four motifs, drawn in CSS rather than fetched: this sits
   under the names on every page and a request for an 800-byte SVG to draw a
   lozenge would be a request nobody should pay for. The lines either side
   are untouched in all four. */

/* The lozenge at 45 degrees. Every site live before ADR 0017 draws this, and
   the rule for it is 200 lines above -- this class only has to not undo it. */
.hero-divider--diamond .diamond { }

/* Sage (key `toran`): a mango leaf, which is what a toran is made of
   (docs/16 section 2) -- the garland kept its reason when the theme was
   renamed on 16 Nov 2026, ADR 0022.
   A leaf is a circle pinched at both ends, which is one border-radius pair,
   and the stem is the existing lines meeting it. */
.hero-divider--leaf .diamond {
  width: 11px;
  height: 18px;
  transform: none;
  border-radius: 60% 60% 60% 60% / 90% 90% 24% 24%;
  background: var(--gold);
}

/* Ember (key `diwali`): a lamp. A flame over a bowl, and the flame is the lighter gold so
   that it reads as the part that is burning -- docs/16 section 6: the diya
   has to be depicted emitting, not outlined. */
.hero-divider--lamp .diamond {
  position: relative;
  width: 20px;
  height: 9px;
  transform: none;
  border-radius: 0 0 11px 11px;
  background: var(--gold);
}
.hero-divider--lamp .diamond::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 7px;
  height: 11px;
  margin-left: -3.5px;
  border-radius: 50% 50% 50% 50% / 68% 68% 32% 32%;
  background: var(--gold-light);
}

/* Ochre (key `haldi`): a marigold, seen flat. Five petals is four radial stops and a
   centre; a real genda head is denser than this and at 16px that reads as a
   blur, so it is simplified rather than copied. */
.hero-divider--bloom .diamond {
  width: 16px;
  height: 16px;
  transform: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--gold-deep) 0 22%, transparent 23%),
    radial-gradient(circle at 50% 14%, var(--gold) 0 30%, transparent 31%),
    radial-gradient(circle at 86% 50%, var(--gold) 0 30%, transparent 31%),
    radial-gradient(circle at 50% 86%, var(--gold) 0 30%, transparent 31%),
    radial-gradient(circle at 14% 50%, var(--gold) 0 30%, transparent 31%),
    var(--gold-light);
}

/* ---- the frame ------------------------------------------------------------
   A hairline inside the card, under the content, above the ground. The brass
   at low alpha rather than a solid line: docs/16 section 3.2 is that real
   foil is a small ink area, and a 1px solid brass rectangle around a hero is
   a web page's border rather than a card's.

   `inset` is in px rather than a percentage so the frame keeps the same
   margin on a phone as on a desktop, which is what a printed border does. */
.hero-frame {
  position: absolute;
  inset: 22px;
  pointer-events: none;
  z-index: 1;
}
.hero-frame--rule {
  border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
  outline: 1px solid color-mix(in srgb, var(--gold) 20%, transparent);
  outline-offset: 5px;
}
/* A temple arch: square at the foot, lifted to a point at the head. The
   corner radii are the whole of it -- docs/16 section 2 lists architectural
   references to temple design as the traditional heavy register, and this is
   the cheapest honest gesture at it. */
.hero-frame--arch {
  border: 1px solid color-mix(in srgb, var(--gold) 46%, transparent);
  border-radius: 46% 46% 6px 6px / 28% 28% 6px 6px;
}
@media (max-width: 640px) {
  .hero-frame { inset: 12px; }
  .hero-frame--rule { outline-offset: 3px; }
}
/* A frame is decoration and the one thing it must never do is crowd the
   words. At a short viewport the card is already tight, so it goes. */
@media (max-height: 620px) { .hero-frame { display: none; } }

/* ---- lamplight ------------------------------------------------------------
   The only ground that goes dark, and it darkens the TOP of the hero only.

   docs/16 section 6: a diya has to be depicted emitting -- a bright core
   against a dark ground -- or the dark-ground theme is a wedding card in a pinker
   cream, which is what ours was. The band is 300px tall, which covers the
   garland at `top: 72px, height: 108px` and the invocation under it, and
   fades out well above the names. The names stay on paper, so no text
   colour has to change and the A5 PDF -- which prints on `--ivory` -- is
   untouched.

   The warm stop at 46% is the lamplight itself: the brass bleeding into the
   dark the way a row of flames does, rather than a flat dark bar with a
   hard edge. */
.hero--grad-lamplight {
  /* Every stop is in px and they only ever increase.

     The first attempt mixed `46%` with `300px` in one gradient. The hero is
     1,199px tall at 1440x900, so 46% resolved to 551px -- *after* the 300px
     stop -- and a browser clamps a stop that goes backwards, which drew a
     hard horizontal edge across the card. Measured, not reasoned about: the
     band ran to about 600px with a visible seam.

     The numbers are the card's own geometry, read off /sample/diwali at
     1440x900 with the hero's top as the origin: the garland occupies
     72-180, the invocation 170-200, the monogram 224-296 and the eyebrow
     starts at 324. So the dark is solid through the garland, carries the
     invocation, and is gone before the monogram is more than grazed and
     well before any of the couple's own words. The names are on paper. */
  background-image:
    radial-gradient(120% 150px at 50% 86px,
      color-mix(in srgb, var(--gold) 46%, transparent), transparent 70%),
    linear-gradient(180deg,
      var(--deep-burgundy) 0,
      var(--deep-burgundy) 178px,
      color-mix(in srgb, var(--deep-burgundy) 55%, transparent) 202px,
      transparent 228px);
}
/* The band is drawn off the card's geometry, and the card's geometry is
   smaller on a phone: `.hero--orn` drops to 124px of top padding and the
   garland to `top: 58px, height: 72px`. The same four stops, scaled to it. */
@media (max-width: 640px) {
  .hero--grad-lamplight {
    background-image:
      radial-gradient(140% 110px at 50% 64px,
        color-mix(in srgb, var(--gold) 46%, transparent), transparent 70%),
      linear-gradient(180deg,
        var(--deep-burgundy) 0,
        var(--deep-burgundy) 128px,
        color-mix(in srgb, var(--deep-burgundy) 55%, transparent) 148px,
        transparent 168px);
  }
}
/* The garland and the invocation are sitting on that dark band, so they stop
   taking the page's ink and take the light instead. Scoped to the two
   elements that are inside the band's 300px -- nothing below it moves. */
/* The invocation is inside the band, so it takes the light rather than the
   page's ink. docs/16 section 1.1: this is the line the card is addressed
   to, and it is the one the dark is there to light. */
.hero--grad-lamplight .hero-mantra { color: var(--gold-light); opacity: 1; }
/* The monogram is deliberately NOT lightened. It was, in the first pass, and
   it washed out: it sits at 224-296 from the hero's top and the band is gone
   by 228, so light gold on near-cream is most of what you saw. The band ends
   where the invocation does instead, and the monogram keeps the page's ink
   on the page's paper, which is the only ground it is ever over. */
.hero--grad-lamplight .hero-orn--drawn {
  background-color: color-mix(in srgb, var(--gold-light) var(--orn-alpha, 82%), transparent);
}

/* ---- Devanagari is never tracked out --------------------------------------
   docs/16 section 4.1. A W3C i18n thread records that `letter-spacing`
   splits consonant clusters joined by an invisible virama, that keeping
   conjuncts together "is a pretty basic requirement", and that "it is not
   possible to work around this problem". Browsers disagree about it: Gecko
   was filed for failing where Blink passed.

   Most of this was already fixed, keyed on `body.lang-hi`. Two holes were
   left, and the first is on every site that sets an invocation:

   1. `.hero-mantra` IS the invocation. It is Devanagari on an English page
      too, so a reset keyed on the page's language never reached it, and it
      carried `letter-spacing: 0.04em`. Measured on /sample/toran at
      1440x900 before this: font-size 18px, letter-spacing 0.72px, on the
      line docs/16 section 1.1 argues is the most important one on the card.
   2. The existing reset names `body.lang-hi` only, so a bilingual page
      (`body.lang-both`) still tracked out its Devanagari chrome.

   Both below. `.hi` is the span `i18n/index.ts` wraps a Devanagari run in,
   so the second rule reaches a Hindi run inside an otherwise English line,
   which neither of the language-keyed rules could. */
.hero-mantra,
.bi__hi,
.hi {
  letter-spacing: normal;
}
body.lang-both .section-eyebrow,
body.lang-both .hero-eyebrow,
body.lang-both .hero-next-label,
body.lang-both .countdown-label,
body.lang-both .footer-count-label-small,
body.lang-both .venue-detail-row .label,
body.lang-both .section-subtitle,
body.lang-both .footer-tag,
body.lang-both .nav-menu a {
  letter-spacing: normal;
}

/* ---------------------------------------------------------------------------
 * `.framed` -- every photograph that is not the hero. ADR 0047.
 * ---------------------------------------------------------------------------
 *
 * The hero's framing lives further up as `--hero-fx/-fy/-scale` on a
 * background layer. This is the couple's crop rectangle for an `<img>`,
 * which is what the story, the profiles, the gallery, the header mark and
 * every module image are drawn with. `object-position` is the img spelling
 * of `background-position` and means exactly the same thing.
 *
 * **The rectangle is not drawn as a box; it is covered.** `cropVars()` hands
 * this rule the rectangle's centre and `1 / max(w, h)` as a zoom, and the
 * rule covers its own box with that. The `max` is what guarantees the
 * couple's rectangle is never cut off at a shape it was not chosen for --
 * the box shows MORE on one axis, never less. The reasoning is on `Crop` in
 * `src/lib/layout.ts` and the guarantee is asserted, at every shape in the
 * product, by `npm run check:framing`.
 *
 * **All of the arithmetic about a crop is in `cropVars` and this rule.** The
 * renderer writes three custom properties and one class, the editor's
 * painter writes the same three onto the same element, and
 * `public/cropper.js` renders its own square through these very rules while
 * the couple drags it. None of the three composes a position or a transform.
 * That is ADR 0017 §2 on a third surface.
 *
 * Every `var()` falls back to the whole photograph, covered and centred --
 * which is what every one of these rendered before the cropper existed. So a
 * document that has never heard of a crop needs no branch anywhere.
 *
 * The box must clip. Each of these containers is already `overflow: hidden`
 * for its own reasons (a radius, a circle, a masonry column), which is why
 * the zoom is a crop and not a photograph lying across the page.
 */
.framed {
  object-position: var(--cr-x, 50%) var(--cr-y, 50%);
  transform: scale(var(--cr-zoom, 1));
  /* The origin is the rectangle's centre and not the box's, for the hero's
     reason: coming in on a couple standing to one side must not walk them
     out of the frame. */
  transform-origin: var(--cr-x, 50%) var(--cr-y, 50%);
}
/* The gallery sets its own `transform` above, because its hover has to
   compose with the zoom. It still wants the position and the fit. */
.gallery-item img.framed { transform-origin: var(--cr-x, 50%) var(--cr-y, 50%); }

/* ================================================================
   THE REPLY A GUEST COULD NOT SEE THEY HAD SENT (18 Nov 2026)
   ================================================================
   A persona panel put four Indian wedding personas through the whole flow
   at 375px, ending on a published invitation and a guest answering it. All
   four predicted the same thing after tapping Yes, and it is the telephone
   call this product is sold to prevent: "He will say, beta, I think I have
   deleted it."

   They were right, and the cause was one missing fragment. `POST /r/:token`
   redirected to `?saved=1` with nothing after it while the failure path
   redirected to `#rsvp`, so an error scrolled you to the form and a success
   put you back at the top of an 8,300px page — 6,250px above the
   confirmation that had rendered perfectly. src/routes/tenant.ts has the
   fix and the reasoning; these are the rules the markup needs. */

/* ---- the confirmation, judged as a 62-year-old reading it on a phone ----
   `.rsvp-said--ok` already had the gold tint and the sentence. What it did
   not have was a first line you cannot read past, and a list of what was
   actually recorded — which is the part that answers the question the
   telephone call asks. */
.rsvp-said--ok {
  /* The nav is `position: fixed`, so an anchor jump lands the target's top
     underneath it. 96px is the bar at its tallest plus room to breathe; it
     costs nothing when the block is reached by scrolling. */
  scroll-margin-top: 96px;
}
.rsvp-said__t {
  display: block; font-family: var(--font-display);
  font-size: 23px; font-weight: 600; line-height: 1.25; color: var(--charcoal);
}
.rsvp-said__l {
  list-style: none; margin: 12px 0 0; padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
}
.rsvp-said__l li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}
.rsvp-said__l li:last-child { border-bottom: 0; }
.rsvp-said__l span { font-family: var(--font-display); font-size: 18px; }
.rsvp-said__l b { font-weight: 600; font-size: 15px; flex: none; }
.rsvp-said__l b.is-yes { color: var(--burgundy); }
.rsvp-said__l b.is-no { color: var(--charcoal-soft); }
.rsvp-said__l b.is-none { color: var(--muted); font-weight: 400; font-style: italic; }
.rsvp-said__p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.55; }

/* ---- "which bit do I press, and did it work" ----
   The panel read Yes and No as labels rather than as buttons, and that is
   what they looked like: 12px of uppercase at .12em tracking inside a
   hairline at 22% opacity. Everything that makes them a control is turned
   up — the type to a size a presbyopic reader can land on, the border to
   something visible on ivory, and the height to 44px, which is the floor
   `.btn-primary` already carries for the same reason.

   The design is not changed. It is the same letterspaced small-caps chip in
   the same two colours; it is simply drawn like a thing you press. */
.chip-btns .chip {
  min-height: 44px; min-width: 76px; padding: 10px 20px;
  font-size: 14px; letter-spacing: .1em; border-radius: 3px;
  border-color: color-mix(in srgb, var(--burgundy) 42%, transparent);
}
/* `:not(.is-on)`, and the first version of this rule did not have it. Plain
   `.chip-btns .chip { color }` has the same specificity as `.chip.is-on` and
   sits later in the file, so it won — and the chosen answer rendered as a
   solid burgundy block with its own word invisible inside it. Caught in a
   browser at 375px before it went anywhere, which is the only way this class
   of fault is ever caught. Both states are stated here rather than one, so
   neither depends on which rule is further down. */
.chip-btns .chip:not(.is-on) { color: var(--burgundy); }
.chip-btns .chip.is-on { color: var(--ivory); }
/* The chosen one says so twice: filled, and with a tick. The fill alone was
   the whole signal before, and the fill is invisible to anybody who has not
   seen the other state to compare it with — which is everybody arriving on
   their own link for the first time. */
.chip-btns .chip.is-on::before {
  content: '✓'; margin-right: 7px; font-size: 13px; line-height: 1;
}
.chip-btns .chip[aria-pressed="true"] { box-shadow: 0 2px 10px rgba(90, 31, 46, .22); }

/* ---- "SEND RSVP" read as a decorative band ----
   12px of uppercase at 0.35em tracking across a full-width burgundy block
   is a rule with words in it. Same colour, same caps, same width; the type
   is legible and the tracking is a band's worth rather than a masthead's.

   The hover no longer opens the tracking to 0.4em. Re-tracking live text
   reflows the label under the cursor, which on the one button a guest has
   to press reads as the page moving away from them. */
.btn-primary { font-size: 15px; letter-spacing: 0.14em; font-weight: 600; }
.btn-primary:hover { letter-spacing: 0.14em; }

/* ---- who is inviting (18 Nov 2026) ----
   The 56-year-old father on the persona panel, about his daughter's wedding:
   "Our cards read Shri Rajeev and Smt. Bansal request the pleasure of your
   company. On this site it is only Priya and Raj, everywhere. For my
   generation that is not a decoration, that is the invitation."

   Above the names and quieter than them, which is how a printed card marks
   the difference and is why no connective word was invented to go with it:
   a card does that job with typography, and a sentence of ours would be ours
   in a place that is the family's to word.

   Between the eyebrow's register and the names' -- serif like the names,
   because these ARE names, but at the eyebrow's weight so the couple stays
   the headline. One line per side, stacked, never joined. */
.hero-hosts {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  color: var(--charcoal-soft);
  margin: -8px 0 18px;
  display: flex; flex-direction: column; gap: 2px;
  /* Long family lines are ordinary -- "Late Shri Ramesh Gupta and Smt. Kamla
     Gupta" is 44 characters -- so they wrap rather than shrinking the way
     the names do. A hosting line that wrapped is a card; a hosting line in
     6pt is a mistake. */
  max-width: 34ch; margin-inline: auto;
}
/* A guest never reaches an empty line here -- `renderSite` gates the whole
   element on there being something to print -- so this is the belt to that
   braces. `:not(.is-editable)` is what keeps it from fighting the editor:
   `editable.js` injects `.is-editable:empty { display: inline-block }` with
   its own placeholder so an empty field stays clickable, and an empty field
   you cannot click is a line you deleted and cannot get back. */
.hero-hosts__l:not(.is-editable):empty { display: none; }
@media (max-width: 600px) { .hero-hosts { font-size: 14px; margin: -4px 0 16px; } }

/* The couple types these, so they can be Devanagari on an English site and
   are Devanagari on a Hindi one. Same face as the names above them, for the
   same reason: these are names. */
html[lang="hi"] .hero-hosts {
  font-family: 'Noto Serif Devanagari', var(--font-display);
  font-style: normal;
}

/* ---- the parentage placement: under each name (18 Nov 2026) ----
   Pulkit, after seeing the hosting line live: "yeah like son of or daughter
   of and option to choose above or below".

   The wording already fitted the free-text line. What did not work was
   where it sat: measured at 375px with "daughter of Shri Rajeev and Smt.
   Sunita Deshpande" in the existing field, ABOVE the names it attaches to
   neither of them and a reader can only guess by order. So `below` is not
   the same block one inch lower — it is one line under each name, which is
   the only arrangement that says whose parents those are.

   The name and its line become one column inside the heading. On a phone
   `.hero-names` is already `flex-direction: column`, so the pairs simply
   stack; on a wider screen it is a row and each pair is a column within it,
   which is how a printed card sets the same thing. */
.hero-names--of { align-items: flex-start; }
.hero-name {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; min-width: 0;
}
/* The names' own rule is `white-space: nowrap`, which is right for a name
   and wrong for a line about somebody's parents: "son of Late Shri Ramesh
   Gupta and Smt. Kamla Mehta" has to wrap rather than run off the card. */
.hero-of {
  font-family: var(--font-display);
  font-size: 15px; line-height: 1.45; font-style: normal;
  color: var(--charcoal-soft);
  white-space: normal; max-width: 26ch; text-wrap: balance;
}
.hero-of:not(.is-editable):empty { display: none; }

/* On a phone the pairs stack, so the heading centres again and the gap
   between a name and the line under it tightens: at 52px+ the name is tall
   enough that 6px reads as attached and 12px reads as separate. */
@media (max-width: 640px) {
  .hero-names--of { align-items: center; gap: 14px; }
  .hero-name { gap: 4px; }
  .hero-of { font-size: 14px; max-width: 30ch; }
}

/* Same face as the names above them, for the same reason the hosting line
   takes it: these are names. */
html[lang="hi"] .hero-of {
  font-family: 'Noto Serif Devanagari', var(--font-display);
  font-style: normal;
}
