/* recess.zennia.sg. Every colour, space and radius comes from tokens.css.
   The whole site is one family, so the root carries data-family="recess". */

[data-family="recess"] { --accent: var(--recess); --accent-ink: var(--recess-ink); --accent-soft: var(--recess-soft); --accent-on: var(--recess-on); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px; line-height: 24px;
  background: var(--surface); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-xs); }
[hidden] { display: none !important; }

.wrap { --gutter: var(--space-7); width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-muted); }
.sep { color: inherit; opacity: .6; margin: 0 0.15em; }
.dot-sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 0.5em; opacity: .7; }

.skip { position: absolute; left: var(--space-4); top: -48px; z-index: 20; background: var(--ink); color: var(--surface); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--space-4); }

/* Type, from tokens.json */
.display-xl { font-family: var(--font-display); font-size: clamp(48px, 7vw, 84px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.display-l  { font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px); line-height: 1.07; font-weight: 700; letter-spacing: -0.025em; }
.heading-2  { font-family: var(--font-display); font-size: clamp(26px, 3vw, 32px); line-height: 1.19; font-weight: 650; letter-spacing: -0.015em; }
.heading-3  { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.body-l     { font-size: 18px; line-height: 28px; }
.overline   { font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--space-4); }
.kicker     { font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.meta       { font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* Buttons, as the design system's Button */
.btn {
  font: inherit; font-size: 14px; line-height: 20px; font-weight: 600;
  min-height: 44px; padding: 0 var(--space-5);
  display: inline-flex; align-items: center; gap: var(--space-2);
  border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .12s ease-out, box-shadow .12s ease-out;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { box-shadow: inset 0 0 0 999px rgba(22, 20, 26, 0.10); }
.btn-secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-sunken); }
.btn-ghost { background: transparent; color: var(--accent-ink); padding: 0 var(--space-3); }
.btn-ghost:hover { background: var(--accent-soft); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid transparent; transition: border-color .18s ease-out; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; padding: var(--space-1); margin-left: calc(-1 * var(--space-1)); }
.brand img { height: 26px; width: auto; }
.logo-dark { display: none !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }
.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav a { font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--ink-muted); transition: color .12s ease-out, background-color .12s ease-out; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-sunken); }
.theme { width: 40px; height: 40px; margin-left: var(--space-2); display: inline-grid; place-items: center; background: transparent; color: var(--ink); cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.theme:hover { background: var(--surface-sunken); }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.theme .i-sun { display: none; }
[data-theme="dark"] .theme .i-sun { display: block; }
[data-theme="dark"] .theme .i-moon { display: none; }

/* Reading progress, articles only */
.progress { display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.is-article .progress { display: block; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ———————————————————— Home ———————————————————— */
.home-hero { padding: var(--space-9) 0 var(--space-8); }
.home-hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.home-hero .lede { font-size: 20px; line-height: 30px; color: var(--ink-muted); max-width: 32em; margin-top: var(--space-5); }
.home-hero h1 { max-width: 8.5em; }
/* The niche, large: the alcove you step into. The sill sits in shadow. */
.alcove { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; }
.alcove-shape { position: absolute; inset: 0; background: var(--accent); -webkit-mask: url("/assets/recess-icon.svg") center / contain no-repeat; mask: url("/assets/recess-icon.svg") center / contain no-repeat; }
.alcove-book { position: absolute; left: 38%; bottom: 31%; width: 24%; height: 9%; display: flex; gap: 6%; align-items: flex-end; }
.alcove-book i { flex: 1; background: var(--ink); border-radius: 2px 2px 0 0; opacity: .9; animation: book-in .5s cubic-bezier(.2,.7,.3,1) both; }
.alcove-book i:nth-child(1) { height: 100%; animation-delay: .25s; }
.alcove-book i:nth-child(2) { height: 80%; animation-delay: .32s; opacity: .7; }
.alcove-book i:nth-child(3) { height: 120%; animation-delay: .39s; transform-origin: bottom left; rotate: 14deg; opacity: .55; }
@keyframes book-in { from { opacity: 0; translate: 0 -40%; } }

.section { padding: var(--space-9) 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: var(--space-7); }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: end; }
.section-head.split > p { max-width: 32em; padding-bottom: 6px; }

.lead {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--accent); color: var(--accent-on); text-decoration: none;
  border-radius: var(--radius-md); padding: var(--space-7); min-height: 380px;
  transition: transform .2s ease-out;
}
.lead:hover { transform: translateY(-2px); }
.lead .kicker, .lead .meta { color: var(--accent-on); }
.lead-title { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; margin-top: var(--space-4); max-width: 11em; }
.lead-stand { font-size: 19px; line-height: 29px; margin-top: var(--space-5); max-width: 26em; }
.lead-foot { margin-top: auto; padding-top: var(--space-6); display: flex; align-items: center; gap: var(--space-4); font-weight: 600; font-size: 15px; }
.lead-foot svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease-out; }
.lead:hover .lead-foot svg { transform: translateX(4px); }
.lead-crop { position: absolute; width: 380px; height: 380px; right: -100px; bottom: -130px; pointer-events: none; background: var(--accent-on); opacity: .9; -webkit-mask: url("/assets/recess-icon.svg") center / contain no-repeat; mask: url("/assets/recess-icon.svg") center / contain no-repeat; }
.lead > *:not(.lead-crop) { position: relative; }

.contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); }
.entry {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5); align-items: start;
  height: 100%; padding: var(--space-6); text-decoration: none;
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color .18s ease-out, box-shadow .18s ease-out;
}
.entry:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.entry-no { font-family: var(--font-display); font-size: 56px; line-height: 0.9; font-weight: 700; letter-spacing: -0.04em; color: var(--accent-ink); min-width: 1.2em; }
.entry-text { display: grid; gap: var(--space-2); }
.entry-title { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 650; letter-spacing: -0.01em; }
.entry:hover .entry-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.entry-stand { color: var(--ink-muted); }

.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.ways li { border-top: 2px solid var(--ink); padding-top: var(--space-5); }
.ways .num { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--accent-ink); }
.ways h3 { margin-top: var(--space-4); }
.ways p { margin-top: var(--space-3); color: var(--ink-muted); }

/* ———————————————————— Article ———————————————————— */
.piece-head { position: relative; overflow: hidden; background: var(--accent); color: var(--accent-on); padding: var(--space-9) 0 var(--space-8); }
.piece-head-in { position: relative; }
.piece-num { position: absolute; right: -0.06em; bottom: -0.26em; font-family: var(--font-display); font-weight: 800; font-size: clamp(220px, 36vw, 520px); line-height: 1; letter-spacing: -0.05em; color: rgba(22, 20, 26, 0.09); pointer-events: none; user-select: none; }
.piece-kicker { font-size: 13px; line-height: 16px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; }
.piece-title { font-family: var(--font-display); font-size: clamp(44px, 7vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -0.032em; margin-top: var(--space-5); max-width: 11.5em; text-wrap: balance; }
.piece-stand { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; margin-top: var(--space-5); max-width: 30em; text-wrap: pretty; }
.piece-meta { margin-top: var(--space-6); font-size: 14px; font-weight: 600; display: flex; align-items: center; }

.prose { --measure: 680px; max-width: calc(var(--measure) + 2 * var(--space-5)); margin: 0 auto; padding: var(--space-8) var(--space-5) var(--space-7); font-size: 18px; line-height: 30px; }
.prose > * + * { margin-top: var(--space-5); }
.prose > p.lede { font-size: 22px; line-height: 34px; font-weight: 500; }
.prose > p.lede + p.lede { margin-top: var(--space-4); }
.prose h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 36px); line-height: 1.14; font-weight: 650; letter-spacing: -0.018em; margin-top: var(--space-8); text-wrap: balance; }
.prose h2 .step { display: block; font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: var(--space-3); }
.prose h3 { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 650; letter-spacing: -0.01em; margin-top: var(--space-6); }
.prose h2 + *, .prose h3 + * { margin-top: var(--space-4); }
.prose a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 650; }
.prose em { font-style: italic; }
.prose ul.dots { display: grid; gap: var(--space-3); }
.prose ul.dots > li { position: relative; padding-left: 26px; }
.prose ul.dots > li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.prose ol.steps { counter-reset: s; display: grid; gap: var(--space-4); }
.prose ol.steps > li { counter-increment: s; position: relative; padding-left: 48px; }
.prose ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 32px; text-align: center; }
.prose hr { border: 0; height: 24px; margin: var(--space-8) 0; background: radial-gradient(circle, var(--accent) 3px, transparent 3.5px) center / 24px 24px repeat-x; }

