/* ============================================================
   K4M2A — site styles
   ============================================================ */

/* Fonts, served from this site (no third-party requests). Outfit and Space Mono, SIL Open Font License 1.1 */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/outfit-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/outfit-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/space-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/space-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-mono-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-mono-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Brand palette: #000000 #FFFFFF #333333 #4C4C4C #D6D6D6 #C5C5C5,
     plus two warm off-whites for page and section surfaces */
  --bg: #fbfbf8;
  --surface: #f5f4ef;
  --card: #ffffff;
  --ink: #000000;
  --on-ink: #ffffff;
  --muted: #333333;
  --soft: #4c4c4c;
  --line: #d6d6d6;
  --pill: #f5f4ef;
  --glass: rgba(251, 251, 248, .92);
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --bar: 52px;
  /* Brand face is MADE Tommy Soft; Outfit is the closest free web stand-in */
  --serif: 'MADE Tommy Soft', 'Outfit', system-ui, sans-serif;
  --sans: 'MADE Tommy Soft', 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 8px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
/* Dark theme: set by the footer switch, or by the system when no choice is saved */
:root[data-theme="dark"] {
  --bg: #000000; --surface: #111110; --card: #0a0a0a;
  --ink: #ffffff; --on-ink: #000000;
  --muted: #d6d6d6; --soft: #c5c5c5; --line: #333333; --pill: #1a1a19;
  --glass: rgba(0, 0, 0, .9);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #000000; --surface: #111110; --card: #0a0a0a;
    --ink: #ffffff; --on-ink: #000000;
    --muted: #d6d6d6; --soft: #c5c5c5; --line: #333333; --pill: #1a1a19;
    --glass: rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.1; margin: 0; letter-spacing: -0.015em; }
em { font-style: normal; color: var(--soft); }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 12px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sq { display: inline-block; width: 8px; height: 8px; flex: none; background: var(--c); box-shadow: var(--ring); }
.dot { margin: 0 6px; color: var(--soft); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px; border-radius: 4px;
  background: var(--pill); border: 1px solid var(--line); cursor: pointer;
  font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: .02em;
  transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { border-color: var(--ink); }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }

/* ---------- Dotted note card (signature element) ---------- */
.note {
  background: var(--card);
  border: 1.5px dashed var(--muted);
  border-radius: var(--radius);
  padding: 28px 28px;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  max-width: 560px;
}
.note p { text-wrap: balance; }
.note p:last-child { margin: 0; }

/* ---------- Home: scrolly hero ---------- */
.scrolly { position: relative; height: 400vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.hero {
  position: absolute; left: 0; right: 0; top: clamp(80px, 13vh, 120px);
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px;
  pointer-events: none; will-change: transform, opacity;
}
.hero__sub {
  grid-column: 1; grid-row: 1; align-self: end; justify-self: end; text-align: right;
  font-size: clamp(14px, 1.6vw, 17px); line-height: 1.5; max-width: 290px; margin: 0;
}
.hero__title {
  grid-column: 2; grid-row: 1;
  font-size: clamp(44px, 7vw, 84px); line-height: 1.02; margin: 0;
}
.hero__title em { font-style: italic; }

.squares { position: absolute; inset: 0; }
.squares b {
  position: absolute; left: 0; top: 0; width: 16px; height: 16px;
  background: var(--c); box-shadow: var(--ring);
  transform-origin: 0 0; cursor: pointer; will-change: transform;
  transition: opacity .3s, filter .2s;
}
.squares b.dim { opacity: .1; }
.squares b:hover { outline: 1px solid var(--ink); outline-offset: 1px; }

.tip {
  position: absolute; z-index: 5; max-width: 240px; pointer-events: none;
  color: var(--ink-on); background: var(--c); box-shadow: var(--ring), 0 6px 20px rgba(0,0,0,.08);
  padding: 10px 12px; border-radius: 4px; font-size: 14px; line-height: 1.35;
  opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
}
.tip.show { opacity: 1; transform: none; }
.tip strong { display: block; font-weight: 700; margin-bottom: 3px; }
.tip span { display: block; opacity: .85; font-size: 12px; margin-top: 6px; }

.legend { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; pointer-events: none; }
.legend li { position: absolute; margin: 0; transform: translate(-8px, -50%); opacity: 0; transition: opacity .35s, transform .35s; }
.legend.show li { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.legend button {
  width: 100%; background: none; border: 0; padding: 4px 0; cursor: pointer; display: flex; align-items: center; gap: 10px;
  font-size: 16px; color: var(--ink); transition: opacity .2s; text-align: left;
}
.legend button:hover .legend__name { text-decoration: underline; text-underline-offset: 3px; }
.legend button[aria-pressed="false"] { opacity: .35; }
.legend .sq { width: 10px; height: 10px; flex: none; }
.legend .count { margin-left: auto; font-family: var(--mono); color: var(--soft); font-size: 13px; }
.stage-hint { position: absolute; left: 0; right: 0; margin: 0; padding: 0 var(--gutter); text-align: center; font-size: 13px; color: var(--soft); opacity: 0; transition: opacity .4s .3s; pointer-events: none; }
.stage-hint.show { opacity: 1; }
.stage-label { transform: translateY(8px); transition: opacity .4s, transform .4s; }
.stage-label.show { transform: none; }
.squares b { transition: opacity .3s, filter .2s, box-shadow .2s; }

.steps { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
.step { position: absolute; left: 0; right: 0; display: flex; justify-content: center; padding: 0 var(--gutter); }
.step .note { pointer-events: auto; box-shadow: 0 6px 30px rgba(0, 0, 0, .05); }
.step .note .pill { margin-top: 14px; font-family: var(--sans); }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft);
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .3s;
}
.scroll-hint::after { content: ''; width: 1px; height: 28px; background: var(--soft); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

.stage-label {
  position: absolute; left: 0; right: 0; text-align: center; opacity: 0; transition: opacity .4s;
}
.stage-label.show { opacity: 1; }
.stage-label .eyebrow { margin-bottom: 2px; }
.stage-label__n { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 0 var(--gutter); top: clamp(96px, 19vh, 170px); }
  .hero__title { grid-column: 1; grid-row: 1; font-size: clamp(52px, 16vw, 76px); }
  .hero__sub { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; max-width: 300px; margin-top: 20px; font-size: 17px; color: var(--muted); }
}
@media (max-width: 760px) {
  .legend button { font-size: 15px; gap: 8px; }
  .stage-label__n { font-size: 26px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section--tight { padding-top: 0; }
/* A tight section after a coloured band has no space of its own above it; give it back. */
.band + .section--tight:not(.band), .band--ink + .section--tight:not(.band) { padding-top: clamp(64px, 10vw, 120px); }
/* Sections too long for phones; when one is hidden, the next keeps the gap after a band */
@media (max-width: 760px) {
  .hide-sm { display: none; }
  .band + .hide-sm + .section--tight:not(.band), .band--ink + .hide-sm + .section--tight:not(.band) { padding-top: clamp(64px, 10vw, 120px); }
}
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; display: block; }
.h2 { font-size: clamp(34px, 5vw, 56px); }
.lede { font-family: var(--serif); font-weight: 300; font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 640px; line-height: 1.45; }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { opacity: .7; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; }
.card__img { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; background: var(--pill); position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding-top: 16px; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.meta .dot { margin: 0; }
.meta--soft { font-weight: 400; color: var(--soft); margin-top: 10px; }
.card__title { font-size: 24px; margin: 10px 0 8px; }
.card__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
.card:hover .card__title a { background-size: 100% 1px; }
.card__excerpt { color: var(--muted); font-size: 16px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card--big { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; margin-bottom: 64px; }
.card--big .card__img { aspect-ratio: 16 / 10; }
.card--big .card__body { padding: 0; }
.card--big .card__title { font-size: clamp(32px, 4vw, 48px); margin: 14px 0 14px; }
.card--big .card__excerpt { font-size: 18px; -webkit-line-clamp: 4; }
@media (max-width: 800px) { .card--big { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Timeline (two sides) ---------- */
.timeline { position: relative; max-width: 980px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--soft); transform: translateX(-50%); }
.tl-year { position: relative; display: flex; justify-content: center; margin: 36px 0 22px; }
.tl-year span {
  position: relative; background: var(--bg); padding: 6px 0; font-size: 14px; color: var(--soft); font-weight: 700;
}
.tl-year span::before {
  content: ''; position: absolute; left: 50%; top: -14px; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--soft); background: var(--bg); transform: translateX(-50%);
}
.tl-item { position: relative; width: 50%; padding: 6px 28px; }
.tl-item--left { margin-right: 50%; text-align: right; }
.tl-item--right { margin-left: 50%; }
.tl-item::before { content: ''; position: absolute; top: 14px; width: 9px; height: 9px; background: var(--c); box-shadow: var(--ring); }
.tl-item--left::before { right: -4.5px; }
.tl-item--right::before { left: -4.5px; }
.tl-item a { text-decoration: none; display: inline-block; }
.tl-item .tl-date { font-size: 12px; color: var(--soft); font-weight: 600; letter-spacing: .04em; }
.tl-item .tl-title { font-family: var(--serif); font-weight: 300; font-size: 20px; line-height: 1.25; display: block; }
.tl-item a:hover .tl-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 640px) {
  .timeline::before { left: 6px; }
  .tl-year { justify-content: flex-start; }
  .tl-year span { padding-left: 22px; }
  .tl-year span::before { left: 6px; top: 50%; transform: translate(-50%, -50%); }
  .tl-item, .tl-item--left, .tl-item--right { width: auto; margin: 0; text-align: left; padding: 6px 0 6px 28px; }
  .tl-item--left::before, .tl-item--right::before { left: 2px; right: auto; }
}

/* ---------- Themes ---------- */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .themes { grid-template-columns: 1fr; } }
.theme {
  display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
}
.theme:hover { border-color: var(--ink); transform: translateY(-2px); }
.theme__sqs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; min-height: 10px; }
.theme__sqs i { width: 10px; height: 10px; background: var(--c); box-shadow: var(--ring); display: block; }
.theme__num { font-size: 13px; font-weight: 600; color: var(--soft); letter-spacing: .1em; margin-bottom: 6px; display: block; }
.theme h3 { font-size: 26px; margin-bottom: 8px; }
.theme p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Newsletter ---------- */
.subscribe { display: flex; justify-content: center; }
.subscribe .note { max-width: 680px; width: 100%; text-align: center; padding: 40px clamp(20px, 5vw, 48px); }
.subscribe h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.subscribe p { color: var(--muted); }
.field-row { display: flex; gap: 8px; margin-top: 20px; font-family: var(--sans); }
.field-row input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .field-row { flex-direction: column; } }

