@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,500;1,400;1,500&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #0E1526;
  --ink-raised: #141C33;
  --teal: #3ED6C5;
  --brass: #C9A24B;
  --paper: #EDEEF0;
  --slate: #8792A6;
  --hairline: rgba(237, 238, 240, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--paper);
}
.brand-mark {
  width: 22px; height: 22px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--slate);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--teal); }

/* Hero */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--hairline);
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero h1 em {
  color: var(--teal);
  font-style: italic;
}
.hero p.dek {
  font-size: 1.1rem;
  color: var(--slate);
  max-width: 52ch;
  margin: 0 0 36px;
}

/* Convergence signature graphic */
.convergence {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin-top: 8px;
  display: block;
}
.convergence path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
.path-market { stroke: var(--brass); }
.path-signal { stroke: var(--teal); }
.convergence circle { fill: var(--paper); }

@media (prefers-reduced-motion: no-preference) {
  .path-market, .path-signal {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: draw 2.1s ease forwards;
  }
  .path-signal { animation-delay: 0.15s; }
  .convergence circle {
    opacity: 0;
    animation: fadein 0.6s ease forwards;
    animation-delay: 1.9s;
  }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

/* Section labels */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px;
  margin-bottom: 0;
}

/* Ledger rows (article listing) */
.ledger { border-top: 1px solid var(--hairline); }
.ledger-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}
.ledger-row:hover .ledger-title { color: var(--teal); }
.ledger-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--brass);
  letter-spacing: 0.05em;
}
.ledger-title {
  font-family: 'Newsreader', serif;
  font-size: 1.3rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.ledger-dek {
  font-size: 0.92rem;
  color: var(--slate);
  margin-top: 6px;
  font-weight: 400;
  font-family: 'Space Grotesk', sans-serif;
}
.ledger-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--slate);
  white-space: nowrap;
}

/* Thesis section */
.thesis {
  padding: 64px 0;
  border-bottom: 1px solid var(--hairline);
}
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.thesis h2 {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 16px;
}
.thesis p { color: var(--slate); font-size: 0.98rem; }

footer {
  padding: 36px 0 60px;
  color: var(--slate);
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 720px) {
  .thesis-grid { grid-template-columns: 1fr; gap: 32px; }
  .ledger-row { grid-template-columns: 60px 1fr; }
  .ledger-date { display: none; }
}

/* Article page */
.article-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--hairline);
}
.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.article-header h1 {
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.14;
  margin: 0 0 18px;
}
.article-header .dek {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 62ch;
}
.article-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--brass);
  margin-top: 22px;
}
article.body {
  max-width: 72ch;
  padding: 48px 0;
  font-size: 1.05rem;
}
article.body h2 {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  margin-top: 44px;
}
article.body p { color: #D7D9DE; }
.answer-box {
  background: var(--ink-raised);
  border-left: 3px solid var(--teal);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 1rem;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.92rem;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
table.compare th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--brass);
  letter-spacing: 0.04em;
}
.disclaimer {
  font-size: 0.85rem;
  color: var(--slate);
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  margin-top: 40px;
}
