/* ============================================================
   ONLY UP · shared styles
   Committed dark. One accent. Everything points up.
   ============================================================ */

@font-face {
  font-family: "Anton";
  src: url("/fonts/anton-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-500-italic.woff2") format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-600-italic.woff2") format("woff2");
  font-weight: 600; font-style: italic; font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0a0a0a;
  --ink-2: #121211;
  --ink-3: #1a1a19;
  --line: rgba(242, 239, 230, 0.12);
  --line-2: rgba(242, 239, 230, 0.24);
  --bone: #f2efe6;
  --bone-2: #c9c5ba;
  --muted: #8f8b82;
  --up: #3987e5;
  --up-hi: #5aa0f0;
  --up-wash: rgba(57, 135, 229, 0.16);
  --up-glow: rgba(57, 135, 229, 0.4);
  --display: "Anton", Impact, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  --scripture: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
svg { display: block; }
::selection { background: var(--up); color: var(--ink); }
:focus-visible { outline: 2px solid var(--up); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--up); color: #fff; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ── type ───────────────────────────────────────────────── */
.kicker {
  margin: 0;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
}
.kicker.up { color: var(--up); }
.display {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.92;
}
.scripture {
  font-family: var(--scripture); font-style: italic; font-weight: 500;
  color: var(--bone-2);
}
.up { color: var(--up); }
.fine { color: var(--muted); font-size: 13px; }
.kicker, .display, .scripture, .fine, .card .member { text-wrap: balance; }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 22px; letter-spacing: 0.03em;
  text-decoration: none; text-transform: uppercase;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--bone-2); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--bone); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* ── buttons (they go up on hover, obviously) ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; color: var(--bone);
  padding: 14px 26px; border-radius: 999px;
  background: rgba(10, 10, 10, 0.72); border: 1px solid var(--line-2);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-3px); border-color: var(--bone-2); }
