/* =====================================================================
   syddev — the 2027 edition
   ---------------------------------------------------------------------
   Paper, ink, ember and iris. Three faces. No framework.
   Sections: 1 tokens · 2 reset · 3 type · 4 layout · 5 chrome · 6 hero
             7 ticker · 8 chapter · 9 now · 10 tiles · 11 chart · 12 creed
             13 archive · 14 project · 15 now page · 16 playground
             17 colophon · 18 foot · 19 palette · 20 specimen · 21 motion
   ===================================================================== */

/* ------------------------------------------------------------ 1 tokens */

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-latin-normal-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-latin-italic-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-latin-ext-normal-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-latin-ext-italic-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/Geist-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/GeistMono-Variable.woff2') format('woff2');
}

:root {
  color-scheme: light;

  /* the four values everything is made from */
  --paper: #ede7db;
  --paper-deep: #e2dbcc;
  --ink: #0b0c10;
  --ink-soft: #16181f;
  --ember: #ff4a17;
  --iris: #3550ff;

  /* semantic, flipped per surface */
  --bg: var(--paper);
  --fg: #14161c;
  --muted: #6e685d;
  --rule: rgba(20, 22, 28, 0.14);
  --accent: var(--ember);

  /* type */
  --ff-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --ff-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --step--2: clamp(0.68rem, 0.67rem + 0.05vw, 0.72rem);
  --step--1: clamp(0.8rem, 0.78rem + 0.08vw, 0.86rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.42rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.05rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3.2rem);
  --step-4: clamp(2.7rem, 1.7rem + 4.2vw, 5.4rem);
  --step-5: clamp(3.4rem, 1.2rem + 9vw, 9rem);

  /* shape */
  --wrap: 90rem;
  --rail: 16.5rem;
  --gutter: clamp(1.25rem, 4.2vw, 4.5rem);
  --gap: clamp(2rem, 4.5vw, 5rem);
  --radius: 3px;
  --shadow: 0 1px 2px rgba(11, 12, 16, 0.06), 0 12px 40px -18px rgba(11, 12, 16, 0.35);

  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.32s;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* duotone pairs — the six the specimen engine draws in */
[data-duo='ember-ink'] { --duo-bg: #0b0c10; --duo-a: #ff4a17; --duo-b: #e9e3d8; }
[data-duo='iris-ink'] { --duo-bg: #0b0c10; --duo-a: #3550ff; --duo-b: #e9e3d8; }
[data-duo='ink-ember'] { --duo-bg: #ede7db; --duo-a: #14161c; --duo-b: #ff4a17; }
[data-duo='ink-iris'] { --duo-bg: #ede7db; --duo-a: #14161c; --duo-b: #3550ff; }
[data-duo='ember-paper'] { --duo-bg: #ede7db; --duo-a: #ff4a17; --duo-b: #14161c; }
[data-duo='iris-paper'] { --duo-bg: #ede7db; --duo-a: #3550ff; --duo-b: #14161c; }

/* -------------------------------------------------------------- 2 reset */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, figure, blockquote, dl, dd { margin: 0; }
b, strong { font-weight: 600; }
code { font-family: var(--ff-mono); font-size: 0.88em; letter-spacing: -0.01em; }

::selection { background: var(--ember); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- 3 type */

.label {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

h1, h2, h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 0.94;
  text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

.prose {
  max-width: 38rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: color-mix(in oklab, var(--fg) 84%, transparent);
}
.prose + .prose { margin-top: 1.2em; }

.closing { margin-top: 2.5rem; }
.closing--wide { max-width: var(--wrap); margin-inline: auto; padding: 4rem var(--gutter) 6rem; }

.arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--rule);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.arrow i { font-style: normal; transition: transform var(--dur) var(--ease-out); }
.arrow:hover { color: var(--accent); border-color: currentColor; }
.arrow:hover i { transform: translateX(0.35em); }

.linkbtn {
  font: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* -------------------------------------------------------------- 4 layout */

.section { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  gap: 1rem 1.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.facts dt {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  font-family: var(--ff-display);
  font-size: var(--step-2);
  line-height: 1;
  margin-top: 0.35rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat__value {
  font-family: var(--ff-display);
  font-size: var(--step-3);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------- 5 chrome */

.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}
.masthead__in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.masthead__progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: transparent;
  overflow: hidden;
}
.masthead__progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transform-origin: left;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}
.wordmark__mark {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--ff-display);
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  line-height: 1;
  padding-bottom: 0.08em;
  transition: transform 0.4s var(--ease-out), background var(--dur) var(--ease);
}
.wordmark:hover .wordmark__mark { transform: rotate(-6deg); background: var(--ember); color: #fff; }
.wordmark__text {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.wordmark__text b { font-weight: 400; color: var(--muted); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.9rem);
}
.nav__link {
  position: relative;
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.25rem 0;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right var(--dur) var(--ease-out);
}
.nav__link:hover { color: var(--fg); }
.nav__link:hover::after { right: 0; }
.nav__link.is-active { color: var(--fg); }
.nav__link.is-active::after { right: 0; }

.masthead__end { display: flex; align-items: center; gap: 0.6rem; }

.cmdk-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.5rem 0.42rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.cmdk-trigger:hover { color: var(--fg); border-color: color-mix(in oklab, var(--fg) 40%, transparent); }
.cmdk-trigger__icon { width: 13px; height: 13px; }
.cmdk-trigger__kbd,
.palette__esc {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  padding: 0.16em 0.45em;
  border-radius: 4px;
  background: color-mix(in oklab, var(--fg) 9%, transparent);
  border: 1px solid var(--rule);
  color: var(--fg);
  line-height: 1.3;
}
@media (max-width: 46rem) {
  .cmdk-trigger__label { display: none; }
}

.menu-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.menu-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--fg);
  transition: transform var(--dur) var(--ease);
}
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__in {
  height: 100%;
  padding: 6rem var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
}
.menu__nav { display: grid; gap: 0.25rem; margin-top: 1.5rem; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--ff-display);
  font-size: var(--step-4);
  line-height: 1.05;
  padding: 0.15em 0;
  border-bottom: 1px solid rgba(237, 231, 219, 0.12);
}
.menu__num {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  color: var(--ember);
}
.menu__foot {
  margin-top: auto;
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  color: rgba(237, 231, 219, 0.6);
}
.menu__foot a { color: var(--ember); }

@media (max-width: 60rem) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
}
@media (min-width: 60.0625rem) {
  .menu { display: none !important; }
}

/* --------------------------------------------------------------- 6 hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(255, 74, 23, 0.28), transparent 62%),
    radial-gradient(90% 80% at 8% 96%, rgba(53, 80, 255, 0.22), transparent 60%),
    var(--ink);
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(
      to right,
      rgba(11, 12, 16, 0.88) 0%,
      rgba(11, 12, 16, 0.62) 34%,
      rgba(11, 12, 16, 0.24) 66%,
      rgba(11, 12, 16, 0.5) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(11, 12, 16, 0.5) 0%,
      rgba(11, 12, 16, 0) 44%,
      rgba(11, 12, 16, 0.78) 100%
    ),
    var(--grain);
  background-size:
    100% 100%,
    100% 100%,
    180px 180px;
  pointer-events: none;
}
.hero__in {
  align-self: center;
  max-width: var(--wrap);
  width: 100%;
  margin-inline: auto;
  padding: 5rem var(--gutter) 3rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: rgba(237, 231, 219, 0.62);
  text-transform: uppercase;
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(255, 74, 23, 0.7);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 74, 23, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 74, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 74, 23, 0); }
}

.hero__title {
  margin: 1.6rem 0 0;
  font-size: var(--step-5);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--paper);
}
.hero__line { display: block; }
.hero__line--2 { padding-left: clamp(1rem, 9vw, 8rem); }
.hero__line--3 { padding-left: clamp(0.25rem, 4vw, 3.5rem); color: rgba(237, 231, 219, 0.55); }
.hero__title em {
  font-style: italic;
  color: var(--ember);
  padding-right: 0.06em;
}
.hero__lede {
  max-width: 40rem;
  margin-top: 2rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: rgba(237, 231, 219, 0.78);
}
.hero__lede b { color: var(--paper); font-weight: 500; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(237, 231, 219, 0.28);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); border-color: var(--paper); }
.btn--solid { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn--solid:hover { background: color-mix(in oklab, var(--ember) 82%, #fff); border-color: transparent; }

.hero__foot {
  max-width: var(--wrap);
  width: 100%;
  margin-inline: auto;
  padding: 1.25rem var(--gutter) 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(237, 231, 219, 0.14);
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2rem;
  flex: 1 1 24rem;
}
.hero__stats dt {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 231, 219, 0.5);
}
.hero__stats dd {
  font-family: var(--ff-display);
  font-size: var(--step-3);
  line-height: 1;
  margin-top: 0.3rem;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.hero__edge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 231, 219, 0.5);
}
.hero__edge .label { color: rgba(237, 231, 219, 0.36); }
.hero__clock { color: var(--ember); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- 7 ticker */

.ticker {
  --gap: 1.6rem;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(237, 231, 219, 0.55);
  border-top: 1px solid rgba(237, 231, 219, 0.1);
  border-bottom: 1px solid rgba(237, 231, 219, 0.1);
  padding: 0.85rem 0;
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.ticker::after { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.ticker__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: slide 90s linear infinite;
}
.ticker__item { display: inline-flex; align-items: center; gap: var(--gap); white-space: nowrap; }
.ticker__item i { color: var(--ember); font-style: normal; }
@keyframes slide {
  to { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

/* ------------------------------------------------------------ 8 chapter */

.chapter {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  padding-inline: var(--gutter);
  position: relative;
}
.chapter--ink {
  background: var(--ink);
  color: var(--paper);
  --muted: rgba(237, 231, 219, 0.52);
  --rule: rgba(237, 231, 219, 0.14);
  --accent: var(--ember);
}
.chapter--ink::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.035;
  pointer-events: none;
}
.chapter__grid {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.chapter__rail {
  position: sticky;
  top: 5.5rem;
}
.chapter__num {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.chapter__num::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--rule);
}
.chapter__title {
  font-size: var(--step-3);
  line-height: 1;
}
.chapter__note {
  margin-top: 0.9rem;
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--muted);
  max-width: 22rem;
}
.chapter__body > * + * { margin-top: 2rem; }

@media (max-width: 60rem) {
  .chapter__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .chapter__rail { position: static; }
  .chapter__num { margin-bottom: 0.5rem; }
  .chapter__note { max-width: 34rem; }
}

/* ----------------------------------------------------------------- 9 now */

.nowgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.nowcard { background: var(--ink); transition: background var(--dur) var(--ease); }
.nowcard:hover { background: var(--ink-soft); }
.nowcard__link {
  display: grid;
  gap: 0.55rem;
  padding: 1.5rem 1.5rem 1.6rem;
  height: 100%;
  align-content: start;
}
.nowcard__num {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.18em;
  color: var(--muted);
}
.nowcard__name {
  font-family: var(--ff-display);
  font-size: var(--step-2);
  line-height: 1;
}
.nowcard__role {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.nowcard__note {
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--muted);
}
.nowcard__go {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.nowcard__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.nowcard[data-accent='ember'] { --accent: var(--ember); }
.nowcard[data-accent='violet'] { --accent: var(--iris); }
.nowcard[data-accent='volt'] { --accent: #d7ff3e; }
.nowcard[data-accent='volt'] .nowcard__name { color: #fff; }
.nowcard[data-accent='volt'] { --muted: rgba(237, 231, 219, 0.55); }

/* --------------------------------------------------------------- 10 tiles */

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1.25rem;
}
.tile { position: relative; }
.tile__link { display: block; }
.tile__art {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--duo-bg, var(--ink));
  border-radius: var(--radius);
}
.tile__art .specimen { width: 100%; height: 100%; }
.tile__art canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.tile:hover .tile__art canvas { transform: scale(1.04); }
.tile__foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--rule);
}
.tile__num {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  color: var(--muted);
}
.tile__name {
  font-family: var(--ff-display);
  font-size: var(--step-1);
  line-height: 1.1;
}
.tile__year {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  color: var(--muted);
}
.tile:hover .tile__name { color: var(--accent); }

/* --------------------------------------------------------------- 11 chart */

.chart { margin: 0; }
.chart__bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 2rem);
  align-items: end;
  height: clamp(12rem, 34vw, 22rem);
}
.bar {
  position: relative;
  display: block;
  height: 100%;
  text-decoration: none;
}
.bar__stack {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--h, 50%);
  display: flex;
  overflow: hidden;
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  transition: filter var(--dur) var(--ease);
}
.bar__stack i { display: block; height: 100%; }
.bar:hover .bar__stack { filter: saturate(1.25) brightness(1.06); }
.bar__n {
  position: absolute;
  top: calc(100% - var(--h, 50%) - 2.4rem);
  left: 0;
  font-family: var(--ff-display);
  font-size: var(--step-2);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
@keyframes grow {
  from { transform: scaleY(0.02); }
  to { transform: scaleY(1); }
}
.chart__axis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 2rem);
  margin-top: 0.8rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.6rem;
}
.chart__axis span {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  color: var(--muted);
}
.chart__legend {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}
.chart__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.chart__legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: block;
}
.chart__legend b { color: var(--fg); font-weight: 500; }

