/*
 * studio.pclshm.dev — the public face of pclshm studio.
 * Studio's own register from the family handoff: paper ground, ink type, one
 * rust accent, serif display, mono uppercase labels, sharp corners. Values are
 * the adapter in packages/design-system/src/family.ts — paper by default, ink
 * as the same design read off a dark ground. Comfortable density (website).
 */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/newsreader.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/newsreader-italic.woff2) format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/geist.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url(fonts/jetbrainsmono.woff2) format("woff2");
}

:root {
  color-scheme: light;
  /* paper register — studioColors */
  --bg: #f4f1ea;
  --surface: #ede9e0;
  --raised: #fffdfa;
  --line: #d7d3c9;
  --line-strong: #242420;
  --text: #242420;
  --text-2: #66645d;
  --accent: #b3402a;
  --accent-hover: #8f3020;
  --accent-ink: #fff7f2;
  --accent-text: #a63f21;
  --success: #396340;
  --warning: #8a5a1c;
  --gutter-preview: #edebe6;
  --code-bg: #1c1c1a;
  --code-fg: #f4f1ea;
  --code-dim: #a8a499;
  --code-accent: #f18a62;
  --plate-ink: #242420;

  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Geist", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", ui-monospace, monospace;

  --frame-max: 1280px;
  --gutter: clamp(16px, 3vw, 48px);
  --frame: min(var(--frame-max), calc(100% - 2 * var(--gutter)));
  /* The family's page-section rhythm (48–72px), shared with every public site. */
  --section-space: var(--layout-section-space, clamp(48px, 5vw, 72px));
  --target: 44px;
  --fast: 120ms;
  --base: 180ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ink register — studioColorsDark */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1c1c1a;
  --surface: #232320;
  --raised: #2a2a26;
  --line: #3c3a35;
  --line-strong: #f4f1ea;
  --text: #f4f1ea;
  --text-2: #beb9ac;
  --accent: #f18a62;
  --accent-hover: #f7a886;
  --accent-ink: #1c1c1a;
  --accent-text: #f18a62;
  --success: #7fb184;
  --warning: #d8a45e;
  --gutter-preview: #141412;
  --code-bg: #141412;
  --plate-ink: #e4e0d6;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --fast: 0ms;
    --base: 0ms;
  }
  html {
    scroll-behavior: auto !important;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-text);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--accent-hover);
}

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

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

.frame {
  width: var(--frame);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--text);
  color: var(--bg);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.skip:focus {
  top: 8px;
}

/* ── micro type ─────────────────────────────────────────────────────────── */

