/* ============================================================
   Psalm Path — marketing site
   Design v11: ink and gold. Tokens transcribed from
   Packages/WalkKit/Sources/DesignSystem/Theme/Palette.swift
   Two voices: Outfit is the app speaking; the serif is the Word.
   ============================================================ */

:root {
  /* Grounds */
  --canvas: #ffffff;
  --canvas-sunken: #efefee;
  --surface: #f5f5f4;
  --surface-raised: #ffffff;

  /* Ink */
  --ink: #121212;
  --ink-secondary: #6a6a67;
  --ink-tertiary: #999995;
  --hairline: #e6e6e3;

  /* Accents */
  --accent: #121212;
  --on-accent: #ffffff;
  --gold: #a07c33;
  --gold-vivid: #c7a15a;
  --gold-soft: #f7f1e4;

  /* Module fields */
  --field-sunrise: #f7f1e4;  --deep-sunrise: #a07c33;
  --field-ocean:   #e7edf1;  --deep-ocean:   #3d6480;
  --field-meadow:  #eaefe4;  --deep-meadow:  #556b45;
  --field-violet:  #ece9f1;  --deep-violet:  #64578a;
  --field-rose:    #f6e9e9;  --deep-rose:    #92514f;
  --field-teal:    #e1efec;  --deep-teal:    #2f6e68;

  /* Verse highlights */
  --hl-amber: #f7e7be; --hl-rose: #f6dcda; --hl-sage: #dce8da;
  --hl-sky: #d9e5f0;   --hl-lilac: #e4deef;

  /* Ink band (always-dark sections keep these regardless of scheme) */
  --night: #0a0a0a;
  --night-surface: #161616;
  --night-ink: #f4f4f3;
  --night-ink-secondary: #a1a19d;
  --night-hairline: #2a2a2a;
  --night-gold: #d7b676;

  --shadow-soft: 0 1px 2px rgba(20, 20, 15, 0.04), 0 8px 32px rgba(20, 20, 15, 0.06);
  --shadow-lift: 0 2px 6px rgba(20, 20, 15, 0.05), 0 18px 56px rgba(20, 20, 15, 0.12);

  --font-voice: "Outfit", -apple-system, "Helvetica Neue", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-word: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --radius-card: 22px;
  --radius-chip: 999px;
  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 48px);
  --page: 1120px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0a0a0a;
    --canvas-sunken: #131313;
    --surface: #161616;
    --surface-raised: #1f1f1f;
    --ink: #f4f4f3;
    --ink-secondary: #a1a19d;
    --ink-tertiary: #70706c;
    --hairline: #2a2a2a;
    --accent: #f4f4f3;
    --on-accent: #0a0a0a;
    --gold: #d7b676;
    --gold-soft: #2a2213;
    --field-sunrise: #2a2213; --field-ocean: #161f26; --field-meadow: #1c2617;
    --field-violet: #211e28;  --field-rose: #291b1b;  --field-teal: #142623;
    --deep-sunrise: #d7b676;  --deep-ocean: #9bbbd1;  --deep-meadow: #9db88b;
    --deep-violet: #b0a5cd;   --deep-rose: #d4a19e;   --deep-teal: #8fc5bf;
    --hl-amber: #4a3e22; --hl-rose: #4a2e2c; --hl-sage: #2a3a2c;
    --hl-sky: #25353f;   --hl-lilac: #332c42;
    --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.45);
    --shadow-lift: 0 2px 6px rgba(0,0,0,0.5), 0 18px 56px rgba(0,0,0,0.6);
  }
}


/* Forced dark, via the theme toggle */
:root[data-theme="dark"] {
  --canvas: #0a0a0a;
  --canvas-sunken: #131313;
  --surface: #161616;
  --surface-raised: #1f1f1f;
  --ink: #f4f4f3;
  --ink-secondary: #a1a19d;
  --ink-tertiary: #70706c;
  --hairline: #2a2a2a;
  --accent: #f4f4f3;
  --on-accent: #0a0a0a;
  --gold: #d7b676;
  --gold-soft: #2a2213;
  --field-sunrise: #2a2213; --field-ocean: #161f26; --field-meadow: #1c2617;
  --field-violet: #211e28;  --field-rose: #291b1b;  --field-teal: #142623;
  --deep-sunrise: #d7b676;  --deep-ocean: #9bbbd1;  --deep-meadow: #9db88b;
  --deep-violet: #b0a5cd;   --deep-rose: #d4a19e;   --deep-teal: #8fc5bf;
  --hl-amber: #4a3e22; --hl-rose: #4a2e2c; --hl-sage: #2a3a2c;
  --hl-sky: #25353f;   --hl-lilac: #332c42;
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.45);
  --shadow-lift: 0 2px 6px rgba(0,0,0,0.5), 0 18px 56px rgba(0,0,0,0.6);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--hl-amber); }