input[type="text"], input[type="email"], input[type="search"], textarea, select {
  height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
textarea { height: auto; min-height: 160px; padding: 14px 16px; border-radius: 16px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
.btn {
  height: 46px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--ink); color: var(--on-ink);
  font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; transition: opacity .2s; white-space: nowrap;
}
.btn:hover { opacity: .85; }
.btn--ghost { background: var(--pill); color: var(--ink); }
.form-msg { font-size: 15px; margin-top: 12px; min-height: 1.4em; color: var(--muted); font-family: var(--sans); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(120px, 18vh, 170px) var(--gutter) 40px; }
.page-head__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; align-items: end; }
.page-head__grid .hero__sub { align-self: end; }
.page-head h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1.02; }
@media (max-width: 640px) {
  .page-head__grid { grid-template-columns: 1fr; }
  .page-head__grid .hero__sub { justify-self: start; text-align: left; grid-row: 2; margin-top: 16px; max-width: none; }
  .page-head__grid h1 { grid-column: 1; }
}

/* ---------- Blog archive ---------- */
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 0; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.filters button .sq { width: 7px; height: 7px; }
.toolbar input[type="search"] { max-width: 280px; height: 38px; }
@media (max-width: 640px) { .toolbar input[type="search"] { max-width: none; } }
.empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 20px; }
.result-count { font-size: 14px; color: var(--soft); margin: -24px 0 28px; }

/* ---------- Single post ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 0; transform: scaleX(0); z-index: 60; background: var(--ink); }
.post-head { padding-top: clamp(120px, 18vh, 160px); padding-bottom: 36px; text-align: center; }
.post-head .meta { justify-content: center; }
.post-head h1 { font-size: clamp(40px, 6.5vw, 76px); max-width: 920px; margin: 20px auto 18px; }
.post-head .lede { margin: 0 auto; }
.post-cover { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.post-cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 4px; }
.post-cover figcaption { font-size: 13px; color: var(--soft); margin-top: 10px; }
.prose { max-width: 700px; margin: 56px auto 0; padding: 0 var(--gutter); font-family: var(--serif); font-weight: 300; font-size: 20px; line-height: 1.7; }
.prose strong { font-weight: 600; }
.prose a { text-underline-offset: 3px; }
.prose > p:first-of-type::first-letter { float: left; font-size: 4.2em; font-weight: 300; line-height: .82; padding: 6px 10px 0 0; }
.prose h2 { font-size: 32px; margin: 1.8em 0 .6em; }
.prose blockquote { margin: 1.8em 0; }
.prose blockquote.note { max-width: none; font-size: 24px; line-height: 1.4; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 4px; }
.prose figcaption { font-family: var(--sans); font-size: 14px; color: var(--soft); margin-top: 8px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.post-foot { max-width: 700px; margin: 56px auto 0; padding: 28px var(--gutter) 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.post-foot .author { display: flex; align-items: center; gap: 12px; }
.post-foot .author img { width: 46px; height: 46px; border-radius: 50%; object-fit: contain; padding: 8px; border: 1px solid var(--line); }
.post-foot .author strong { display: block; font-size: 16px; }
.post-foot .author span { font-size: 14px; color: var(--soft); }
.share { display: flex; gap: 6px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 980px; margin: 64px auto 0; padding: 0 var(--gutter); }
.pager a { text-decoration: none; border: 1.5px dashed var(--muted); border-radius: var(--radius); padding: 18px 22px; background: var(--card); transition: transform .2s; }
.pager a:hover { transform: translateY(-2px); }
.pager small { display: block; font-size: 12px; color: var(--soft); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 6px; }
.pager span { font-family: var(--serif); font-weight: 300; font-size: 20px; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; } }

/* ---------- About / contact ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.qa { border-top: 1px solid var(--ink); }
.qa__item { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 72px); padding: 36px 0; border-bottom: 1px solid var(--line); }
.qa__item h3 { font-size: clamp(24px, 2.8vw, 32px); text-wrap: balance; }
.qa__item .big-text p:last-child { margin-bottom: 0; }
@media (max-width: 800px) { .qa__item { grid-template-columns: 1fr; gap: 16px; } }
.lines { border-top: 1px solid var(--ink); }
.lines p { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 3vw, 34px); line-height: 1.3; max-width: 30ch; text-wrap: balance; }
.lines p:nth-child(even) { margin-left: auto; text-align: right; }
@media (max-width: 640px) { .lines p:nth-child(even) { text-align: left; } }
.big-text { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.5; }
.big-text p { margin-bottom: 1em; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }
.values .note { max-width: none; font-size: 17px; }
.values .note h3 { font-size: 26px; margin: 14px 0 10px; }
.values .note .sq { width: 12px; height: 12px; }
.values--4 { grid-template-columns: repeat(4, 1fr); }
.values--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .values--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .values--4, .values--2 { grid-template-columns: 1fr; } }
.values .note .theme__num { margin-top: 14px; }
.values .note .theme__num + h3 { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; font-weight: 600; }
.checklist--no li::before { content: '×'; font-size: 1.2em; line-height: 1.1; }
.small { font-size: 15px; color: var(--soft); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 28px 20px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 5vw, 56px); line-height: 1; }
.stats span { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.form { display: grid; gap: 16px; }
.form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list small { color: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

/* ---------- Footer ---------- */

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
}

/* ---------- Defined words ---------- */
[data-term] {
  text-decoration: underline dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .18em;
  text-decoration-color: var(--soft);
  cursor: help;
  border-radius: 3px;
}
[data-term]:hover, [data-term][aria-expanded="true"] { text-decoration-color: var(--ink); background: var(--pill); }
[data-term]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.term-pop {
  position: absolute; z-index: 60; width: min(340px, calc(100vw - 24px));
  background: var(--ink); color: var(--on-ink); border-radius: 10px; padding: 16px 18px 14px;
  font-family: var(--sans); font-size: 15px; line-height: 1.45; font-weight: 400;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
  animation: term-in .14s ease-out;
}
.term-pop[hidden] { display: none; }
@keyframes term-in { from { opacity: 0; transform: translateY(4px); } }
.term-pop__word { display: block; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.term-pop__word em { font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: .7; }
.term-pop p { margin: 0 0 10px; text-wrap: pretty; }
.term-pop__src { display: block; font-size: 12px; opacity: .7; margin-bottom: 8px; }
.term-pop a { color: inherit; font-weight: 700; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .term-pop { animation: none; } }

/* ---------- Glossary page ---------- */
.gloss-jump { margin-bottom: 32px; }
.gloss { border-top: 1px solid var(--ink); }
.gloss__item { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 5vw, 72px); padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.gloss__item h2 { font-size: clamp(28px, 3.4vw, 40px); }
.gloss__item h2 em { display: block; font-style: normal; font-size: 16px; font-family: var(--sans); color: var(--soft); margin-top: 8px; letter-spacing: 0; }
.gloss__item p { margin: 0 0 12px; max-width: 62ch; }
.gloss__short { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.4; }
.gloss__src { font-size: 14px; color: var(--soft); }
.gloss__item:target { background: linear-gradient(var(--pill), var(--pill)) no-repeat; }
.gloss-credit { max-width: none; margin-top: 48px; }
.gloss-credit p { text-wrap: pretty; }
@media (max-width: 800px) { .gloss__item { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Start here path ---------- */
.narrow { max-width: 860px; }
.path { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: none; }
.path a { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .2s; }
.path a:hover { padding-left: 10px; }
.path__n { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1; }
.path__body strong { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin-bottom: 6px; }
.path__body span { color: var(--muted); }
.path__time { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
@media (max-width: 560px) { .path a { grid-template-columns: 44px 1fr; } .path__time { grid-column: 2; } .path__n { font-size: 26px; } }

/* ---------- Write back ---------- */
.write-back { max-width: none; }
.write-back h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 16px; text-wrap: balance; }
.write-back textarea { width: 100%; min-height: 120px; font-family: var(--sans); font-size: 16px; }
.write-back__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-family: var(--sans); }
.write-back__row .small { margin: 0; }
.post-reply { max-width: 700px; margin: 40px auto 0; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Lived, not claimed ---------- */
.story { max-width: none; text-decoration: none; display: block; }
.story h3 { font-size: 26px; margin-bottom: 10px; }
.story p { font-size: 17px; margin-bottom: 16px; }
.story .link-arrow { font-family: var(--sans); font-size: 15px; }
.story--empty { border-color: var(--line); color: var(--soft); }

/* ---------- Founder lines ---------- */
.said { margin: 0 0 40px; max-width: 760px; }
.said p { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.3; margin: 0 0 10px; text-wrap: balance; }
.said cite { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.said--small { margin: 18px 0; padding-left: 16px; border-left: 2px solid var(--ink); }
.said--small p { font-size: clamp(18px, 2vw, 21px); }
.section__head .said { margin: 0; max-width: 480px; }
.subscribe .said { margin: 18px auto 22px; }
.theme__line { font-style: italic; color: var(--muted); }
.write-back__note { font-size: 16px; color: var(--soft); margin: -6px 0 14px; }

.path__note { margin-top: 24px; }
.path__head { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.path__head span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.path + .path__head { margin-top: 56px; }

/* Reply box: optional name and email */
.write-back__who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; font-family: var(--sans); }
.write-back__who label { font-size: 14px; font-weight: 700; display: block; margin-bottom: 6px; }
.write-back__who label span, .form label span { display: inline; font-weight: 400; color: var(--soft); }
.write-back__who input { width: 100%; }
.write-back .form-msg { margin: 12px 0 0; }
.write-back button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 560px) { .write-back__who { grid-template-columns: 1fr; } }

/* ---------- Essay structure ---------- */
.in-short { border-left: 3px solid var(--ink); padding: 4px 0 4px 20px; margin: 0 0 2em; }
.in-short .eyebrow { margin-bottom: 6px; }
.in-short p { margin: 0; font-size: 21px; line-height: 1.5; }
.doubt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; font-style: italic; color: var(--muted); }
.wrong li { margin-bottom: .7em; }
.open-note { margin: 2.4em 0 0; padding: 22px 24px; background: var(--pill); border-radius: var(--radius); font-family: var(--sans); font-size: 16px; line-height: 1.55; font-weight: 400; }
.open-note p { margin: 0 0 10px; }
.open-note .small { margin: 0; font-size: 14px; }
.open-note ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
.sources { font-family: var(--sans); font-size: 15px; line-height: 1.5; font-weight: 400; padding-left: 1.4em; color: var(--muted); }
.sources li { margin-bottom: 6px; }
#open-to-change { scroll-margin-top: 140px; }
.prose h2 { scroll-margin-top: 140px; }

/* Sticky chapter bar */
.chapters { position: fixed; top: var(--bar); left: 0; right: 0; z-index: 45; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-size: 14px; }
.chapters[hidden] { display: none; }
.chapters__btn { width: 100%; max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter); background: none; border: 0; cursor: pointer; text-align: left; }
.chapters__now { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapters__now b { font-weight: 700; }
.chapters__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.chapters__menu { list-style: none; margin: 0 auto; padding: 6px var(--gutter) 14px; max-width: var(--wrap); max-height: 60vh; overflow: auto; }
.chapters__menu a { display: flex; gap: 12px; padding: 8px 0; text-decoration: none; border-top: 1px solid var(--line); }
.chapters__menu a b { width: 22px; font-weight: 700; color: var(--soft); }
.chapters__menu a[aria-current] { font-weight: 700; }

/* ---------- Blog: kinds, view toggle, index ---------- */
.kinds { margin-bottom: 18px; }
.kinds button[aria-pressed="true"], .view-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.toolbar__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.view-toggle button { border: 0; }
.index { width: 100%; border-collapse: collapse; font-size: 15px; }
.index th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); }
.index td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.index td:first-child { white-space: normal; width: 60%; }
.index td:first-child a { font-family: var(--serif); font-weight: 300; font-size: 19px; text-decoration: none; display: block; }
.index td:first-child a:hover { text-decoration: underline; }
.index td:first-child span { display: block; color: var(--soft); font-size: 14px; margin-top: 2px; }
.index td .sq { margin-right: 6px; }
@media (max-width: 700px) {
  .index thead { display: none; }
  .index tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .index td { display: inline; border: 0; padding: 0 10px 0 0; font-size: 13px; color: var(--soft); }
  .index td:first-child { display: block; width: auto; margin-bottom: 6px; color: var(--ink); }
}