.mono,
.label {
  font-family: var(--font-mono);
}
.label,
p.label {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.label--accent {
  color: var(--accent-text);
}

/* ── masthead: the family shell (family/shell.css); the register switch stays here ── */

.theme {
  display: inline-flex;
  border: 1px solid var(--line-strong);
}
.theme button {
  min-width: var(--target);
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.theme button + button {
  border-left: 1px solid var(--line-strong);
}
:root:not([data-theme="dark"]) .theme [data-set="light"],
:root[data-theme="dark"] .theme [data-set="dark"] {
  background: var(--text);
  color: var(--bg);
}

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn:hover {
  background: var(--text);
  color: var(--bg);
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}

/* ── status pill — text always present; the dot is decoration ─────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--warning);
}

/* ── plates: 1-bit masks painted with the theme's own colors ──────────── */

.plate {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--raised);
}
.plate i {
  position: absolute;
  inset: 0;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.plate .ink {
  background: var(--plate-ink);
}
.plate .acc {
  background: var(--accent);
}
.plate--hero { aspect-ratio: 16 / 9; }
.plate--hero .ink { -webkit-mask-image: url(plates/hero.png); mask-image: url(plates/hero.png); }
.plate--hero .acc { -webkit-mask-image: url(plates/hero-accent.png); mask-image: url(plates/hero-accent.png); }
.plate--print-tech-paper .ink { -webkit-mask-image: url(plates/print-tech-paper.png); mask-image: url(plates/print-tech-paper.png); }
.plate--print-tech-paper .acc { -webkit-mask-image: url(plates/print-tech-paper-accent.png); mask-image: url(plates/print-tech-paper-accent.png); }
.plate--dither-mono .ink { -webkit-mask-image: url(plates/dither-mono.png); mask-image: url(plates/dither-mono.png); }
.plate--vast-quiet-cinematic .ink { -webkit-mask-image: url(plates/vast-quiet-cinematic.png); mask-image: url(plates/vast-quiet-cinematic.png); }
.plate--vast-quiet-cinematic .acc { -webkit-mask-image: url(plates/vast-quiet-cinematic-accent.png); mask-image: url(plates/vast-quiet-cinematic-accent.png); }
.plate--data-as-texture .ink { -webkit-mask-image: url(plates/data-as-texture.png); mask-image: url(plates/data-as-texture.png); }
.plate--data-as-texture .acc { -webkit-mask-image: url(plates/data-as-texture-accent.png); mask-image: url(plates/data-as-texture-accent.png); }
.plate--classical-remix .ink { -webkit-mask-image: url(plates/classical-remix.png); mask-image: url(plates/classical-remix.png); }
.plate--glitched-antiquity .ink { -webkit-mask-image: url(plates/glitched-antiquity.png); mask-image: url(plates/glitched-antiquity.png); }
.plate--glitched-antiquity .acc { -webkit-mask-image: url(plates/glitched-antiquity-accent.png); mask-image: url(plates/glitched-antiquity-accent.png); }
.plate--illustrated-storybook .ink { -webkit-mask-image: url(plates/illustrated-storybook.png); mask-image: url(plates/illustrated-storybook.png); }
.plate--illustrated-storybook .acc { -webkit-mask-image: url(plates/illustrated-storybook-accent.png); mask-image: url(plates/illustrated-storybook-accent.png); }
.plate--reference .ink { -webkit-mask-image: url(plates/reference.png); mask-image: url(plates/reference.png); }

/* registration marks on a framed plate */
.reg {
  position: relative;
}
.reg::before,
.reg::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  background:
    linear-gradient(var(--text), var(--text)) center / 1px 100% no-repeat,
    linear-gradient(var(--text), var(--text)) center / 100% 1px no-repeat;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--text);
  background-clip: padding-box;
}
.reg::before {
  top: -11px;
  left: -11px;
}
.reg::after {
  bottom: -11px;
  right: -11px;
}

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(48px, 7vw, 96px);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hero h1 {
  margin: 0;
  max-width: 12ch;
  font: 500 clamp(52px, 9.2vw, 136px) / 0.92 var(--font-display);
  letter-spacing: -0.035em;
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
  letter-spacing: -0.03em;
}
.hero__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px clamp(24px, 5vw, 72px);
  align-items: end;
  margin-top: clamp(28px, 4vw, 48px);
}
.lede {
  margin: 0;
  max-width: 34em;
  font: 400 clamp(18px, 1.6vw, 21px) / 1.55 var(--font-body);
}
.lede strong {
  font-weight: 500;
}
.hero__aside {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.hero__aside p {
  margin: 0;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__plate {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 0;
  border: 1px solid var(--line-strong);
}
.hero__plate .plate {
  border-right: 1px solid var(--line-strong);
}
.ruler {
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--text) 0 1px, transparent 1px 12px) top / 100% 6px no-repeat,
    repeating-linear-gradient(90deg, var(--text) 0 1px, transparent 1px 120px) top / 100% 12px no-repeat;
  opacity: 0.55;
}
.margin {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 14px;
  font: 400 10px/1.6 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.margin dl {
  margin: 0;
  display: grid;
  gap: 12px;
}
.margin dt {
  color: var(--text-2);
}
.margin dd {
  margin: 0;
  color: var(--text);
}
.caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 10px;
}

/* ── section marker: numbered, mono, hairline rule to the margin ─────── */

.section {
  padding-top: var(--section-space);
}
/* The last section keeps one section of air above the family footer's rule. */
main {
  padding-bottom: var(--section-space);
}
.marker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.marker b {
  font-weight: 500;
  color: var(--accent-text);
}
.marker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section h2 {
  margin: 0;
  font: 500 clamp(36px, 5.2vw, 68px) / 1 var(--font-display);
  letter-spacing: -0.025em;
}
.section h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}
.section__head p {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  max-width: 34em;
}

/* ── the loop: rows, not cards ─────────────────────────────────────────── */