/* Wide components break out of the measure. */
.wide { margin-left: calc(50% - min(48vw, 480px)); margin-right: calc(50% - min(48vw, 480px)); }

/* Pull quote: one line worth carrying out. */
.pull { margin: var(--space-7) 0; padding: var(--space-2) 0 var(--space-2) var(--space-5); border-left: 6px solid var(--accent); font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; font-weight: 650; letter-spacing: -0.015em; text-wrap: balance; }
.pull cite { display: block; margin-top: var(--space-3); font-family: var(--font-sans); font-style: normal; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); }

/* Boxes: every interactive or set-apart component sits in one. */
.box { margin: var(--space-7) 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-6); font-size: 17px; line-height: 27px; }
.box > * + * { margin-top: var(--space-4); }
.box-label { display: flex; align-items: center; gap: var(--space-2); font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.box-label::before { content: ""; width: 14px; height: 14px; background: var(--accent); -webkit-mask: url("/assets/recess-icon.svg") center / contain no-repeat; mask: url("/assets/recess-icon.svg") center / contain no-repeat; }
.box-q { font-family: var(--font-display); font-size: 22px; line-height: 29px; font-weight: 650; letter-spacing: -0.01em; }
.box .small { font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.box-soft { background: var(--accent-soft); border-color: transparent; }
.box-sunk { background: var(--surface-sunken); border-color: transparent; }

/* Options, for predictions and sorting */
.opts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.opt {
  min-height: 44px; padding: 10px var(--space-4); cursor: pointer; text-align: left;
  font-size: 15px; line-height: 20px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: background-color .12s ease-out, border-color .12s ease-out, box-shadow .12s ease-out;
}
.opt:hover { background: var(--surface-sunken); }
.opt.is-picked { box-shadow: inset 0 0 0 2px var(--ink); }
.opt.is-right { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.answer { border-top: 1px solid var(--line); padding-top: var(--space-4); animation: rise .28s cubic-bezier(.2,.7,.3,1) both; }
.answer > * + * { margin-top: var(--space-3); }
.verdict { font-weight: 650; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* Pairs: two things set side by side. */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-7) 0; }
.pair > div { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); font-size: 16px; line-height: 25px; }
.pair > div > * + * { margin-top: var(--space-3); }
.pair .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.pair .tag b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-sunken); color: var(--ink); letter-spacing: 0; }
.pair h4 { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 650; }
.pair ul { display: grid; gap: 6px; color: var(--ink-muted); }
.pair li { position: relative; padding-left: 16px; }
.pair li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pair .is-good { border-color: var(--accent); box-shadow: inset 0 4px 0 var(--accent); }
.pair .is-good .tag b { background: var(--accent); color: var(--accent-on); }
.pair .is-weak .tag b { background: var(--ink); color: var(--surface); }

/* Big numbers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); margin: var(--space-6) 0; }
.stat { border-top: 2px solid var(--ink); padding-top: var(--space-3); }
.stat-n { font-family: var(--font-display); font-size: clamp(40px, 5vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--accent-ink); }
.stat-l { margin-top: var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* Five Whys: a chain that reveals one link at a time. */
.chain { display: grid; gap: 0; }
.chain li { position: relative; padding: var(--space-3) 0 var(--space-3) 44px; animation: rise .28s cubic-bezier(.2,.7,.3,1) both; }
.chain li::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.chain li:first-child::before { top: 24px; }
.chain li:last-child::before { bottom: calc(100% - 24px); }
.chain li::after { content: ""; position: absolute; left: 6px; top: 17px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-raised); border: 2px solid var(--line-strong); }
.chain .why { display: block; font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.chain li.is-lever { background: var(--accent-soft); border-radius: var(--radius-sm); padding-right: var(--space-4); }
.chain li.is-lever::after { background: var(--accent); border-color: var(--accent-ink); }
.chain .lever { display: inline-block; margin-top: var(--space-2); font-size: 13px; line-height: 18px; font-weight: 650; color: var(--accent-ink); }

/* Sorter: tap a side for each item. */
.sort { display: grid; gap: var(--space-3); }
.sort li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3) var(--space-4); align-items: center; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.sort li .opts { flex-wrap: nowrap; }
.sort li .opt { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.sort .why { grid-column: 1 / -1; font-size: 15px; line-height: 22px; color: var(--ink-muted); animation: rise .28s cubic-bezier(.2,.7,.3,1) both; }
.sort .why b { color: var(--ink); }
.score { font-weight: 650; }

/* Flip chart: same bars, two moments. */
.flip-tabs { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-sunken); border-radius: var(--radius-sm); }
.flip-tabs button { min-height: 36px; padding: 0 var(--space-4); border: 0; border-radius: 6px; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-muted); }
.flip-tabs button[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-sm); }
.bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); height: 240px; align-items: end; padding: 0 var(--space-4); border-bottom: 2px solid var(--ink); }
.bar { position: relative; height: calc(var(--v) * 1%); background: var(--surface-sunken); border-radius: var(--radius-sm) var(--radius-sm) 0 0; transition: height .55s cubic-bezier(.2,.7,.3,1), background-color .3s; }
.bar.is-top { background: var(--accent); }
.bar b { position: absolute; top: -32px; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.bar-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); padding: var(--space-2) var(--space-4) 0; font-size: 14px; font-weight: 600; text-align: center; }

