/* The Bearableguy123 Codex — static site */

:root {
  --ink: #1a1430;
  --ink-deep: #141428;
  --void: #0e0e1a;
  --void-deep: #0a0a14;
  --paper: #f7f5ef;
  --gold: #c8992a;
  --purple: #6a2c8f;
  --green: #2e7d32;
  --red: #b23b3b;
  --max: 1240px;
  --max-content: 1180px;
  --pad: 40px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-body);
  font-feature-settings: "onum", "liga";
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  transition: color 200ms ease;
}

a:hover {
  color: var(--gold);
}

::selection {
  background: var(--purple);
  color: var(--paper);
}

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

/* ——— Motion ——— */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fade-up.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— Nav ——— */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(14, 14, 26, 0.6) 0%, rgba(14, 14, 26, 0) 100%);
  transition: background 300ms ease, color 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(247, 245, 239, 0.96);
  color: var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(26, 20, 48, 0.1);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__brand:hover {
  color: inherit;
}

.nav__diamond {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav__links a {
  text-decoration: none;
  opacity: 0.75;
  white-space: nowrap;
}

.nav__links a:hover {
  opacity: 1;
  color: var(--gold);
}

.nav.is-scrolled .nav__links a:hover {
  color: var(--purple);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid rgba(247, 245, 239, 0.35);
  color: inherit;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 14px;
  cursor: pointer;
}

.nav.is-scrolled .nav__toggle {
  border-color: rgba(26, 20, 48, 0.25);
}

/* ——— Hero ——— */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #3a1c2c 0%, #2a1840 40%, #141428 80%);
}

.hero__collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
  background: var(--void-deep);
  min-height: 100%;
}

.hero__tile {
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.hero__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.35) brightness(0.42) contrast(1.05) saturate(0.75);
}

.hero__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(20, 20, 40, 0.55) 0%,
    rgba(58, 28, 44, 0.45) 50%,
    rgba(42, 24, 64, 0.55) 100%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(14, 14, 26, 0.55) 0%,
    rgba(20, 20, 40, 0.35) 40%,
    rgba(14, 14, 26, 0.92) 100%
  );
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 70% 30%, rgba(106, 44, 143, 0.25) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
}

.hero__meta {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__meta-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.55);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 120px;
}

.hero__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0 0 32px;
  text-wrap: balance;
}

.hero__title em {
  font-style: italic;
  color: var(--gold);
}

.hero__lede {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 48px;
  max-width: 720px;
  color: rgba(247, 245, 239, 0.85);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__rule {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold) 80%, transparent 100%);
  opacity: 0.7;
}

/* ——— Buttons ——— */

.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.btn--primary {
  background: var(--gold);
  color: var(--ink-deep);
}

.btn--primary:hover {
  background: var(--paper);
  color: var(--ink-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(247, 245, 239, 0.35);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--lg {
  padding: 22px 32px;
  gap: 16px;
}

.btn__arrow {
  font-size: 16px;
  line-height: 1;
}

.btn--lg .btn__arrow {
  font-size: 18px;
}

.link-out {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding: 4px 0;
}

.link-out--purple {
  color: var(--purple);
}

.link-out--purple:hover {
  color: var(--ink);
}

.link-out--gold {
  color: var(--gold);
}

.link-out--gold:hover {
  color: var(--paper);
}

/* ——— Stats ——— */

.stats {
  background: linear-gradient(180deg, var(--ink-deep) 0%, #1a1430 100%);
  padding: 96px var(--pad);
  border-bottom: 1px solid rgba(200, 153, 42, 0.18);
}

.stats__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.stats__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.5);
  text-align: center;
  margin-bottom: 56px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-cell {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(200, 153, 42, 0.18);
}

.stat-cell:last-child {
  border-right: none;
}

.stat-cell__value {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 112px);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-cell__label {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.7);
}

.stat-cell__note {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: rgba(247, 245, 239, 0.45);
}

/* ——— Shared section chrome ——— */

.section {
  padding: 140px var(--pad);
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--void {
  background: var(--ink-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.section--void::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 10%, rgba(106, 44, 143, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.section--gradient {
  background: linear-gradient(180deg, #1a1430 0%, #2a1840 100%);
  color: var(--paper);
}

.section__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  position: relative;
}

.section__header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 12px;
  padding-bottom: 24px;
}

.section--paper .section__header {
  border-bottom: 1px solid rgba(26, 20, 48, 0.15);
}

.section--void .section__header,
.section--gradient .section__header {
  border-bottom: 1px solid rgba(247, 245, 239, 0.15);
}

.section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.section--paper .section__num {
  color: var(--purple);
}

.section--void .section__num,
.section--gradient .section__num {
  color: var(--gold);
}

.section__aside {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: right;
}

.section--paper .section__aside {
  color: rgba(26, 20, 48, 0.45);
}

.section--void .section__aside,
.section--gradient .section__aside {
  color: rgba(247, 245, 239, 0.4);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 40px 0 64px;
  max-width: 900px;
  text-wrap: balance;
}

.section__title--tight {
  margin-bottom: 24px;
}

.section__title--mid {
  margin-bottom: 32px;
  max-width: 960px;
}

.section__title em {
  color: var(--gold);
  font-style: italic;
}

.section__intro {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  max-width: 780px;
  margin: 0 0 72px;
}

.section--paper .section__intro {
  color: rgba(26, 20, 48, 0.7);
}

.section__intro--pretty {
  line-height: 1.6;
  max-width: 820px;
  color: rgba(26, 20, 48, 0.78);
  text-wrap: pretty;
}

.section__footer-link {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

.section__footer-link--loose {
  margin-top: 40px;
}

.section__footer-link--roomy {
  margin-top: 56px;
}

/* ——— Brief origin ——— */

.brief-origin {
  margin: 40px 0 56px;
  padding: 36px 0 0;
  border-top: 1px solid rgba(26, 20, 48, 0.12);
}

.brief-origin__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.brief-origin__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
}

.brief-origin p {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 18px;
  color: rgba(26, 20, 48, 0.85);
  max-width: 820px;
}

.brief-origin p:last-child {
  margin-bottom: 0;
}

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 96px;
}

.brief-col {
  padding-top: 24px;
}

.brief-col--real {
  border-top: 2px solid var(--green);
}

.brief-col--also {
  border-top: 2px solid var(--red);
}

.brief-col__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.brief-col--real .brief-col__label {
  color: var(--green);
}

.brief-col--also .brief-col__label {
  color: var(--red);
}

.brief-col p {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  margin: 0 0 20px;
  color: rgba(26, 20, 48, 0.85);
}

.brief-col p:last-child {
  margin-bottom: 0;
}

.hits__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 20, 48, 0.55);
  margin-bottom: 20px;
}

.hits__table {
  border: 1px solid rgba(26, 20, 48, 0.15);
  background: #fff;
}

.hits__head,
.hits__row {
  display: grid;
  grid-template-columns: 60px 1fr 200px 140px;
  gap: 32px;
  padding: 20px 28px;
  align-items: center;
}

.hits__head {
  background: rgba(26, 20, 48, 0.04);
  border-bottom: 1px solid rgba(26, 20, 48, 0.12);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 20, 48, 0.55);
}

