/* Billion Testimonies. Layout, palette and type from the Oct 4, 2026 mockup:
   pre-dawn indigo, dawn amber, cool paper; Newsreader display, Figtree body, IBM Plex Mono labels.
   The name is set in type. No logo exists yet. */

:root {
  --indigo: #18213F;
  --indigo-2: #1F2A4F;
  --indigo-line: #333D69;
  --indigo-track: #2A3463;
  --indigo-soft: #47507A;
  --amber: #F2A93B;
  --amber-ink: #8F5208;
  --amber-soft: #F2C47E;
  --cream: #FFF4DE;
  --mist: #D9DCEA;
  --haze: #A9AFCB;
  --paper: #F4F5F7;
  --white: #FFFFFF;
  --ink: #141A2E;
  --slate: #4A5168;
  --rule: #DCDFE6;

  --serif: Newsreader, Georgia, serif;
  --sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}

/* Scripts the Latin faces don't cover. Each element that carries lang= gets its own stack. */
:lang(ko) { --serif: Newsreader, "Noto Serif KR", serif; --sans: Figtree, "Noto Sans KR", sans-serif; }
:lang(zh) { --serif: Newsreader, "Noto Serif SC", serif; --sans: Figtree, "Noto Sans SC", sans-serif; }
:lang(ru) { --serif: "Noto Serif", Georgia, serif; --sans: "Noto Sans", system-ui, sans-serif; }
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--indigo); }
a:hover { color: var(--slate); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Labels in mono; scripts IBM Plex Mono lacks fall back to the sans */
.eyebrow, .kicker, .caption, .sources, .map-text caption, .tile-lang, .tile-dur, .bar-labels {
  font-family: var(--mono);
}
:lang(ko) :is(.eyebrow, .kicker, .caption, .map-text caption, .tile-lang, .bar-labels),
:lang(zh) :is(.eyebrow, .kicker, .caption, .map-text caption, .tile-lang, .bar-labels),
:lang(ru) :is(.eyebrow, .kicker, .caption, .map-text caption, .tile-lang, .bar-labels) {
  font-family: var(--sans); letter-spacing: 0.02em;
}

/* Header */
.site-header { background: var(--indigo); color: var(--cream); }
.site-header .wrap {
  display: flex; align-items: center; gap: 16px 32px;
  padding-top: 18px; padding-bottom: 18px;
}
.wordmark {
  font-family: Newsreader, Georgia, serif;
  font-size: 26px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--cream); text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--cream); }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; flex: 1 1 auto; font-size: 16px; font-weight: 500; }
.main-nav a { color: var(--cream); text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: var(--amber); }

.lang-menu { position: relative; margin-left: auto; }
.lang-menu summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 12px;
  font-size: 15px; color: var(--cream);
  border: 1px solid var(--indigo-soft); border-radius: 6px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--haze); }
.lang-menu[open] summary svg:last-child { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10;
  margin: 0; padding: 6px; list-style: none;
  min-width: 220px; max-height: 70vh; overflow: auto;
  background: var(--white); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 18px 40px -20px rgba(24, 33, 63, 0.45);
}
.lang-menu li a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 6px; color: var(--ink); text-decoration: none; font-family: var(--sans);
}
.lang-menu li a:hover { background: var(--paper); color: var(--ink); }
.lang-menu li a[aria-current="page"] { font-weight: 700; background: var(--paper); }

/* Hero */
.hero { background: var(--indigo); color: var(--cream); padding: 56px 0 72px; }
.hero > .wrap { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; }
.hero-main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.eyebrow {
  margin: 0; font-size: 14px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber);
}
.eyebrow--ink { color: var(--amber-ink); }
.hero h1 {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(46px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.02em;
  text-wrap: balance;
}
:lang(ko) .hero h1, :lang(zh) .hero h1 { line-height: 1.22; letter-spacing: 0; }
.gloss { margin: -8px 0 0; font-size: 18px; color: var(--haze); }
.message {
  margin: 0; max-width: 24em;
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 31px); line-height: 1.25;
  color: var(--amber); text-wrap: balance;
}
.lede { margin: 0; font-size: 19px; line-height: 1.5; color: var(--mist); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px;
  border-radius: 8px; font-size: 18px; font-weight: 700; text-decoration: none;
}
.btn--amber { background: var(--amber); color: var(--indigo); }
.btn--amber:hover { background: var(--amber-soft); color: var(--indigo); }
.btn--ghost { color: var(--cream); border: 1px solid #5A6390; font-weight: 600; }
.btn--ghost:hover { color: var(--cream); border-color: var(--haze); }
.status { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; color: var(--mist); }
.status::before {
  content: ""; flex: none; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--amber);
}