.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.rows > li {
  display: grid;
  grid-template-columns: 72px minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr);
  gap: 12px 28px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.rows .n {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--accent-text);
}
.rows h3 {
  margin: 0;
  font: 500 clamp(26px, 2.6vw, 34px) / 1.05 var(--font-display);
  letter-spacing: -0.015em;
}
.rows p {
  margin: 0;
  max-width: 36em;
}
.rows .where {
  justify-self: end;
  text-align: right;
}

/* ── apps: specimen + product rows ─────────────────────────────────────── */

.specimen,
.bout-wrap {
  margin: 0;
}
.specimen {
  background: var(--gutter-preview);
  border: 1px solid var(--line-strong);
  padding: clamp(14px, 2.4vw, 32px);
}
.specimen__bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}
/* The specimen re-draws the Rater chrome in paper whatever the page theme:
   it is a picture of the product, and the product opens on paper. */
.app {
  --a-bg: #f4f1ea;
  --a-surface: #ede9e0;
  --a-raised: #fffdfa;
  --a-line: #d7d3c9;
  --a-ink: #242420;
  --a-2: #66645d;
  --a-accent: #b3402a;
  background: var(--a-bg);
  color: var(--a-ink);
  border: 1px solid var(--a-line);
  overflow: hidden;
}
.app__top {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--a-line);
  overflow: hidden;
  white-space: nowrap;
}
.app__brand {
  font: 500 19px/1 var(--font-display);
}
.app__brand span {
  color: var(--a-accent);
}
.app__brand em {
  color: var(--a-2);
  font-weight: 400;
}
.app__tab {
  font: 400 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  padding: 6px 0;
}
.app__tab[data-on] {
  border-bottom: 2px solid var(--a-accent);
}
.app__body {
  padding: 18px 20px 22px;
  border-top: 2px solid var(--a-ink);
  margin-top: 10px;
}
.app__chips {
  display: flex;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.chip {
  flex: none;
  padding: 8px 12px;
  border: 1px solid var(--a-ink);
  font: 400 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chip[data-on] {
  background: var(--a-ink);
  color: var(--a-bg);
}
.app__title {
  margin: 18px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--a-line);
  font: 500 26px/1.1 var(--font-display);
}
.app__title b {
  color: var(--a-accent);
  font-weight: 500;
}
.app__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  background: var(--a-raised);
  border: 1px solid var(--a-line);
  min-width: 0;
}
.card .plate {
  aspect-ratio: 3 / 2;
  background: var(--a-surface);
  --plate-ink: #242420;
  --accent: #b3402a;
}
.card__body {
  padding: 12px 14px 14px;
}
.card__name {
  margin: 0 0 8px;
  font: 500 17px/1.15 var(--font-display);
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.card__tags span {
  padding: 4px 6px;
  border: 1px solid var(--a-line);
  font: 400 9.5px/1 var(--font-mono);
  color: var(--a-2);
}
.card__foot {
  display: flex;
  justify-content: space-between;
  font: 400 9.5px/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--a-accent);
}
.card__foot span:last-child {
  color: var(--a-2);
}

.apps {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-strong);
}
.app-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 12px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.app-row h3 {
  margin: 0 0 6px;
  font: 500 30px/1.05 var(--font-display);
  letter-spacing: -0.015em;
}
.app-row h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}
.app-row p {
  margin: 0;
}
.facts {
  margin: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  font: 400 12px/1.5 var(--font-mono);
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}
.facts dt {
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.facts dd {
  margin: 0;
  text-align: right;
}

/* ── style groups: a spec sheet, dividers over cards ───────────────────── */

.groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.group .plate {
  aspect-ratio: 3 / 2;
  background: var(--surface);
}
.group__id {
  display: flex;
  justify-content: space-between;
}
.group h3 {
  margin: 0;
  font: 500 24px/1.1 var(--font-display);
  letter-spacing: -0.01em;
}
.group p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}
.risk {
  margin-top: auto !important;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font: 400 12px/1.55 var(--font-mono) !important;
}
.risk b {
  font-weight: 500;
  color: var(--accent-text);
  letter-spacing: 0.12em;
}
.group--reference h3::before {
  content: "◈ ";
  color: var(--accent-text);
}