/* Tabs for before and after */
.tabbed [role="tabpanel"] > * + * { margin-top: var(--space-3); }

/* Field cards: Situation, Goal, Obstacle, So what. */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-6) 0; }
.field { padding: var(--space-5); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); font-size: 16px; line-height: 25px; }
.field > * + * { margin-top: var(--space-2); }
.field-k { display: flex; align-items: baseline; gap: var(--space-2); font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 700; }
.field-k i { font-style: normal; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: var(--accent-on); font-size: 15px; }
.field-q { font-weight: 600; }
.field p:not(.field-q):not(.field-k) { color: var(--ink-muted); }
.slots { display: grid; gap: var(--space-3); }
.slot { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.slot b { font-family: var(--font-display); font-weight: 650; color: var(--accent-ink); }

/* Checklist */
.checks { display: grid; gap: var(--space-2); counter-reset: c; }
.checks label { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); align-items: start; padding: var(--space-3); border-radius: var(--radius-sm); cursor: pointer; transition: background-color .12s; }
.checks label:hover { background: var(--surface-sunken); }
.checks input { appearance: none; margin: 2px 0 0; width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: 6px; display: grid; place-items: center; cursor: pointer; background: var(--surface); }
.checks input::after { content: ""; width: 12px; height: 7px; border: solid var(--accent-on); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.checks input:checked { background: var(--accent); border-color: var(--accent); }
.checks input:checked::after { opacity: 1; }
.checks input:focus-visible { box-shadow: var(--focus-ring); }
.checks b { font-weight: 650; }

/* Recall: fill in the blanks. */
.recall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.recall label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.recall input { font: inherit; font-size: 16px; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); width: 100%; }
.recall input.is-right { border-color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); background: var(--accent-soft); }
.recall input.is-off { border-style: dashed; }

/* Likely: where do you put the word? */
.scale { position: relative; height: 56px; margin: var(--space-6) 0 var(--space-2); }
.scale-track { position: absolute; left: 0; right: 0; top: 24px; height: 8px; border-radius: 4px; background: var(--surface-sunken); }
.scale-band { position: absolute; top: 18px; height: 20px; border-radius: 4px; background: var(--accent); opacity: .9; left: 66%; right: 0; }
.scale-spread { position: absolute; top: 22px; height: 12px; border-radius: 6px; left: 30%; right: 12%; background: repeating-linear-gradient(90deg, var(--line-strong) 0 2px, transparent 2px 6px); }
.scale-you { position: absolute; top: 0; width: 2px; height: 56px; background: var(--ink); transform: translateX(-1px); }
.scale-you span { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 650; }
.scale-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-muted); }
.range { width: 100%; accent-color: var(--recess-ink); }