h1, h2, h3, h4 {
  font-family: var(--font-voice);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure { max-width: var(--measure); }

/* Eyebrow — the small caps label above a heading */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-secondary);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--page);
  margin-inline: auto;
  padding: 14px var(--gutter);
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--hairline);
}

.brand {
  font-family: var(--font-voice);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  display: inline-flex;
  align-items: center;
}

.brand .dot { color: var(--gold-vivid); }
.brand .brand-mark { width: 27px; height: 27px; flex: none; margin-right: 9px; }

/* On a hero page the header starts life over photography */
.site-header.on-photo:not(.scrolled) .brand,
.site-header.on-photo:not(.scrolled) .nav a { color: #f4f4f3; }
.site-header.on-photo:not(.scrolled) .brand { --brand-gold: var(--night-gold); }
.site-header.on-photo:not(.scrolled) .brand .dot { color: var(--night-gold); }
.site-header.on-photo:not(.scrolled) .nav a[aria-current="page"]::after { background: var(--night-gold); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
}

.nav a {
  font-family: var(--font-voice);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-secondary);
  position: relative;
  transition: color 0.25s ease;
}

.nav a:hover { color: var(--ink); }

.nav a[aria-current="page"] { color: var(--ink); }

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-vivid);
}

.nav .cta {
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  padding: 9px 18px;
  border-radius: var(--radius-chip);
  transition: transform 0.25s var(--ease-out), opacity 0.25s ease;
}

.nav .cta:hover { transform: translateY(-1px); opacity: 0.9; color: var(--on-accent); }

.site-header.on-photo:not(.scrolled) .nav .cta {
  background: #f4f4f3; color: #0a0a0a;
}

@media (max-width: 860px) {
  .nav a:not(.cta) { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-voice);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--radius-chip);
  padding: 14px 26px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, opacity 0.25s ease;
}

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.btn-ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
  background: transparent;
}
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface); }

/* Buttons drawn over photography */
.hero .btn-primary { background: #f4f4f3; color: #0a0a0a; }
.hero .btn-ghost { color: #f4f4f3; box-shadow: inset 0 0 0 1px rgba(244,244,243,0.4); }
.hero .btn-ghost:hover { background: rgba(244,244,243,0.12); }

/* ---------- Hero (full-bleed artwork) ---------- */

.hero {
  position: relative;
  min-height: min(94vh, 980px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f4f4f3;
  background: var(--night);
}

.hero.hero-short { min-height: min(74vh, 760px); }

.hero .art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* scale past the museum scan's frame edge */
  transform: scale(1.08);
  animation: kenburns 32s var(--ease-out) both;
  will-change: transform;
}

@keyframes kenburns {
  from { transform: scale(1.16); }
  to   { transform: scale(1.08); }
}

.hero .scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10,10,10,0.42) 0%,
      rgba(10,10,10,0.05) 30%,
      rgba(10,10,10,0.12) 55%,
      rgba(10,10,10,0.78) 88%,
      rgba(10,10,10,0.92) 100%);
}

.hero .content {
  position: relative;
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding: 120px var(--gutter) clamp(64px, 9vh, 110px);
  text-shadow: 0 1px 2px rgba(10,10,10,0.45), 0 6px 28px rgba(10,10,10,0.35);
}

.hero .btn { text-shadow: none; }

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin: 0 0 20px;
}

.hero .eyebrow { color: var(--night-gold); }

.hero .lede {
  color: rgba(244,244,243,0.82);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Painting credit, resting quietly in the corner */
.art-credit {
  position: absolute;
  right: clamp(16px, 3vw, 36px);
  bottom: 16px;
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(244,244,243,0.5);
  text-align: right;
  max-width: 40ch;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 11vh, 140px); }
.section-tight { padding-block: clamp(56px, 8vh, 96px); }

.section-head { max-width: 60ch; margin-bottom: clamp(36px, 6vh, 64px); }

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-head .lede { max-width: 56ch; }

.gold-rule {
  width: 64px; height: 3px;
  border: 0; margin: 0 0 26px;
  border-radius: 3px;
  background: var(--gold-vivid);
  transform-origin: left;
}

