:root {
  color-scheme: light dark;
  --ink: #16201d;
  --muted: #58645f;
  --paper: #f3f1e9;
  --panel: rgba(255,255,255,.72);
  --line: rgba(22,32,29,.16);
  --accent: #bbff57;
  --accent-ink: #17200f;
  --deep: #0e1714;
  --deep-2: #16231f;
  --max: 1180px;
  --reading: 760px;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid #3b82f6; outline-offset: 4px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; background: #fff; color: #000; padding: .7rem 1rem; z-index: 50; }
.skip-link:focus { top: 1rem; }
.topbar { min-height: 72px; padding: 0 clamp(1rem,4vw,3rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--deep); color: #f6f7f2; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { font-weight: 850; letter-spacing: -.04em; text-decoration: none; font-size: 1.2rem; }
.brand span { color: var(--accent); font-weight: 650; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .88rem; }
.topbar nav a { text-decoration: none; color: #cbd5cf; }
.topbar nav a:hover { color: #fff; }
.home-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 80% 15%, rgba(187,255,87,.18), transparent 35%), linear-gradient(145deg, var(--deep), #101c31 68%, #192d26); color: #f5f7f1; padding: clamp(5rem,12vw,9rem) clamp(1rem,4vw,3rem) clamp(4rem,9vw,7rem); }
.home-hero::after { content: ""; position: absolute; width: 30rem; height: 30rem; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; right: -10rem; top: -12rem; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.02); }
.hero-inner, .section-inner, .article-shell, .site-footer { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.65fr); gap: clamp(2rem,7vw,7rem); align-items: end; position: relative; z-index: 1; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 800; color: #69766f; margin: 0 0 1rem; }
.home-hero .kicker, .article-hero .kicker { color: var(--accent); }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.home-hero h1 { max-width: 850px; font-size: clamp(4rem,10vw,8.4rem); font-weight: 850; }
.home-hero .lede { max-width: 760px; font-size: clamp(1.2rem,2.2vw,1.65rem); color: #c8d2cc; margin: 2rem 0 0; }
.hero-proof { border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.055); backdrop-filter: blur(8px); border-radius: var(--radius); padding: 1.4rem; }
.hero-proof dl, .receipt-card dl { margin: 0; }
.hero-proof div, .receipt-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-proof div:last-child, .receipt-card dl div:last-child { border-bottom: 0; }
dt { color: #91a098; } dd { margin: 0; font-weight: 750; text-align: right; }
.section { padding: clamp(4rem,8vw,7rem) 0; }
.section-heading { display: grid; grid-template-columns: .65fr 1.35fr; gap: 2rem; margin-bottom: 3rem; align-items: end; }
.section-heading h2 { font-size: clamp(2.2rem,5vw,4.5rem); }
.section-heading p:last-child { color: var(--muted); max-width: 640px; margin: 0; font-size: 1.08rem; }
.artifact-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 1rem; }
.artifact-card { grid-column: span 6; min-height: 330px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: clamp(1.5rem,3vw,2.3rem); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.artifact-card::before { content: ""; position: absolute; width: 9rem; height: 9rem; border-radius: 50%; background: rgba(187,255,87,.25); right: -3rem; top: -4rem; }
.artifact-card h3 { font-size: clamp(1.8rem,3vw,3rem); margin-top: auto; }
.artifact-card p { color: var(--muted); max-width: 52ch; }
.artifact-card .meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.meta span, .signal-row span { border: 1px solid currentColor; border-radius: 999px; padding: .25rem .65rem; font-size: .72rem; font-weight: 750; }
.artifact-card > a { align-self: flex-start; margin-top: 1rem; font-weight: 800; }
.library-principles { background: var(--deep); color: #f3f5f0; }
.principle-grid, .decision-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.principle-grid div { border-top: 1px solid rgba(255,255,255,.25); padding-top: 1rem; }
.principle-grid strong { color: var(--accent); }
.principle-grid p { color: #b8c4bd; }
.article-shell { padding: clamp(2rem,6vw,5rem) 0 6rem; }
.article-hero { background: radial-gradient(circle at 80% 15%, rgba(187,255,87,.16), transparent 34%), linear-gradient(140deg, var(--deep), #16263a 70%, #1b3027); color: #f7f8f3; border-radius: 32px; padding: clamp(2rem,7vw,6rem); min-height: min(680px,75vh); display: flex; flex-direction: column; justify-content: flex-end; }
.article-hero h1 { font-size: clamp(3.4rem,8vw,7.2rem); max-width: 970px; }
.article-hero .dek { font-size: clamp(1.2rem,2.2vw,1.65rem); max-width: 760px; color: #c4d0ca; margin: 2rem 0; }
.signal-row { display: flex; flex-wrap: wrap; gap: .5rem; color: #dbe5df; }
.prose { width: min(100%, var(--reading)); margin: 0 auto; padding: clamp(4rem,9vw,8rem) 0; }
.prose section + section { margin-top: 4rem; }
.prose h2 { font-size: clamp(2rem,4vw,3.6rem); margin-bottom: 1.2rem; }
.prose p { font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; font-size: clamp(1.1rem,1.6vw,1.28rem); color: #26322e; }
.pull-section { margin-inline: clamp(-1rem,-8vw,-7rem); }
.pullquote { font-family: inherit !important; font-size: clamp(2.2rem,5vw,4.7rem) !important; line-height: 1.04; letter-spacing: -.045em; font-weight: 850; color: var(--ink) !important; border-left: 10px solid var(--accent); padding-left: clamp(1rem,3vw,2rem); }
.decision-grid { margin-top: 1.5rem; }
.decision-grid div { border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem; background: rgba(255,255,255,.5); }
.decision-grid strong { font-size: 1.25rem; }
.decision-grid p { font-family: inherit; font-size: .95rem; margin-bottom: 0; }
.receipt-card { background: var(--deep); color: #f4f6f1; border-radius: var(--radius); padding: clamp(1.5rem,4vw,3rem); display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 2rem; align-items: center; }
.receipt-card h2 { font-size: clamp(1.8rem,3vw,3rem); }
.receipt-card .kicker { color: var(--accent); }
.receipt-card dl div { border-color: rgba(255,255,255,.12); }
.receipt-card a { color: var(--accent); font-weight: 800; }
.site-footer { padding: 2rem 0 3rem; display: flex; justify-content: space-between; gap: 2rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .topbar { align-items: flex-start; padding-block: 1rem; }
  .topbar nav { justify-content: flex-end; }
  .hero-grid, .section-heading, .receipt-card { grid-template-columns: 1fr; }
  .artifact-card { grid-column: span 12; }
  .principle-grid, .decision-grid { grid-template-columns: 1fr 1fr; }
  .article-hero { min-height: 560px; border-radius: 22px; }
}
@media (max-width: 520px) {
  .topbar { display: block; }
  .topbar nav { margin-top: .7rem; justify-content: flex-start; }
  .principle-grid, .decision-grid { grid-template-columns: 1fr; }
  .site-footer { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-color-scheme: dark) {
  :root { --paper: #111815; --ink: #edf2ed; --muted: #a6b2ac; --panel: rgba(255,255,255,.045); --line: rgba(255,255,255,.14); }
  .prose p { color: #d1d9d4; }
  .decision-grid div { background: rgba(255,255,255,.035); }
}