.counter {
  margin-top: 8px; padding-top: 26px; border-top: 1px solid var(--indigo-line);
  display: flex; flex-direction: column; gap: 12px;
}
.counter-figure { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.big {
  font-family: var(--mono); font-size: clamp(38px, 4.6vw, 52px); font-weight: 500;
  color: var(--amber); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
:lang(ko) .big, :lang(zh) .big { font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.big-label { font-size: 18px; color: var(--mist); }
.bar { position: relative; height: 10px; background: var(--indigo-soft); border-radius: 5px; overflow: hidden; }
.bar-goal { position: absolute; inset: 0 auto 0 0; width: 38.5%; background: var(--amber); }
.bar-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--haze); }
.bar-goal-label { color: var(--amber-soft); }
.stats {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; color: var(--mist);
}
.stats li { position: relative; }
.sources { margin: 0; font-size: 12px; line-height: 1.5; color: var(--haze); }

.tiles {
  flex: 1 1 500px; min-width: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 4 / 5; padding: 16px; border-radius: 10px; overflow: hidden; text-decoration: none;
}
.tile-lang { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.tile-phrase { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 25px); line-height: 1.18; text-wrap: balance; }
.tile--deep { background: var(--indigo-2); border: 1px solid var(--indigo-line); color: var(--cream); }
.tile--deep .tile-lang { color: var(--haze); }
.tile--amber { background: var(--amber); color: var(--indigo); }
.tile--amber .tile-lang { color: #5C3A06; }
.tile--cream { background: var(--cream); color: var(--indigo); }
.tile--cream .tile-lang { color: var(--amber-ink); }
.tile:hover { transform: translateY(-2px); transition: transform 0.15s ease; }
.tile--photo { padding: 0; background: var(--indigo-track); }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 10px 10px;
  background: linear-gradient(to top, rgba(14, 19, 40, 0.94), rgba(14, 19, 40, 0));
  color: var(--cream); font-size: 13px; line-height: 1.3;
}
.tile-cap b { display: block; font-size: 15px; font-weight: 600; }
.tile-dur {
  position: absolute; top: 8px; right: 8px; padding: 3px 7px; border-radius: 4px;
  background: rgba(14, 19, 40, 0.8); color: var(--cream); font-size: 12px;
}

/* The words strip */
.words { background: var(--white); border-bottom: 1px solid var(--rule); padding: 28px 0; }
.words .wrap { display: flex; flex-direction: column; gap: 14px; }
.caption {
  margin: 0; font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate);
}
.phrase-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.phrase-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 4px 16px;
  font-family: var(--serif); font-size: 21px; color: var(--ink); text-decoration: none;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px;
}
.phrase-list a:hover { border-color: var(--indigo); color: var(--ink); }
.phrase-list a[aria-current="page"] { background: var(--indigo); border-color: var(--indigo); color: var(--cream); }

/* Sections */
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section--tight { padding-top: 0; }
.section--white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section h2, .map-section h2 {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.015em;
}

.why-grid { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: start; }
.goal-line {
  flex: 1 1 420px; margin: 0;
  font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15;
  letter-spacing: -0.01em; color: var(--indigo); text-wrap: balance;
}
.why-body { flex: 1 1 420px; margin: 0; font-size: 19px; color: var(--slate); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 40px; margin-top: 36px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.kicker { margin: 0; font-size: 15px; font-weight: 500; color: var(--amber-ink); }
.step h3 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; }
.step p { margin: 0; color: var(--slate); max-width: 36em; }