.manifesto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  border: 1px solid var(--line-strong);
}
.manifesto > div {
  padding: 22px 22px 26px;
  min-width: 0;
}
.manifesto > div + div {
  border-left: 1px solid var(--line-strong);
}
.manifesto h3 {
  margin: 0 0 14px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.manifesto ol,
.manifesto ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}
.manifesto li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 4px;
}
.manifesto li::before {
  font: 400 11px/1.9 var(--font-mono);
  color: var(--text-2);
}
.always li::before {
  content: "+";
  color: var(--success);
}
.never li::before {
  content: "×";
  color: var(--accent-text);
}
.manifesto ol {
  counter-reset: step;
}
.manifesto ol li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
}

/* ── bake-off ───────────────────────────────────────────────────────────── */

.bout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
}
.bout__side {
  padding: clamp(16px, 2.4vw, 28px);
  background: var(--gutter-preview);
  min-width: 0;
}
.bout__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.bout__head h3 {
  margin: 0;
  font: 500 26px/1 var(--font-display);
}
.bout__head h3 em {
  font-style: italic;
  font-weight: 400;
}
.bout__vs {
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-inline: 1px solid var(--line-strong);
  writing-mode: vertical-rl;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--bg);
}
/* Renditions are colour-isolated: their own tokens, never the page theme. */
.render {
  border: 1px solid #d7d3c9;
  min-height: 300px;
  display: grid;
  overflow: hidden;
  color-scheme: light;
}
.render--a {
  background: #f6f3ec;
  color: #1d1d1b;
  grid-template-rows: auto 1fr auto;
}
.render--b {
  background: #0f0f0e;
  color: #ece8df;
  grid-template-rows: 1fr auto;
}
.render__nav {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font: 400 9px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}
.render--a .plate {
  background: transparent;
  --plate-ink: #1d1d1b;
  --accent: #b3402a;
  min-height: 150px;
}
.render--a h4 {
  margin: 0;
  padding: 12px 14px 4px;
  font: 500 28px/1 var(--font-display);
  letter-spacing: -0.02em;
}
.render--a p {
  margin: 0;
  padding: 0 14px 14px;
  font: 400 11px/1.5 var(--font-mono);
  color: #5d5b55;
}
.render--b {
  position: relative;
}
.render--b .plate {
  position: absolute;
  inset: 0;
  background: transparent;
  --plate-ink: #ece8df;
  --accent: #e8813f;
  opacity: 0.85;
}
.render--b h4 {
  position: relative;
  align-self: start;
  margin: 0;
  padding: 18px 16px;
  font: 400 11px/1.6 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.render--b p {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  font: italic 400 30px/1 var(--font-display);
  background: linear-gradient(transparent, #0f0f0e 60%);
}
.bout__foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.bout__note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line-strong);
  border-top: 0;
}
.bout__note > div {
  padding: 18px 20px 22px;
}
.bout__note > div + div {
  border-left: 1px solid var(--line);
}
.bout__note h4 {
  margin: 0 0 6px;
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bout__note p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-2);
}

/* ── terminal handoff ──────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px clamp(24px, 5vw, 72px);
  align-items: start;
}
.prose p {
  margin: 0 0 16px;
  max-width: 34em;
}
.prose p:last-child {
  margin-bottom: 0;
}
.tasks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.tasks li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.tasks code {
  font-size: 12px;
  color: var(--accent-text);
}

.term {
  background: var(--code-bg);
  color: var(--code-fg);
  border: 1px solid var(--line-strong);
  min-width: 0;
}
.term__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 0 16px;
  border-bottom: 1px solid #3c3a35;
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--code-dim);
}
.copy {
  min-height: var(--target);
  padding: 0 16px;
  border: 0;
  border-left: 1px solid #3c3a35;
  background: transparent;
  color: var(--code-fg);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.copy:hover {
  background: #2a2a26;
}
.term pre {
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.75;
  tab-size: 2;
}
.term .c {
  color: var(--code-dim);
}
.term .p {
  color: var(--code-accent);
  user-select: none;
}
.term .ok {
  color: #7fb184;
}

/* ── leaves the suite ──────────────────────────────────────────────────── */

