/* v10 · "A working map of how I think"
   Written for a senior reader with little time: an editorial document, not a show. Ivory paper, graphite
   ink, one serif for thought and one sans for facts, hairline rules, roman-numeral sections. Colour is used
   only to code the map: reasoning (ink blue), people (oxblood), craft (ochre). Motion is slow and rare. */

:root {
  --paper: #f4f2ed;
  --paper-2: #ebe8e1;
  --card: #fbfaf7;
  --ink: #191919;
  --ink-2: #4a4843;
  --ink-3: #7d7a73;
  --rule: rgba(25, 25, 25, .14);
  --rule-2: rgba(25, 25, 25, .32);
  --iq: #2f4a6d;
  --eq: #8a3324;
  --craft: #8a6a1f;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --edge: max(24px, calc((100vw - 1240px) / 2));
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: light;
}
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--iq); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }
.label { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px; padding: 16px var(--edge); background: rgba(244, 242, 237, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.mark { margin-right: auto; font: 500 19px/1 var(--serif); letter-spacing: -.005em; text-decoration: none; view-transition-name: wordmark; }
.top ol { display: flex; gap: 24px; }
.top ol a { font-size: 13px; color: var(--ink-2); text-decoration: none; }
.top ol a span { margin-right: 6px; font: 500 11px var(--mono); color: var(--ink-3); }
.top ol a:hover { color: var(--ink); }
.top-cta { padding: 9px 14px; border: 1px solid var(--ink); font-size: 13px; text-decoration: none; transition: background-color .3s, color .3s; }
.top-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- title ---------- */
.title { padding: clamp(64px, 9vw, 130px) var(--edge) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.title h1 { margin-top: 26px; max-width: 15ch; font: 300 clamp(52px, 8.4vw, 132px)/.98 var(--serif); letter-spacing: -.025em; }
.title h1 em { font-weight: 300; }
.title-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 72px); }
.lede { font: 400 clamp(20px, 1.7vw, 25px)/1.5 var(--serif); color: var(--ink-2); max-width: 40ch; }
.ledger { border-top: 1px solid var(--rule-2); }
.ledger div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font: 500 11px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ledger dd { font-size: 15px; line-height: 1.5; }
.guide { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- section heads ---------- */
.sec-head { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 0 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.num { font: 300 clamp(40px, 4vw, 60px)/1 var(--serif); color: var(--ink-3); }
.sec-head h2 { font: 400 clamp(36px, 4.2vw, 64px)/1.02 var(--serif); letter-spacing: -.02em; }
.sec-sub { margin-top: 14px; max-width: 58ch; font-size: 17px; color: var(--ink-2); }

/* ---------- I · map ---------- */
.map-sec { padding: clamp(72px, 9vw, 120px) var(--edge); border-bottom: 1px solid var(--rule); }
.lenses { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.lenses button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--rule-2); background: none; color: var(--ink-2); font: 500 13px var(--sans); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.lenses button:hover { border-color: var(--ink); color: var(--ink); }
.lenses button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sw { width: 8px; height: 8px; border-radius: 50%; }
.sw-iq { background: var(--iq); } .sw-eq { background: var(--eq); } .sw-craft { background: var(--craft); }
.lenses button[aria-pressed="true"] .sw { box-shadow: 0 0 0 1.5px var(--paper); }

.map-wrap { display: grid; grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); gap: 0; border: 1px solid var(--rule-2); background: var(--card); }
.map { position: relative; border-right: 1px solid var(--rule); }
.map-svg { display: block; width: 100%; height: auto; }

/* the drawing */
.region { font: italic 300 64px var(--serif); fill: var(--ink); opacity: .07; pointer-events: none; letter-spacing: -.01em; }
.orbit { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 5; }
.edge { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .16; transition: opacity .35s var(--ease), stroke-width .35s; }
.edge.is-lit { opacity: .9; stroke-width: 1.6; }
.edge.is-dim { opacity: .04; }
.nd { cursor: pointer; outline: none; }
.nd circle, .nd rect { fill: var(--card); stroke: var(--ink); stroke-width: 1.2; transition: fill .3s, stroke-width .3s, r .3s; }
.nd .dot { stroke: none; }
.nd text { font: 500 15px var(--sans); fill: var(--ink); transition: opacity .3s; pointer-events: none; }
.nd .sub { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: var(--ink-3); }
.nd.iq .dot { fill: var(--iq); } .nd.eq .dot { fill: var(--eq); } .nd.craft .dot { fill: var(--craft); }
.nd.iq circle.ring { stroke: var(--iq); } .nd.eq circle.ring { stroke: var(--eq); } .nd.craft circle.ring { stroke: var(--craft); }
.nd.ev rect { fill: var(--paper); stroke: var(--rule-2); }
.nd.ev text { font-size: 13px; fill: var(--ink-2); }
.nd.core circle.ring { fill: var(--ink); stroke: var(--ink); }
.nd.core text { fill: var(--paper); font: 400 22px var(--serif); }
.nd.core .sub { fill: rgba(244, 242, 237, .65); font-size: 9.5px; letter-spacing: .14em; }
.nd:hover circle.ring, .nd:focus-visible circle.ring, .nd.is-on circle.ring { stroke-width: 2.4; }
.nd.is-on.iq circle.ring { fill: var(--iq); } .nd.is-on.eq circle.ring { fill: var(--eq); } .nd.is-on.craft circle.ring { fill: var(--craft); }
.nd.is-on .dot { fill: var(--card) !important; }
.nd.ev.is-lit rect, .nd.ev.is-on rect { fill: var(--ink); stroke: var(--ink); }
.nd.ev.is-lit text, .nd.ev.is-on text { fill: var(--paper); }
.nd.is-dim { opacity: .22; }
.nd { transition: opacity .35s var(--ease); }
.nd:focus-visible circle.ring, .nd:focus-visible rect { stroke: var(--iq); stroke-width: 3; }

/* the dossier */
.dossier { position: relative; display: grid; align-content: start; gap: 14px; padding: 30px 28px 34px; }
.d-group { display: flex; align-items: center; gap: 8px; }
.d-group i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.d-title { font: 400 clamp(28px, 2.4vw, 36px)/1.05 var(--serif); letter-spacing: -.015em; }
.d-means { font: italic 400 19px/1.45 var(--serif); color: var(--ink-2); }
.d-body { display: grid; gap: 16px; margin-top: 6px; }
.d-body h5 { margin: 0 0 8px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.d-body ul.shows li { position: relative; padding: 8px 0 8px 18px; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.d-body ul.shows li::before { content: ''; position: absolute; left: 0; top: 17px; width: 8px; height: 1px; background: var(--ink); }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.d-chips button { padding: 7px 10px; border: 1px solid var(--rule-2); background: var(--paper); font: 500 12.5px var(--sans); color: var(--ink); cursor: pointer; text-align: left; transition: background-color .25s, color .25s; }
.d-chips button:hover { background: var(--ink); color: var(--paper); }
.d-body .go a, .d-link { display: inline-flex; gap: 6px; font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.d-body .go a::after, .d-link::after { content: '→'; }
.d-metric { font: 300 34px/1.1 var(--serif); }
.d-metric b { font-weight: 400; }
.d-hint { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.dossier.is-swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

/* the plain index: shown without JS, and as the map on small screens */
.index { margin-top: 32px; }
.js .index { display: none; }
.index-h { margin-bottom: 14px; }
.index .grp { margin: 28px 0 8px; color: var(--ink); }
.node { padding: 18px 0; border-top: 1px solid var(--rule); }
.node h4 { font: 400 24px/1.15 var(--serif); }
.node .means { margin-top: 6px; font: italic 400 17px/1.45 var(--serif); color: var(--ink-2); }
.node .shows { margin-top: 10px; display: grid; gap: 6px; font-size: 15px; }
.node .shows li::before { content: '— '; color: var(--ink-3); }
.node .go { margin-top: 8px; font-size: 14px; }

/* ---------- II · principles ---------- */
.principles { padding: clamp(72px, 9vw, 120px) var(--edge); border-bottom: 1px solid var(--rule); }
.pr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); counter-reset: p; }
.pr-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 28px 0 32px; border-top: 1px solid var(--rule-2); }
.pr-n { font: 500 12px/2.4 var(--mono); color: var(--ink-3); }
.pr-list h3 { font: 400 clamp(24px, 2.2vw, 32px)/1.15 var(--serif); letter-spacing: -.01em; }
.pr-list p { margin-top: 12px; color: var(--ink-2); max-width: 46ch; }
.pr-list .pr-ev { margin-top: 14px; font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- III · method ---------- */
.method { padding: clamp(72px, 9vw, 120px) var(--edge); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.me-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: m; }
.me-list li { position: relative; padding-top: 22px; border-top: 2px solid var(--ink); }
.me-list li:not(:last-child)::after { content: '→'; position: absolute; right: calc(-1 * clamp(14px, 2vw, 28px)); top: -15px; padding: 0 6px; background: var(--paper-2); font: 400 18px var(--sans); color: var(--ink-3); }
.me-list h3 { margin-top: 10px; font: 400 clamp(26px, 2.4vw, 34px)/1.1 var(--serif); }
.me-list p:last-child { margin-top: 12px; color: var(--ink-2); max-width: 34ch; }

/* ---------- IV · scope ---------- */
.scope { padding: clamp(72px, 9vw, 120px) var(--edge); border-bottom: 1px solid var(--rule); }
.scope-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.rings { width: 100%; max-width: 560px; justify-self: center; }
.ring-g { cursor: pointer; }
.ring-g circle { fill: none; stroke: var(--rule-2); stroke-width: 1; transition: stroke .3s, stroke-width .3s, fill .3s; }
.ring-g text { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); text-anchor: middle; transition: fill .3s; }
.ring-g[data-r="4"] circle { fill: var(--ink); stroke: var(--ink); }
.ring-g[data-r="4"] text { fill: var(--paper); }
.ring-g.is-on circle { stroke: var(--ink); stroke-width: 2; }
.ring-g.is-on text { fill: var(--ink); }
.ring-g[data-r="4"].is-on text { fill: var(--paper); }
.scope-list li { padding: 18px 0 18px 18px; border-top: 1px solid var(--rule); border-left: 2px solid transparent; cursor: pointer; transition: border-color .3s, background-color .3s; }
.scope-list li:last-child { border-bottom: 1px solid var(--rule); }
.scope-list li.is-on { border-left-color: var(--ink); background: var(--card); }
.scope-list h3 { margin-top: 4px; font: 400 24px/1.15 var(--serif); }
.scope-list p:last-child { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.aside { margin-top: 28px; padding-left: 114px; font-size: 14px; color: var(--ink-3); max-width: 80ch; }

/* ---------- words ---------- */
.words { padding: clamp(80px, 10vw, 140px) var(--edge); border-bottom: 1px solid var(--rule); background: var(--ink); color: var(--paper); }
.words .label { color: rgba(244, 242, 237, .6); }
.words blockquote { margin-top: 28px; }
.words p { max-width: 32ch; font: 300 clamp(28px, 3.4vw, 48px)/1.25 var(--serif); letter-spacing: -.01em; }
.words footer { margin-top: 28px; font-size: 14px; color: rgba(244, 242, 237, .65); }

/* ---------- V · contact ---------- */
.contact { padding: clamp(72px, 9vw, 120px) var(--edge); }
.ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); padding-left: 114px; }
.ct-roles li { padding: 14px 0; border-top: 1px solid var(--rule); font: 400 22px/1.2 var(--serif); }
.ct-roles li:last-child { border-bottom: 1px solid var(--rule); }
.ct-copy p { font: 400 21px/1.5 var(--serif); color: var(--ink-2); max-width: 40ch; }
.ct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; padding: 13px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 14px var(--sans); text-decoration: none; transition: background-color .3s, color .3s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 28px var(--edge) 36px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-3); }
.foot a { color: var(--ink-2); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
::view-transition-old(root) { animation: .3s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .5s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .top ol { display: none; }
  .map-wrap { grid-template-columns: minmax(0, 1fr); }
  .map { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .top { gap: 12px; padding: 12px var(--edge); }
  .mark { font-size: 17px; }
  .top-cta { padding: 7px 10px; font-size: 12px; }
  .title-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger div { grid-template-columns: 92px 1fr; }
  .sec-head { grid-template-columns: 52px minmax(0, 1fr); gap: 0 12px; }
  /* on a phone the drawing is too small to read, so the map becomes its index */
  .js .map-wrap, .lenses { display: none; }
  .js .index { display: block; }
  .pr-list { grid-template-columns: minmax(0, 1fr); }
  .pr-list li { grid-template-columns: 40px minmax(0, 1fr); }
  .me-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .me-list li::after { display: none; }
  .scope-grid { grid-template-columns: minmax(0, 1fr); }
  .rings { max-width: 340px; }
  .ring-g text { font-size: 15px; }
  .aside, .ct-grid { padding-left: 0; }
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .edge, .nd, .dossier.is-swap { transition: none; animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