/* Draft notes for review — delete every .review element before launch */
.review { font-family: var(--sans); font-size: 15px; font-weight: 400; line-height: 1.5; background: var(--pill); border-left: 3px solid var(--ink); padding: 10px 14px; margin: 0 0 1.4em; }
.review::before { content: 'To review: '; font-weight: 700; }
.prose .checklist li { margin-bottom: .7em; }
.books em { color: var(--soft); }
.prose > p.review:first-of-type::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; font-weight: 700; }

/* ============================================================
   Redesign, November 2026: menu bar, hairline grid, mono labels,
   bands, theme tabs and footer
   ============================================================ */


/* Mono labels */
.eyebrow, .meta, .theme__num, .path__time, .index th, .result-count, .tl-item .tl-date,
.gloss__src, .term-pop__word, .chapters__now b, .footer h4, .tab__count, .dict__pos {
  font-family: var(--mono); letter-spacing: .04em;
}
.eyebrow { font-size: 12px; font-weight: 400; letter-spacing: .08em; }
.meta { font-size: 12px; font-weight: 400; }

/* Squarer controls */
.btn { border-radius: 4px; }
input[type="text"], input[type="email"], input[type="search"], select { border-radius: 4px; }
textarea { border-radius: 4px; }
input[type="text"], input[type="email"], input[type="search"], textarea, select { background: var(--card); color: var(--ink); }
.btn--ghost { border: 1px solid var(--line); }

/* Notes: solid hairline instead of dashed */
.note { border: 1px solid var(--line); border-radius: 6px; }
.step .note { box-shadow: 0 10px 40px rgba(0, 0, 0, .06); }
.theme, .pager a { border-radius: 6px; }
.pager a { border: 1px solid var(--line); }

/* Bands: full-width warm sections between hairlines */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.section--tight { padding-top: clamp(56px, 8vw, 96px); }
.band--ink { background: var(--ink); color: var(--on-ink); border: 0; }
.band--ink .eyebrow, .band--ink .lede { color: inherit; opacity: .75; }
.band--ink .note { background: transparent; border-color: color-mix(in srgb, var(--on-ink) 25%, transparent); color: inherit; }
.band--ink .note p { color: inherit; opacity: .8; }
.band--ink .note:hover { border-color: var(--on-ink); }
.section + .band { margin-top: 0; }

/* ---------- Menu bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar);
  display: flex; align-items: stretch; justify-content: space-between;
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar__left, .bar__nav, .bar__right { display: flex; align-items: stretch; }
.cell {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; height: 100%;
  border: 0; border-right: 1px solid var(--line); background: none; cursor: pointer;
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap;
  transition: background .15s;
}
.bar__right .cell { border-right: 0; border-left: 1px solid var(--line); }
.cell:hover, .cell[aria-expanded="true"] { background: var(--surface); }
.cell[aria-current="page"], .cell.is-current { box-shadow: inset 0 -2px 0 var(--ink); }
.cell--ink { background: var(--ink); color: var(--on-ink); font-weight: 700; }
.cell--ink:hover { background: var(--ink); opacity: .88; }
.bar__brand { padding: 0 20px; }
.bar__brand img { height: 36px; width: auto; }
.cell svg { transition: transform .2s; }
.cell[aria-expanded="true"] svg { transform: rotate(180deg); }
.bar__menu { display: none; }

.bar__panel {
  position: fixed; top: var(--bar); left: 0; right: 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .06);
}
.bar__panel-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.bar__panel a {
  display: block; padding: 22px var(--gutter); text-decoration: none; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); transition: background .15s;
}
.bar__panel a:hover { background: var(--surface); }
.bar__panel strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 4px; }
.bar__panel small { font-size: 14px; color: var(--soft); line-height: 1.45; display: block; }

.mobile-menu {
  position: fixed; top: var(--bar); left: 0; right: 0; bottom: 0; z-index: 49; overflow: auto;
  background: var(--bg); padding: 8px var(--gutter) 40px;
}
.mobile-menu h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 24px 0 6px; }
.mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 20px; font-family: var(--serif); }
.mobile-menu a[aria-current="page"] { font-weight: 600; }

@media (max-width: 900px) {
  .bar__nav, .bar__right .bar__contact { display: none; }
  .bar__menu { display: inline-flex; }
  .bar__panel { display: none !important; }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* Dark mode: logos are black line art, so invert them */
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .bar__brand img,
:root[data-theme="dark"] .footer__logo img, :root[data-theme="dark"] .author img { filter: invert(1); }
/* Black theme squares need an outline on a black page */
:root[data-theme="dark"] .sq, :root[data-theme="dark"] .squares b, :root[data-theme="dark"] .theme__sqs i,
:root[data-theme="dark"] .tl-item::before { outline: 1px solid #4c4c4c; outline-offset: -1px; }

/* ---------- Home: we / you pairs ---------- */
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pairs > div { padding: 28px 24px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.pairs p { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; margin: 0; }
.pairs p + p { color: var(--soft); margin-top: 6px; }
.pairs .eyebrow { margin-bottom: 18px; }
@media (max-width: 800px) { .pairs { grid-template-columns: 1fr; } }

/* ---------- Home: rotating word ---------- */
.rotate { display: inline-flex; align-items: center; gap: .25em; white-space: nowrap; }
.rotate .sq { width: .5em; height: .5em; }
.rotate__word { display: inline-block; transition: opacity .25s, transform .25s; }
.rotate__word.out { opacity: 0; transform: translateY(.2em); }

/* ---------- Home: theme tabs ---------- */
.tabs { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--card); }
.tabs__list { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); }
.tab {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left;
  padding: 18px 20px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; color: var(--ink);
  font-family: var(--serif); font-size: 22px; font-weight: 300; transition: background .15s;
}
.tab:last-child { border-bottom: 0; }
.tab:hover { background: var(--bg); }
.tab[aria-selected="true"] { background: var(--card); box-shadow: inset 3px 0 0 var(--ink); }
.tab .sq { width: 12px; height: 12px; }
.tab__count { font-size: 12px; color: var(--soft); }
.tabs__panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.tabs__intro { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.tabs__intro .lede { margin: 0; color: var(--ink); }
.tabs__lead { display: block; text-decoration: none; padding-top: 22px; border-top: 1px solid var(--line); }
.tabs__lead strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 1.2; margin: 6px 0; }
.tabs__lead span { color: var(--muted); font-size: 15px; }
.tabs__lead:hover strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tabs__quote { margin: 0; background: var(--ink); color: var(--on-ink); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tabs__quote p { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; margin: 0; }
.tabs__quote .link-arrow { color: inherit; align-self: flex-start; }
@media (max-width: 960px) { .tabs__panel { grid-template-columns: 1fr; } .tabs__intro { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 700px) {
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .tab { grid-template-columns: auto auto; border-bottom: 0; border-right: 1px solid var(--line); font-size: 18px; padding: 14px 16px; }
  .tab__count { display: none; }
  .tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--ink); }
}

/* ---------- About: dictionary entry ---------- */
.dict { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 24px 0; margin-bottom: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.dict__word { font-family: var(--serif); font-size: clamp(36px, 4vw, 52px); font-weight: 300; line-height: 1; margin: 0; }
.dict__pos { display: block; font-size: 13px; color: var(--soft); margin-top: 10px; }
.dict ol { margin: 0; padding-left: 1.3em; font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 2vw, 23px); line-height: 1.45; }
.dict li { margin-bottom: 10px; padding-left: 4px; }
@media (max-width: 700px) { .dict { grid-template-columns: 1fr; } }

