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

: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: 560vh; }
.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); }
.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; }

/* 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-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); }
