/* ─────────────────────────────────────────────────────────────────
   talktalk — editorial zine, mono everywhere
   ───────────────────────────────────────────────────────────────── */

:root {
  /* cool slate palette — dark editorial, Fira Code */
  --tin-1:        oklch(18% 0.012 250);
  --tin-2:        oklch(26% 0.015 250);
  --tin-3:        oklch(50% 0.020 250);
  --tin-4:        oklch(45% 0.050 235);
  --tin-5:        oklch(55% 0.080 220);
  --tin-6:        oklch(60% 0.100 215);
  --tin-7:        oklch(80% 0.110 210);
  --tin-8:        oklch(92% 0.050 220);
  --tin-9:        oklch(95% 0.030 220);
  --tin-10:       oklch(96% 0.020 220);
  --tin-11:       oklch(95% 0.010 240);
  --tin-12:       oklch(85% 0.010 240);

  --paper:        var(--tin-1);
  --paper-2:      oklch(22% 0.013 250);
  --paper-edge:   oklch(28% 0.015 250);
  --ink:          oklch(97% 0.005 240);
  --ink-2:        var(--tin-11);
  --ink-mute:     var(--tin-3);
  --ink-rule:     var(--tin-2);
  --hair:         rgba(200,215,240,0.08);
  --hair-2:       rgba(200,215,240,0.18);

  --accent:       oklch(88.4% 0.31 220);
  --accent-ink:   var(--tin-1);
  --accent-soft:  var(--tin-6);

  /* syntax palette (matches current wip.talktalk.fyi tokens) */
  --s-bg:         rgb(5% 5% 7%);
  --s-bg-edge:    var(--tin-2);
  --s-fg:         oklch(96.816% 0.00355 220.931);
  --s-kw:         oklch(77% 0.156 12.4);
  --s-str:        oklch(88.4% 0.31 220);
  --s-num:        oklch(95% 0.217 48.1);
  --s-com:        oklch(61.539% 0.03627 241.494);
  --s-fn:         oklch(83.491% 0.14808 330.328);
  --s-type:       oklch(91.1% 0.267 260);
  --s-param:      oklch(65.217% 0.17683 257.397);
  --s-decorator:  oklch(90.983% 0.13819 182.575);
  --s-punct:      var(--tin-11);
  --s-effect:     oklch(78.916% 0.13222 230.749);

  --tick:         0.95rem;
  --rule:         1.2px;
  --col:          112ch;

  --font-body:    'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-head:    'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-code:    'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ─── base ───────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "liga" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content:"";
  position: fixed; inset:0;
  background-image:
    radial-gradient(rgba(210,222,255,0.025) 1px, transparent 1px),
    radial-gradient(rgba(210,222,255,0.018) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

main, header, footer, aside { position: relative; z-index: 1; }

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

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

/* ─── layout shell ───────────────────────────────────────────────── */
.shell {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 28px;
}

.rule { border: 0; border-top: var(--rule) solid var(--ink-rule); margin: 0; }
.rule--hair { border-top-color: var(--hair-2); }

/* ─── top chrome ─────────────────────────────────────────────────── */
.topbar {
  border-bottom: var(--rule) solid var(--ink-rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar__inner {
  display: flex; align-items: center; gap: 24px;
  height: 52px;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 15px;
  display: inline-flex; align-items: baseline; gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark .owl { font-size: 14px; opacity: 0.85; }
.wordmark .dot { color: var(--accent); }
.wordmark .ver {
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--ink-rule);
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0;
  transform: translateY(-1px);
}
nav.topnav {
  display: flex; gap: 20px; margin-left: auto;
  font-size: 13px;
  align-items: center;
}
nav.topnav a { text-decoration: none; color: var(--ink-2); }
nav.topnav a:hover { color: var(--accent); }
nav.topnav .sep { color: var(--hair-2); user-select: none; }

.github-pill {
  font-size: 11px;
  padding: 4px 9px;
  border: 1px solid var(--ink-rule);
  text-decoration: none !important;
  color: var(--ink) !important;
  background: var(--paper);
}
.github-pill:hover { background: var(--ink); color: var(--paper) !important; }

/* ─── masthead ─────────────────────────────────────────────────── */
.masthead {
  padding: 18px 0 14px;
  border-bottom: var(--rule) solid var(--ink-rule);
}
.masthead__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 20px;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.masthead__left  { text-align: left; }
.masthead__right { text-align: right; }
.masthead__title {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.88;
  text-align: center;
  margin: 8px 0 4px;
}
.masthead__title .dot { color: var(--accent); }
.masthead__sub {
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.masthead__sub em { font-style: italic; color: var(--ink-mute); }

/* ─── hero ─────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 520px;
  border-bottom: var(--rule) solid var(--ink-rule);
}
.hero__pitch {
  padding: 40px 36px 40px 0;
  border-right: var(--rule) solid var(--ink-rule);
  display: flex; flex-direction: column; gap: 18px;
}
.hero__kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 10px;
}
.hero__kicker::before {
  content: "";
  width: 24px; height: 1px; background: var(--ink-rule);
}
.hero__head {
  font-family: var(--font-head);
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  text-wrap: balance;
}
.hero__head .u { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero__head del, .hero__head s { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--ink-mute); }
.hero__lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
}
.hero__lede p { margin: 0 0 10px; }
.hero__lede p:last-child { color: var(--ink-mute); }

.hero__meta {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--rule) dashed var(--hair-2);
  padding-top: 14px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__meta > div { padding-right: 12px; }
.hero__meta strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 2px;
}

.hero__cta {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px;
}

.btn {
  font-family: var(--font-body);
  font-size: 13px;
  padding: 9px 14px;
  border: 1px solid var(--ink-rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0;
  transition: transform 80ms ease, background 80ms ease, color 80ms ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--ghost { border-color: var(--hair-2); }
.btn .kbd {
  font-size: 11px; padding: 1px 5px;
  border: 1px solid currentColor;
  opacity: 0.6;
}

/* ─── hero right: playground ─────────────────────────────────────── */
.hero__play {
  padding: 28px 0 28px 36px;
  display: flex; flex-direction: column;
  min-width: 0;
}

.playground {
  display: flex; flex-direction: column;
  min-height: 440px;
  border: var(--rule) solid var(--ink-rule);
  background: var(--s-bg);
  position: relative;
  overflow: hidden;
}
.playground__head {
  display: flex; align-items: center;
  border-bottom: var(--rule) solid var(--ink-rule);
  background: var(--paper-2);
  padding: 0 10px;
  height: 32px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.playground__title { font-weight: 600; color: var(--ink); letter-spacing: 0.04em; margin-left: 10px; }
.playground__dots { display: flex; gap: 6px; margin-right: 10px; }
.playground__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-rule); opacity: 0.4; }
.playground__dots span:first-child { background: var(--accent); opacity: 1; }

.playground > .runnable {
  border: none;
  background: transparent;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}
.playground > .runnable .snippet__head { display: none; }

/* ─── sections ───────────────────────────────────────────────────── */
.section {
  padding: calc(var(--tick) * 3.5) 0 calc(var(--tick) * 3) 0;
  border-bottom: var(--rule) solid var(--ink-rule);
}
.section__head {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: baseline;
  margin-bottom: calc(var(--tick) * 1.8);
}
.section__num {
  font-family: var(--font-head);
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.section__title {
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.section__title .small { font-size: 14px; color: var(--ink-mute); margin-left: 10px; letter-spacing: 0; font-weight: 400; }
.section__meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
}

/* ─── goals grid ─────────────────────────────────────────────────── */
.goals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hair-2);
  border-left: 1px solid var(--hair-2);
}
.goal {
  padding: calc(var(--tick) * 1.2) calc(var(--tick) * 1.2);
  border-right: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair-2);
  min-height: 120px;
  position: relative;
  background: var(--paper);
}
.goal__mark {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.goal--non .goal__mark { color: var(--ink-mute); }
.goal__title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: 0;
}
.goal__title .idx {
  display: inline-block;
  width: 26px; color: var(--ink-mute); font-weight: 400;
}
.goal__body { font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.goal__body p { margin: 0; }
.goal--non .goal__title { color: var(--ink-mute); text-decoration: line-through; text-decoration-color: var(--hair-2); text-decoration-thickness: 1px; }
.goal--non .goal__title .idx { text-decoration: none; display: inline-block; }

/* ─── tour ───────────────────────────────────────────────────────── */
.tour {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}
.tour__nav {
  border-right: 1px solid var(--hair-2);
  position: sticky;
  top: 72px;
  align-self: start;
  padding-right: 20px;
}
.tour__nav ol {
  list-style: none; padding: 0; margin: 0;
  font-size: 12.5px;
}
.tour__nav li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--hair);
  display: flex;
  gap: 8px;
  color: var(--ink-2);
  cursor: pointer;
}
.tour__nav li:hover { color: var(--accent); }
.tour__nav li.is-active { color: var(--accent); font-weight: 600; }
.tour__nav li .n { color: var(--ink-mute); min-width: 22px; }

.tour__body { padding-left: 28px; min-width: 0; }
.tour__item { margin-bottom: calc(var(--tick) * 2.2); }
.tour__item h3 {
  font-family: var(--font-head);
  font-size: 18px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.tour__item > p {
  font-size: 13.5px; color: var(--ink-2); max-width: 70ch; margin: 0 0 14px;
}

/* ─── snippet / runnable code block ────────────────────────────── */
.snippet,
.runnable {
  border: var(--rule) solid var(--ink-rule);
  background: var(--s-bg);
  display: flex; flex-direction: column;
  margin: 0 0 14px;
  position: relative;
}
.snippet__head {
  display: flex; align-items: center;
  padding: 0 10px;
  height: 28px;
  border-bottom: 1px solid var(--s-bg-edge);
  background: var(--paper-2);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  gap: 10px;
}
.snippet__head .file { font-weight: 600; color: var(--ink-2); letter-spacing: 0.04em; }
.snippet__head .lang { margin-left: auto; }

.snippet__body {
  display: grid;
  grid-template-columns: 30px 1fr;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.6;
  color: var(--s-fg);
}
.snippet__gutter {
  padding: 10px 6px 10px 0;
  text-align: right;
  color: var(--ink-mute);
  opacity: 0.45;
  font-size: 10.5px;
  line-height: 1.6;
  border-right: 1px solid var(--s-bg-edge);
  white-space: pre;
  user-select: none;
}
.snippet__code {
  padding: 10px 14px;
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
  margin: 0;
}

/* Runnable editor overlay — must preserve the absolute-layered editable/highlight pattern */
.runnable .code-block,
.snippet .code-block {
  position: relative;
  overflow: hidden;
  tab-size: 2;
  line-height: 1.6;
  font-size: 0; /* collapse inter-element whitespace in HTML source */
}
.runnable .code-highlight,
.runnable .code-editable,
.snippet .code-highlight,
.snippet .code-editable {
  box-sizing: border-box;
  display: block;
  line-height: 1.6;
  white-space: pre;
  width: 100%;
  font-family: var(--font-code);
  font-size: 13px;
  tab-size: 2;
  margin: 0;
  padding: 10px 14px;
}
.runnable .code-highlight,
.snippet .code-highlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  color: var(--s-fg);
}
.runnable .code-diagnostics,
.snippet .code-diagnostics {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.runnable .diag-underline,
.snippet .diag-underline {
  position: absolute;
  height: 2px;
  background: oklch(70% 0.22 20);
  border-radius: 2px;
}
.runnable .diag-underline[data-severity="warning"],
.snippet .diag-underline[data-severity="warning"] {
  background: oklch(82% 0.18 80);
}
.runnable .diag-underline[data-severity="info"],
.snippet .diag-underline[data-severity="info"] {
  background: oklch(78% 0.12 250);
}
.runnable .code-editable,
.snippet .code-editable {
  position: relative;
  color: transparent;
  background: transparent;
  border: none;
  caret-color: var(--ink);
  z-index: 1;
  outline: none;
  overflow-x: auto;
  overflow-y: hidden;
  resize: none;
}
.runnable .code-editable::selection,
.snippet .code-editable::selection {
  background: rgba(255, 255, 255, 0.2);
  color: transparent;
}

.snippet__tray,
.runnable .actions {
  border-top: 1px solid var(--s-bg-edge);
  background: var(--paper-2);
  display: flex;
  padding: 0;
  gap: 0;
  font-size: small;
}
.snippet__tray button,
.runnable .actions button {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--s-bg-edge);
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.snippet__tray button:hover,
.runnable .actions button:hover {
  color: var(--ink);
  background: var(--paper);
}
.snippet__tray button[data-primary],
.runnable .actions button[data-primary] {
  color: var(--ink);
}
.snippet__tray button[data-primary]:hover,
.runnable .actions button[data-primary]:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.snippet__tray .spacer,
.runnable .actions .spacer { flex: 1; }
.snippet__tray .note {
  padding: 7px 12px; font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.04em; text-transform: uppercase;
  border-left: 1px solid var(--s-bg-edge);
}

.snippet__out,
.runnable .result {
  border-top: 1px dashed var(--hair-2);
  background: var(--paper);
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--ink-2);
  padding: 8px 14px;
  line-height: 1.55;
  display: none;
}
.snippet__out:not(:empty),
.runnable .result:not(:empty),
.runnable .result.active { display: block; }
.runnable .result > pre {
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.runnable .result > pre + pre { margin-top: 4px; }
.runnable .result .ir { font-size: 11px; overflow-x: auto; white-space: pre; max-height: 320px; }
.snippet__out .arrow,
.runnable .result .arrow { color: var(--accent); font-weight: 600; margin-right: 2px; }
.snippet__out .muted,
.runnable .result .muted { color: var(--ink-mute); }

.runnable .diagnostics-list {
  padding: 0 14px 12px 14px;
  color: var(--ink-mute);
  font-size: small;
}
.runnable .diagnostic-item { margin: 0.8ex 0; }
.runnable .diagnostic-message { color: oklch(85% 0.2 20); font-weight: 400; }
.runnable .diagnostic-item[data-severity="warning"] .diagnostic-message { color: oklch(90% 0.18 80); }
.runnable .diagnostic-item[data-severity="info"] .diagnostic-message { color: oklch(88% 0.12 250); }


/* ─── syntax token colors (match current wip.talktalk.fyi) ─────── */
pre,
code,
.code-editable {
  font-family: var(--font-code);
  font-weight: 400;
  font-style: normal;
  color: var(--s-fg);
}

pre .keyword            { color: var(--s-kw); }
pre .number             { color: var(--s-num); }
pre .comment            { color: var(--s-com); font-style: italic; }
pre .string             { color: var(--s-str); }
pre .self,
pre .type,
pre .interface,
pre .type_parameter     { color: var(--s-type); }
pre .parameter          { color: var(--s-param); }
pre .decorator          { color: var(--s-decorator); }
pre .effect             { color: var(--s-effect); }
pre .enum_member,
pre .method,
pre .function           { color: var(--s-fn); }
pre .operator           { color: var(--s-punct); }
pre .variable           { color: var(--s-fg); }

.tok-kw     { color: var(--s-kw); font-weight: 600; }
.tok-type   { color: var(--s-type); font-weight: 500; }
.tok-str    { color: var(--s-str); }
.tok-num    { color: var(--s-num); }
.tok-com    { color: var(--s-com); font-style: italic; }
.tok-fn     { color: var(--s-fn); }
.tok-punct  { color: var(--s-punct); }
.tok-effect { color: var(--s-effect); font-weight: 500; }
.tok-prop   { color: var(--s-fg); }

/* ─── pipeline ───────────────────────────────────────────────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--hair-2);
  margin-bottom: 26px;
}
.pipeline__stage {
  padding: 18px 14px 16px;
  border-right: 1px solid var(--hair-2);
  position: relative;
  background: var(--paper);
  cursor: pointer;
  min-height: 128px;
}
.pipeline__stage:last-child { border-right: 0; }
.pipeline__stage.is-active { background: var(--paper-2); }
.pipeline__stage.is-active::after {
  content:""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 3px; background: var(--accent);
}
.pipeline__num { font-size: 10px; letter-spacing: 0.12em; color: var(--ink-mute); text-transform: uppercase; }
.pipeline__name { font-family: var(--font-head); font-weight: 600; font-size: 15px; margin: 4px 0 6px; }
.pipeline__hint { font-size: 11.5px; color: var(--ink-2); line-height: 1.4; }
.pipeline__arrow {
  position: absolute; top: 50%; right: -8px; width: 16px; height: 16px;
  background: var(--paper);
  border: 1px solid var(--hair-2);
  border-radius: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  z-index: 2;
  font-size: 10px;
  color: var(--ink-mute);
}
.pipeline__stage:last-child .pipeline__arrow { display: none; }

.pipeline-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pipeline-view__panel {
  border: 1px solid var(--hair-2);
  padding: 0;
  background: var(--paper);
}
.pipeline-view__panel h4 {
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hair-2);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--paper-2);
  font-weight: 600;
}
.pipeline-view__panel pre {
  margin: 0; padding: 12px;
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
  overflow: auto;
  max-height: 260px;
  color: var(--ink);
}

/* ─── roadmap ────────────────────────────────────────────────────── */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair-2);
  border-left: 1px solid var(--hair-2);
}
.roadmap__item {
  padding: 18px 16px;
  border-right: 1px solid var(--hair-2);
  border-bottom: 1px solid var(--hair-2);
  background: var(--paper);
  position: relative;
}
.roadmap__tag {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-block; margin-bottom: 8px;
  padding: 1px 7px;
  border: 1px solid var(--hair-2);
}
.roadmap__item[data-status="planned"] .roadmap__tag { color: var(--accent); border-color: var(--accent); }
.roadmap__item[data-status="partial"] .roadmap__tag { color: var(--ink); border-color: var(--ink-rule); background: var(--paper-2); }
.roadmap__item[data-status="missing"] .roadmap__tag { color: var(--ink-mute); }
.roadmap__item[data-status="non-goal"] .roadmap__tag { color: var(--ink-mute); opacity: 0.65; }
.roadmap__title { font-family: var(--font-head); font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.roadmap__body { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.roadmap__body p { margin: 0; }

/* ─── install ────────────────────────────────────────────────────── */
.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.install-card {
  border: 1px solid var(--hair-2);
  background: var(--paper);
}
.install-card__head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--hair-2);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: space-between;
}
.install-card__body {
  padding: 14px;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
.install-card__body .p { color: var(--ink-mute); }
.install-card__body .ok { color: var(--accent); }
.install-steps {
  counter-reset: step;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  list-style: decimal;
  margin: 0;
}
.install-steps li { margin-bottom: 10px; }
.install-steps li strong { color: var(--ink); font-weight: 600; }
.install-steps code {
  font-family: var(--font-code); font-size: 12px;
  padding: 1px 5px; background: var(--paper-2);
  border: 1px solid var(--hair-2);
}

/* ─── helpers ────────────────────────────────────────────────────── */
.dim { color: var(--ink-mute); }
.u-accent { color: var(--accent); }
.u-small { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }

code.inline, p code, li code {
  font-family: var(--font-code);
  font-size: 0.92em;
  padding: 1px 5px;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 2px;
  color: var(--ink);
}

/* ─── token hover HUD ───────────────────────────────────────────── */
.token-hud {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--ink-rule);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  font-size: 0.75rem;
  line-height: 1.3;
  max-width: min(48ch, 90vw);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.token-hud[data-active="false"] { opacity: 0.65; }

/* ─── scrollbars in code blocks ─────────────────────────────────── */
.snippet__code::-webkit-scrollbar,
.code-editable::-webkit-scrollbar,
.code-block::-webkit-scrollbar { height: 6px; }
.snippet__code::-webkit-scrollbar-thumb,
.code-editable::-webkit-scrollbar-thumb,
.code-block::-webkit-scrollbar-thumb { background: var(--hair-2); }

/* ─── responsive ────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero__pitch { border-right: 0; border-bottom: var(--rule) solid var(--ink-rule); padding: 30px 0; }
  .hero__play { padding: 24px 0; }
  .goals, .install { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .tour { grid-template-columns: 1fr; }
  .tour__nav { display: none; }
  .tour__body { padding-left: 0; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline-view { grid-template-columns: 1fr; }
  .section__head { grid-template-columns: 60px 1fr; }
  .section__meta { display: none; }
}
