/* PersonalComputerHistory.org: dark bento. Graphite tiles, real renders, thin borders, one accent. Type: Geist + Geist Mono. */
:root {
  --bg: #0c0d10;
  --tile: #171b22;      /* matches the render backgrounds in assets/parts */
  --tile-2: #1c2129;
  --line: #262c35;
  --line-2: #363d48;
  --text: #eceef2;
  --muted: #8d94a0;
  --dim: #5d6470;
  --accent: #ff6a2b;
  --r: 18px;
  --r-sm: 10px;
  --nav-h: 60px;
  --wrap: 1240px;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  background: var(--bg); color: var(--text);
  display: flex; flex-direction: column; min-height: 100%;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
p a, .link { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
p a:hover, .link:hover { text-decoration-color: var(--text); }
.mono, .label { font-family: var(--mono); font-size: .75rem; letter-spacing: 0; color: var(--muted); }
.label { text-transform: uppercase; letter-spacing: .04em; }
.accent { color: var(--accent); }
::selection { background: var(--accent); color: #000; }

/* Placeholder text, waiting to be written */
.placeholder { color: var(--muted); }
.placeholder::before {
  content: "Draft"; font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent); border: 1px solid rgba(255, 106, 43, .4); border-radius: 4px;
  padding: 0 .3rem; margin-right: .45rem; vertical-align: .1em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; height: 42px; padding: 0 1.1rem;
  border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: var(--text); color: var(--bg); border: 1px solid var(--text); transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--text); }

/* ---------- Nav ---------- */
.site-nav {
  height: var(--nav-h); position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem; padding: 0 1.5rem;
  background: rgba(12, 13, 16, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.site-nav .brand { font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: .55rem; white-space: nowrap; }
.site-nav .brand .tld { color: var(--muted); font-weight: 500; margin-left: -.55rem; }
.site-nav .mark { width: 18px; height: 18px; border: 1.5px solid var(--text); border-radius: 4px; position: relative; }
.site-nav .mark::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 3px; background: var(--accent); border-radius: 1px; }
.site-nav ul { display: flex; gap: .15rem; list-style: none; margin-left: auto; }
.site-nav ul a { display: block; padding: .4rem .8rem; border-radius: 999px; font-size: .88rem; color: var(--muted); transition: color .15s, background .15s; }
.site-nav ul a:hover { color: var(--text); }
.site-nav ul a.active { color: var(--text); background: var(--tile-2); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 999px;
  height: 34px; padding: 0 .9rem; color: var(--text); font: inherit; font-size: .85rem; cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 1.5rem 2rem; font-size: .85rem; color: var(--muted); }
.site-footer .inner { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
.site-footer a:hover { color: var(--text); }

/* ---------- Tiles ---------- */
.tile {
  position: relative; overflow: hidden; display: block;
  background: var(--tile); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s;
}
a.tile:hover { border-color: var(--line-2); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
a.tile:hover > img { transform: scale(1.04); }
.tile .cap { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.1rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.tile .cap h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.tile .cap .mono { white-space: nowrap; }
.tile .arrow {
  position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: .9rem; border: 1px solid var(--line-2); color: var(--muted);
  transition: background .2s, color .2s, border-color .2s;
}
a.tile:hover .arrow { background: var(--text); color: var(--bg); border-color: var(--text); }
.pad { padding: 1.4rem; }

/* ---------- Page scaffolding ---------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.page-head { max-width: 760px; margin-bottom: 2.5rem; }
.page-head .label { display: block; margin-bottom: 1rem; }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 1rem; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 620px; }
.section { margin-top: 3.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prose { max-width: 680px; color: var(--muted); }
.prose p + p { margin-top: 1rem; }

/* ---------- Home: bento ---------- */
.bento {
  max-width: var(--wrap); margin: 0 auto; padding: 1.5rem 1.5rem 5rem;
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(240px, auto);
  grid-template-areas:
    "hero hero gpu  gpu"
    "hero hero cpu  mb"
    "time time why  why";
}
.b-hero { grid-area: hero; min-height: 560px; }
.b-gpu { grid-area: gpu; } .b-cpu { grid-area: cpu; } .b-mb { grid-area: mb; }
.b-time { grid-area: time; } .b-why { grid-area: why; }
.b-gpu > img { object-fit: cover; object-position: center 60%; }
/* fade under captions so labels stay readable over renders */
.tile:has(> img)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(23, 27, 34, .92)); pointer-events: none; }
.tile .cap, .tile .arrow { z-index: 1; }

.b-hero > img { inset: 36% -12% -12% auto; width: 60%; height: auto; object-fit: contain; }
.b-hero .intro { position: relative; z-index: 1; padding: 2rem; max-width: 470px; }
.b-hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.5rem); letter-spacing: -0.045em; margin: .9rem 0 1rem; }
.b-hero h1 span { color: var(--muted); }
.b-hero p { color: var(--muted); font-size: 1.05rem; max-width: 330px; margin-bottom: 1.5rem; }
.b-hero .cta { display: flex; flex-wrap: wrap; gap: .5rem; }
.tile.b-hero::after { content: ""; position: absolute; inset: 0; height: auto; background: linear-gradient(90deg, var(--tile) 30%, transparent 55%); pointer-events: none; }

.text-tile { padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; }
.text-tile h2 { font-size: 1.6rem; }
.text-tile p { color: var(--muted); font-size: .95rem; }
.big-num { font-size: 4.2rem; font-weight: 600; letter-spacing: -0.05em; line-height: .9; }
.big-num small { font-size: 1rem; color: var(--muted); letter-spacing: 0; font-weight: 400; margin-left: .3rem; }

.years { display: flex; justify-content: space-between; align-items: end; gap: .3rem; padding-top: 1.4rem; border-top: 1px solid var(--line); position: relative; }
.years span { font-family: var(--mono); font-size: .72rem; color: var(--muted); position: relative; padding-top: .4rem; }
.years span::before { content: ""; position: absolute; top: -1.4rem; left: 50%; width: 1px; height: .9rem; background: var(--line-2); }
.years span:first-child::before, .years span:last-child::before { background: var(--accent); height: 1.2rem; }

/* ---------- 3D Explorer ---------- */
.explorer { position: relative; height: calc(100vh - var(--nav-h)); overflow: hidden; background: #0a0d12; }
#scene { width: 100%; height: 100%; display: block; touch-action: none; }
.hint { position: absolute; left: 1rem; bottom: 1rem; pointer-events: none; font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #0a0d12; color: var(--muted); font-family: var(--mono); font-size: .85rem; transition: opacity .5s;
}
.loading.hidden { opacity: 0; pointer-events: none; }

.toolbar { position: absolute; top: 1rem; left: 1rem; display: flex; flex-direction: column; gap: 8px; width: 200px; }
.part-list, .actions, .rgb-control {
  background: rgba(23, 27, 34, .88); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 14px; padding: 5px;
}
.part-list, .actions { display: flex; flex-direction: column; gap: 2px; }
.toolbar button {
  background: none; color: var(--muted); border: 0; border-radius: 9px;
  padding: .5rem .7rem; font: inherit; font-size: .86rem; text-align: left; cursor: pointer;
  transition: background .15s, color .15s;
}
.toolbar button:hover { color: var(--text); background: var(--tile-2); }
.toolbar button.active { color: var(--bg); background: var(--text); }
.actions { flex-direction: row; }
.actions button { flex: 1; text-align: center; white-space: nowrap; }
.rgb-control { padding: .7rem .75rem .8rem; }
.rgb-label { display: block; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: .55rem; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.toolbar .swatches button, .swatches .custom {
  width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: var(--sw); cursor: pointer; position: relative; display: block;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.toolbar .swatches button:hover { background: var(--sw); transform: scale(1.08); }
.toolbar .swatches button.active, .swatches .custom.active { box-shadow: 0 0 0 2px var(--tile), 0 0 0 3.5px var(--text); }
.toolbar .swatches .rainbow { background: conic-gradient(#f44, #fd3, #4e6, #3cf, #74f, #f4c, #f44); }
.toolbar .swatches .rainbow:hover { background: conic-gradient(#f44, #fd3, #4e6, #3cf, #74f, #f4c, #f44); }
.toolbar .swatches .off, .toolbar .swatches .off:hover { background: var(--tile-2); color: var(--muted); font-size: .85rem; display: grid; place-items: center; }
.swatches .custom { background: var(--tile-2); overflow: hidden; }
.swatches .custom::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .95rem; pointer-events: none; }
.swatches .custom input { opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; }

.part-panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: 390px; max-width: calc(100% - 24px);
  background: rgba(23, 27, 34, .94); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem 1.5rem 2rem; overflow-y: auto;
  transform: translateX(calc(100% + 24px)); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.part-panel.open { transform: translateX(0); }
.part-panel .close {
  position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 50%;
  background: var(--tile-2); border: 1px solid var(--line); color: var(--muted); font-size: 1.1rem; cursor: pointer;
}
.part-panel .close:hover { color: var(--text); border-color: var(--line-2); }
.part-panel .era { font-family: var(--mono); font-size: .72rem; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.part-panel h2 { font-size: 2rem; margin: .5rem 0 .6rem; }
.part-panel .summary { color: var(--muted); margin-bottom: 1.4rem; }
.part-panel .timeline-link { display: inline-flex; margin-top: 1rem; font-size: .88rem; color: var(--text); border-bottom: 1px solid var(--line-2); }
.part-panel .timeline-link:hover { border-color: var(--text); }

.history { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.history li { background: var(--tile-2); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; }
.history .year { font-family: var(--mono); font-size: .75rem; color: var(--accent); }
.history h3 { font-size: .98rem; letter-spacing: -0.01em; margin: .15rem 0 .2rem; }
.history p { color: var(--muted); font-size: .88rem; }

/* ---------- Timeline ---------- */
.timeline-page { padding: 3rem 0 3rem; }
.timeline-page .page-head { max-width: var(--wrap); margin: 0 auto 1.5rem; padding: 0 1.5rem; }
.timeline-controls { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; display: flex; gap: .6rem; align-items: center; }
.timeline-controls button {
  width: 40px; height: 40px; border-radius: 50%; background: var(--tile); color: var(--text);
  border: 1px solid var(--line); font-size: 1rem; cursor: pointer;
}
.timeline-controls button:hover { border-color: var(--line-2); background: var(--tile-2); }
.timeline-controls .progress { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.timeline-controls .progress i { display: block; height: 100%; width: 0; background: var(--text); }

.timeline-viewport { overflow-x: auto; overflow-y: hidden; cursor: grab; user-select: none; padding: 1.5rem 0 1rem; scrollbar-width: none; }
.timeline-viewport::-webkit-scrollbar { display: none; }
.timeline-viewport.dragging { cursor: grabbing; }
.timeline-track { display: flex; gap: 12px; width: max-content; padding: 0 max(1.5rem, calc((100vw - var(--wrap)) / 2 + 1.5rem)); }
.event {
  width: 340px; min-height: 400px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem;
  transition: border-color .2s;
}
.event:hover { border-color: var(--line-2); }
.event .year { font-size: 4.4rem; font-weight: 600; letter-spacing: -0.06em; line-height: .9; }
.event .dot { display: none; }
.event .body { margin-top: auto; padding-top: 2rem; }
.event .tag { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.event .date { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.event h3 { font-size: 1.45rem; margin: .5rem 0 .5rem; }
.event p { color: var(--muted); font-size: .93rem; }
.event .more { display: inline-flex; margin-top: 1rem; font-size: .85rem; border-bottom: 1px solid var(--line-2); }
.event .more:hover { border-color: var(--text); }

/* ---------- History ---------- */
.pullquote { background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); padding: 2.2rem; }
.pullquote blockquote { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; max-width: 900px; }
.pullquote cite { display: block; margin-top: 1.2rem; font-family: var(--mono); font-style: normal; font-size: .78rem; color: var(--muted); }
.eras { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.era-block { background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; display: flex; flex-direction: column; gap: 2.5rem; min-height: 300px; }
.era-block .range { font-size: 2rem; font-weight: 600; letter-spacing: -0.05em; }
.era-block h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.era-block p { color: var(--muted); font-size: .9rem; }
.era-block > div:last-child { margin-top: auto; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.impact-grid > div { background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; }
.impact-grid h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.impact-grid p { color: var(--muted); font-size: .92rem; }

/* ---------- Sources ---------- */
.source-group { margin-top: 2.5rem; }
.source-group h2 { font-size: 1.3rem; margin-bottom: .9rem; }
.source-list { list-style: none; counter-reset: src; background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.source-list li { counter-increment: src; display: grid; grid-template-columns: 2.8rem 1fr; gap: 0 .5rem; padding: .9rem 1.2rem; border-top: 1px solid var(--line); }
.source-list li:first-child { border-top: 0; }
.source-list li::before { content: counter(src, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: var(--dim); padding-top: .15rem; }
.source-list .src-title { font-weight: 500; }
.source-list .src-meta { color: var(--muted); font-size: .88rem; }
.source-list .src-meta a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.source-list .src-meta a:hover { color: var(--text); }
.source-list a { word-break: break-word; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "hero hero" "hero hero" "gpu gpu" "cpu mb" "time time" "why why";
  }
  .eras { grid-template-columns: repeat(2, 1fr); }
  .eras > :last-child { grid-column: span 2; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .site-nav { padding: 0 1rem; }
  .nav-toggle { display: block; }
  .site-nav ul {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem; display: none;
  }
  .site-nav.open ul { display: flex; }
  .site-nav ul a { padding: .75rem 1rem; font-size: 1rem; border-radius: 10px; }
}
@media (max-width: 700px) {
  .page { padding: 2rem 1rem 3.5rem; }
  .bento { padding: 1rem 1rem 3rem; gap: 10px; grid-auto-rows: minmax(200px, auto); }
  .b-hero { min-height: 620px; }
  .b-hero .intro { padding: 1.4rem; }
  .b-hero > img { inset: auto -5% -4% auto; width: 95%; top: auto; }
  .tile.b-hero::after { background: linear-gradient(180deg, var(--tile) 45%, transparent 70%); }
  .site-footer { padding: 1.4rem 1rem 2rem; }
  .eras, .impact-grid { grid-template-columns: 1fr; }
  .eras > :last-child { grid-column: auto; }
  .era-block { min-height: 0; gap: 1.2rem; }
  .step { grid-template-columns: 1fr; gap: .2rem; }
  /* Explorer: part panel becomes a bottom sheet, tools become a strip */
  .part-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; height: 56%; transform: translateY(calc(100% + 16px)); }
  .part-panel.open { transform: translateY(0); }
  .part-panel h2 { font-size: 1.6rem; }
  .toolbar { left: .5rem; right: .5rem; top: .5rem; width: auto; gap: 6px; }
  .part-list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .toolbar button { white-space: nowrap; font-size: .8rem; padding: .4rem .65rem; }
  .actions { align-self: flex-start; }
  .rgb-control { display: flex; align-items: center; gap: .6rem; padding: .4rem .55rem; align-self: flex-start; }
  .rgb-label { margin: 0; }
  .swatches { grid-template-columns: repeat(10, 20px); gap: 5px; }
  .hint { display: none; }
  .timeline-page { padding-top: 2rem; }
  .timeline-page .page-head, .timeline-controls { padding: 0 1rem; }
  .timeline-track { padding: 0 1rem; }
  .event { width: 280px; min-height: 360px; }
}

/* Works cited: full citations with hanging indent, annotation below */
.source-list.works .cite { padding-left: 1.6rem; text-indent: -1.6rem; }
.source-list.works .cite a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; color: var(--muted); }
.source-list.works .cite a:hover { color: var(--text); }
.source-list.works .annot { color: var(--muted); font-size: .9rem; margin-top: .45rem; padding-left: 1.6rem; }
.source-list.works .accessed { font-family: var(--mono); font-size: .72rem; color: var(--dim); margin-top: .35rem; padding-left: 1.6rem; }

/* History page */
.qa-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.qa { background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; }
.qa .label { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-bottom: .8rem; }
.qa p { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
.more { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.more:hover { color: var(--text); }
.prehistory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.prehistory > div, .themes > article, .decade, .primary { background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.prehistory .range, .decade .range { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.05em; margin-bottom: 1.6rem; }
.prehistory h3, .themes h3, .decade h3, .primary h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.prehistory p, .themes p, .primary p { color: var(--muted); font-size: .92rem; }
.primary p + p { margin-top: .6rem; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.themes .label, .primary .label { display: block; font-family: var(--mono); font-size: .72rem; color: var(--accent); margin-bottom: 1.4rem; }
.primary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.primary.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; align-items: start; }
.primary h3 a:hover { color: var(--accent); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.decades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.decade ul { list-style: none; display: grid; gap: .55rem; }
.decade li { color: var(--muted); font-size: .92rem; padding-left: 1rem; position: relative; }
.decade li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
@media (max-width: 1040px) {
  .prehistory { grid-template-columns: repeat(2, 1fr); }
  .themes, .primary-grid { grid-template-columns: 1fr 1fr; }
  .themes > article:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .qa-grid, .prehistory, .themes, .primary-grid, .decades, .primary.wide { grid-template-columns: 1fr; }
}

/* A whole tile still in Claude's wording: dashed edge + one Draft badge, waiting for the author's rewrite */
.draft { border-style: dashed !important; border-color: rgba(255, 106, 43, .35) !important; }
.draft::before {
  content: "Draft"; display: inline-block; margin-bottom: .9rem;
  font-family: var(--mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent); border: 1px solid rgba(255, 106, 43, .4); border-radius: 4px; padding: 0 .3rem;
}
@media (max-width: 700px) {
  /* narrow two-up tiles: let "since 19xx" drop under the name instead of being cut off */
  .cap { flex-wrap: wrap; row-gap: .15rem; }
}

/* Explorer part history: source link under each entry */
.history .src { display: inline-block; margin-top: .4rem; font-family: var(--mono); font-size: .7rem; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.history a.src:hover { color: var(--text); }
.history .src.missing { color: var(--accent); text-decoration: none; opacity: .8; }
/* Full essay paragraphs: one card per row so long text stays readable */
.themes.stacked { grid-template-columns: 1fr; }
.themes.stacked p { font-size: 1rem; line-height: 1.7; max-width: 860px; }
.themes.stacked > article:last-child { grid-column: auto; }

/* Home: "Why it matters" tile: headline stat + the three thesis points */
.why-stat { display: flex; align-items: flex-end; gap: 1rem; }
.why-stat .big-num { color: var(--text); }
.why-stat p { max-width: 280px; font-size: 1rem; line-height: 1.4; padding-bottom: .2rem; }
.why-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; line-height: 1.35; }
.why-points span { display: block; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); margin-bottom: .35rem; }
@media (max-width: 700px) {
  .why-points { grid-template-columns: 1fr; gap: 10px; }
}