.btn:active { transform: translateY(-1px); }
.btn-up { background: var(--up); border-color: var(--up); color: #fff; }
.btn-up:hover { background: var(--up-hi); border-color: var(--up-hi); box-shadow: 0 14px 40px -10px var(--up-glow); }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn .tri { font-family: var(--sans); font-size: 0.7em; }

/* ── hero ───────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
  padding: clamp(72px, 12vh, 120px) 0 clamp(110px, 18vh, 170px);
}
.hero::before {
  content: ""; position: absolute; z-index: -2;
  left: 50%; top: -30%; width: 140%; height: 120%; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(57, 135, 229, 0.22), transparent 70%);
  pointer-events: none;
}
.hero h1 { font-size: clamp(92px, 21vw, 280px); margin-top: 18px; }
.hero h1 .up { text-shadow: 0 0 70px var(--up-glow); }
.hero .scripture { font-size: clamp(26px, 3.8vw, 44px); margin: 16px 0 36px; text-shadow: 0 0 14px var(--ink), 0 0 28px var(--ink), 0 0 4px var(--ink); }
.hero .kicker { text-shadow: 0 0 10px var(--ink); }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.the-line {
  position: absolute; z-index: -1; left: 0; right: 0; bottom: 0;
  width: 100%; height: 72%;
  pointer-events: none;
}
.the-line .l {
  fill: none; stroke: var(--up); stroke-width: 3;
  stroke-linejoin: round; stroke-linecap: round;
  opacity: 0.75;
  filter: drop-shadow(0 0 8px var(--up-glow));
}
.the-line .dot { fill: var(--up); filter: drop-shadow(0 0 10px var(--up)); }

/* ── the chant ──────────────────────────────────────────── */
.chant { background: var(--up); color: var(--ink); overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: clamp(22px, 3vw, 34px); line-height: 1;
  padding: 16px 0; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── sections ───────────────────────────────────────────── */
.block { padding: clamp(84px, 12vw, 132px) 0; border-top: 1px solid var(--line); }
.block.first { border-top: 0; padding-top: clamp(56px, 9vw, 96px); }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head .display { font-size: clamp(38px, 11.5vw, 116px); margin-top: 14px; }
.section-head .scripture { font-size: clamp(22px, 2.8vw, 30px); margin: 14px 0 0; }

/* ── doctrine ───────────────────────────────────────────── */
.commandments { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
.commandments li {
  display: grid; grid-template-columns: 92px 1fr; gap: 22px; align-items: baseline;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.commandments li:last-child { border-bottom: 1px solid var(--line); }
.numeral {
  font-family: var(--scripture); font-style: italic; font-weight: 600;
  font-size: 36px; line-height: 1; color: var(--up); text-align: right;
}
.commandments h3 {
  margin: 0 0 8px;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 3.6vw, 42px); line-height: 1; letter-spacing: 0.01em;
}
.commandments p { margin: 0; color: var(--bone-2); font-size: 17px; }
.commandments li.final h3 { color: var(--up); text-shadow: 0 0 40px var(--up-glow); }
.footnote { text-align: center; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) {
  .commandments li { grid-template-columns: 50px 1fr; gap: 14px; padding: 22px 0; }
  .numeral { font-size: 26px; }
}

/* ── founder's ledger ───────────────────────────────────── */
.ledger-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 880px) { .ledger-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.tile {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--up-wash), transparent 42%), var(--ink-2);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 24px 22px;
}
.tile .label { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.tile .num { font-family: var(--display); font-size: clamp(84px, 9vw, 116px); line-height: 1; margin: 16px 0 4px; }
.unit { font-family: var(--display); font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--up); }
.rank-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 5px 13px 4px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--display); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase;
}
.rank-pill small { font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); }
.meter { height: 4px; margin-top: 16px; background: rgba(57, 135, 229, 0.18); border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--up); border-radius: 2px; }
.next { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; font-size: 13px; color: var(--muted); }
.next b { color: var(--bone-2); font-weight: 600; }
.since { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.ticker { text-align: center; margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.ticker b { color: var(--bone-2); font-variant-numeric: tabular-nums; }

/* ── the ascent (ranks) ─────────────────────────────────── */
.ladder { list-style: none; margin: 0 auto; padding: 0; max-width: 700px; position: relative; }
.ladder::before {
  content: ""; position: absolute; left: 83px; top: 26px; bottom: 26px; width: 2px;
  background: linear-gradient(to top, rgba(57, 135, 229, 0.12), var(--up));
}
.ladder li { display: grid; grid-template-columns: 64px 40px 1fr; align-items: center; padding: 13px 0; }
.ladder .day { text-align: right; font-family: var(--display); font-size: 19px; letter-spacing: 0.04em; color: var(--muted); }
.ladder .node {
  justify-self: center; position: relative; z-index: 1;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--up);
}
.ladder li.reached .node { background: var(--up); box-shadow: 0 0 0 5px rgba(57, 135, 229, 0.2); }
.ladder li.reached .day { color: var(--bone-2); }
.ladder .name { font-family: var(--display); font-size: clamp(26px, 3.2vw, 34px); text-transform: uppercase; line-height: 1; }
.ladder li:not(.reached) .name { color: var(--bone-2); }
.ladder .desc { margin-top: 5px; font-size: 15px; color: var(--muted); }
.ladder .here {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--up); border: 1px solid rgba(57, 135, 229, 0.5); border-radius: 999px; padding: 3px 8px 2px;
}

/* ── oath call ──────────────────────────────────────────── */
.oath-cta { text-align: center; }
.oath-cta .display { font-size: clamp(72px, 13vw, 164px); margin-top: 14px; }
.oath-cta .scripture { font-size: clamp(24px, 3vw, 34px); margin: 16px 0 34px; }
.oath-cta .fine { margin-top: 20px; }

/* ── faq ────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 4px;
  font-family: var(--display); font-size: clamp(24px, 2.8vw, 30px); text-transform: uppercase; line-height: 1.05;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "\25B2"; flex: none;
  font-family: var(--sans); font-size: 13px; color: var(--up);
  transform: rotate(180deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(0deg); } /* it opens up */
.faq details p { margin: -4px 4px 26px; font-family: var(--scripture); font-style: italic; font-weight: 500; font-size: 24px; line-height: 1.35; color: var(--bone-2); }

/* ── closing ────────────────────────────────────────────── */
.closing { text-align: center; padding: clamp(100px, 14vw, 160px) 0 clamp(90px, 12vw, 140px); border-top: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.closing::before {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: -40%; width: 120%; height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(57, 135, 229, 0.18), transparent 70%);
}
.closing .display { font-size: clamp(100px, 20vw, 250px); }
.closing .scripture { font-size: clamp(26px, 3.4vw, 40px); margin: 16px 0 36px; }