/* ---------- Footer: light, hairline columns, stripe band ---------- */
.footer { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); margin-top: 0; padding: 0; font-size: 15px; }
.section + .footer, main + .footer { margin-top: clamp(64px, 10vw, 120px); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 2.4fr; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.footer__brand { padding: 40px var(--gutter) 40px; border-right: 1px solid var(--line); }
.footer__brand .brand { margin-bottom: 24px; }
.footer__brand p { color: var(--muted); max-width: 340px; margin: 0 0 14px; }
.footer .footer__line { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.footer__promise { font-size: 14px; }
.footer__promise a { margin-left: 6px; color: var(--muted); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); }
.footer__col { padding: 40px 20px; border-right: 1px solid var(--line); }
.footer__col:last-child { border-right: 0; }
.footer h4 { font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 0 0 16px; }
.footer h4.footer__fact { margin-top: 28px; }
.footer summary { list-style: none; cursor: default; }
.footer summary::-webkit-details-marker { display: none; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer li a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer li a span { color: var(--soft); }
.footer__tools { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px var(--gutter); border: 1px solid var(--line); border-bottom: 0; font-size: 13px; color: var(--soft); }
.footer__social { display: flex; gap: 16px; }
.footer__social a { color: var(--ink); }
.footer__settings { display: flex; align-items: center; gap: 12px; }
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.theme-switch button { border: 0; background: none; width: 34px; height: 30px; display: grid; place-items: center; cursor: pointer; color: var(--soft); }
.theme-switch button + button { border-left: 1px solid var(--line); }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.lang { height: 30px; width: auto; padding: 0 28px 0 10px; font-size: 13px; border-radius: 4px; }
.footer__art { position: relative; margin-top: 40px; }
.footer__logo { display: flex; justify-content: center; padding: 0 var(--gutter); }
.footer__logo img { width: min(360px, 70vw); height: auto; }
.footer__stripes { display: grid; margin-top: 18px; }
.footer__stripes i { height: clamp(12px, 2vw, 22px); display: block; }
.footer__base { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; font-family: var(--mono); color: var(--soft); border-top: 0; }
@media (max-width: 960px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__col { padding: 0 var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); }
  .footer summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
  .footer summary::after { content: '+'; font-size: 20px; color: var(--soft); }
  .footer__col[open] summary::after { content: '−'; }
  .footer summary h4 { margin: 0; color: var(--ink); }
  .footer__col ul { padding-bottom: 14px; }
}

body[data-page="home"] main + .footer { margin-top: 0; }

/* Generated cover art */
.cover { display: block; width: 100%; height: 100%; background: var(--surface); }
.card__img .cover { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__img .cover { transform: scale(1.04); }
.post-cover .cover { aspect-ratio: 2 / 1; border-radius: 4px; height: auto; }
.cover--tall { aspect-ratio: 4 / 5; border-radius: 4px; height: auto; }

/* ---------- Cards, Mistral-style: framed, chip, cell footer ---------- */
.grid { gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 4px; background: var(--card); overflow: hidden; transition: border-color .2s; }
.card:hover { border-color: var(--ink); }
.card__img { border-radius: 0; aspect-ratio: 3 / 2; border-bottom: 1px solid var(--line); }
.card__main { display: flex; flex-direction: column; flex: 1; }
.card__body { padding: 20px 22px 24px; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 4px 8px; }
.chip .sq { width: 7px; height: 7px; }
.card__title { font-size: 24px; margin: 16px 0 10px; line-height: 1.15; }
.card__excerpt { font-size: 15px; }
.card__foot { display: grid; grid-template-columns: 1fr 1fr 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.card__foot > * { padding: 12px 16px; border-right: 1px solid var(--line); display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__foot > :last-child { border-right: 0; justify-content: center; padding: 0; color: var(--ink); text-decoration: none; }
.card:hover .card__go { background: var(--ink); color: var(--on-ink); }
.card--big { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; align-items: stretch; margin-bottom: 24px; }
.card--big .card__img { aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--line); }
.card--big .card__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.card--big .card__title { font-size: clamp(30px, 3.4vw, 44px); }
@media (max-width: 800px) {
  .card--big { grid-template-columns: 1fr; }
  .card--big .card__img { aspect-ratio: 3 / 2; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
}
.card__img .cover { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card__img .cover { transform: scale(1.03); }
.chip { align-self: flex-start; width: max-content; }

/* ---------- Phone fixes (Nov 9, 2026) ---------- */
.prose > p.no-drop:first-of-type::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; font-weight: inherit; }
.stats span { display: block; line-height: 1.4; margin-top: 6px; }
@media (max-width: 600px) {
  /* Compact cards: small cover on the left, words on the right */
  .grid .card:not(.card--big) { display: grid; grid-template-columns: 104px 1fr; }
  .grid .card:not(.card--big) .card__img { aspect-ratio: auto; height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
  .grid .card:not(.card--big) .card__body { padding: 14px 16px 16px; }
  .grid .card:not(.card--big) .card__title { font-size: 19px; margin: 10px 0 0; }
  .grid .card:not(.card--big) .card__excerpt { display: none; }
  .grid .card:not(.card--big) .card__foot { grid-template-columns: 1fr 40px; font-size: 12px; }
  .grid .card:not(.card--big) .card__foot > :first-child { display: none; }
  .grid .card:not(.card--big) .card__foot > * { padding: 10px 12px; }
  .grid .card:not(.card--big) .card__foot > :last-child { padding: 0; }
  .grid { gap: 12px; }

  /* Theme tabs: all four visible, two by two */
  .tabs__list { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .tab { border-right: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .tab:nth-child(odd) { border-right: 1px solid var(--line); }
  .tab:nth-last-child(-n+2) { border-bottom: 0; }

  /* Archive filters: one swipeable row each instead of ragged wrapping */
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }

  .footer__tools { justify-content: flex-start; }
}
.archive { padding-bottom: clamp(64px, 10vw, 120px); }

/* ---------- Earth & Us ---------- */
.eu-hero { padding: clamp(110px, 16vh, 160px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.eu-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eu-hero__title { font-size: clamp(64px, 10vw, 136px); line-height: .95; letter-spacing: -.02em; margin: 6px 0 22px; font-weight: 300; }
.eu-hero__title em { font-style: italic; color: var(--soft); font-weight: 300; }
.eu-hero__sub { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; margin: 0 0 22px; max-width: 18em; }
.eu-hero__lede { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 34em; margin: 0 0 12px; }
.eu-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.eu-status { display: inline-flex; align-items: center; gap: 10px; margin: 22px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 7px 12px; background: var(--card); }
.eu-now { margin: 18px 0 0; display: grid; gap: 8px; max-width: 520px; }
.eu-now div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.eu-now dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.eu-now dd { margin: 0; font-size: 15px; line-height: 1.45; }
@media (max-width: 520px) { .eu-now div { grid-template-columns: 1fr; gap: 2px; } }
.eu-status__dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.eu-hero__art { margin: 0; }
.eu-hero__art svg { width: 100%; height: auto; display: block; overflow: visible; }
.eu-art__globe { fill: none; stroke: var(--ink); stroke-width: 1; }
.eu-art__globe > circle { stroke-width: 1.5; }
.eu-art__globe g { stroke: var(--soft); opacity: .7; }
.eu-art__us { fill: var(--ink); }
.eu-art__hatch { stroke: var(--on-ink); stroke-width: 1.4; }
.eu-art__label { font-family: var(--mono); font-size: 13px; letter-spacing: .2em; fill: var(--soft); }
.eu-art__label--mid { font-family: var(--serif); font-style: italic; font-size: 40px; letter-spacing: 0; fill: var(--on-ink); }
@media (max-width: 860px) {
  .eu-hero__grid { grid-template-columns: 1fr; }
  .eu-hero__art { max-width: 380px; width: 82%; justify-self: center; margin-top: 8px; }
}

.eu-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.eu-split__head .h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.12; }
@media (min-width: 861px) { .eu-split__head { position: sticky; top: calc(var(--bar) + 32px); } }
@media (max-width: 860px) { .eu-split { grid-template-columns: 1fr; } }

.eu-prose { font-family: var(--serif); font-weight: 300; font-size: 20px; line-height: 1.6; }
.eu-prose p { margin: 0 0 .9em; }
.eu-prose--narrow { max-width: 760px; margin: 40px 0 0; font-size: 18px; color: var(--muted); }
.eu-strong { font-weight: 400; color: var(--ink); }
.band--ink .eu-strong { color: inherit; }

.eu-contrasts { list-style: none; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--line); }
.eu-contrasts li { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(19px, 2vw, 23px); line-height: 1.4; font-family: var(--serif); font-weight: 300; }
.eu-contrasts span { color: var(--ink); }
.eu-contrasts em { font-style: normal; color: var(--soft); }

.eu-believe__title { max-width: 16em; margin-bottom: 48px; }
.eu-believe__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); opacity: .9; }
@media (max-width: 760px) { .eu-believe__grid { grid-template-columns: 1fr; gap: 0; } }
.eu-featured { margin: clamp(40px, 6vw, 72px) 0 0; padding-top: 36px; border-top: 1px solid color-mix(in srgb, var(--on-ink) 25%, transparent); }
.eu-featured p { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.12; margin: 0; max-width: 20em; }

.eu-num { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--soft); display: block; margin-bottom: 18px; }
.eu-three { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.eu-three li { padding: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line); }
.eu-three li:first-child { border-left: 0; }
.eu-three h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; margin: 0 0 14px; }
.eu-three p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 760px) { .eu-three { grid-template-columns: 1fr; } .eu-three li { border-left: 0; border-top: 1px solid var(--line); } .eu-three li:first-child { border-top: 0; } }
.eu-closing { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.6vw, 30px); margin: 36px 0 0; text-align: center; }
.eu-closing--small { font-family: var(--sans); font-size: 15px; color: var(--soft); text-align: left; }
.band--ink .eu-closing--small { color: inherit; opacity: .7; }

.eu-six { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--card); }
.eu-six article { padding: clamp(22px, 2.6vw, 34px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.eu-six article:hover { background: var(--bg); }
.eu-six h3 { font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
.eu-six p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) { .eu-six { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eu-six { grid-template-columns: 1fr; } }

.eu-stages { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; counter-reset: s; }
.eu-stages::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.eu-stages li { position: relative; padding: 34px 20px 0 0; }
.eu-stages li::before { content: ''; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--ink); }
.eu-stages__verify::before { background: var(--ink) !important; }
.eu-stages .eu-num { margin-bottom: 8px; }
.eu-stages h3 { font-size: 24px; margin: 0 0 8px; }
.eu-stages p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) {
  .eu-stages { grid-template-columns: 1fr; gap: 0; }
  .eu-stages::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .eu-stages li { padding: 0 0 28px 36px; }
  .eu-stages li:last-child { padding-bottom: 0; }
}

.eu-sub { font-size: clamp(24px, 2.6vw, 32px); margin: 8px 0 22px; }
.eu-hi { font-family: var(--mono); font-size: 12px; color: var(--soft); letter-spacing: .04em; }
.eu-goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.eu-goals > div { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 22px; }
.eu-goals h3 { font-size: 24px; font-weight: 400; margin: 10px 0 8px; }
.eu-goals p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .eu-goals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .eu-goals { grid-template-columns: 1fr; } }

@media (max-width: 760px) {
}