/* --------------------------------------------------------------- 12 creed */

.creed {
  background: var(--ember);
  color: #fff;
  padding: clamp(5rem, 12vw, 11rem) var(--gutter);
  text-align: center;
}
.creed__text {
  max-width: 26ch;
  margin-inline: auto;
  font-family: var(--ff-display);
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.creed__text em { font-style: italic; }
.creed__foot {
  margin: 2.5rem auto 0;
  max-width: 34rem;
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.85);
}

/* ------------------------------------------------------------- 13 archive */

.pagehead {
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter) clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
.pagehead__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: end;
}
.pagehead__title {
  margin-top: 0.9rem;
  font-size: var(--step-5);
  line-height: 0.86;
  letter-spacing: -0.035em;
}
.pagehead__aside { display: grid; gap: 1.5rem; }
.pagehead__lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: color-mix(in oklab, var(--fg) 80%, transparent);
  max-width: 32rem;
}
.pagehead__lede b { color: var(--fg); font-weight: 500; }
@media (max-width: 60rem) {
  .pagehead__grid { grid-template-columns: minmax(0, 1fr); }
}

.controls {
  position: sticky;
  top: 3.55rem;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem var(--gutter);
}
.controls__row {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.controls__row--search {
  justify-content: space-between;
  padding-bottom: 0.75rem;
}
.controls__count {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.controls__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.controls__group--years { margin-left: auto; }
.controls__legend {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.25rem;
}
.field { display: inline-flex; flex-direction: column; gap: 0.3rem; }
.field--inline { flex-direction: row; align-items: center; gap: 0.5rem; }
.field__label {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__input,
.field__select {
  min-width: 14rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: var(--ff-sans);
  font-size: var(--step-0);
  transition: border-color var(--dur) var(--ease);
}
.field__input::placeholder { color: color-mix(in oklab, var(--muted) 70%, transparent); }
.field__input:focus,
.field__select:focus { border-color: var(--accent); outline-offset: 1px; }
.field__range { accent-color: var(--accent); width: 12rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.chip:hover { color: var(--fg); border-color: color-mix(in oklab, var(--fg) 35%, transparent); }
.chip.is-on,
.chip[aria-pressed='true'] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.chip__n { opacity: 0.55; font-variant-numeric: tabular-nums; }
.chip--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.rows { padding: 0 var(--gutter) 6rem; max-width: var(--wrap); margin-inline: auto; }
.row { border-bottom: 1px solid var(--rule); }
.row:first-child { border-top: 1px solid var(--rule); }
.row.is-hidden { display: none; }
.row__link {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) 11rem 1.5rem;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  padding: 0.9rem 0;
  transition: background var(--dur) var(--ease);
}
.row__mark {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  border-radius: 2px;
  background: var(--duo-bg, var(--ink));
  opacity: 0.9;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.row__mark canvas { width: 100%; height: 100%; }
.row:hover .row__mark { opacity: 1; transform: scale(1.06); }
.row__main { display: grid; gap: 0.15rem; min-width: 0; }
.row__name {
  font-family: var(--ff-display);
  font-size: var(--step-2);
  line-height: 1.05;
  transition: color var(--dur) var(--ease);
}
.row:hover .row__name { color: var(--accent); }
.row__blurb {
  font-size: var(--step--1);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.row__go {
  font-family: var(--ff-mono);
  color: var(--muted);
  transition: transform var(--dur) var(--ease-out), color var(--dur) var(--ease);
}
.row:hover .row__go { transform: translateX(0.4em); color: var(--accent); }
@media (max-width: 52rem) {
  .row__link { grid-template-columns: 2.75rem minmax(0, 1fr) 1.25rem; }
  .row__mark { width: 2.75rem; height: 2.75rem; }
  .row__meta { display: none; }
  .row__blurb { white-space: normal; }
}

.empty {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6rem var(--gutter);
  text-align: center;
}
.empty__mark { font-family: var(--ff-display); font-size: 4rem; color: var(--muted); }
.empty__title { font-family: var(--ff-display); font-size: var(--step-3); margin-top: 0.5rem; }
.empty__note { color: var(--muted); margin-top: 0.5rem; }

.notfound {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) 6rem;
}
.notfound__canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--ink);
}

/* ------------------------------------------------------------- 14 project */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem var(--gutter);
  max-width: var(--wrap);
  margin-inline: auto;
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--fg); }

