/* A Predatory Mind. Tokens first; nothing below hard-codes a colour.
   13 Oct 2026: oxblood retired. Black, white and one signal colour (--blood is now the lime signal; name kept so the rules below still read). */
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url(/fonts/source-serif-4-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ground: #000000;
  --panel: #0c0c0c;
  --panel-2: #151515;
  --line: #2a2a2a;
  --ink: #ffffff;
  --muted: #b4b4b4;
  --faint: #7a7a7a;
  --bone: #ffffff;
  --blood: #d4ff00;
  --blood-hi: #d4ff00;
  --on-accent: #000000;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --narrow: 720px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.125rem/1.7 var(--serif); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--blood-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bone); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blood-hi); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--ground); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.kicker { font: 600 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blood-hi); display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.dek { color: var(--muted); font-size: 1.2rem; line-height: 1.55; margin: 1rem 0 0; }
.meta { font: 500 .8rem/1.4 var(--sans); color: var(--faint); letter-spacing: .02em; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.05rem/1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.mark { width: 30px; height: 30px; color: var(--blood-hi); flex: none; }
.nav { display: flex; gap: clamp(12px, 2.4vw, 28px); font: 500 .85rem/1 var(--sans); }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); border-bottom-color: var(--blood-hi); }

/* Home hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ground) 0%, color-mix(in srgb, var(--ground) 82%, transparent) 38%, transparent 75%), linear-gradient(0deg, var(--ground) 0%, transparent 45%); }
.hero-copy { position: relative; padding-top: 120px; padding-bottom: clamp(48px, 9vh, 96px); width: 100%; }
.hero-copy h1 { max-width: 19ch; margin: 14px 0 0; font-size: clamp(2.2rem, 5.6vw, 4rem); }
.hero-copy p { max-width: 46ch; color: var(--muted); font-size: 1.2rem; margin: 20px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { font: 600 .9rem/1 var(--sans); text-decoration: none; background: var(--blood); color: var(--bone); padding: 15px 22px; border-radius: 2px; border: 1px solid var(--blood); }
.btn:hover { background: var(--blood-hi); border-color: var(--blood-hi); color: var(--bone); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--muted); background: transparent; }

/* Sections */
.block { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(24px, 4vw, 48px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 32px; }
.section-head a { font: 500 .85rem/1 var(--sans); color: var(--muted); }
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--blood); transform: translateY(-2px); color: var(--ink); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--panel-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.45rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; flex: 1; }

.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(48px, 7vw, 80px); }
.rules { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.rules p { color: var(--muted); margin: 10px 0 0; }
.rules ol { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.rules li { counter-increment: r; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.rules li::before { content: counter(r, decimal-leading-zero); display: block; font: 600 .75rem/1 var(--sans); color: var(--blood-hi); letter-spacing: .1em; margin-bottom: 10px; }
.rules strong { color: var(--ink); display: block; font-weight: 600; margin-bottom: 4px; }

.terms { display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin: 0; }
.terms div { border-bottom: 1px solid var(--line); padding: 18px 0; }
.terms dt { font-weight: 600; font-size: 1.15rem; }
.terms dt a { text-decoration: none; }
.terms dd { margin: 6px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }

/* Page heads */
.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 24px; }
.page-head h1 { margin-top: 12px; }
.page-hero { height: clamp(200px, 34vw, 420px); overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ground), transparent 60%); }