.hits__row {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(26, 20, 48, 0.08);
}

.hits__row:last-child {
  border-bottom: none;
}

.hits__n {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--purple);
}

.hits__claim {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

.hits__advance {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(26, 20, 48, 0.7);
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.tag--missed {
  background: var(--red);
  color: var(--paper);
}

.tag--open {
  background: var(--gold);
  color: var(--ink-deep);
}

.tag--verified {
  background: var(--green);
  color: var(--paper);
}

/* ——— Codex TOC ——— */

.codex-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 80px;
}

.codex-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid rgba(247, 245, 239, 0.1);
}

.codex-row__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.codex-row__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--paper);
}

.codex-row__pages {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.4);
}

.codex-cta {
  margin-top: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.codex-cta__note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 16px;
  color: rgba(247, 245, 239, 0.55);
}

/* ——— Mechanisms ——— */

.mechanisms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.mech-card {
  background: #fff;
  border: 1px solid rgba(26, 20, 48, 0.12);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mech-card__top {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.mech-card__num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--purple);
  font-weight: 500;
  line-height: 1;
}

.mech-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 20, 48, 0.5);
}

.mech-card__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

.mech-card__body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: rgba(26, 20, 48, 0.78);
  margin: 0;
}

.mech-card__takeaway {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px dashed rgba(26, 20, 48, 0.2);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  color: var(--purple);
}

.lessons {
  margin-top: 64px;
  border: 1px solid var(--green);
  background: rgba(46, 125, 50, 0.06);
  padding: 48px 56px;
}

.lessons__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}

.lessons__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.lessons__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
}

.lessons__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
}

.lessons__item {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.lessons__check {
  font-family: var(--font-mono);
  color: var(--green);
  font-size: 14px;
  flex-shrink: 0;
}

.lessons__text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
}

/* ——— Testing ——— */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.5);
  margin-bottom: 24px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 88px;
}

.tier {
  padding: 32px;
}

.tier--verified {
  border: 1px solid rgba(46, 125, 50, 0.5);
  background: rgba(46, 125, 50, 0.08);
}

.tier--open {
  border: 1px solid rgba(200, 153, 42, 0.5);
  background: rgba(200, 153, 42, 0.08);
}

.tier--missed {
  border: 1px solid rgba(178, 59, 59, 0.5);
  background: rgba(178, 59, 59, 0.1);
}

.tier__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tier__count {
  font-family: var(--font-mono);
  font-size: 20px;
}

.tier--verified .tier__count {
  color: var(--green);
}

.tier--open .tier__count {
  color: var(--gold);
}

.tier--missed .tier__count {
  color: var(--red);
}

.tier p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: rgba(247, 245, 239, 0.82);
}

.diagram-wrap {
  margin-bottom: 96px;
}