.reveal.in .gold-rule { animation: rule-draw 1s var(--ease-out) both 0.15s; }

@keyframes rule-draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.card-pad { padding: clamp(24px, 3.4vw, 40px); }

.card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card .sub {
  color: var(--ink-secondary);
  font-size: 15.5px;
  line-height: 1.6;
}

.card-photo {
  position: relative;
  color: #f4f4f3;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  text-decoration: none;
  isolation: isolate;
}

.card-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.09);
  transition: transform 1.4s var(--ease-out);
  z-index: -2;
}

.card-photo:hover img { transform: scale(1.14); }

.card-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,10,10,0.82), rgba(10,10,10,0.06) 55%);
}

.card-photo .card-pad { position: relative; }

/* Room tiles — the five tabs */
.rooms {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.room {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-card);
  padding: 26px 24px 24px;
  min-height: 190px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.room:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.room .glyph {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, #ffffff 55%, transparent);
  margin-bottom: 40px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .room .glyph {
    background: color-mix(in srgb, #ffffff 8%, transparent);
  }
}


:root[data-theme="dark"] .room .glyph {
  background: color-mix(in srgb, #ffffff 8%, transparent);
}

.room .glyph svg { width: 20px; height: 20px; }

.room h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.room p { font-size: 14.5px; line-height: 1.5; color: var(--ink-secondary); }

/* ---------- Scripture interlude ---------- */

.scripture-band {
  text-align: center;
  padding-block: clamp(80px, 13vh, 160px);
}

.scripture-band blockquote {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--font-word);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.35;
  font-weight: 400;
  text-wrap: balance;
}

.scripture-band cite {
  display: block;
  margin-top: 26px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Feature split (art / copy) ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.split .art-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 4.6;
  position: relative;
}

.split .art-frame.landscape { aspect-ratio: 4 / 3; }

.split .art-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.split h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }

.split .prose { color: var(--ink-secondary); }
.split .prose p + p { margin-top: 14px; }
.split .prose strong { color: var(--ink); font-weight: 600; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-family: var(--font-voice);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}

.text-link .arrow { transition: transform 0.3s var(--ease-out); color: var(--gold); }
.text-link:hover .arrow { transform: translateX(5px); }

/* ---------- Ink band (always dark) ---------- */

.ink-band {
  background: var(--night);
  color: var(--night-ink);
  position: relative;
  overflow: hidden;
}

.ink-band .lede, .ink-band .sub, .ink-band p { color: var(--night-ink-secondary); }
.ink-band h2, .ink-band h3 { color: var(--night-ink); }
.ink-band .eyebrow { color: var(--night-gold); }

.ink-band .bg-art {
  position: absolute; inset: 0;
  opacity: 0.45;
}
.ink-band .bg-art img { width: 100%; height: 100%; object-fit: cover; }
.ink-band .bg-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.92), rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.95));
}
.ink-band .wrap { position: relative; }

.ink-band .btn-primary { background: var(--night-ink); color: #0a0a0a; }
.ink-band .btn-ghost { color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--night-hairline); }
.ink-band .btn-ghost:hover { background: rgba(244,244,243,0.08); }

/* ---------- The loop strip ---------- */

.loop-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 10px 18px;
  font-family: var(--font-voice);
  font-weight: 600;
  font-size: clamp(17px, 2.4vw, 24px);
  letter-spacing: -0.01em;
}

.loop-strip .step { display: inline-flex; align-items: baseline; gap: 18px; }
.loop-strip .sep { color: var(--gold-vivid); font-weight: 400; }

/* ---------- Phone mockup ---------- */

.phone {
  width: min(320px, 82vw);
  margin-inline: auto;
  aspect-ratio: 320 / 660;
  border-radius: 46px;
  background: var(--canvas);
  box-shadow:
    0 0 0 10px var(--night),
    0 0 0 11.5px #3a3a3a,
    var(--shadow-lift);
  overflow: hidden;
  position: relative;
  font-size: 13px;
}

.phone .screen {
  position: absolute;
  inset: 0;
  padding: 52px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--canvas);
}

.phone .notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 24px;
  background: var(--night);
  border-radius: 999px;
  z-index: 2;
}

.phone .greet {
  font-family: var(--font-voice);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  padding-inline: 4px;
}

.phone .greet small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

.phone .walk-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  color: #f4f4f3;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.phone .walk-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1);
}

.phone .walk-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,10,10,0.75), rgba(10,10,10,0.02) 60%);
}

.phone .walk-card .inner { padding: 14px; width: 100%; }