.project__head {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
}
.project__meta {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ref { color: var(--accent); }
.project__title {
  margin-top: 1rem;
  font-size: var(--step-5);
  line-height: 0.88;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.project__blurb {
  margin-top: 1.4rem;
  max-width: 38rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: color-mix(in oklab, var(--fg) 78%, transparent);
}
.project__art {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.project__art .specimen {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.project__art canvas { width: 100%; height: 100%; object-fit: cover; }
.project__artcaption {
  margin-top: 0.7rem;
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.project__artcaption a { color: var(--accent); }
.project__artcaption code { color: color-mix(in oklab, var(--fg) 75%, transparent); }

.project__body {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 62rem) {
  .project__body { grid-template-columns: minmax(0, 1fr); }
}
.quote {
  margin: 0 0 2.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  max-width: 40rem;
}
.quote p {
  font-family: var(--ff-display);
  font-size: var(--step-2);
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.also { margin-top: 2.5rem; }
.also ul { margin-top: 0.6rem; display: grid; gap: 0.35rem; }
.also a {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.project__aside { display: grid; gap: 2rem; position: sticky; top: 6rem; }
.aside__block { display: grid; gap: 0.6rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tags li {
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  color: var(--muted);
}
.aside__kind { font-family: var(--ff-display); font-size: var(--step-2); line-height: 1; }
.aside__count { font-size: var(--step--1); color: var(--muted); }

.linkrow {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--fg) 2.5%, transparent);
}
.linkrow__state {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.linkrow[data-state='alive'] .linkrow__state { background: #2f7d63; }
.linkrow[data-state='dead'] .linkrow__state { background: #b0473f; }
.linkrow__url a {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--rule);
}
.linkrow__url a:hover { color: var(--accent); border-color: currentColor; }
.linkrow__note {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.related {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) 3rem;
}
.related__grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.related__item {
  background: var(--bg);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.3rem;
  transition: background var(--dur) var(--ease);
}
.related__item:hover { background: color-mix(in oklab, var(--fg) 4%, transparent); }
.related__name { font-family: var(--ff-display); font-size: var(--step-1); line-height: 1.1; }
.related__meta {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.prevnext {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}
.prevnext__item {
  padding: 1.5rem 1.25rem 2rem;
  display: grid;
  gap: 0.5rem;
  transition: background var(--dur) var(--ease);
}
.prevnext__item + .prevnext__item { border-left: 1px solid var(--rule); }
.prevnext__item:hover { background: color-mix(in oklab, var(--fg) 4%, transparent); }
.prevnext__item--next { text-align: right; }
.prevnext__name { font-family: var(--ff-display); font-size: var(--step-3); line-height: 1; }
@media (max-width: 44rem) {
  .prevnext { grid-template-columns: 1fr; }
  .prevnext__item--next { text-align: left; }
  .prevnext__item + .prevnext__item { border-left: 0; border-top: 1px solid var(--rule); }
}

/* ------------------------------------------------------------ 15 now page */

.past { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 1.25rem; }
.pastcard {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--fg) 2.5%, transparent);
}
.pastcard__num { font-family: var(--ff-mono); font-size: var(--step--2); color: var(--accent); }
.pastcard__name { font-size: var(--step-2); line-height: 1; }
.pastcard__outcome {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.pastcard__note { color: var(--muted); }

.thread { display: grid; gap: 0; }
.thread li {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}
.thread__when {
  font-family: var(--ff-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.thread__what { font-size: var(--step-1); line-height: 1.5; max-width: 44rem; }
@media (max-width: 40rem) {
  .thread li { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
}

/* ---------------------------------------------------------- 16 playground */

.toy {
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.toy--ink { background: var(--ink); color: var(--paper); --muted: rgba(237, 231, 219, 0.52); --rule: rgba(237, 231, 219, 0.14); --accent: var(--ember); }
.toy__head { max-width: var(--wrap); margin: 0 auto 2rem; }
.toy__title { margin-top: 0.5rem; font-size: var(--step-4); line-height: 0.95; }
.toy__note { margin-top: 0.8rem; max-width: 38rem; color: var(--muted); }
.toy__stage {
  max-width: var(--wrap);
  margin-inline: auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 16 / 9;
}
.toy__stage--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  overflow: visible;
  gap: 1.25rem;
}
.toy__canvas { width: 100%; height: 100%; display: block; }
[data-toy='field'] {
  background:
    radial-gradient(70% 92% at 84% 10%, rgba(255, 74, 23, 0.22), transparent 62%),
    radial-gradient(64% 84% at 8% 94%, rgba(53, 80, 255, 0.2), transparent 60%),
    #0b0c10;
}
.toy__stage--split .toy__canvas { aspect-ratio: 3 / 2; border: 1px solid var(--rule); border-radius: var(--radius); }
.toy__panel { display: grid; gap: 0.75rem; align-content: start; }
.toy__controls {
  max-width: var(--wrap);
  margin: 1.25rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.toy__hint {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: auto;
}
.toy__readout { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.toy__readout div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.4rem; }
.toy__readout dt { font-family: var(--ff-mono); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toy__readout dd { font-family: var(--ff-mono); font-size: var(--step--1); }
@media (max-width: 52rem) {
  .toy__stage--split { grid-template-columns: minmax(0, 1fr); }
}

.toy__stage--type { display: grid; gap: 0; background: transparent; border: 0; overflow: visible; }
.typebench__row { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.typebench__line {
  font-size: var(--type-size, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
  overflow-wrap: anywhere;
  outline: none;
}
.typebench__row[data-face='display'] .typebench__line { font-family: var(--ff-display); }
.typebench__row[data-face='sans'] .typebench__line { font-family: var(--ff-sans); font-weight: 450; }
.typebench__row[data-face='mono'] .typebench__line { font-family: var(--ff-mono); font-weight: 400; }
.typebench__line:focus { color: var(--accent); }

/* ----------------------------------------------------------- 17 colophon */

.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); gap: 1.5rem; }
.spec { display: grid; gap: 0.4rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--rule); }
.spec__sample {
  font-size: clamp(1.5rem, 3.1vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spec__sample--display { font-family: var(--ff-display); }
.spec__sample--sans { font-family: var(--ff-sans); font-weight: 450; }
.spec__sample--mono { font-family: var(--ff-mono); }
.spec__name { font-family: var(--ff-mono); font-size: var(--step--1); letter-spacing: 0.08em; }
.spec__note { font-size: var(--step--1); color: var(--muted); line-height: 1.5; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr)); gap: 1rem; }
.swatch { display: grid; gap: 0.35rem; }
.swatch__chip { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--rule); }
.swatch__name { font-family: var(--ff-mono); font-size: var(--step--1); }
.swatch__hex { font-family: var(--ff-mono); font-size: var(--step--2); color: var(--muted); }

.notes { display: grid; gap: 0; }
.notes li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.notes__key { font-family: var(--ff-mono); font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.notes__val { color: color-mix(in oklab, var(--fg) 82%, transparent); }
@media (max-width: 40rem) {
  .notes li { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
}

.steps { display: grid; gap: 0; }
.steps li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}
.steps__n {
  font-family: var(--ff-display);
  font-size: var(--step-3);
  line-height: 0.8;
  color: var(--accent);
}
.steps h3 { font-size: var(--step-2); line-height: 1.05; }
.steps p { margin-top: 0.4rem; color: color-mix(in oklab, var(--fg) 80%, transparent); max-width: 44rem; }

.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); gap: 1rem 1.5rem; margin-bottom: 2.5rem; }
.keys__group { display: flex; align-items: center; gap: 0.5rem; }
.keys__group span { font-size: var(--step--1); color: var(--muted); }
.keys kbd {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  padding: 0.25em 0.55em;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: color-mix(in oklab, var(--fg) 4%, transparent);
}

.health { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--gap); align-items: center; }
.health__gauge {
  position: relative;
  width: clamp(9rem, 22vw, 13rem);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.health__gauge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--ember) var(--pct), rgba(237, 231, 219, 0.12) 0);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
  mask: radial-gradient(circle, transparent 62%, #000 63%);
}
.health__gauge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--rule);
}
.health__ring { display: grid; text-align: center; position: relative; z-index: 1; }
.health__num { font-family: var(--ff-display); font-size: var(--step-4); line-height: 0.9; }
.health__of {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.health__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1.2rem; }
.health__facts dt { font-family: var(--ff-mono); font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.health__facts dd { font-family: var(--ff-display); font-size: var(--step-2); line-height: 1; margin-top: 0.3rem; }
@media (max-width: 44rem) {
  .health { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------- 18 foot */

.foot {
  background: var(--ink);
  color: var(--paper);
  --muted: rgba(237, 231, 219, 0.5);
  --rule: rgba(237, 231, 219, 0.14);
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) 2rem;
  position: relative;
}
.foot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.035;
  pointer-events: none;
}
.foot__in {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
}
.foot__col { display: grid; gap: 0.75rem; align-content: start; }
.foot__mark { font-family: var(--ff-display); font-size: var(--step-3); line-height: 1; }
.foot__mark b { font-weight: 400; color: var(--muted); }
.foot__line { color: var(--muted); font-size: var(--step--1); line-height: 1.6; max-width: 24rem; }
.foot__line a { color: var(--paper); border-bottom: 1px solid var(--rule); }
.foot__list { display: grid; gap: 0.3rem; }
.foot__list a {
  font-size: var(--step--1);
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}
.foot__list a:hover { color: var(--ember); }
.foot__base {
  position: relative;
  max-width: var(--wrap);
  margin: 3rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.04em;
  color: rgba(237, 231, 219, 0.42);
}
@media (max-width: 56rem) {
  .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 34rem) {
  .foot__in { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------ 19 palette */

.palette {
  width: min(42rem, calc(100vw - 2rem));
  max-height: min(32rem, 78svh);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  margin-top: 12vh;
}
.palette::backdrop { background: rgba(11, 12, 16, 0.55); backdrop-filter: blur(4px); }
.palette[open] { animation: palette-in 0.22s var(--ease-out); }
@keyframes palette-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.palette__form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: inherit; }
.palette__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(237, 231, 219, 0.12);
}
.palette__icon { width: 16px; height: 16px; color: rgba(237, 231, 219, 0.5); flex: none; }
.palette__input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  font-size: var(--step-1);
  outline: none;
}
.palette__input::placeholder { color: rgba(237, 231, 219, 0.35); }
.palette__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  opacity: 0.4;
  cursor: pointer;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%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 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='%23000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.palette__results { overflow-y: auto; max-height: 22rem; padding: 0.5rem; scrollbar-width: thin; }
.palette__hit {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 5px;
  cursor: pointer;
}
.palette__hit[aria-selected='true'] { background: rgba(237, 231, 219, 0.09); }
.palette__hit canvas { width: 2.25rem; height: 2.25rem; border-radius: 2px; }
.palette__name { font-family: var(--ff-display); font-size: var(--step-1); line-height: 1.1; }
.palette__name mark { background: var(--ember); color: #fff; border-radius: 2px; }
.palette__meta {
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 231, 219, 0.45);
}
.palette__empty { padding: 2.5rem 1rem; text-align: center; color: rgba(237, 231, 219, 0.5); }
.palette__foot {
  display: flex;
  gap: 1.25rem;
  padding: 0.6rem 1.1rem;
  border-top: 1px solid rgba(237, 231, 219, 0.12);
  font-family: var(--ff-mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(237, 231, 219, 0.4);
}
.palette__foot kbd {
  font-family: var(--ff-mono);
  font-size: 0.66rem;
  padding: 0.14em 0.4em;
  border: 1px solid rgba(237, 231, 219, 0.18);
  border-radius: 4px;
}
.palette__foot-end { margin-left: auto; }

/* ------------------------------------------------------------ 20 specimen */

.specimen {
  margin: 0;
  position: relative;
  background: var(--duo-bg, var(--ink));
  overflow: hidden;
}
.specimen canvas { width: 100%; height: 100%; display: block; }

/* --------------------------------------------------------------- 21 motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker__track { animation: none; }
}

/* native cross-document view transitions */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.26s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.wordmark__text { view-transition-name: wordmark; }

/* --------------------------------------------------------------- reveal */

/*
 * Content reveals on scroll. The hidden state only exists once the script has
 * run, so without JavaScript — or if the script never arrives — every word on
 * the page is simply there. Nothing important is ever behind an animation.
 */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
html.js.reveal-ready .reveal {
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------- scroll-driven, safely */

/*
 * Two things are allowed to be driven by the scroll position natively, and
 * both are decoration: the rule across the top of the masthead, and the bars
 * in the chart. Neither can hide content, so a browser without scroll-driven
 * animations loses nothing but the flourish.
 */
@supports (animation-timeline: scroll()) {
  .masthead__progress i {
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    animation: progress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes progress {
    to {
      transform: scaleX(1);
    }
  }
}

@supports (animation-timeline: view()) {
  .bar__stack {
    animation: grow linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 35%;
  }
}

@media print {
  .masthead, .foot, .ticker, .hero__field, .palette, .controls { display: none !important; }
  body { background: #fff; color: #000; }
  .chapter--ink { background: #fff; color: #000; }
  html.js .reveal { opacity: 1 !important; transform: none !important; }
}