/* Strata: four levels of knowledge, deeper and harder to reach. */
.strata { display: grid; gap: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.stratum { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-4); padding: var(--space-5); position: relative; }
.stratum:nth-child(1) { background: var(--surface-raised); }
.stratum:nth-child(2) { background: var(--accent-soft); }
.stratum:nth-child(3) { background: color-mix(in srgb, var(--accent) 45%, var(--accent-soft)); }
.stratum:nth-child(4) { background: var(--accent); color: var(--accent-on); }
.stratum h4 { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 700; display: flex; align-items: baseline; gap: var(--space-2); }
.stratum h4 small { font-family: var(--font-sans); font-size: 13px; font-weight: 600; opacity: .75; }
.stratum p { font-size: 15px; line-height: 23px; margin-top: 4px; }
.stratum .reach { font-size: 14px; line-height: 21px; align-self: center; }
.stratum .reach b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.surface-line { position: relative; text-align: right; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 0 var(--space-3) var(--space-2); }

/* Figures */
.fig { margin: var(--space-7) 0; }
.fig svg { width: 100%; height: auto; overflow: visible; }
.fig figcaption { margin-top: var(--space-3); font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.fig .ax { stroke: var(--line-strong); stroke-width: 1.5; }
.fig .grid { stroke: var(--line); stroke-width: 1; }
.fig .dot { fill: var(--line-strong); opacity: .55; }
.fig .mean { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 4 4; }
.fig .hi { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
.fig text { fill: var(--ink); font-family: var(--font-sans); font-size: 13px; }
.fig text.mut { fill: var(--ink-muted); }
.fig text.big { font-family: var(--font-display); font-weight: 700; font-size: 16px; }

/* Cards in a numbered run (the five principles) */
.runs { display: grid; gap: var(--space-4); margin: var(--space-6) 0; counter-reset: r; }
.run { position: relative; padding: var(--space-5) var(--space-5) var(--space-5) 76px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 16px; line-height: 25px; }
.run > * + * { margin-top: var(--space-2); }
.run::before { counter-increment: r; content: counter(r); position: absolute; left: var(--space-5); top: var(--space-5); font-family: var(--font-display); font-size: 36px; line-height: 1; font-weight: 700; color: var(--accent-ink); }
.run h3 { font-family: var(--font-display); font-size: 21px; line-height: 27px; font-weight: 650; margin: 0; }
.run .name { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.run .look { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; line-height: 18px; font-weight: 650; }
.run p:not(.name) { color: var(--ink-muted); }

/* The ending: takeaways, an exercise, questions to mull, sources. */
.takeaway { margin: var(--space-8) 0 var(--space-6); padding: var(--space-6); border-radius: var(--radius-md); background: var(--ink); color: var(--surface); }
.takeaway .box-label { color: var(--accent); }
.takeaway .box-label::before { background: var(--accent); }
.takeaway ul { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.takeaway li { position: relative; padding-left: 28px; font-size: 18px; line-height: 27px; }
.takeaway li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.takeaway .last { margin-top: var(--space-5); font-family: var(--font-display); font-size: clamp(24px, 3vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--accent); }
[data-theme="dark"] .takeaway { background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); }

.try { background: var(--accent-soft); border: 0; }
.try .box-q { font-size: 24px; line-height: 30px; }
.mull { border-style: dashed; border-color: var(--line-strong); background: transparent; }
.mull ol { counter-reset: m; display: grid; gap: var(--space-3); }
.mull li { counter-increment: m; position: relative; padding-left: 36px; }
.mull li::before { content: counter(m); position: absolute; left: 0; top: 1px; font-family: var(--font-display); font-weight: 700; color: var(--accent-ink); }

.sources { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.sources h2 { font-family: var(--font-sans); font-size: 12px !important; line-height: 16px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 var(--space-3) !important; }
.sources ul { display: grid; gap: var(--space-2); }
.sources a { color: inherit; }

/* Previous and next */
.turn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); padding-top: var(--space-6); padding-bottom: var(--space-9); max-width: 1000px; }
.turn-card { display: grid; gap: var(--space-2); padding: var(--space-5); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); transition: border-color .18s, box-shadow .18s; }
.turn-card:last-child { text-align: right; }
.turn-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.turn-label { font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.turn-no { font-size: 13px; color: var(--ink-muted); }
.turn-title { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 650; letter-spacing: -0.01em; }

/* ———————————————————— About and History ———————————————————— */
.page-head { padding: var(--space-9) 0 var(--space-7); }
.page-head h1 { max-width: 12em; }
.page-head .lede { font-size: 20px; line-height: 30px; color: var(--ink-muted); max-width: 34em; margin-top: var(--space-5); }
.page-body { padding-bottom: var(--space-9); }
.page-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--space-7); padding: var(--space-7) 0; border-top: 1px solid var(--line); }
.page-grid h2 { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 650; letter-spacing: -0.015em; }
.page-grid .copy { font-size: 18px; line-height: 30px; }
.page-grid .copy > * + * { margin-top: var(--space-4); }
.page-grid .copy a { color: var(--accent-ink); text-underline-offset: 3px; }
.defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.defs > div { border-top: 2px solid var(--accent); padding-top: var(--space-3); }
.defs dt { font-family: var(--font-display); font-size: 22px; font-weight: 650; }
.defs dt i { font-style: normal; font-size: 14px; font-family: var(--font-sans); color: var(--ink-muted); font-weight: 500; margin-left: 6px; }
.defs dd { margin: var(--space-2) 0 0; color: var(--ink-muted); }
.house { display: grid; gap: var(--space-3); }
.house li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); }
.house li::before { content: ""; width: 18px; height: 18px; margin-top: 6px; background: var(--accent-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.issue-list { display: grid; gap: var(--space-2); }
.issue-list a { text-decoration: none; color: var(--ink); }
.issue-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.issue-list .tnum { color: var(--accent-ink); font-weight: 650; margin-right: 6px; }

.timeline { position: relative; display: grid; gap: var(--space-6); padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -36px; top: 4px; width: 16px; height: 16px; border-radius: 4px; background: var(--surface-raised); border: 2px solid var(--line-strong); }
.timeline li.is-mark::before { background: var(--accent); border-color: var(--accent-ink); }
.timeline time { font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.timeline h3 { font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 650; margin-top: var(--space-1); }
.timeline p { margin-top: var(--space-2); color: var(--ink-muted); font-size: 17px; line-height: 27px; max-width: 38em; }
.niche-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.niche-steps figure { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); }
.niche-steps svg { width: 64px; height: 64px; }
.niche-steps figcaption { margin-top: var(--space-3); font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.niche-steps figcaption b { display: block; color: var(--ink); }



/* Footer: ink, whatever the theme. Recess stands alone here; Zamde endorses. */
.foot { background: var(--zamde-ink); color: var(--zamde-paper); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--space-7); padding-top: var(--space-8); padding-bottom: var(--space-7); }
.foot-brand img { height: 32px; width: auto; }
.foot-line { margin-top: var(--space-5); color: #ABA7B4; max-width: 24em; }
.foot-nav, .foot-endorse { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); font-size: 15px; }
.foot-h { font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: #ABA7B4; margin-bottom: var(--space-2); }
.foot-nav a { text-decoration: none; border-radius: var(--radius-xs); }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot a:focus-visible { box-shadow: 0 0 0 2px #16141A, 0 0 0 4px #F3F1EC; }
.foot-zamde img { height: 24px; width: auto; }
.foot-dim { color: #ABA7B4; font-size: 14px; line-height: 20px; max-width: 20em; margin-top: var(--space-2); }
.foot-base { display: flex; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-5); padding-bottom: var(--space-6); font-size: 13px; color: #ABA7B4; position: relative; }
.foot-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid #2E2C35; }

/* Responsive */
@media (max-width: 900px) {
  .wrap { --gutter: var(--space-5); }
  .home-hero { padding: var(--space-8) 0 var(--space-7); }
  .home-hero-in { grid-template-columns: 1fr; gap: var(--space-5); }
  .alcove { order: -1; max-width: 180px; justify-self: start; }
  .section { padding: var(--space-8) 0; }
  .section-head.split { grid-template-columns: 1fr; gap: var(--space-4); }
  .contents, .ways { grid-template-columns: 1fr; }
  .page-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .recall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { --gutter: var(--space-4); }
  .nav a:not([href="/about/"]):not([href="/history/"]) { display: none; }
  .nav a { padding: var(--space-2); }
  .brand img { height: 22px; }
  .piece-head { padding: var(--space-8) 0 var(--space-7); }
  .prose { padding: var(--space-7) var(--space-4) var(--space-6); font-size: 17px; line-height: 28px; }
  .prose > p.lede { font-size: 20px; line-height: 31px; }
  .box { padding: var(--space-5); }
  .pair, .fields, .defs, .niche-steps { grid-template-columns: 1fr; }
  .lead { padding: var(--space-5) var(--space-5) 160px; min-height: 0; }
  .lead-crop { width: 220px; height: 220px; right: -60px; bottom: -80px; }
  .entry { padding: var(--space-5); gap: var(--space-4); }
  .entry-no { font-size: 40px; }
  .sort li { grid-template-columns: 1fr; }
  .sort li .opts { flex-wrap: wrap; }
  .stratum { grid-template-columns: 1fr; gap: var(--space-2); }
  .slot { grid-template-columns: 1fr; gap: 2px; }
  .turn { grid-template-columns: 1fr; }
  .turn-card:last-child { text-align: left; }
  .foot-in { grid-template-columns: 1fr; gap: var(--space-6); }
  .run { padding-left: var(--space-5); padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Series: the strip in an article's head, and the groups on the contents page. */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.series-strip { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgba(22, 20, 26, 0.22); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); max-width: 40em; }
.series-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; }
.series-strip ol { display: flex; gap: 6px; }
.series-strip a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1.5px solid rgba(22, 20, 26, 0.45); text-decoration: none; font-weight: 650; font-size: 14px; transition: background-color .12s; }
.series-strip a:hover { background: rgba(22, 20, 26, 0.10); }
.series-strip a[aria-current="page"] { background: var(--accent-on); color: var(--accent); border-color: var(--accent-on); }
.series-strip a:focus-visible { box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-on); }

.series + .series { margin-top: var(--space-8); }
.series-head { display: grid; gap: var(--space-2); max-width: 44em; }
.series-head .overline { margin-bottom: 0; }
.series-head .heading-2 { position: relative; padding-left: 22px; }
.series-head .heading-2::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 8px; height: 0.8em; border-radius: 2px; background: var(--accent); }
.issue-list > li + li { margin-top: var(--space-4); }
.issue-list ul { display: grid; gap: var(--space-1); margin-top: var(--space-2); }

/* Two-by-two: consequence against credit */
.grid4 { display: grid; grid-template-columns: 28px repeat(2, minmax(0, 1fr)); grid-template-rows: auto repeat(2, minmax(0, 1fr)) auto auto; gap: 8px; }
.g { padding: var(--space-4); border-radius: var(--radius-sm); font-size: 14px; line-height: 21px; color: var(--ink-muted); min-height: 128px; }
.g b { display: block; font-family: var(--font-display); font-size: 18px; line-height: 24px; color: var(--ink); margin-bottom: 4px; }
.g-hi-inv { grid-column: 2; grid-row: 2; background: var(--accent); color: var(--accent-on); }
.g-hi-inv b { color: var(--accent-on); }
.g-hi-vis { grid-column: 3; grid-row: 2; background: var(--accent-soft); }
.g-lo-inv { grid-column: 2; grid-row: 3; background: var(--surface-sunken); }
.g-lo-vis { grid-column: 3; grid-row: 3; background: var(--surface-raised); border: 2px dashed var(--line-strong); }
.g-ax { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.g-ax-y { grid-column: 1; grid-row: 2 / 4; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.g-ax-x { grid-column: 2 / 4; grid-row: 5; text-align: center; }
.g-k { font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.g-k-hi, .g-k-lo { display: none; }
.g-k-inv { grid-column: 2; grid-row: 4; text-align: center; }
.g-k-vis { grid-column: 3; grid-row: 4; text-align: center; }

/* Analysis climbs, delivery descends */
.climb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.climb > div { display: grid; gap: 6px; padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: 1px solid var(--line); }
.climb h4 { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.climb span { display: block; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-sunken); font-size: 15px; line-height: 21px; }
.climb span.claim { background: var(--accent); color: var(--accent-on); font-weight: 650; }
.climb .up { display: flex; flex-direction: column-reverse; gap: 6px; }
.climb .down { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) { .climb { grid-template-columns: 1fr; } .g { min-height: 0; } }
.fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .fields.three { grid-template-columns: 1fr; } }

/* Three-part series sit three across, with the number above the title. */
@media (min-width: 901px) {
  .contents.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contents.n3 .entry { grid-template-columns: 1fr; gap: var(--space-4); }
}
.contents.n1 { grid-template-columns: 1fr; }

/* 404 */
.lost { padding-top: var(--space-9); padding-bottom: var(--space-9); }
.lost-head { max-width: 40em; margin-bottom: var(--space-7); }
.lost-head .body-l { margin-top: var(--space-4); }