.phone .walk-card .kicker {
  font-size: 10px; font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night-gold);
  margin-bottom: 4px;
}

.phone .walk-card .title {
  font-family: var(--font-voice);
  font-weight: 700; font-size: 18px;
  line-height: 1.2; letter-spacing: -0.01em;
}

.phone .walk-card .meta {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(244,244,243,0.75);
  display: flex; align-items: center; gap: 6px;
}

.phone .walk-card .go {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #f4f4f3;
  color: #0a0a0a;
  display: grid; place-items: center;
  font-weight: 700;
}

.phone .row-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.phone .row-card .dot-glyph {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 14px;
  flex: none;
}

.phone .row-card .t { font-family: var(--font-voice); font-weight: 600; font-size: 13.5px; }
.phone .row-card .s { color: var(--ink-secondary); font-size: 11px; margin-top: 1px; }

.phone .verse-chip {
  background: var(--surface);
  border-radius: 16px;
  padding: 13px 14px;
  font-family: var(--font-word);
  font-size: 13px;
  line-height: 1.55;
}

.phone .verse-chip .ref {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}

.phone .tabbar {
  margin-top: auto;
  align-self: center;
  display: flex;
  gap: 4px;
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  padding: 5px;
}

.phone .tabbar span {
  font-family: var(--font-voice);
  font-weight: 600;
  font-size: 10.5px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ink-secondary);
}

.phone .tabbar .active { background: var(--accent); color: var(--on-accent); }

/* ---------- Chip rows ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  font-family: var(--font-voice);
  font-weight: 600;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--radius-chip);
  background: var(--surface);
  color: var(--ink);
}

.chip small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: var(--ink-secondary); }

/* ---------- Grid helpers ---------- */

.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ---------- Vows (convictions) ---------- */

.vows { display: grid; gap: 0; max-width: 760px; }

.vow {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding-block: 30px;
  border-top: 1px solid var(--hairline);
}

.vow:last-child { border-bottom: 1px solid var(--hairline); }

.vow .num {
  font-family: var(--font-word);
  font-size: 26px;
  color: var(--gold);
  line-height: 1.2;
}

.vow h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.vow p { color: var(--ink-secondary); max-width: 56ch; }

/* ---------- Library shelf ---------- */

.shelf {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.book {
  border-radius: 16px;
  padding: 24px 22px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 4px solid var(--gold-vivid);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.book:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.book .title {
  font-family: var(--font-word);
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 6px;
  text-wrap: balance;
}

.book .author {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}

.book .note {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--ink-tertiary);
}

/* ---------- Gallery ---------- */

.gallery { columns: 3; column-gap: 16px; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

.gallery figure {
  margin: 0 0 16px;
  break-inside: avoid;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.gallery .img-wrap { overflow: hidden; }
.gallery img { transform: scale(1.07); transition: transform 1.2s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.11); }

.gallery figcaption {
  padding: 14px 16px 16px;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.gallery figcaption strong {
  display: block;
  font-family: var(--font-word);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}

.gallery .theme-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- Walk descent timeline ---------- */

.descent {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding-left: 40px;
}

.descent::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-vivid), var(--hairline));
  border-radius: 2px;
}

.descent .moment {
  position: relative;
  padding-bottom: clamp(40px, 7vh, 72px);
}

.descent .moment:last-child { padding-bottom: 0; }

.descent .moment::before {
  content: "";
  position: absolute;
  left: -36px; top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--canvas);
  border: 3px solid var(--gold-vivid);
}

.descent .stage {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.descent h3 { font-size: clamp(21px, 2.6vw, 26px); margin-bottom: 10px; }
.descent p { color: var(--ink-secondary); max-width: 54ch; }

.descent .serif-line {
  font-family: var(--font-word);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
  color: var(--ink);
  margin-top: 14px;
  max-width: 44ch;
}

/* Breathing circle */
.breath {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid var(--gold-vivid);
  display: grid;
  place-items: center;
  margin-block: 18px;
  font-size: 13px;
  color: var(--ink-secondary);
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(0.92); box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold-vivid) 30%, transparent); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 22px transparent; }
}

/* ---------- Verse reader mock ---------- */

.reader-mock {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 48px);
  font-family: var(--font-word);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.9;
}

.reader-mock .vn {
  font-size: 0.62em;
  vertical-align: super;
  color: var(--ink-tertiary);
  margin-right: 4px;
  font-weight: 500;
}

