/* The Big Dinner
   Emerald field, ivory reading, antique gold only on the invitation.
   Art lives in /assets/art. Replace a file to swap a slot.
   hero-16x9, hero-mobile-9x16, city-delhi, city-bombay, city-london,
   city-bengaluru, city-hyderabad, city-dubai, section-damask-light,
   section-doorway-glow, section-brass-rail, six-cities-one-room. */

:root {
  --emerald: #187a5e;
  --emerald-deep: #146b52;
  --field: #c9ebdc;
  --ivory: #f6f1e6;
  --ivory-2: #efe6d4;
  --ink: #14382c;
  --ink-soft: #3e5c50;
  --gold: #c6a15a;
  --gold-2: #d4b56a;
  --gold-ink: #14281c;
  --line: rgba(246, 241, 230, 0.32);
  --line-ink: rgba(20, 56, 44, 0.16);
  --nav-h: 84px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; }
a { color: inherit; }
::selection { background: var(--emerald); color: var(--ivory); }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 100;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 8px 12px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.label {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.4;
}
.theme-paper .label,
.sheet .label,
.lineage .label,
.masthead .label,
.gallery-block .label,
.press .label { color: var(--ink-soft); }

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 16vw, 8.4rem);
  line-height: 0.86;
  letter-spacing: -0.025em;
}
.display span { display: block; }

.headline {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.headline em, .display em { font-style: italic; font-weight: 400; }

.lede, .hero-dek {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.35;
}

/* Header. The gold invitation is the only filled control. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  min-height: var(--nav-h);
  padding: 14px 28px;
  color: var(--ivory);
  background: transparent;
}
.nav.is-scrolled,
.nav.is-open,
.theme-paper .nav,
.nav-paper {
  background: var(--emerald);
  color: var(--ivory);
}
.wordmark {
  margin-right: auto;
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: inherit;
  line-height: 1;
}
.nav-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 0 10px 8px;
  cursor: pointer;
}
.invite-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  padding: 16px 22px;
  min-height: 48px;
  cursor: pointer;
  white-space: nowrap;
}
.invite-btn-lg {
  padding: 20px 34px;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  min-height: 58px;
}
.invite-btn:hover,
.invite-btn:focus-visible { background: var(--gold-2); }

.nav-links {
  position: fixed;
  inset: 0;
  z-index: 40;
  margin: 0;
  padding: calc(var(--nav-h) + 6vh) 8vw 10vh;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  background: #1c8f6c;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.nav.is-open .nav-links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-links a {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ivory);
}
.nav-links a[aria-current="page"] { font-style: italic; }

.sound {
  position: fixed;
  z-index: 35;
  left: 18px;
  bottom: 16px;
  border: 0;
  background: rgba(20, 56, 44, 0.45);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
}
body.is-locked .sound { opacity: 0; pointer-events: none; }

/* Full-bleed frames */
.frame {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
  background: linear-gradient(165deg, #7dceb0 0%, #1c8a68 46%, #146b52 100%);
}
.art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.14) saturate(1.08);
}
.frame-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(22, 120, 94, 0.05) 0%, rgba(14, 72, 56, 0.28) 42%, rgba(10, 52, 42, 0.72) 100%);
}
.hero .frame-scrim {
  background: linear-gradient(180deg, rgba(18, 90, 70, 0.12) 0%, rgba(12, 58, 46, 0.22) 38%, rgba(10, 48, 38, 0.78) 100%);
}
.frame-copy {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  padding: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(36px, 7vh, 88px);
}
.frame-copy .label { color: var(--ivory); display: block; margin-bottom: 14px; }
.hero-dek { margin: 18px 0 28px; max-width: 16em; }

.sheet, .lineage, .archive {
  padding: clamp(72px, 12vh, 140px) clamp(20px, 5vw, 72px);
}
.sheet, .archive { background: var(--ivory); color: var(--ink); }
.lineage { background: #b7e4d0; color: var(--ink); }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap-narrow { max-width: 760px; margin: 0 auto; }

.paper-frame {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background: var(--ivory);
  padding: calc(var(--nav-h) + 32px) clamp(20px, 5vw, 72px) 64px;
}
.paper-frame .veil,
.masthead.has-art .veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(246, 241, 230, 0.5);
  pointer-events: none;
}
.paper-frame .wrap,
.masthead.has-art .mast-copy { position: relative; z-index: 2; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.4fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.prose { max-width: 38em; font-size: 1.28rem; line-height: 1.6; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.15em; }
.section-intro { margin-bottom: clamp(36px, 6vw, 72px); }
.section-intro .label,
.paper-frame .label { display: block; margin-bottom: 18px; }
.aside { margin: 0; }
.aside-mark {
  display: block;
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.8;
  letter-spacing: 0.08em;
}
.aside .label { display: block; margin-top: 14px; }

.rules, .chapters { list-style: none; margin: 0; padding: 0; }
.rule, .chapter {
  display: grid;
  gap: 10px 28px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--line-ink);
}
.rule { grid-template-columns: 64px minmax(120px, 0.45fr) minmax(0, 1fr); }
.chapter { grid-template-columns: 72px minmax(140px, 200px) minmax(0, 1fr); }
.rule-no, .chapter-no {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}
.rule-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
}
.rule p { margin: 0; color: var(--ink-soft); font-size: 1.15rem; }
.chapter-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.chapter-place { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }

.archive-head, .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.link-quiet {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.mosaic { display: grid; gap: 8px; }
.mosaic-a { grid-template-columns: 1.3fr 1fr 1fr; }
.mosaic-b { grid-template-columns: repeat(4, 1fr); margin-top: 8px; }
.shot { position: relative; margin: 0; overflow: hidden; background: #d5ebe1; min-height: 240px; }
.mosaic-a .shot { height: 52vh; }
.mosaic-b .shot { height: 32vh; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 4px;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(12, 48, 38, 0.72));
  color: var(--ivory);
}
.shot .label { color: var(--ivory); font-size: 0.68rem; letter-spacing: 0.18em; }
.shot-title { font-size: 1.25rem; line-height: 1.15; }

.city-status {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.frame-copy .headline { max-width: 11em; }
.frame[data-art] .art-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.frame[data-art].art-missing .art-title {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 10px;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.invite { background: var(--emerald); color: var(--ivory); }
.invite .prose, .invite .lede { color: var(--ivory); max-width: 28em; }
.invite .headline { margin-bottom: 18px; }
.invite .invite-btn { margin: 28px 0 22px; }
.invite-links { display: flex; flex-wrap: wrap; gap: 12px; }

.btn, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: var(--gold);
}
.btn:hover, .btn:focus-visible { background: var(--gold-2); border-color: var(--gold-2); color: var(--gold-ink); }
.btn-line {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-line:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.sheet .btn-line:hover, .lineage .btn-line:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* Arrival */
.welcome {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  background: #1c8f6c;
}
.welcome[hidden] { display: none; }
.welcome .art { pointer-events: none; }
.welcome .art img { filter: brightness(1.42) saturate(1.06); }
.welcome-scrim {
  background: linear-gradient(180deg, rgba(214, 236, 224, 0.18) 0%, rgba(36, 150, 116, 0.28) 42%, rgba(16, 96, 74, 0.8) 100%);
}
.welcome-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px;
}
.welcome-copy {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 6vw, 80px);
  width: min(860px, 100%);
}
.welcome-line {
  margin: 12px 0 32px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.9;
  max-width: 9em;
}

/* City picker */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  overflow: auto;
  background: #1c8f6c;
  color: var(--ivory);
  padding: clamp(72px, 12vh, 120px) clamp(20px, 6vw, 80px) 64px;
}
.overlay.is-open { display: block; }
.scrim-close {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.overlay-page,
.welcome-copy { position: relative; z-index: 1; }
.overlay-close,
.welcome-close { z-index: 2; }
.overlay-close {
  position: absolute;
  top: 22px;
  right: 22px;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}
.overlay-page { max-width: 680px; }
.overlay-page .headline { margin: 14px 0 16px; }
.overlay .label { color: var(--ivory); display: block; margin-bottom: 12px; }
.step-progress { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
}
.dot.is-on { opacity: 1; }
.dot-line { width: 28px; height: 1px; background: currentColor; opacity: 0.45; }
.overlay-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.overlay-note { margin: 0 0 28px; font-size: 1.2rem; }
.field { max-width: 440px; margin-bottom: 32px; }
.field select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(246, 241, 230, 0.55);
  background: transparent;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 2rem;
  padding: 12px 0;
  border-radius: 0;
}
.field select.is-invalid { border-bottom-color: var(--gold); }
.field select option { background: var(--emerald-deep); color: var(--ivory); }
/* Pre-form notice. Ivory panel, gold only on the tick and the continue button. */
.form-notice {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 56, 44, 0.46);
}
.form-notice.is-open { display: flex; }
.form-notice[hidden] { display: none; }
.form-notice-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.form-notice-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(680px, 100%);
  max-height: min(90svh, 860px);
  background: var(--ivory);
  color: var(--ink);
}
.form-notice-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px;
}
.form-notice-body {
  overflow: auto;
  min-height: 0;
  padding: 64px 36px 28px;
  overscroll-behavior: contain;
}
.notice-end { display: block; height: 1px; }
.notice-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1;
}
.form-notice-body p {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
}
.form-notice-body p + p,
.form-notice-body .notice-dress + .notice-figures + p { margin-top: 1.05em; }
.form-notice .label { color: var(--ink-soft); }
.notice-step[hidden] { display: none !important; }
.notice-dress {
  margin: 1.25em 0 0.2em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1;
}
.notice-figures {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  margin: 14px 0 16px;
}
.notice-figures svg { display: block; height: 84px; width: auto; }
#noticeBack {
  justify-self: start;
  min-height: 0;
  padding: 0 0 2px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
}
#noticeBack[hidden] { display: none !important; }
#noticeBack:hover { background: transparent; color: var(--ink); }
.read-slot { display: grid; align-items: center; min-height: 24px; }
.read-hint,
.read-slot .read-check { grid-area: 1 / 1; }
.read-hint {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--ink-soft);
  transition: opacity 0.4s ease;
}
.read-hint[hidden] { display: none !important; }
.read-slot.is-ready .read-hint { opacity: 0; pointer-events: none; }
.read-check { opacity: 0; pointer-events: none; }
.read-check[hidden] { display: none !important; }
.read-slot.is-ready .read-check {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}
@media (prefers-reduced-motion: reduce) {
  .read-hint,
  .read-check { transition: none; }
}
.form-notice-bar {
  flex: none;
  display: grid;
  gap: 14px;
  padding: 16px 36px 22px;
  border-top: 1px solid rgba(20, 56, 44, 0.14);
  background: var(--ivory);
}
.read-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.read-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.read-check input:focus-visible { outline: none; }
.read-box {
  width: 22px;
  height: 22px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  background: transparent;
}
.read-check input:focus-visible + .read-box {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.read-check input:checked + .read-box { background: var(--gold); }
.read-check input:checked + .read-box::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid var(--gold-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-notice-bar .btn { width: 100%; }
.form-notice-bar .btn:disabled,
.form-notice-bar .btn:disabled:hover {
  background: #e6dcc4;
  border-color: #e6dcc4;
  color: rgba(20, 40, 28, 0.42);
  cursor: not-allowed;
}
@media (max-width: 760px) {
  .form-notice { padding: 0; align-items: stretch; }
  .form-notice-panel { width: 100%; max-height: 100%; height: 100%; }
  .form-notice-body { padding: 64px 20px 20px; }
  .form-notice-bar { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); }
}

/* Inner pages */
.page-hero.frame { max-width: none; }
.masthead {
  padding: calc(var(--nav-h) + 8vh) clamp(20px, 6vw, 80px) 48px;
  max-width: 980px;
}
.masthead.has-art {
  position: relative;
  max-width: none;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--ivory);
}
.masthead.has-art .mast-copy {
  padding: clamp(28px, 6vw, 80px);
  padding-bottom: clamp(40px, 8vh, 96px);
  max-width: 920px;
}
.lede { margin: 18px 0 0; max-width: 28em; }
.rule-line { border: 0; border-top: 1px solid var(--line-ink); margin: 28px 0; }
.journal { padding: 0 clamp(20px, 6vw, 80px) 12vh; max-width: 1100px; }
.journal .prose { font-size: 1.3rem; }
.journal .entry {
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: 24px 40px;
  padding: 48px 0;
  border-top: 1px solid var(--line-ink);
}
html.js .journal .entry {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
html.js .journal .entry.visible { opacity: 1; transform: none; }
.journal .entry-date,
.journal .entry-chapter,
.journal .entry-tag {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.journal .entry-chapter { display: block; margin-top: 8px; }
.journal .entry-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
}
.journal .entry-text p { margin: 0 0 1em; }
.journal .entry-quote {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-style: italic;
  line-height: 1.2;
  color: var(--emerald-deep);
}
.journal .entry-tag { display: inline-block; margin-top: 8px; }
.journal .entry-divider { display: none; }
.new-entry-hint { padding: 28px 0 8px; color: var(--ink-soft); }
.new-entry-hint p {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.clauses { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: clause; max-width: 42em; }
.clauses li {
  counter-increment: clause;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-ink);
  font-size: 1.15rem;
}
.clauses li::before {
  content: counter(clause, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  padding-top: 6px;
}
.clauses a, .particulars a { color: var(--emerald-deep); }
.particulars { display: grid; gap: 22px; margin: 0; }
.particulars dt {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.particulars dd { margin: 6px 0 0; font-size: 1.6rem; overflow-wrap: anywhere; }
.note { margin-top: 28px; color: var(--ink-soft); }

.gallery-block, .press {
  background: var(--ivory);
  color: var(--ink);
  padding: clamp(48px, 8vh, 96px) clamp(20px, 5vw, 72px);
}
.gallery-block + .gallery-block,
.press { border-top: 1px solid var(--line-ink); }
.gallery-block h2, .press h2 {
  margin: 8px 0 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-grid figure { margin: 0; background: #d5ebe1; }
.gallery-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.press-quote {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-style: italic;
  line-height: 1.2;
  max-width: 16em;
}
.press img { width: min(720px, 100%); height: auto; }

.filter-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(246, 241, 230, 0.96);
}
.filter-tab {
  appearance: none;
  border: 1px solid var(--line-ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.filter-tab.active, .filter-tab:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.video-feed {
  display: grid;
  justify-items: center;
  gap: 36px;
  padding: 28px clamp(20px, 5vw, 72px) 12px;
  background: var(--ivory);
  color: var(--ink);
}
.video-card { width: min(440px, 100%); opacity: 0; transform: translateY(16px); }
.video-card.visible { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.video-wrapper { position: relative; cursor: pointer; background: #d5ebe1; }
.video-wrapper .thumb { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card-meta-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 16px 16px;
  color: var(--ivory);
  background: linear-gradient(180deg, transparent, rgba(10, 48, 38, 0.78));
}
.card-city-tag {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.card-venue { margin: 0; font-size: 1.8rem; font-weight: 400; line-height: 1.05; }
.card-chapter { margin: 6px 0 0; font-style: italic; }
.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 241, 230, 0.8);
  background: rgba(20, 56, 44, 0.28);
}
.play-btn svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--ivory); }
.card-description { margin: 14px 0; font-size: 1.08rem; }
.card-footer-row {
  display: flex;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.guest-pill, .city-pill {
  border: 1px solid var(--line-ink);
  padding: 6px 8px;
}
.load-sentinel { min-height: 72px; display: grid; place-items: center; background: var(--ivory); }
.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-ink);
  border-top-color: var(--emerald);
  display: none;
}
.spinner.active { display: block; animation: spin 0.8s linear infinite; }
.end-note {
  display: none;
  margin: 0;
  padding: 12px 24px 64px;
  text-align: center;
  background: var(--ivory);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.end-note.visible { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.colophon {
  background: var(--emerald);
  color: var(--ivory);
  padding: clamp(64px, 10vh, 120px) clamp(20px, 5vw, 72px) 48px;
  display: grid;
  gap: 14px;
}
.colophon .wordmark { letter-spacing: 0.14em; }
.colophon .label { color: var(--ivory); }
.colophon-line { margin: 0; font-size: 1.35rem; font-style: italic; }
.colophon-mail a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(246, 241, 230, 0.45); }
.colophon-nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.colophon-nav a {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.colophon-nav a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.has-sound .colophon { padding-bottom: 96px; }

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.05s ease, transform 1.05s ease;
}
html.js .reveal.is-in { opacity: 1; transform: none; }
#rules, #chronicles, #apply { scroll-margin-top: var(--nav-h); }

@media (max-width: 900px) {
  .split, .rule, .chapter, .journal .entry { grid-template-columns: 1fr; }
  .mosaic-a, .mosaic-b, .gallery-grid { grid-template-columns: 1fr 1fr; }
  .mosaic-a .shot, .mosaic-b .shot { height: 36vh; }
}
@media (max-width: 760px) {
  :root { --nav-h: 124px; }
  .nav { padding: 12px 16px 14px; align-items: center; }
  .wordmark { order: 1; font-size: 1.3rem; }
  .nav-toggle { order: 2; margin-left: auto; }
  .invite-btn { order: 3; flex: 1 0 100%; }
  .hero .frame-scrim {
    background: linear-gradient(180deg, rgba(18, 96, 74, 0.18) 0%, rgba(14, 70, 54, 0.42) 48%, rgba(10, 52, 40, 0.78) 100%);
  }
  .frame-copy .invite-btn { width: 100%; }
}
@media (max-width: 560px) {
  .mosaic-a, .mosaic-b, .gallery-grid { grid-template-columns: 1fr; }
  .mosaic-a .shot, .mosaic-b .shot { height: 46vh; }
}
@media (max-width: 380px) {
  .invite-btn { letter-spacing: 0.1em; font-size: 0.68rem; padding-left: 10px; padding-right: 10px; }
  .display { font-size: clamp(2.7rem, 14vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal,
  html.js .journal .entry,
  .video-card,
  .nav-links,
  .spinner {
    transition: none;
    animation: none;
    transform: none;
    opacity: 1;
  }
  .nav-links { opacity: 0; }
  .nav.is-open .nav-links { opacity: 1; }
  .spinner.active { opacity: 1; }
}