.eu-invite { text-align: center; max-width: 720px; margin: 0 auto; }
.eu-invite p { color: var(--muted); font-size: 18px; }
.eu-invite .eu-hero__cta { justify-content: center; }
.eu-sources { margin-top: clamp(64px, 9vw, 110px); }
.eu .band--ink [data-term] { color: inherit; }
.eu-separate { display: flex; gap: 14px; align-items: flex-start; margin: 40px 0 0; padding: 18px 20px; border: 1px solid var(--ink); border-radius: 4px; font-size: 16px; line-height: 1.55; max-width: 820px; background: var(--card); }
.eu-separate__mark { flex: none; width: 22px; height: 22px; margin-top: 1px; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); background: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 5px); }
.eu .eu-goals { margin-top: 40px; }
.eu-after-goals { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: end; margin-top: 40px; max-width: 980px; }
.eu-after-goals .link-arrow { white-space: nowrap; margin-bottom: 1.1em; }
@media (max-width: 760px) { .eu-after-goals { grid-template-columns: 1fr; } .eu-after-goals .link-arrow { margin-bottom: 0; } }
.eu-commit { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.eu-commit li { padding: clamp(20px, 2.2vw, 28px); border-left: 1px solid var(--line); }
.eu-commit li:first-child { border-left: 0; }
.eu-commit h3 { font-size: 20px; line-height: 1.2; margin: 0 0 10px; }
.eu-commit p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
@media (max-width: 1000px) { .eu-commit { grid-template-columns: repeat(2, 1fr); } .eu-commit li { border-left: 0; border-top: 1px solid var(--line); } .eu-commit li:nth-child(even) { border-left: 1px solid var(--line); } .eu-commit li:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 560px) { .eu-commit { grid-template-columns: 1fr; } .eu-commit li:nth-child(even) { border-left: 0; } .eu-commit li:nth-child(2) { border-top: 1px solid var(--line); } }
.eu-center { text-align: center; margin-top: 12px; }
.eu-status--ink { background: transparent; color: inherit; border-color: color-mix(in srgb, var(--on-ink) 30%, transparent); opacity: .85; margin-top: 32px; }
.eu-status--ink .eu-status__dot { border-color: var(--on-ink); background: linear-gradient(90deg, var(--on-ink) 50%, transparent 50%); }
.eu-vision__title { max-width: 18em; margin-bottom: clamp(32px, 5vw, 56px); }
.eu-vision__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .eu-vision__grid { grid-template-columns: 1fr; } .eu-net { max-width: 320px; } }
.eu-net { margin: 0; }
.eu-net svg { width: 100%; height: auto; display: block; }
.eu-net__lines { stroke: var(--soft); stroke-width: 1; opacity: .6; }
.eu-net__nodes rect { fill: var(--ink); }
.eu-net__nodes .eu-net__open { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }

.btn--lg { padding: 16px 26px; font-size: 16px; min-height: 48px; display: inline-flex; align-items: center; }
.eu-final { padding: clamp(80px, 12vw, 150px) 0; }
.eu-final .h2 { max-width: 14em; margin: 0 auto 28px; }
.eu-final .eu-invite p { font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 2vw, 22px); line-height: 1.55; margin: 0 0 .7em; }
.eu-final .eu-invite .eu-strong { color: var(--ink); font-weight: 400; }
.eu-final .eu-hero__cta { margin-top: 36px; }
.eu-disclosure { max-width: 700px; margin: 48px auto 0; padding: 24px 26px; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 4px; background: var(--surface); }
.eu-disclosure .eyebrow { margin-bottom: 6px; }
.eu-disclosure p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 560px) { .eu-hero__cta .btn { width: 100%; justify-content: center; text-align: center; min-height: 48px; } }

/* Keyboard focus, site-wide */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.band--ink a:focus-visible, .eu-status--ink a:focus-visible { outline-color: var(--on-ink); }

/* ---------- The argument page ---------- */
.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--line); }
.steps-list > li { counter-increment: step; position: relative; padding: 24px 0 24px 56px; border-bottom: 1px solid var(--line); }
.steps-list > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 28px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.steps-list h3 { margin: 0 0 8px; }
.steps-list p { margin: 0 0 10px; }
.steps-list p.small { margin: 0; color: var(--muted); }
.proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 24px 0 32px; }
.proofs > div { background: var(--bg); padding: 20px; }
.proofs dt { font-weight: 600; margin-bottom: 8px; }
.proofs dt .small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.proofs dd { margin: 0; font-size: 16px; line-height: 1.6; }
@media (max-width: 700px) {
  .proofs { grid-template-columns: 1fr; }
  .steps-list > li { padding-left: 40px; }
}