.reader-mock mark {
  background: var(--hl-amber);
  border-radius: 4px;
  padding: 1px 3px;
  color: inherit;
}

.reader-mock .ref-line {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.swatches { display: flex; gap: 10px; margin-top: 22px; }
.swatches span { width: 26px; height: 26px; border-radius: 50%; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--night-ink-secondary);
  padding-block: clamp(56px, 8vh, 88px) 40px;
  font-size: 14px;
}

.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

.site-footer .brand { color: var(--night-ink); font-size: 24px; --brand-gold: var(--night-gold); }
.site-footer .brand .brand-mark { width: 30px; height: 30px; }
.site-footer h4 {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night-ink);
  margin-bottom: 14px;
}

.site-footer a { color: var(--night-ink-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--night-ink); }

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.site-footer .fine {
  border-top: 1px solid var(--night-hairline);
  padding-top: 26px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #70706c;
  display: grid;
  gap: 6px;
}

.site-footer .verse {
  font-family: var(--font-word);
  font-size: 16px;
  color: var(--night-ink-secondary);
  margin-top: 14px;
  max-width: 38ch;
  line-height: 1.6;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.in { opacity: 1; transform: none; }

.reveal-group.in > * {
  animation: rise 0.9s var(--ease-out) both;
}

.reveal-group > * { opacity: 0; }

.reveal-group.in > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-group.in > *:nth-child(2) { animation-delay: 0.13s; }
.reveal-group.in > *:nth-child(3) { animation-delay: 0.21s; }
.reveal-group.in > *:nth-child(4) { animation-delay: 0.29s; }
.reveal-group.in > *:nth-child(5) { animation-delay: 0.37s; }
.reveal-group.in > *:nth-child(6) { animation-delay: 0.45s; }
.reveal-group.in > *:nth-child(7) { animation-delay: 0.53s; }
.reveal-group.in > *:nth-child(8) { animation-delay: 0.61s; }
.reveal-group.in > *:nth-child(9) { animation-delay: 0.69s; }
.reveal-group.in > *:nth-child(10) { animation-delay: 0.77s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* Hero copy entrance */
.hero .content > * { animation: rise 1.1s var(--ease-out) both; }
.hero .content > *:nth-child(1) { animation-delay: 0.2s; }
.hero .content > *:nth-child(2) { animation-delay: 0.32s; }
.hero .content > *:nth-child(3) { animation-delay: 0.46s; }
.hero .content > *:nth-child(4) { animation-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .reveal-group > * { opacity: 1; transform: none; }
}

/* ---------- Theme toggle ---------- */

.theme-toggle {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }
.site-header.on-photo:not(.scrolled) .theme-toggle {
  color: #f4f4f3;
  border-color: rgba(244, 244, 243, 0.35);
}

/* ---------- Legal & support pages ---------- */

.legal { max-width: 68ch; margin-inline: auto; }

.legal .updated {
  font-family: var(--font-voice);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: 10px;
}

.legal h2 {
  font-family: var(--font-voice);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 14px;
  scroll-margin-top: 90px;
}

.legal h3 {
  font-family: var(--font-voice);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 8px;
}

.legal p, .legal li {
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink-secondary);
  margin: 0 0 16px;
}

.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.legal a:hover { color: var(--gold); }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 9px; }
.legal li::marker { color: var(--gold); }

/* The plain-language summary that opens a policy. */
.legal-summary {
  background: var(--field-sunrise);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.4vw, 36px);
  margin-bottom: 8px;
}
.legal-summary h2 { margin-top: 0; font-size: 21px; }
.legal-summary p:last-child, .legal-summary ul:last-child { margin-bottom: 0; }
.legal-summary li { color: var(--ink-secondary); }

/* A quiet aside for an honest caveat. */
.legal-note {
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 0 0 20px;
}
.legal-note p:last-child { margin-bottom: 0; }

/* Contents list at the top of a long document. */
.legal-toc { margin: 0 0 8px; padding: 0; list-style: none; column-gap: 32px; }
.legal-toc li { margin-bottom: 7px; font-size: 15.5px; }
.legal-toc a { text-decoration: none; color: var(--ink-secondary); }
.legal-toc a:hover { color: var(--gold); }

/* Fact tables: what is stored, what leaves, which permissions. */
.legal-table-wrap { overflow-x: auto; margin: 0 0 20px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15.5px; }
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.55;
}
.legal th {
  font-family: var(--font-voice);
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal td { color: var(--ink-secondary); }
.legal td:first-child { color: var(--ink); font-weight: 500; padding-right: 24px; }