.diagram-box {
  border: 1px solid rgba(247, 245, 239, 0.15);
  padding: 48px;
  background: rgba(14, 14, 26, 0.4);
}

.diagram {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 32px;
  align-items: center;
}

.diagram__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diagram__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.diagram__label--bad {
  color: var(--red);
}

.diagram__label--good {
  color: var(--green);
}

.diagram__quote {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  font-style: italic;
  color: rgba(247, 245, 239, 0.7);
}

.diagram__quote--strong {
  color: rgba(247, 245, 239, 0.95);
}

.diagram__note {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(247, 245, 239, 0.5);
}

.diagram__arrow {
  text-align: center;
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--gold);
}

.quote-block {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 40px;
  max-width: 900px;
}

.quote-block__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.quote-block blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.25;
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  text-wrap: pretty;
}

/* ——— Ledger ——— */

.ledger-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 72px;
}

.ledger-card {
  background: #fff;
  border: 1px solid rgba(26, 20, 48, 0.12);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ledger-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ledger-card__eyebrow--purple {
  color: var(--purple);
}

.ledger-card__eyebrow--red {
  color: var(--red);
}

.ledger-card__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

.ledger-card__body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(26, 20, 48, 0.78);
  margin: 0;
}

.ledger-card__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ledger-card__list li {
  display: flex;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(26, 20, 48, 0.75);
}

.ledger-card__list .arrow {
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.ledger-card__list .arrow--purple {
  color: var(--purple);
}

.ledger-card__list .arrow--red {
  color: var(--red);
}

.position {
  border: 1px solid var(--green);
  background: rgba(46, 125, 50, 0.06);
  padding: 56px 64px;
}

.position__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}

.position__statement {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 400;
  margin: 0 0 24px;
  max-width: 900px;
  text-wrap: pretty;
  color: var(--ink);
}

.position__aside {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  color: rgba(26, 20, 48, 0.7);
  max-width: 780px;
}

/* ——— Footer ——— */

.site-footer {
  background: var(--void-deep);
  color: rgba(247, 245, 239, 0.7);
  padding: 80px var(--pad) 48px;
  border-top: 1px solid rgba(200, 153, 42, 0.2);
}

.site-footer__inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 245, 239, 0.1);
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 20px;
}

.site-footer__blurb {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
  color: rgba(247, 245, 239, 0.65);
}

.site-footer__toc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer__toc-label {
  color: var(--gold);
  margin-bottom: 20px;
}

.site-footer__toc-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__toc-links a {
  text-decoration: none;
  opacity: 0.7;
}

.site-footer__toc-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.site-footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 239, 0.4);
  gap: 16px;
  flex-wrap: wrap;
}

/* ——— Responsive ——— */

@media (max-width: 1100px) {
  :root {
    --pad: 28px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell:nth-child(2) {
    border-right: none;
  }

  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) {
    border-bottom: 1px solid rgba(200, 153, 42, 0.18);
  }

  .brief-cols,
  .codex-cols,
  .ledger-cols {
    gap: 40px;
  }

  .codex-cols {
    gap: 0 40px;
  }

  .tiers {
    grid-template-columns: 1fr;
  }

  .diagram {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .diagram__arrow {
    transform: rotate(90deg);
  }

  .position {
    padding: 40px 36px;
  }

  .lessons {
    padding: 36px 32px;
  }
}

@media (max-width: 860px) {
  :root {
    --pad: 20px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0 16px;
    background: rgba(14, 14, 26, 0.97);
    border-bottom: 1px solid rgba(200, 153, 42, 0.2);
  }

  .nav.is-scrolled .nav__links {
    background: rgba(247, 245, 239, 0.98);
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__links a {
    padding: 14px var(--pad);
    width: 100%;
    opacity: 1;
  }

  .hero__meta {
    top: 80px;
  }

  .hero__content {
    padding-bottom: 80px;
  }

  .hero__title {
    font-size: clamp(44px, 12vw, 72px);
  }

  .section {
    padding: 88px var(--pad);
  }

  .section__header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .section__aside {
    text-align: left;
  }

  .section__title {
    margin: 28px 0 40px;
  }

  .stats {
    padding: 64px var(--pad);
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .brief-cols,
  .codex-cols,
  .mechanisms,
  .lessons__grid,
  .ledger-cols,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .codex-cols {
    gap: 0;
  }

  .hits__head,
  .hits__row {
    grid-template-columns: 40px 1fr;
    gap: 12px 16px;
  }

  .hits__head span:nth-child(3),
  .hits__head span:nth-child(4),
  .hits__advance {
    display: none;
  }

  .hits__row .tag {
    grid-column: 2;
  }

  .diagram-box {
    padding: 28px 20px;
  }

  .quote-block {
    padding-left: 20px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-right: none;
    border-bottom: 1px solid rgba(200, 153, 42, 0.18);
  }

  .stat-cell:last-child {
    border-bottom: none;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .hero__meta-inner {
    flex-direction: column;
    gap: 8px;
  }
}
