:root {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f5f1e8;
  background: #12161d;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
  /* Blueprint — the slide decks read as an architectural drawing, not warm-cream-on-black.
     Steel-blue is the primary (drafting ink); gold is a sparing highlight (the "knowledge"
     layer); ink is a cool off-white; labels are set in mono; the page carries a faint plan grid. */
  --bg: #12161d;
  --surface: #1a212b;
  --surface-soft: #202a37;
  --border: #313a49;
  --border-strong: #3d4859;
  --text: #e6ebf0;
  --muted: #9aa6b6;
  --soft: #6c7488;
  --accent: #83adc5;            /* steel-blue — primary drafting ink */
  --accent-strong: #a7c6da;
  --accent-ink: #0c1218;        /* dark text on steel */
  --accent-soft: rgba(131, 173, 197, .12);
  --accent-line: rgba(131, 173, 197, .32);
  --gold: #c9a961;              /* highlight only — used sparingly */
  --gold-strong: #d8b569;
  --gold-soft: rgba(201, 169, 97, .12);
  --gold-line: rgba(201, 169, 97, .34);
  --grid: rgba(131, 173, 197, .05);
  --warning: #c96f54;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    radial-gradient(85% 55% at 100% -5%, rgba(131, 173, 197, .07), transparent 44rem),
    radial-gradient(60% 45% at -5% 4%, rgba(201, 169, 97, .045), transparent 40rem),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--muted);
}
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(49, 58, 73, .7);
  background: rgba(18, 22, 29, .82);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  backdrop-filter: blur(16px);
}
.topbar-inner {
  max-width: 1280px;
  height: 60px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand, .toplinks a { color: var(--text); text-decoration: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.brand-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}
.brand-sub { color: var(--soft); font-weight: 500; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.toplinks { display: flex; gap: 4px; font-size: 14px; }
.toplinks a {
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 11px;
  font-weight: 600;
}
.toplinks a:hover { color: var(--text); background: var(--surface-soft); }
.identity-pill {
  min-width: 0;
  max-width: 240px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.identity-name { overflow: hidden; color: var(--text); text-overflow: ellipsis; }
.auth-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.auth-link:hover { color: var(--text); background: var(--surface-soft); }

.page { max-width: 1280px; margin: 0 auto; padding: 0 24px 72px; }
.hero { padding: 64px 0 32px; }
.compact-hero { padding-bottom: 18px; }
.eyebrow, .section-title, .map-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--text); margin: 0; letter-spacing: -.025em; }
h1 {
  max-width: 820px;
  margin-top: 12px;
  font-size: clamp(2.55rem, 6vw, 4.8rem);
  line-height: .98;
  font-weight: 800;
}
h1 .accent { color: var(--gold); }
.hero > p {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.55;
}
.rule { height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 32px;
  margin: 32px 0 72px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
}
.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.featured h2 { max-width: 760px; margin-top: 18px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.02; }
.featured-copy > p { max-width: 680px; margin: 18px 0 24px; font-size: 18px; line-height: 1.55; }
.primary-link, .publication-card > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.featured-map {
  padding: 22px;
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  background: var(--gold-soft);
}
.mini-claim {
  position: relative;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}
.mini-claim:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -13px;
  height: 13px;
  width: 1px;
  background: var(--gold-line);
}
.mini-claim span { display: block; color: var(--gold); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mini-claim strong { display: block; margin-top: 4px; color: var(--text); font-size: 13px; line-height: 1.35; }

.library-section { padding-bottom: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.section-head h2, .claim-map > h2, .references > h2 { margin-top: 7px; font-size: 30px; }
.topic-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-filters button {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.topic-filters button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.publication-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.publication-card, .about-panel, .claim-node, .reference, .resource-card, .map-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.publication-card { min-height: 260px; padding: 22px; transition: transform .14s, border-color .14s, box-shadow .14s; }
.publication-card:hover { transform: translateY(-2px); border-color: var(--accent-line); box-shadow: 0 12px 28px rgba(0,0,0,.42); }
.publication-card h3 { margin-top: 20px; font-size: 22px; line-height: 1.1; }
.publication-card p { min-height: 78px; line-height: 1.55; }
.about-panel { padding: 30px; }
.about-panel p { max-width: 760px; margin: 10px 0 0; color: var(--text); font-size: 20px; line-height: 1.45; }

.presentations-page { padding-bottom: 96px; }
.presentation-library { padding: 38px 0 24px; }
.presentation-grid { display: grid; gap: 24px; }
.presentation-card {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(360px, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .38);
}
.presentation-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 310px;
  overflow: hidden;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #f5f1e8;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(201,169,97,.12), transparent 45%),
    radial-gradient(80% 120% at 0% 100%, rgba(111,154,192,.12), transparent 45%),
    linear-gradient(150deg,#1a212b,#12161c);
}
.presentation-preview-grid {
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(#232b37 1px, transparent 1px),
    linear-gradient(90deg, #232b37 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(72% 72% at 82% 18%, #000, transparent);
}
.presentation-preview span,
.presentation-preview strong,
.presentation-preview small,
.presentation-preview i { position: relative; z-index: 1; }
.presentation-preview span {
  width: max-content;
  padding: 7px 13px;
  border: 1px solid rgba(201,169,97,.34);
  border-radius: 999px;
  color: #c9a961;
  background: rgba(201,169,97,.12);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.presentation-preview strong {
  margin-top: 19px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: .95;
}
.presentation-preview small {
  max-width: 32rem;
  margin-top: 18px;
  color: #a7aebe;
  font-size: 14px;
  line-height: 1.45;
}
.presentation-preview i {
  position: absolute;
  right: 18px;
  bottom: 15px;
  color: #6c7488;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.presentation-card-body {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.presentation-card-body h2 { margin-top: 16px; font-size: clamp(2rem, 4vw, 3.25rem); }
.presentation-card-body > p { max-width: 620px; margin: 16px 0 26px; font-size: 17px; line-height: 1.55; }
.presentation-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.presentation-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.presentation-primary { color: var(--accent-ink); background: var(--accent); }
.presentation-primary:hover { background: var(--accent-strong); }
.presentation-secondary { color: var(--text); border: 1px solid var(--border-strong); background: var(--surface); }
.presentation-secondary:hover { border-color: var(--accent); color: var(--accent); }

.article-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 190px minmax(0, 760px);
  gap: 60px;
  justify-content: center;
}
.article-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding-top: 70px;
}
.article-nav a { color: var(--muted); font-size: 13px; line-height: 1.3; text-decoration: none; }
.article-nav a:hover { color: var(--accent); }
.article-header { padding: 70px 0 30px; }
.back-link { display: inline-block; margin-bottom: 40px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.article-header h1 { max-width: 760px; font-size: clamp(2.7rem, 6vw, 5.2rem); }
.dek { margin: 24px 0; color: var(--muted); font-size: 21px; line-height: 1.5; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--soft); font-size: 12px; font-weight: 700; }
.article-rule { height: 1px; background: var(--border); }
.article-section { padding: 42px 0 2px; scroll-margin-top: 78px; }
.article-section h2 { margin-bottom: 20px; font-size: 31px; line-height: 1.12; }
.article-section p { margin: 0 0 21px; color: #d3dae2; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.72; }
.claim-marker {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 26px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
}
.claim-marker span:first-child { color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.claim-marker strong { font-size: 13px; }
.claim-marker span:last-child { color: var(--accent); }

.claim-map, .references, .resources { padding-top: 70px; scroll-margin-top: 70px; }
.claim-map-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.secondary-link { color: var(--accent); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.section-intro { max-width: 600px; line-height: 1.55; }
.claim-list { position: relative; display: grid; gap: 14px; margin-top: 28px; }
.claim-node { position: relative; padding: 22px; scroll-margin-top: 78px; }
.claim-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 38px;
  bottom: -15px;
  width: 1px;
  height: 15px;
  background: var(--border-strong);
}
.claim-node-head { display: flex; justify-content: space-between; gap: 12px; }
.claim-type, .evidence-class {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.confidence { color: var(--soft); font-size: 11px; font-weight: 700; }
.claim-node h3 { margin-top: 10px; font-size: 20px; }
.claim-node > p { margin: 8px 0 0; line-height: 1.5; }
.depends-on, .claim-sources { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; color: var(--soft); font-size: 11px; font-weight: 700; }
.depends-on a, .claim-sources a { color: var(--accent); }
.implication { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.45; }
.implication strong { color: var(--text); margin-right: 5px; }
.reference { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 14px; padding: 20px; }
.reference h3 { margin-top: 6px; font-size: 17px; }
.reference h3 a { text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.reference p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.resource-card { display: block; padding: 20px; text-decoration: none; }
.resource-card > span { color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.resource-card > strong { display: block; margin-top: 8px; color: var(--text); }
.resource-card p { margin-bottom: 0; font-size: 13px; }

.brief-article { min-width: 0; padding-bottom: 60px; }
.brief-content { font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.brief-content h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; }
.brief-content h2 { margin: 2.5em 0 1em; font-size: 28px; line-height: 1.25; }
.brief-content h3 { margin-top: 2em; font-size: 22px; }
.brief-content p { margin: 1em 0; }
.brief-content a { color: var(--accent); text-underline-offset: 3px; }
.brief-content blockquote {
  margin: 28px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
  font-size: 15px;
}
.brief-content blockquote p:first-child { margin-top: 0; }
.brief-content blockquote p:last-child { margin-bottom: 0; }
.brief-content blockquote p { font-family: inherit; font-size: inherit; line-height: inherit; }
.brief-content ol { font-size: 15px; }
.brief-content li { margin-bottom: 12px; }
.brief-content .citation { font-family: "Segoe UI", sans-serif; font-size: .75em; font-weight: 700; vertical-align: super; }
.reference { scroll-margin-top: 78px; }
.reference-note { min-width: 0; overflow-wrap: anywhere; }
.reference-note a { color: var(--accent); }
.reference-number { margin-right: 8px; color: var(--soft); font-size: 12px; font-weight: 700; }

.claims-page { max-width: 960px; }
.map-board { display: grid; gap: 18px; padding: 24px 0 60px; }
.map-card { position: relative; max-width: 720px; padding: 24px; }
.map-card:nth-child(even) { margin-left: auto; }
.map-card:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  bottom: -25px;
  color: var(--accent);
  font-weight: 800;
}
.map-card > div:first-child { display: flex; justify-content: space-between; }
.map-card h2 { margin-top: 12px; font-size: 24px; }
.map-card p { line-height: 1.55; }
.map-links { display: flex; gap: 8px; }
.map-links a { color: var(--accent); font-size: 12px; font-weight: 700; }

.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 24px 50px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.site-footer > div { display: flex; align-items: center; gap: 8px; color: var(--text); }
.site-footer p { margin: 8px 0 0; }

button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(201, 169, 97, .45);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .presentation-card { grid-template-columns: 1fr; }
  .publication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell { grid-template-columns: minmax(0, 760px); }
  .article-nav { display: none; }
}

@media (max-width: 640px) {
  .topbar-inner, .page, .article-shell { padding-left: 18px; padding-right: 18px; }
  .toplinks a:nth-child(n+2):not(.briefs-link) { display: none; }
  .topbar-actions { gap: 6px; }
  .identity-pill { max-width: 150px; padding: 5px 8px; }
  .identity-pill > span:first-child, .identity-pill > span:nth-child(2) { display: none; }
  .hero { padding-top: 48px; }
  .featured { margin-top: 24px; padding: 22px; }
  .presentation-preview { min-height: 240px; padding: 30px; }
  .presentation-card-body { padding: 28px; }
  .publication-grid, .resource-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .claim-map-heading { align-items: flex-start; flex-direction: column; }
  .article-header { padding-top: 46px; }
  .article-section p { font-size: 18px; }
  .reference { grid-template-columns: 1fr; gap: 8px; }
  .map-card:nth-child(even) { margin-left: 0; }
}