.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.three > article {
  padding: 26px clamp(16px, 2vw, 28px) 30px 0;
  min-width: 0;
}
.three > article + article {
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--line);
}
.three h3 {
  margin: 10px 0 12px;
  font: 500 30px/1.05 var(--font-display);
  letter-spacing: -0.015em;
}
.three p {
  margin: 0 0 16px;
  font-size: 15.5px;
}
.snippet {
  margin: 0;
  padding: 14px 16px;
  background: var(--code-bg);
  color: var(--code-fg);
  font: 400 11.5px/1.7 var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.snippet b {
  color: var(--code-accent);
  font-weight: 500;
}
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  font: 400 12px/1.5 var(--font-mono);
}
.checks li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.checks li span:last-child {
  color: var(--text-2);
  text-align: right;
}
.checks .keep {
  color: var(--success);
}
.checks .fix {
  color: var(--accent-text);
}
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 14px;
  align-items: end;
}
.slot {
  display: grid;
  gap: 6px;
  font: 400 10.5px/1.3 var(--font-mono);
  letter-spacing: 0.06em;
}
.slot i {
  display: block;
  height: 64px;
  justify-self: start;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), var(--line) calc(50% - 0.5px), var(--line) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    var(--raised);
}
.slot b {
  font-weight: 500;
}
.slot span {
  color: var(--text-2);
}

.covers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  align-items: center;
}
.covers .label {
  margin-right: 8px;
}
.covers span.tag {
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── availability ──────────────────────────────────────────────────────── */

.avail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--line-strong);
}
.avail__state {
  padding: clamp(22px, 3vw, 40px);
  border-right: 1px solid var(--line-strong);
  display: grid;
  gap: 18px;
  align-content: start;
}
.avail__state h3 {
  margin: 0;
  font: 500 clamp(32px, 3.6vw, 48px) / 1 var(--font-display);
  letter-spacing: -0.02em;
}
.avail__state p {
  margin: 0;
}
.avail__state .pill {
  justify-self: start;
}
.avail__facts code,
.section__head code {
  font-size: 0.88em;
}
.avail__facts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.avail__facts li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px 24px;
  padding: 16px clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.avail__facts li:last-child {
  border-bottom: 0;
}
.avail__facts .label {
  padding-top: 3px;
}
.nots {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.nots p {
  margin: 0;
  padding: 18px 20px 0 0;
  font-size: 14.5px;
  color: var(--text-2);
}
.nots p + p {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.nots strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font: 500 20px/1.15 var(--font-display);
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rows > li {
    grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr);
  }
  .rows .where {
    grid-column: 2 / -1;
    justify-self: start;
    text-align: left;
  }
  .nots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nots p:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .hero__body,
  .section__head,
  .split,
  .avail {
    grid-template-columns: minmax(0, 1fr);
  }
  .avail__state {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }
  .app-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .manifesto,
  .three,
  .bout__note {
    grid-template-columns: minmax(0, 1fr);
  }
  .manifesto > div + div,
  .bout__note > div + div {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  .bout__note > div + div {
    border-top-color: var(--line);
  }
  .three > article,
  .three > article + article {
    padding: 26px 0 30px;
    border-left: 0;
  }
  .three > article + article {
    border-top: 1px solid var(--line);
  }
  .bout {
    grid-template-columns: minmax(0, 1fr);
  }
  .bout__vs {
    writing-mode: horizontal-tb;
    border-inline: 0;
    border-block: 1px solid var(--line-strong);
    padding: 10px;
  }
  .app__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app__grid .card:nth-child(3) {
    display: none;
  }
  .hero__plate {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__plate .plate {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }
  .margin {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .margin dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 640px) {
  .groups,
  .nots {
    grid-template-columns: minmax(0, 1fr);
  }
  .nots p,
  .nots p + p {
    padding-left: 0;
    border-left: 0;
  }
  .rows > li {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .rows > li > p,
  .rows .where {
    grid-column: 2 / -1;
  }
  .app__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .app__grid .card:nth-child(2) {
    display: none;
  }
  .tasks li,
  .avail__facts li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .theme button {
    padding: 0 8px;
  }
  .ctas .btn {
    width: 100%;
  }
}

/* labels keep their size inside prose blocks that set paragraph type */
.three p.label {
  font-size: 11px;
  color: var(--text-2);
}