/* ── footer ─────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 13px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }

/* ── oath form ──────────────────────────────────────────── */
.form { max-width: 640px; margin: 0 auto; display: grid; gap: 38px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.q {
  display: block; padding: 0; margin: 0 0 14px;
  font-family: var(--display); font-size: clamp(28px, 3.6vw, 36px); text-transform: uppercase; line-height: 1;
}
.q .step { font-family: var(--scripture); font-style: italic; font-weight: 600; color: var(--up); margin-right: 12px; text-transform: none; }
.input {
  width: 100%;
  background: var(--ink-2); color: var(--bone);
  border: 1px solid var(--line-2); border-radius: 14px;
  font: 500 18px/1.2 var(--sans); padding: 16px 18px;
}
.input::placeholder { color: #6f6b63; }
.input:focus { outline: none; border-color: var(--up); box-shadow: 0 0 0 4px rgba(57, 135, 229, 0.2); }
.input[type="date"] { color-scheme: dark; min-height: 56px; }
.hint { margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 11px 18px; cursor: pointer; user-select: none;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--bone-2);
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.chip span:hover { border-color: var(--bone-2); color: var(--bone); }
.chip input:checked + span { background: var(--up); border-color: var(--up); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--up); outline-offset: 3px; }
#vow-custom { margin-top: 12px; }
.swear {
  display: flex; gap: 16px; align-items: flex-start; cursor: pointer;
  padding: 22px 22px 22px 20px; border-radius: 18px;
  background: var(--ink-2); border: 1px solid var(--line-2);
}
.swear:hover { border-color: var(--bone-2); }
.swear input { flex: none; width: 22px; height: 22px; margin: 5px 0 0; accent-color: var(--up); cursor: pointer; }
.swear span { font-family: var(--scripture); font-style: italic; font-weight: 500; font-size: 25px; line-height: 1.3; color: var(--bone); }
.error { margin: -18px 0 -10px; min-height: 1.4em; color: #ff8f85; font-size: 15px; text-align: center; }
.form .btn-up { font-size: 22px; padding: 18px 30px; }

/* ── ledger card ────────────────────────────────────────── */
.card {
  max-width: 640px; margin: 0 auto; text-align: center;
  position: relative; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, rgba(57, 135, 229, 0.2), transparent 62%), var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 26px;
  padding: 34px 32px 30px;
}
.seal { width: 92px; height: 92px; margin: 0 auto 18px; color: var(--up); }
.seal .ring { transform-origin: 60px 60px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card .member { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.card .who { margin: 16px 0 8px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 11vw, 92px); line-height: 0.95; overflow-wrap: anywhere; }
.card .vow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--up); }
.card .num { font-family: var(--display); font-size: clamp(128px, 28vw, 230px); line-height: 0.9; margin: 28px 0 4px; text-shadow: 0 0 70px rgba(57, 135, 229, 0.3); }
.card .unit { font-size: 24px; letter-spacing: 0.18em; }
.card .rank-line { margin: 26px 0 0; display: flex; justify-content: center; align-items: baseline; gap: 12px; }
.card .rank-line small { font-size: 11px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.card .rank-name { font-family: var(--display); font-size: 36px; text-transform: uppercase; line-height: 1; }
.card .rank-desc { margin: 8px 0 0; font-size: 23px; }
.card .meter { max-width: 420px; margin: 22px auto 0; }
.card .next { max-width: 420px; margin-left: auto; margin-right: auto; }
.card .since { margin-top: 18px; }
.card .ticker { margin-top: 8px; font-size: 13px; }
.card-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.card-note { text-align: center; margin: 20px 0 0; }
.empty { text-align: center; }
.empty .display { font-size: clamp(56px, 10vw, 120px); margin: 14px 0 0; }
.empty .scripture { font-size: clamp(22px, 3vw, 32px); margin: 14px 0 32px; }

/* ── 404 ────────────────────────────────────────────────── */
.lost { min-height: calc(100vh - 61px); display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.lost .display { font-size: clamp(76px, 15vw, 200px); margin-top: 16px; }
.lost .flip { display: inline-block; transform: rotate(180deg); color: var(--muted); }
.lost .scripture { font-size: clamp(26px, 3.6vw, 42px); margin: 18px 0 36px; }

/* ── motion off means motion off ────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .seal .ring { animation: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}