/* Home hero: the fine print */
.hero { z-index: 3; }
.hero__link { pointer-events: auto; color: inherit; text-decoration: none; display: inline-block; }
.hero__inc { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.hero__link:hover .hero__inc { text-decoration-style: solid; }

/* Argument page: diagrams */
.dg { margin: 28px 0 32px; }
.dg svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans, inherit); }
.dg text { fill: var(--ink); font-size: 14px; }
.dg text.b { font-weight: 600; }
.dg text.lg { font-size: 17px; }
.dg text.sm { font-size: 12.5px; }
.dg text.m { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.dg text.num { font-size: 10px; letter-spacing: 0; }
.dg text.mu { fill: var(--muted); }
.dg text.on { fill: var(--on-ink); }
.dg .ink { fill: var(--ink); }
.dg .bx { fill: var(--bg); stroke: var(--ink); stroke-width: 1; }
.dg .bx--b { stroke-width: 2; }
.dg .dash { stroke-dasharray: 5 4; stroke: var(--muted); }
.dg .ln { fill: none; stroke: var(--ink); stroke-width: 1; }
.dg .ln--b { stroke-width: 3; stroke-linecap: round; }
.dg-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 32px 0 8px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dg-pair .dg { margin: 0; }
.dg-pair .dg + .dg { border-left: 1px solid var(--line); padding-left: 28px; }
.dg-tall { display: none !important; }
.dg-single { max-width: 500px; margin-left: auto; margin-right: auto; }
@media (max-width: 560px) {
  .dg-pair { grid-template-columns: 1fr; gap: 24px; }
  .dg-pair .dg + .dg { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .dg-wide { display: none !important; }
  .dg-tall { display: block !important; }
}

/* Argument page: what research supports */
.evidence { margin: 24px 0 32px; border-top: 1px solid var(--line); }
.evidence > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.evidence dt { font-weight: 600; margin-bottom: 8px; }
.evidence dd { margin: 0 0 8px; }
.evidence__tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 3px; padding: 2px 7px; margin-right: 8px; vertical-align: 2px; color: var(--muted); }
.evidence__not { font-size: 15px; color: var(--muted); margin: 0; }
.sources__head { font-size: 16px; font-family: var(--mono); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 1.4em 0 .4em; }

/* Home scroll: short statement notes */
.step .note--short { text-align: center; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; padding: 28px 34px; }
@media (max-width: 600px) { .step .note--short { padding: 22px 24px; } }

/* Home scroll: the structured third note */
.note--rich { max-width: 600px; padding: 28px 30px; }
.note--rich .note__lead { font-size: clamp(21px, 2.3vw, 26px); line-height: 1.3; margin: 0 0 10px; }
.note--rich .note__sub { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 0 0 20px; }
.note__rows { margin: 0 0 20px; border-top: 1px solid var(--line); }
.note__rows > div { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.note__rows dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.note__rows dd { margin: 0; font-size: 18px; line-height: 1.4; }
.note--rich .note__close { font-size: 16px; line-height: 1.5; margin: 0; }
@media (max-width: 600px) {
  .note--rich { padding: 22px 22px; }
  .note__rows > div { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
  .note__rows dd { font-size: 17px; }
}
.note--rich .note__sub, .note--rich .note__close { text-wrap: pretty; }
.pairs__foot { margin: 22px 0 0; max-width: 720px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.pairs__foot a { color: var(--ink); white-space: nowrap; }

/* Post: what this offers, for people and planet */
.solution { margin: 0 0 2em; padding: 26px 26px 22px; border: 1px solid var(--ink); border-radius: 6px; background: var(--bg); }
.solution .eyebrow { display: block; margin-bottom: 12px; }
.solution__inc { white-space: nowrap; }
.solution .review { margin: 0 0 12px; }
.solution dl { margin: 0; border-top: 1px solid var(--line); }
.solution dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.solution dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.solution dd { margin: 0; font-size: 17px; line-height: 1.5; }
.solution__more { display: inline-block; margin-top: 12px; font-size: 15px; }
@media (max-width: 600px) {
  .solution dl > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Archive: quiet shelf for reflections and practices */
.more-writing { margin-top: 64px; border-top: 1px solid var(--line); }
.more-writing summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; padding: 20px 0; }
.more-writing summary::-webkit-details-marker { display: none; }
.more-writing summary::after { content: '+'; margin-left: auto; color: var(--soft); font-size: 18px; }
.more-writing[open] summary::after { content: '−'; }
.more-writing summary .eyebrow { margin: 0; }
.more-writing__n { font-size: 12px; color: var(--soft); }
.more-writing__lede { color: var(--soft); font-size: 15px; margin: 0 0 12px; max-width: 560px; }
.more-writing__list { list-style: none; margin: 0; padding: 0; }
.more-writing__list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.more-writing__list a { font-size: 17px; text-decoration: none; }
.more-writing__list a:hover { text-decoration: underline; }
.more-writing__list span { display: block; color: var(--soft); font-size: 14px; margin-top: 2px; }

/* Diagrams inside a black band: swap ink and paper */
.band--ink .dg { --ink: #ffffff; --bg: #000000; --on-ink: #000000; --muted: #d6d6d6; }
:root[data-theme="dark"] .band--ink .dg { --ink: #000000; --bg: #ffffff; --on-ink: #ffffff; --muted: #333333; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band--ink .dg { --ink: #000000; --bg: #ffffff; --on-ink: #ffffff; --muted: #333333; } }

/* Pages whose last block is not a padded section (prose pages, posts) need room before the footer. */
main:not(:has(> section:last-child)) { padding-bottom: clamp(64px, 10vw, 120px); }

/* ---------- Home: widening circles (How this works) ---------- */
.rings { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; margin-top: 8px; }
.rings__fig { margin: 0; }
.rings__fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.rings__fig circle { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.rings__fig .rings__c2 { stroke-width: 1.6; }
.rings__fig .rings__c1 { fill: var(--ink); stroke: none; }
.rings__fig text { fill: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.rings__fig .rings__on { fill: var(--bg); }
.rings__steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rings__steps li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rings__steps p { margin: 6px 0 0; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.45; color: var(--muted); }
.rings__steps strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .rings { grid-template-columns: 1fr; }
  .rings__fig { max-width: 260px; margin: 0 auto; }
}

/* ---------- Home: the four things as a sum ---------- */
.sum { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; }
.sum__op { align-self: center; font-family: var(--serif); font-weight: 300; font-size: 32px; line-height: 1; color: var(--soft); text-align: center; }
.sum__item { display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); background: var(--bg); transition: border-color .2s, transform .2s; }
.sum__item:hover { border-color: var(--ink); transform: translateY(-2px); }
.sum__sq { width: 40px; height: 40px; background: var(--c); box-shadow: var(--ring); outline: 1px solid var(--line); margin-bottom: 6px; }
.sum__item strong { font-size: 22px; font-weight: 600; }
.sum__def { font-size: 14.5px; line-height: 1.45; color: var(--muted); flex: 1; }
.sum__n { font-size: 13px; font-weight: 700; }
.sum__item--total { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sum__item--total .sum__def { color: var(--bg); opacity: .75; }
@media (max-width: 1080px) {
  .sum { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sum__op { display: none; }
  .sum__item--total { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .sum__item { padding: 16px 14px; }
  .sum__sq { width: 28px; height: 28px; }
  .sum__item strong { font-size: 19px; }
  .sum__def { font-size: 13.5px; }
}

/* ---------- Home: go-deeper links under the closing note ---------- */
.deeper { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px 22px; margin-top: 36px; }
.deeper .eyebrow { margin: 0; width: 100%; text-align: center; }
.deeper a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.deeper a:hover { border-color: var(--ink); }

/* ---------- Home: hero — one centred line, the article squares around it ---------- */
.scrolly .hero { inset: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter) 4vh; }
.scrolly .hero__title { font-size: clamp(40px, 6.2vw, 84px); line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; }
.scrolly .hero__sub { align-self: center; justify-self: center; margin: 18px 0 0; max-width: none; text-align: center; font-size: clamp(15px, 1.5vw, 18px); color: var(--muted); }
.scrolly .hero__link { pointer-events: auto; }
.scrolly .hero__title em { color: var(--ink); }
.br-sm { display: none; }
@media (max-width: 760px) { .br-sm { display: inline; } }
@media (max-width: 760px) {
  .scrolly .hero { top: 0; padding-bottom: 6vh; }
  .scrolly .hero__title { font-size: clamp(38px, 11vw, 52px); }
  .scrolly .hero__sub { margin-top: 14px; font-size: 15px; max-width: 280px; }
}

/* ---------- Home: a practice to try ---------- */
.practice { background: var(--ink); color: var(--bg); border-radius: 6px; padding: clamp(26px, 5vw, 56px) clamp(22px, 6vw, 72px); }
.practice .eyebrow { color: inherit; opacity: .7; margin: 0; }
.practice__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.practice__next { background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; opacity: .8; white-space: nowrap; }
.practice__next:hover { opacity: 1; }
.practice__text { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; margin: 22px 0 26px; max-width: 34ch; text-wrap: pretty; }
.practice__from { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 15px; }
.practice__from:hover span { text-decoration: underline; text-underline-offset: 3px; }
.practice__from .sq { width: 10px; height: 10px; flex: none; outline: 1px solid currentColor; }
@media (max-width: 760px) { .practice__text { font-size: 19px; line-height: 1.4; } .practice .eyebrow { font-size: 10px; } }
@media (max-width: 760px) { .br-lg { display: none; } }

/* ---------- Who we learn from ---------- */
.peers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 860px) { .peers { grid-template-columns: 1fr; } }
.peer { border: 1px solid var(--line); border-radius: 6px; padding: 24px 24px 8px; background: var(--card, var(--bg)); }
.peer h2 { font-size: 24px; margin: 0 0 4px; }
.peer__link { margin: 0 0 14px; font-size: 14px; }
.peer__link a { color: var(--muted); }
.peer dl { margin: 0; border-top: 1px solid var(--line); }
.peer dl > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.peer dl > div:last-child { border-bottom: 0; }
.peer dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.peer dd { margin: 0; font-size: 16px; line-height: 1.5; }
/* Positioning line on the homepage */
.stance { text-align: center; max-width: 560px; margin: 40px auto 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.stance a { color: var(--ink); font-weight: 600; }

/* ---------- Home: hero with the two-circle diagram ---------- */
.hero2 { min-height: calc(100svh - 64px); display: flex; align-items: center; padding: clamp(40px, 7vh, 80px) 0; }
.hero2__inner { width: 100%; text-align: center; }
.hero2__kicker { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero2__kicker a { color: inherit; text-decoration: none; }
.hero2__kicker a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.hero2__title { font-size: clamp(34px, 5.2vw, 68px); line-height: 1.08; letter-spacing: -.01em; margin: 0 auto; max-width: 18ch; text-wrap: balance; }
.hero2__dg { margin: clamp(24px, 5vh, 48px) auto 0; max-width: 560px; }
.hero2__dg svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero2__c { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.hero2__lens { fill: var(--ink); }
.hero2__dg text { fill: var(--ink); font-size: 19px; }
.hero2__dg .hero2__on { fill: var(--bg); font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hero2__cap { margin: clamp(20px, 4vh, 36px) auto 0; max-width: 520px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; color: var(--muted); text-wrap: balance; }
.hero2__cap strong { color: var(--ink); font-weight: 600; }
/* The two circles move together once, then the overlap appears: one question, not two */
@media (prefers-reduced-motion: no-preference) {
  .hero2__l { animation: hero2-l 1.4s cubic-bezier(.2,.7,.2,1) .3s both; }
  .hero2__r { animation: hero2-r 1.4s cubic-bezier(.2,.7,.2,1) .3s both; }
  .hero2__mid { animation: hero2-mid .8s ease 1.5s both; }
  .hero2__cap { animation: hero2-mid .8s ease 1.9s both; }
}
@keyframes hero2-l { from { transform: translateX(-70px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes hero2-r { from { transform: translateX(70px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes hero2-mid { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) {
  .hero2 { min-height: calc(100svh - 56px); }
  .hero2__kicker { font-size: 10.5px; }
  .hero2__dg text { font-size: 22px; }
  .hero2__dg .hero2__on { font-size: 15px; }
}

/* Home: what we're building, one hairline row per product */
.builds { border-top: 1px solid var(--line); }
.build { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr 2fr 20px; gap: clamp(16px, 3vw, 40px); align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s; }
.build:hover { background: var(--surface); }
.build__name strong { display: block; font-size: 20px; font-weight: 600; }
.build__name small, .build__test small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.build__test small { margin: 0 0 4px; }
.build__what, .build__test { font-size: 15px; line-height: 1.5; }
.build__what { color: var(--muted); }
.build__go { justify-self: end; transition: transform .2s; }
.build:hover .build__go { transform: translateX(3px); }
@media (max-width: 760px) {
  .build { grid-template-columns: 1fr 20px; gap: 8px 12px; padding: 18px 0; }
  .build__name { grid-column: 1; } .build__go { grid-column: 2; grid-row: 1; }
  .build__what, .build__test { grid-column: 1 / -1; }
}
.builds--compact .build { grid-template-columns: minmax(150px, 1fr) 4fr 20px; }
@media (max-width: 760px) { .builds--compact .build { grid-template-columns: 1fr 20px; } }
.big-text .checklist { margin: 0 0 20px; }
/* Quickstart: a step with several links inside */
.path__row { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.path__picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 14px; }
.path .path__picks a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 15px; line-height: 1.35; }
.path .path__picks a:hover { padding-left: 12px; background: var(--surface); }
.path__picks b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
@media (max-width: 560px) { .path__row { grid-template-columns: 44px 1fr; } .path__picks { grid-template-columns: 1fr; } }
.kinds[hidden] { display: none; }

/* Hero fit: clear the fixed bar, and size the diagram to the screen height so the caption stays on the first screen */
.hero2 { min-height: 100svh; padding: calc(64px + clamp(20px, 5vh, 56px)) 0 clamp(20px, 5vh, 56px); }
.hero2__dg { width: max(330px, min(560px, 100%, calc((100svh - 470px) * 1.82))); max-width: none; }
.hero2__cap { max-width: 620px; }
@media (max-width: 760px) {
  .hero2 { min-height: 100svh; padding-top: calc(56px + clamp(20px, 5vh, 48px)); }
  .hero2__dg { width: 100%; }
}
/* Rings: four scales, each with its goal */
.rings__fig .rings__c3 { stroke-width: 1.4; }
.rings__fig .rings__g { font-size: 9.5px; letter-spacing: .06em; text-transform: lowercase; fill: var(--muted); }
.rings__fig .rings__on.rings__g { fill: var(--bg); opacity: .75; }
@media (max-width: 760px) { .rings__fig { max-width: 320px; } }
.sum__src { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); margin-top: -4px; }

/* Join pages */
.problem-list { padding-left: 1.2em; }
.problem-list li { margin: 0 0 8px; }
.cta-row { margin: 32px 0 8px; gap: 12px; flex-wrap: wrap; }
.problem { padding: 28px 0 8px; border-top: 1px solid var(--line); margin-top: 28px; scroll-margin-top: 90px; }
.problem h2 { margin-top: 10px; }
.problem__status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 4px 10px; }
.problem dl { margin: 0; }
.problem dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.problem dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.problem dd { margin: 0; }

/* Spec page */
.spec__hi { font-size: .6em; color: var(--muted); font-weight: 400; white-space: nowrap; }
.spec__src { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Changelog page */
.log__filters { margin: 0 0 8px; }
.log__day { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; }
.log__date { font-size: 20px; margin: 0 0 12px; }
.log__list { list-style: none; padding: 0; margin: 0; font-size: 17px; line-height: 1.55; }
.log__list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 8px 0; }
.log__type { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 5px; }
@media (max-width: 560px) { .log__list li { grid-template-columns: 1fr; gap: 2px; } }

/* Press kit */
.press__copy > div { border-top: 1px solid var(--line); padding: 16px 0; }
.press__copy dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.press__copy dd { margin: 0; }
.press__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.press__logos figure { margin: 0; }
.press__tile { aspect-ratio: 16 / 9; display: grid; place-items: center; background: #fbfbf8; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.press__tile--dark { background: #000; }
.press__tile img { max-width: 70%; max-height: 60%; }
.press__tile .press__icon { max-height: 50%; }
.press__logos figcaption { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 8px; }
.press__colours { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.press__colours li { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.press__sw { display: block; height: 64px; border-radius: var(--radius); }
.press__colours code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .press__logos { grid-template-columns: 1fr; } }
.spec__x { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; color: var(--muted); vertical-align: 2px; }
.spec__credit { margin: 0 0 2em; }
.spec__weigh { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.spec__weigh .note { margin: 0; }
.spec__weigh h3 { margin: 8px 0; }
.spec__weigh p { font-size: 16px; line-height: 1.55; margin: 0; }
.spec__conduct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 24px; }
.spec__conduct > div { border-top: 2px solid var(--ink); padding-top: 12px; }
.spec__conduct h3 { margin: 4px 0 6px; }
.spec__conduct p { font-size: 16px; line-height: 1.5; margin: 0; }
.spec__refs { font-size: 16px; line-height: 1.55; }
@media (max-width: 640px) { .spec__weigh, .spec__conduct { grid-template-columns: 1fr; } }

/* Diagrams drawn by assets/js/diagrams.js (seesaw, crossword, dial) */
.kd { margin: 32px 0 36px; }
.kd svg { display: block; width: 100%; height: auto; overflow: visible; margin: 0 auto; }
.kd text { fill: var(--ink); font-family: var(--sans); font-size: 20px; }
.kd .kd__m { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.kd .kd__on { fill: var(--on-ink); }
.kd .kd__mu { fill: var(--muted); }
.kd__ln { stroke: var(--ink); stroke-width: 1; fill: none; }
.kd__ln--b { stroke-width: 3; }
.kd__c { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.kd figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.kd__btn { margin: 0 4px 0 0; cursor: pointer; font: inherit; font-size: 13px; }
.kd__btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
figcaption .kd__btn { margin-left: 6px; vertical-align: baseline; }

/* seesaw */
.kd__tri { fill: none; stroke: var(--ink); stroke-width: 1.5; transition: opacity .4s; }
.kd__col { fill: var(--ink); transform-origin: 240px 262px; transform: scaleY(0); transition: transform 1.2s cubic-bezier(.3,.7,.2,1); }
.kd__beam { transform-origin: 240px 196px; transition: transform 1.2s cubic-bezier(.3,.7,.2,1); }
.kd__coltext, .kd__say { transition: opacity .4s; }
.kd__coltext { opacity: 0; }
.is-a .kd__beam { animation: kd-rock 2.4s ease-in-out infinite; }
.is-a.is-paused .kd__beam { animation-play-state: paused; }
.is-a .kd__sb, .is-b .kd__sa { opacity: 0; }
.is-b .kd__tri { opacity: 0; }
.is-b .kd__col { transform: scaleY(1); }
.is-b .kd__beam { transform: translateY(-70px); }
.is-b .kd__coltext { opacity: 1; transition-delay: .8s; }
@keyframes kd-rock { 0%,100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }

/* crossword */
.kd__cw svg { max-width: 640px; }
.kd__cell rect { fill: var(--bg); stroke: var(--ink); stroke-width: 1; }
.kd .kd__cell text { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.kd__v rect { fill: var(--ink); }
.kd .kd__v text { fill: var(--on-ink); }
.kd__cell { opacity: 0; }
.kd__cw.is-on .kd__cell { animation: kd-pop .35s ease-out both; }
@keyframes kd-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* dial */
.kd__curve { fill: none; stroke: var(--ink); stroke-width: 2.5; transition: d .9s cubic-bezier(.3,.7,.2,1); }
.kd__p { stroke-dasharray: 7 6; }
.kd__mk { stroke-dasharray: 2 4; }
.kd__dh { fill: var(--ink); }
.kd__dp { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.kd__dot { transition: cy .9s cubic-bezier(.3,.7,.2,1); }
.kd__lh, .kd__lp { transition: y .9s cubic-bezier(.3,.7,.2,1); }
.kd__range { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; }
.kd__range .kd__m { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.kd__range input { flex: 1; accent-color: var(--ink); }
.kd__row { display: flex; flex-wrap: wrap; gap: 8px; }
.kd__read { margin: 12px 0 0; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .kd__cell { opacity: 1; }
  .kd__cw.is-on .kd__cell, .is-a .kd__beam { animation: none; }
  .kd__col, .kd__beam, .kd__curve, .kd__dot, .kd__lh, .kd__lp { transition: none; }
}

/* Practices page */
.prac__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.prac__n { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 4px; }
.prac__layer { margin-top: 48px; scroll-margin-top: 90px; }
.prac__blurb { color: var(--muted); }
.prac__item { border-top: 1px solid var(--line); padding: 20px 0 8px; }
.prac__item h3 { margin: 0 0 10px; font-size: 22px; font-weight: 500; line-height: 1.3; }
.prac__layer h2 .sq, .prac__layer h2 > span:first-child { margin-right: 10px; }
.prac__body p { font-size: 17px; line-height: 1.6; }
.prac__item h3 a { color: inherit; text-decoration: none; }
.prac__item h3 a:hover { text-decoration: underline; }
.prac__body p { margin: 0 0 10px; }
.prac__from { font-size: 14px; margin: 0 0 12px; }

/* Worked-example tables inside essays */
.prose table.calc { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; line-height: 1.45; }
.prose table.calc caption { text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.prose table.calc th { text-align: left; font-weight: 600; border-bottom: 1px solid var(--ink); padding: 8px 10px 8px 0; }
.prose table.calc td { border-bottom: 1px solid var(--line); padding: 10px 10px 10px 0; vertical-align: top; }
.prose table.calc td:nth-child(2) { color: var(--muted); }
.prose table.calc .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-right: 0; }
.prose table.calc tr.sub td { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--ink); }
@media (max-width: 520px) { .prose table.calc { font-size: 14px; } .prose table.calc td:nth-child(2) { font-size: 13px; } }

/* Signed essays: byline and language switch */
.post-head .byline { margin-top: 16px; font-size: 15px; color: var(--muted); }
.post-head .byline a { color: var(--ink); }
.lang-switch { text-decoration: none; }
:lang(hi) { line-height: 1.75; }

/* ============================================================
   Essay reading layout (2026-11-16), modelled on how Medium sets long text:
   a regular-weight reading serif in soft black, roomy paragraphs, small firm
   headings, one left-aligned column, and quiet quotes, captions and breaks.
   Scoped to #article so other pages keep their design.
   ============================================================ */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/source-serif-4-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/source-serif-4-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('../fonts/source-serif-4-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-weight: 400 700; font-display: swap; src: url('../fonts/source-serif-4-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Serif Devanagari'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/noto-serif-devanagari.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
:root {
  --read: 'Source Serif 4', Georgia, Cambria, 'Times New Roman', serif;
  --read-hi: 'Noto Serif Devanagari', 'Source Serif 4', serif;
  --read-ink: var(--muted); /* #333 on light, #d6d6d6 on dark: softer than pure black or white */
  --col: 700px;             /* text column including its side padding: about 66 characters a line */
}

/* Header: everything on the same left edge as the text */
#article .post-head { text-align: left; max-width: var(--col); margin: 0 auto; padding: clamp(96px, 14vh, 128px) var(--gutter) 0; }
#article .post-head .meta { justify-content: flex-start; }
#article .post-head h1 { font-size: clamp(32px, 4.2vw, 44px); line-height: 1.18; font-weight: 600; letter-spacing: -.015em; max-width: none; margin: 18px 0 12px; text-wrap: balance; }
#article .post-head .lede { margin: 0; max-width: none; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--soft); }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; line-height: 1.45; }
.post-byline__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; letter-spacing: .02em; overflow: hidden; }
.post-byline__avatar img { width: 40px; height: 40px; padding: 7px; background: var(--card); border: 1px solid var(--line); border-radius: 50%; }
.post-byline__name { display: block; font-weight: 600; color: var(--ink); }
.post-byline__name a { color: inherit; text-decoration: none; }
.post-byline__name a:hover { text-decoration: underline; }
.post-byline__meta { display: block; color: var(--soft); }
.post-byline__meta a { color: inherit; }
.post-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-actions .pill { font-size: 13px; }
.listen { display: inline-flex; align-items: center; gap: 6px; }
.listen svg { width: 12px; height: 12px; }
.listen-stop[hidden] { display: none; }
.listen-msg { font-size: 13px; color: var(--soft); }

/* Cover art as a short strip under the header, not a full picture */
#article .post-cover { max-width: var(--col); margin: 28px auto 0; padding: 0 var(--gutter); }
#article .post-cover .cover, #article .post-cover img { display: block; width: 100%; height: 132px; aspect-ratio: auto; object-fit: cover; border-radius: 4px; }

/* The text */
#article .prose { max-width: var(--col); margin-top: 40px; font-family: var(--read); font-weight: 400; font-size: 20px; line-height: 1.6; letter-spacing: -.003em; color: var(--read-ink); text-rendering: optimizeLegibility; font-optical-sizing: auto; }
#article .prose p { margin: 0 0 1.6em; text-wrap: pretty; }
#article .prose strong { font-weight: 700; color: var(--ink); }
#article .prose a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#article .prose > p:first-of-type::first-letter { font-family: var(--read); font-weight: 400; font-size: 3.2em; line-height: .8; padding: 7px 8px 0 0; color: var(--ink); }
#article .prose h2 { font-family: var(--sans); font-weight: 600; font-size: 24px; line-height: 1.25; letter-spacing: -.016em; margin: 2em 0 .5em; color: var(--ink); text-wrap: balance; }
#article .prose h3 { font-family: var(--sans); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 1.6em 0 .4em; color: var(--ink); }
#article .prose ul, #article .prose ol { padding-left: 30px; margin: 0 0 1.6em; }
#article .prose li { margin-bottom: .9em; padding-left: 4px; }
#article .prose blockquote.note { max-width: none; margin: 1.8em 0; padding: 0 0 0 24px; border: 0; border-radius: 0; background: none; box-shadow: inset 3px 0 0 var(--ink); font-family: var(--read); font-style: italic; font-size: 20px; line-height: 1.6; color: var(--read-ink); }
#article .prose blockquote.note p { text-wrap: pretty; margin: 0 0 .8em; }
#article .prose blockquote.note p:last-child { margin: 0; }
#article .prose .doubt { font-family: var(--read); font-style: italic; color: var(--soft); }
#article .prose .wrong li { margin-bottom: .9em; }
/* Boxes and small print stay in the site's sans */
#article .prose .in-short, #article .prose .solution, #article .prose .open-note, #article .prose table.calc { font-family: var(--sans); color: var(--ink); letter-spacing: 0; }
#article .prose .in-short p { font-size: 19px; line-height: 1.55; margin: 0; }
#article .prose .solution { margin: 0 0 2.4em; }
#article .prose .open-note p { margin: 0 0 10px; }
/* Section break: three dots between the essay and its notes */
#article .prose hr.dots { border: 0; height: auto; margin: 2.6em 0 2.4em; text-align: center; overflow: visible; }
#article .prose hr.dots::before { content: '· · ·'; font-family: var(--read); font-size: 28px; letter-spacing: .6em; color: var(--ink); }
/* The paragraph being read aloud */
#article .prose .is-reading { background: var(--surface); box-shadow: 0 0 0 6px var(--surface); border-radius: 2px; }

/* Copy a quote: a small button over the selected text */
.quote-pop { position: absolute; z-index: 70; transform: translate(-50%, -100%); margin-top: -10px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 600 13px/1 var(--sans); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); white-space: nowrap; }
.quote-pop[hidden] { display: none; }
.quote-pop--below { transform: translate(-50%, 0); margin-top: 14px; }

/* Signed essays: author card at the end */
.author-card { max-width: var(--col); margin: 56px auto 0; padding: 0 var(--gutter); }
.author-card__in { display: flex; gap: 16px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-card .post-byline__avatar { width: 56px; height: 56px; font-size: 18px; }
.author-card__eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.author-card h2 { font-size: 22px; font-weight: 600; margin: 4px 0 6px; }
.author-card h2 a { text-decoration: none; }
.author-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--soft); }

/* The menu bar steps aside while reading down, and returns when scrolling up */
body[data-post] .bar { transition: transform .25s ease; }
body[data-post].bar-away .bar { transform: translateY(-100%); }
body[data-post] .chapters { transition: top .25s ease; }
body[data-post].bar-away .chapters { top: 0; }

/* Hindi pages */
html[lang="hi"] #article .prose { font-family: var(--read-hi); font-size: 19px; line-height: 1.8; letter-spacing: 0; }
html[lang="hi"] #article :is(.post-head h1, .post-head .lede, .prose h2, .prose h3, .prose .in-short p, .prose .solution dd, .prose .open-note p, .prose .doubt, .prose blockquote.note, .author-card h2, .write-back h3) { font-family: var(--read-hi); font-style: normal; letter-spacing: 0; }
html[lang="hi"] #article .post-head h1 { line-height: 1.4; }
html[lang="hi"] #article .prose > p:first-of-type::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; }

@media (max-width: 640px) {
  #article .post-head, #article .post-cover, #article .prose, .author-card, #article ~ .section .wrap, .post-foot, .post-reply, .pager { padding-left: 24px; padding-right: 24px; }
  #article .post-head { padding-top: 88px; }
  #article .post-head h1 { font-size: 32px; }
  #article .post-cover .cover, #article .post-cover img { height: 96px; }
  #article .prose { font-size: 18px; line-height: 1.56; margin-top: 32px; }
  #article .prose h2 { font-size: 20px; line-height: 1.25; }
  #article .prose h3 { font-size: 17px; }
  #article .prose blockquote.note { font-size: 18px; padding-left: 20px; }
  #article .prose .in-short p { font-size: 17px; }
  html[lang="hi"] #article .prose { font-size: 18px; line-height: 1.8; }
}
html[lang="hi"] #article .prose :is(p, li) { line-height: 1.8; }
.post-byline__avatar:has(img) { background: var(--card); border: 1px solid var(--line); }
.post-byline__avatar img { padding: 7px; background: none; border: 0; }
:root[data-theme="dark"] .post-byline__avatar img { filter: invert(1); }
#article .prose > p.no-drop:first-of-type::first-letter { float: none; font: inherit; color: inherit; padding: 0; }

/* List pages (Essays, author page): title, intro and one toolbar on the same left edge */
.page-head--stack { padding: clamp(112px, 16vh, 150px) 0 32px; }
.page-head--stack .page-head__grid { display: block; }
.page-head--stack h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.page-head--stack .hero__sub { justify-self: start; text-align: left; max-width: 60ch; margin: 18px 0 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.55; color: var(--muted); }
.page-head--stack ~ .archive .toolbar { margin-bottom: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: nowrap; }
.page-head--stack ~ .archive .toolbar__left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.page-head--stack ~ .archive .lang-toggle { padding-right: 12px; border-right: 1px solid var(--line); }
.page-head--stack ~ .archive .lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.page-head--stack ~ .archive .toolbar__right { flex-wrap: nowrap; }
.page-head--stack ~ .archive .toolbar input[type="search"] { width: 220px; height: 34px; }
.page-head--stack ~ .archive .result-count { margin: 14px 0 28px; }
.page-head--stack ~ .archive .kinds:not([hidden]) { margin-bottom: 12px; }
@media (max-width: 900px) {
  .page-head--stack ~ .archive .toolbar { flex-wrap: wrap; }
  .page-head--stack ~ .archive .toolbar__right { width: 100%; }
  .page-head--stack ~ .archive .toolbar input[type="search"] { flex: 1; width: auto; max-width: none; }
}

/* Diagrams are also saved as images (tools/build-diagrams.py) so search engines can find them.
   Light mode shows the image, pulled out by its own margin so the drawing lines up with the text;
   dark mode keeps the drawn version, which follows the theme. */
.dg-img { display: block; width: calc(100% * 600 / 536); max-width: none; height: auto; margin: calc(-100% * 32 / 536) 0 0 calc(-100% * 32 / 536); }
figure.dg:has(> .dg-img) > svg { display: none; }
:root[data-theme="dark"] .dg-img { display: none; }
:root[data-theme="dark"] figure.dg:has(> .dg-img) > svg { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .dg-img { display: none; }
  :root:not([data-theme]) figure.dg:has(> .dg-img) > svg { display: block; }
}

/* "K4M2A in pictures": explainer graphics on About and Quickstart */
.explain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.explain-grid--one { grid-template-columns: 1fr; gap: 28px; }
.explain { margin: 0; }
.explain a { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.explain img { display: block; width: 100%; height: auto; }
.explain figcaption { margin-top: 10px; font-size: 14px; color: var(--soft); }
@media (max-width: 760px) { .explain-grid { grid-template-columns: 1fr; } }

/* "I tried this" reply on practices (essays and the Practices page) */
.tried { margin: 22px 0 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius, 6px); background: var(--surface); font-family: var(--sans); }
.tried fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tried__ask { font-size: 14px; font-weight: 700; padding: 0; margin: 0 0 10px; }
.tried__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.tried__opt { position: relative; height: 34px; }
.tried__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tried__opt:has(input:checked) { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tried__opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.tried__more { display: grid; gap: 10px; margin-top: 12px; }
.tried__more:not([hidden]) { display: grid; }
.tried textarea { min-height: 84px; font-size: 16px; }
.tried__ok { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.tried__ok input { margin-top: 3px; }
.tried .btn { justify-self: start; }
.tried .form-msg { margin: 8px 0 0; font-size: 13px; }
.tried .form-msg:empty { display: none; }
.prac__item .tried { margin-top: 14px; }
#article .prose .tried p { font-size: 13px; }

/* Field reports */
.report { border-top: 1px solid var(--line); padding: 16px 0; }
.report__meta { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.report__none { padding: 18px 20px; border: 1px dashed var(--line); border-radius: 6px; }

/* Printable worksheets */
.ws-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.ws-how { font-size: 15px; color: var(--muted); }
.ws { border: 1px solid var(--line); border-radius: 6px; padding: 22px 22px 18px; margin: 28px 0; background: var(--card, var(--bg)); }
.ws__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ws h2 { margin-top: 8px !important; }
.ws__from { font-size: 14px; color: var(--muted); }
.ws__table { width: 100%; border-collapse: collapse; margin: 16px 0; font-family: var(--sans); font-size: 13px; line-height: 1.35; table-layout: fixed; }
.ws__table caption { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.ws__table th, .ws__table td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; font-weight: 500; }
.ws__table thead th { font-weight: 700; }
.ws__table td { height: 30px; }
.ws__table tr.sub th, .ws__table tr.sub td { font-weight: 700; background: var(--surface); }
.ws__table--grid th[scope="row"] { width: 40%; }
.ws__table--tall td { height: 62px; }
.ws__table--tall th[scope="row"] { width: 42%; }
.ws__check { font-family: var(--sans); font-size: 14px; }
.ws-foot { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .bar, .footer, .page-head, .ws-toc, .ws-how, .open-note, .ws__print, .skip, .menu { display: none !important; }
  body[data-printing="enough"] #enough, body[data-printing="decision"] #decision, body[data-printing="survey"] #survey { display: block !important; }
  body[data-printing] .ws { display: none; }
  .ws { border: 0; padding: 0; margin: 0; break-after: page; }
  .ws__table th, .ws__table td { border-color: #555; }
  .ws__from a { color: #000; text-decoration: none; }
  .prose { max-width: none !important; margin: 0 !important; padding: 0 !important; }
}

/* A practice as a share image */
.prac-card { margin: 10px 0 0; font-family: var(--sans); font-size: 14px; }
.prac-card summary { cursor: pointer; font-weight: 600; width: fit-content; }
.prac-card img { display: block; width: 100%; max-width: 360px; height: auto; margin: 12px 0 8px; border: 1px solid var(--line); border-radius: 4px; }
.prac-card p { font-size: 13px !important; color: var(--muted); margin: 0; }
.ws-link { font-family: var(--sans); font-size: 14px; }
.ws__check { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 8px; }
.ws__blank { flex: 1 1 140px; min-width: 100px; border-bottom: 1px solid var(--ink); height: 1.2em; }

/* ---------- Hindi site and language switch ---------- */
.bar__lang { font-size: 15px; }
.bar__lang[lang="hi"] { font-size: 16px; }
@media (max-width: 520px) { .bar__right .bar__lang { padding-left: 12px; padding-right: 12px; } }
.footer-lang { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.footer-lang__cur { font-weight: 600; }
.footer-lang__to { color: var(--soft); }
/* First visit to the English site: one quiet question, remembered after */
.lang-ask {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
}
.lang-ask p { margin: 0; font-size: 17px; }
.lang-ask .btn { padding: 8px 14px; font-size: 14px; }
/* On the Hindi site, a link to a page that is still in English says so */
main a.to-en::after, .prose a.to-en::after { content: " EN"; font-family: var(--mono); font-size: .62em; letter-spacing: .04em; vertical-align: .25em; opacity: .65; }
.path a.to-en::after, .deeper a.to-en::after, .field-row a.to-en::after { content: none; }
/* Hindi pages: the interface type falls back to a Devanagari face where Outfit has none */
html[lang="hi"] body { font-family: 'Outfit', 'Noto Sans Devanagari', 'Kohinoor Devanagari', 'Devanagari Sangam MN', 'Mukta', system-ui, sans-serif; }
html[lang="hi"] :is(h1, h2, .h2, h3) { letter-spacing: 0; line-height: 1.3; }
html[lang="hi"] .page-head h1 { line-height: 1.2; }
/* Devanagari joins its letters, so the spaced-out small caps used for labels don't apply */
html[lang="hi"] :is(.eyebrow, .hero2__kicker, .chip, .pill, h4, .path__head span, .path__time, .sum__src, .sum__n, .theme__num, .card__foot, .stats span, .footer__base, .prac__n, .mobile-menu h4, .tried__ask, .result-count, .term-pop__src, .footer-lang) { letter-spacing: 0; text-transform: none; font-family: inherit; }
/* Hindi pages: the mono labels fall back to Devanagari, whose letters join, so drop the mono face and its spacing */
html[lang="hi"] :is(.eu-status, .eu-hi, .eu-now dt, .eu-art__label, .evidence__tag, .sources__head, .note__rows dt, .solution dt, .peer dt, .problem__status, .problem dt, .spec__src, .spec__x, .log__type, .press__copy dt, .author-card__eyebrow, .ws__table caption, .ws-foot, .prose table.calc caption, .legend .count, .path__picks b, .build__name small, .build__test small, .kd__m, .dg svg text, .rings__fig text, .kd__cell text) { letter-spacing: 0; font-family: inherit; text-transform: none; }