/* Article */
.art-head { position: relative; }
.art-img { height: clamp(260px, 52vw, 620px); overflow: hidden; position: relative; }
.art-img img { width: 100%; height: 100%; object-fit: cover; }
.art-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ground) 2%, color-mix(in srgb, var(--ground) 40%, transparent) 45%, transparent 80%); }
.art-title { position: relative; margin-top: clamp(-160px, -14vw, -60px); }
.art-title h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-top: 14px; }
.art-title .meta { margin-top: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.crumbs { font: 600 .72rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blood-hi); }
.crumbs a { color: var(--muted); text-decoration: none; }
.prose { padding-top: 32px; padding-bottom: 48px; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 1.25em; }
.prose .lede { font-size: 1.32rem; line-height: 1.6; color: var(--bone); }
.prose .lede::first-letter { float: left; font-size: 4.3em; line-height: .82; padding: 6px 10px 0 0; color: var(--blood-hi); font-weight: 600; }
.prose h2 { margin: 2.2em 0 .7em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .6em; }
.prose li::marker { color: var(--blood-hi); }
.prose strong { color: var(--bone); font-weight: 600; }
.faq { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 8px; }
.faq h2, .refs h2 { font-size: 1.3rem; margin: 1.6em 0 .8em; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--blood-hi); font: 500 1.2rem/1 var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--muted); margin: 10px 0 4px; font-size: 1.02rem; }
.refs ol { padding: 0; margin: 0; list-style: none; }
.refs li, .srclist p:first-child { padding-left: 2em; text-indent: -2em; font-size: .95rem; line-height: 1.55; color: var(--muted); margin-bottom: .9em; overflow-wrap: anywhere; }
.refs a, .srclist a { color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 72px; }
.pager a { border: 1px solid var(--line); background: var(--panel); padding: 20px 22px; text-decoration: none; font-size: 1.2rem; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.pager a:last-child { text-align: right; }
.pager a:hover { border-color: var(--blood); }

/* Glossary + sources */
.glossary { margin: 0 0 72px; }
.glossary > div { border-bottom: 1px solid var(--line); padding: 22px 0; scroll-margin-top: 80px; }
.glossary dt { font-size: 1.3rem; font-weight: 600; }
.glossary dd { margin: 6px 0 0; }
.glossary dd p { margin: 0; }
.glossary .gsrc { font: 500 .8rem/1.5 var(--sans); color: var(--faint); margin-top: 10px; }
.glossary .gsrc a { color: var(--muted); }
.srclist { list-style: none; padding: 0; margin: 0 0 72px; }
.srclist li { border-bottom: 1px solid var(--line); padding: 20px 0 8px; scroll-margin-top: 80px; }
.srclist p:first-child { color: var(--ink); }
.supports { font: 500 .85rem/1.6 var(--sans); color: var(--muted); margin: 0 0 12px; }
.supports span { color: var(--blood-hi); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; margin-right: 6px; }
.notfound { padding-bottom: 96px; }
.list { padding-left: 1.2em; }
.list li { margin: .5em 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; background: var(--panel); }
.foot .wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand .mark { width: 40px; height: 40px; }
.foot-brand p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 500 .85rem/1 var(--sans); align-content: start; justify-content: flex-end; }
.foot nav a { color: var(--muted); text-decoration: none; }
.fine { grid-column: 1 / -1; font: 500 .78rem/1.6 var(--sans); color: var(--faint); border-top: 1px solid var(--line); padding-top: 20px; margin: 0; }

@media (max-width: 720px) {
  body { font-size: 1.06rem; }
  .top .wrap { min-height: 56px; }
  .logo span { display: none; }
  .nav { gap: 16px; font-size: .82rem; }
  .hero { min-height: 640px; }
  .hero-img img { object-position: 78% 50%; }
  .hero-img::after { background: linear-gradient(0deg, var(--ground) 18%, color-mix(in srgb, var(--ground) 70%, transparent) 60%, color-mix(in srgb, var(--ground) 25%, transparent)); }
  .rules { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; }
  .prose .lede { font-size: 1.18rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Share card (og-card.html, 1200x630) */
body.og { margin: 0; width: 1200px; height: 630px; overflow: hidden; }
.og-card { width: 1200px; height: 630px; background-size: cover; background-position: right center; padding: 64px 72px; display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; }
.og-brand { display: flex; align-items: center; gap: 14px; font: 600 1.6rem/1 var(--serif); }
.og-brand .mark { width: 48px; height: 48px; }
.og-card h1 { font-size: 3.4rem; max-width: 15ch; }
.og-card p { margin: 0; font: 600 1rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--blood-hi); }

/* 13 Oct 2026 flip: signal colour needs black text; essay art goes black and white to match the journey. */
.btn, .btn:hover { color: var(--on-accent); }
.card-img img, .art-img img, .page-hero img, .hero-img img { filter: grayscale(1) contrast(1.12); }
.journey-back { display: inline-block; margin-top: 8px; font: 500 .85rem/1.4 var(--sans); color: var(--muted); }