/* Real clips (content/clips.json, releases on file) */
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.clip { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.clip-media { position: relative; aspect-ratio: 4 / 5; background: var(--rule); }
.clip-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.clip-phrase { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.clip-who { margin: 0; font-size: 15px; color: var(--slate); }
.clip-who b { color: var(--ink); font-weight: 600; }
.told-more { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 15px; }

/* Map */
.map-section { background: var(--indigo); color: var(--cream); padding: clamp(56px, 8vw, 80px) 0; }
.map-grid { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; }
.map-text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.map-text p { margin: 0; color: var(--mist); }
.map-text table { border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; width: 100%; max-width: 420px; }
.map-text caption {
  text-align: left; padding-bottom: 8px; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--haze);
}
.map-text td { padding: 7px 0; border-top: 1px solid var(--indigo-line); }
.map-text tr:last-child td { border-bottom: 1px solid var(--indigo-line); }
.map-text td.num { text-align: right; font-family: var(--mono); white-space: nowrap; padding-left: 16px; }
:lang(ko) .map-text td.num, :lang(zh) .map-text td.num { font-family: var(--sans); }
.map-figure { flex: 2 1 600px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.map-figure img { width: 100%; height: auto; display: block; border-radius: 12px; }
.map-figure figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--haze); }
.legend { width: 160px; height: 10px; border-radius: 5px; background: linear-gradient(to right, rgb(77, 77, 105), var(--amber)); }
.map-source { margin-left: auto; font-size: 13px; }

/* Congregations */
.cong-grid { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.cong { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cong > p { margin: 0; color: var(--slate); font-size: 18px; }
.cong > p.eyebrow { font-size: 14px; color: var(--amber-ink); }
.card {
  flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 28px;
  box-shadow: 0 18px 40px -24px rgba(24, 33, 63, 0.35);
}
.card-title { margin: 0; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.card li {
  display: flex; align-items: center; gap: 12px; font-size: 17px;
  background: var(--paper); border-radius: 10px; padding: 12px 14px;
}
.card li svg { flex: none; color: var(--amber-ink); }
.card-note { margin: 0; color: var(--slate); font-size: 15px; }

/* Languages */
.langs { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: start; }
.langs-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.langs-intro p { margin: 0; color: var(--slate); }
.lang-list { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lang-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px;
  font-family: var(--sans); font-size: 18px; color: var(--ink); text-decoration: none;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
}
.lang-list a:hover { border-color: var(--indigo); color: var(--ink); }
.lang-list a[aria-current="page"] { background: var(--indigo); border-color: var(--indigo); color: var(--cream); }

/* Congregation interest form (off unless site.json turns it on) */
.interest { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.interest label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.interest input, .interest textarea {
  font: inherit; font-weight: 400; font-size: 17px; color: var(--ink);
  padding: 10px 12px; min-height: 44px;
  background: var(--white); border: 1px solid #B8BDCB; border-radius: 8px;
}
.interest input:focus, .interest textarea:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--indigo); }
.interest button {
  align-self: flex-start; font: inherit; font-weight: 700; cursor: pointer;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 8px;
  background: var(--indigo); color: var(--cream);
}
.interest .privacy-note { margin: 0; font-size: 14px; color: var(--slate); }
.interest .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Simple pages: 404, thanks */
.simple { padding: clamp(56px, 8vw, 96px) 0; min-height: 50vh; }
.simple h1 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4.4vw, 44px); }
.simple p { margin: 0 0 12px; color: var(--slate); }

/* Footer */
.site-footer { background: var(--indigo); color: var(--mist); padding: 48px 0 56px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 8px; }
.site-footer .wordmark { align-self: flex-start; }
.site-footer p { margin: 0; font-size: 15px; max-width: 42em; }
.site-footer .brand-local { font-family: var(--serif); font-size: 19px; color: var(--cream); }
.site-footer .fine { font-size: 14px; color: var(--haze); }

@media (max-width: 860px) {
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .wordmark { font-size: 22px; }
  .hero { padding: 40px 0 52px; }
  .hero > .wrap { gap: 36px; }
  .lede { font-size: 17px; }
  .btn { font-size: 16px; padding: 0 18px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { aspect-ratio: 1 / 1; padding: 14px; }
  .phrase-list a { font-size: 18px; }
  .lang-list a { font-size: 16px; }
  .map-source { margin-left: 0; }
}
