/* Fonts: self-hosted Geist + Geist Mono (SIL OFL, see /fonts/LICENSE-*.txt). Turkish ğ ş İ live in latin-ext. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-ext-wght-normal.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-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-wght-normal.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: "Geist";
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-ext-wght-italic.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: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-latin-wght-italic.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: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-mono-latin-ext-wght-normal.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 Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/geist-mono-latin-wght-normal.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;
}

/* "Çinko ve kiremit": neutral zinc with one terracotta accent. Light by default, dark follows the system. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --text: #18181b;
  --muted: #5f5f67;
  --faint: #71717a;
  --accent: #b4532f;
  --accent-hover: #9f4828;
  --accent-text: #9f4828;
  --on-accent: #ffffff;
  --accent-wash: rgb(180 83 47 / 0.08);
  --danger: #b91c1c;
  --shadow: rgb(24 24 27 / 0.08);
  /* Code windows: VS Code "Dark Modern", the same in both page modes. */
  --code-bg: #1f1f1f;
  --code-bar: #181818;
  --code-fg: #cccccc;
  --code-ln: #6e7681;
  --code-line: #2b2b2b;
  --code-active: rgb(255 255 255 / 0.06);
  --pass: #73c991;
  --fail: #f14c4c;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #18181b;
    --surface-2: #1f1f23;
    --line: #27272a;
    --line-strong: #3f3f46;
    --text: #ececee;
    --muted: #a1a1aa;
    --faint: #8b8b94;
    --accent: #d9805d;
    --accent-hover: #e39b7d;
    --accent-text: #e39b7d;
    --on-accent: #2a1006;
    --accent-wash: rgb(217 128 93 / 0.12);
    --danger: #f87171;
    --shadow: rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-text); text-underline-offset: 3px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Buttons: one solid accent, no gradient, no glow. */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  min-height: 48px;
  padding: 12px 22px;
  font: 500 1rem/1.2 var(--sans);
  letter-spacing: -0.01em;
  color: var(--on-accent);
  background: var(--accent);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
a.btn { text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.92rem; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1.05rem; }
:where(a, button, input, select, pre, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background 0.15s ease, transform 0.15s ease; }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark .mark-bracket { stroke: currentColor; }
.brand-mark .mark-t { stroke: var(--accent); }
.brand-name { font: 600 1.05rem/1 var(--sans); letter-spacing: -0.02em; }
.nav-links { display: none; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* Hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 72px; }
@media (min-width: 1200px) {
  .hero-inner { grid-template-columns: minmax(0, 10fr) minmax(0, 15fr); align-items: center; padding-top: 80px; padding-bottom: 96px; gap: 48px; }
}

.eyebrow { margin: 0 0 18px; font: 500 0.8rem/1.4 var(--mono); color: var(--accent-text); }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.4vw, 2.6rem); margin: 0; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--accent-text); font-weight: 600; padding-right: 0.04em; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); margin: 0; text-wrap: balance; }
.lede { color: var(--muted); font-size: clamp(1rem, 1.9vw, 1.1rem); max-width: 58ch; margin: 18px 0 0; text-wrap: pretty; }

.hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  max-width: 480px;
  padding: 5px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.hero-form input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: 1rem var(--sans);
}
.hero-form input::placeholder { color: var(--faint); }
.hero-form input:focus-visible { outline-offset: 0; }
.hero-form .btn { flex: 0 0 auto; min-height: 46px; }
.fineprint { margin: 12px 0 0; font-size: 0.85rem; color: var(--faint); }

/* Code window: page-themed frame and visual pane, VS Code Dark Modern code pane. */
.win {
  container-type: inline-size;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -32px var(--shadow);
  overflow: hidden;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
  padding: 0 10px 0 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.win-dots { display: inline-flex; gap: 7px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.win-file { font: 500 0.82rem/1 var(--mono); color: var(--muted); }
.win-run {
  appearance: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent-wash);
  color: var(--accent-text);
  font: 500 0.84rem/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
}
.win-run:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.run-icon { width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.win-run[data-state="running"] .run-icon { width: 7px; height: 7px; border: 0; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .win-run[data-state="running"] .run-icon { animation: blink 0.9s steps(2) infinite; }
}
@keyframes blink { 50% { opacity: 0.25; } }

.win-body { display: grid; grid-template-columns: minmax(0, 1fr); }
@container (min-width: 620px) {
  .win-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.win-wide { margin-top: 8px; }
@container (min-width: 900px) {
  .win-wide .win-body { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

.win-viz { min-width: 0; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.viz-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.viz-label { flex-basis: 100%; font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.viz-tex { color: var(--text); font-size: 1rem; }
.viz-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: auto; }
.status { margin: 0; font: 400 0.82rem/1.5 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.status b { color: var(--text); font-weight: 600; }
.status .bad { color: var(--danger); }
svg.bowl, svg.mm { display: block; width: 100%; height: auto; }
svg.mm { max-width: 440px; margin: 0 auto; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chips-label { color: var(--muted); margin-right: 2px; }
.chip {
  appearance: none;
  min-height: 32px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  font: 500 0.84rem/1 var(--sans);
  color: var(--muted);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); box-shadow: none; }

/* Chart (gradient descent) */
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-axis { stroke: var(--line-strong); stroke-width: 1.2; }
.ch-label { fill: var(--faint); font: 400 14px var(--mono); }
.ch-hop { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.ch-label.italic { font-style: italic; }
.ch-curve { fill: none; stroke: var(--muted); stroke-opacity: 0.8; stroke-width: 2; stroke-linejoin: round; }
.ch-min { fill: var(--surface); stroke: var(--text); stroke-width: 1.4; }
.ch-start { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 2 2; }
.ch-trail { fill: none; stroke: var(--accent); stroke-opacity: 0.55; stroke-width: 1.6; stroke-dasharray: 4 4; }
.ch-dot { fill: var(--accent); }
.ch-step { fill: var(--accent-text); font: 600 15px var(--mono); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.ch-tangent { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 6 5; }
.ch-arrow { stroke: var(--accent); stroke-width: 2; }
.ch-arrowhead { fill: var(--accent); }
.ch-ball { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }

/* Code pane: VS Code Dark Modern */
.win-code { min-width: 0; display: flex; flex-direction: column; background: var(--code-bg); color: var(--code-fg); }
pre.code {
  margin: 0;
  padding: 14px 0;
  overflow-x: auto;
  font: 11.5px/1.75 var(--mono);
  counter-reset: ln;
  tab-size: 4;
  min-height: 12em;
  color: var(--code-fg);
}
.ln { display: block; position: relative; min-height: 1.75em; padding: 0 12px 0 40px; white-space: pre; }
.ln::before {
  counter-increment: ln;
  content: counter(ln);
  position: absolute;
  left: 0;
  width: 26px;
  text-align: right;
  color: var(--code-ln);
}
.ln.is-active { background: var(--code-active); box-shadow: inset 2px 0 0 var(--accent); }
.ln.is-active::before { color: #cccccc; }
.ln.is-typing::after { content: "▍"; color: #aeafad; }
.t-def, .t-const { color: #569cd6; }
.t-kw { color: #c586c0; }
.t-fn, .t-bi, .t-attr, .t-dec { color: #dcdcaa; }
.t-id { color: #9cdcfe; }
.t-num { color: #b5cea8; }
.t-str { color: #ce9178; }
.t-com { color: #6a9955; }
.t-op { color: #d4d4d4; }

.checks { list-style: none; margin: auto 0 0; padding: 12px 16px 16px; border-top: 1px solid var(--code-line); display: grid; gap: 8px; font-size: 0.86rem; color: #a0a0a0; }
.checks li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.checks .katex { color: #e6e6e6; font-size: 1em; }
.ck { width: 17px; height: 17px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #5a5a5a; display: inline-grid; place-items: center; font: 700 10px/1 var(--sans); }
[data-state="pass"] .ck { background: var(--pass); box-shadow: none; color: #1f1f1f; }
[data-state="pass"] .ck::after { content: "✓"; }
[data-state="fail"] .ck { background: var(--fail); box-shadow: none; color: #fff; }
[data-state="fail"] .ck::after { content: "✕"; }
[data-state="pass"], [data-state="fail"] { color: #d4d4d4; }
@media (prefers-reduced-motion: no-preference) {
  .ck { transition: background 0.25s ease, box-shadow 0.25s ease; }
}

/* Attention: the sentence on one line, arcs above it */
.att-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.att-head-desc { margin: 0; color: var(--muted); font-size: 0.92rem; min-height: 1.5em; }
.sent { position: relative; padding-top: 136px; overflow-x: auto; overflow-y: visible; }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.arc { fill: none; stroke: var(--accent); stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .arc { transition: stroke-dashoffset 0.9s cubic-bezier(.3, .7, .2, 1), stroke-width 0.35s ease, stroke-opacity 0.35s ease; }
}
.arc-label { font: 600 11px var(--mono); fill: var(--accent-text); text-anchor: middle; }
.toks { display: flex; justify-content: center; gap: 8px; min-width: max-content; margin: 0 auto; padding-bottom: 4px; }
.tcol { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.tok {
  appearance: none;
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  font: 500 1rem/1.2 var(--sans);
  color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  white-space: nowrap;
}
.tok:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.tok[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.heat { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.heat i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--w, 0)); }
.tscore { font: 400 0.72rem/1 var(--mono); color: var(--faint); text-align: center; min-height: 1em; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .heat i { transition: transform 0.6s cubic-bezier(.3, .7, .2, 1); }
  .tok { transition: background 0.25s ease, box-shadow 0.25s ease, color 0.2s ease; }
}
.att-caption { margin: 4px 0 0; font-size: 1.04rem; line-height: 1.5; min-height: 1.6em; color: var(--text); }
.att-caption b { color: var(--accent-text); font-weight: 600; }
.att-caption em { font-style: normal; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* GPU matmul: 3D block of multiplies */
.sm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 0.75rem/1 var(--mono); color: var(--muted); }
.sm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sm-legend .lg { width: 10px; height: 10px; border-radius: 3px; }
.sm-legend .lg.is-act { background: var(--accent); }
.sm-legend .lg.is-a { background: var(--mat-a); }
.sm-legend .lg.is-b { background: var(--mat-b); }
.sm-legend .lg.is-done { background: var(--cube-left); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sm-legend .lg.is-c { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
:root { --cube-top: #e4e4e7; --cube-left: #d4d4d8; --cube-right: #a1a1aa; --mat-a: #5b7189; --mat-b: #5f8566; }
@media (prefers-color-scheme: dark) { :root { --cube-top: #52525b; --cube-left: #3f3f46; --cube-right: #27272a; --mat-a: #8aa0b8; --mat-b: #8fb394; } }
.wall { fill: var(--surface-2); stroke: var(--line); stroke-width: 0.8; }
.wall-a { fill: color-mix(in srgb, var(--mat-a) 14%, var(--surface)); stroke: color-mix(in srgb, var(--mat-a) 30%, var(--surface)); }
.wall-b { fill: color-mix(in srgb, var(--mat-b) 14%, var(--surface)); stroke: color-mix(in srgb, var(--mat-b) 30%, var(--surface)); }
.wall-a.is-act { fill: var(--mat-a); stroke: color-mix(in srgb, var(--mat-a) 70%, black); }
.wall-b.is-act { fill: var(--mat-b); stroke: color-mix(in srgb, var(--mat-b) 70%, black); }
.wall.is-claim { stroke: var(--accent); stroke-width: 1.2; }
.wall.is-acc1 { fill: color-mix(in srgb, var(--accent) 25%, var(--surface)); stroke: var(--accent); }
.wall.is-acc2 { fill: color-mix(in srgb, var(--accent) 45%, var(--surface)); stroke: var(--accent); }
.wall.is-c { fill: color-mix(in srgb, var(--accent) 55%, var(--surface)); stroke: color-mix(in srgb, var(--accent) 70%, var(--surface)); }
.mm-edge { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.mm-edge.front { stroke-dasharray: none; stroke: var(--faint); }
.mm-label { font: 600 15px var(--mono); fill: var(--text); }
.mm-label-a { fill: var(--mat-a); }
.mm-label-b { fill: var(--mat-b); }
.mm-label-c { fill: var(--accent-text); }
.mm-axis { font: italic 600 15px var(--mono); fill: var(--muted); }
.mm-axis-line { stroke: var(--muted); stroke-width: 1.4; }
.mm-axis-head { fill: var(--muted); }
.cube { display: none; }
.cube.is-act, .cube.is-done, .cube.is-faded { display: inline; }
.cube polygon { stroke-width: 0.6; stroke-linejoin: round; }
.cube.is-act .cf-top { fill: color-mix(in srgb, var(--accent) 65%, white); stroke: var(--accent); }
.cube.is-act .cf-left { fill: var(--accent); stroke: color-mix(in srgb, var(--accent) 70%, black); }
.cube.is-act .cf-right { fill: color-mix(in srgb, var(--accent) 72%, black); stroke: color-mix(in srgb, var(--accent) 60%, black); }
.cube.is-done .cf-top, .cube.is-faded .cf-top { fill: var(--cube-top); stroke: var(--line-strong); }
.cube.is-done .cf-left, .cube.is-faded .cf-left { fill: var(--cube-left); stroke: var(--line-strong); }
.cube.is-done .cf-right, .cube.is-faded .cf-right { fill: var(--cube-right); stroke: var(--line-strong); }
.cube.is-faded { opacity: 0.12; }
@media (prefers-reduced-motion: no-preference) {
  .wall { transition: fill 0.25s ease, stroke 0.25s ease; }
  .cube.is-faded { transition: opacity 0.6s ease; }
}

/* Sections */
.section { padding: 96px 0; position: relative; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head .eyebrow { margin-bottom: 12px; }

/* Curriculum cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.card h3 { margin: 12px 0 8px; font-size: 1.15rem; letter-spacing: -0.02em; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }
.card-link { margin-top: auto; font-weight: 500; font-size: 0.9rem; text-decoration: none; }
.card-link::after { content: " ↑"; }
.tag { align-self: flex-start; font: 500 0.72rem/1 var(--mono); color: var(--accent-text); padding: 5px 9px; border-radius: 999px; background: var(--accent-wash); }

/* Final call to action */
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-inner .lede { margin-bottom: 28px; }

/* Dialog */
dialog {
  width: min(100% - 32px, 480px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px var(--shadow);
}
dialog::backdrop { background: rgb(9 9 11 / 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog h2 { font-size: 1.5rem; margin: 0 0 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
label { font-weight: 500; font-size: 0.95rem; }
.opt { color: var(--muted); font-weight: 400; }
dialog input[type="email"], dialog select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font: 1rem var(--sans);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
/* An optional dropdown left on its prompt reads as a placeholder, not an answer. */
dialog select:has(option[value=""]:checked) { color: var(--faint); }
dialog select option { color: var(--text); }
dialog select option { background: var(--surface); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.status-msg { min-height: 1.6em; margin: 12px 0; }
form[data-state="error"] .status-msg { color: var(--danger); }
form[data-state="success"] .status-msg, form[data-state="duplicate"] .status-msg { color: var(--accent-text); font-weight: 600; }
form[data-state="success"] .fields, form[data-state="success"] [type="submit"] { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; padding: 40px 0 140px; }
.footer-brand { font-family: var(--mono); color: var(--faint); }

/* Consent banner */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -16px var(--shadow);
}
.consent p { margin: 0; font-size: 0.95rem; }
.consent .btn { flex: 1; }

/* Phones */
@media (max-width: 480px) {
  .win-viz { padding: 14px 10px 12px; }
  .viz-tex { font-size: 0.92rem; }
  .tok { font-size: 0.78rem; padding: 6px 6px; min-height: 36px; border-radius: 8px; }
  .toks { gap: 3px; }
  .sent { padding-top: 104px; }
}

/* LLM animations: a bento of three self-playing cards */
.bento { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .anim-wide { grid-column: 1 / -1; } }
.anim {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  min-width: 0;
}
.anim-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.anim-head h3 { margin: 0; font-size: 1.12rem; letter-spacing: -0.02em; }
.anim-head h3 span { font: 400 0.72rem var(--mono); color: var(--faint); margin-left: 8px; letter-spacing: 0.04em; }
.anim-replay {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  min-height: 32px;
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 500 0.8rem/1 var(--sans);
  cursor: pointer;
  white-space: nowrap;
}
.anim-replay:hover { color: var(--text); }
.anim-sub { margin: 0; color: var(--muted); font-size: 0.92rem; }
.anim-status { margin: auto 0 0; font: 400 0.8rem/1.5 var(--mono); color: var(--muted); min-height: 1.5em; font-variant-numeric: tabular-nums; }
.anim-status b { color: var(--text); font-weight: 600; }

.bpe { display: flex; flex-wrap: wrap; gap: 4px; min-height: 84px; align-content: center; padding: 8px 0; }
.bpe-tok {
  font: 500 0.95rem/1 var(--mono);
  padding: 8px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
}
.bpe-tok.is-pair { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-wash); }
.bpe-tok.is-new { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.bpe-tok.base { background: var(--accent-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }
.bpe-tok.alt { background: var(--surface-2); color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .bpe-tok.is-new { animation: pop 0.28s ease-out; }
  .gen-new.is-fresh { animation: fadein 0.4s ease-out; }
  .gen-bar, .kv-cost-bar { transition: transform 0.6s cubic-bezier(.3, .7, .2, 1); }
  .kv-cell, .kv-tok { transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; }
}
@keyframes pop { from { transform: scale(0.85); } to { transform: scale(1); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.gen-text { margin: 0; font-size: 1.12rem; line-height: 1.6; min-height: 3.2em; }
.gen-prompt { color: var(--muted); white-space: pre-wrap; }
.gen-new { color: var(--text); font-weight: 600; white-space: pre-wrap; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.gen-cursor { color: var(--accent); margin-left: 1px; }
.gen-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gen-row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) 3.2em; gap: 10px; align-items: center; font: 400 0.85rem/1 var(--mono); color: var(--muted); min-height: 18px; }
.gen-row.is-top { color: var(--text); }
.gen-bar-wrap { display: block; height: 8px; }
.gen-bar { display: block; height: 100%; border-radius: 999px; background: var(--line-strong); transform-origin: left; transform: scaleX(var(--w, 0)); }
.gen-row.is-top .gen-bar { background: var(--accent); }
.gen-p { text-align: right; font-variant-numeric: tabular-nums; }

.kv { display: grid; grid-template-columns: 1.6em repeat(var(--n, 6), minmax(0, 1fr)); gap: 6px; align-items: center; }
.kv-label { font: 600 0.85rem/1 var(--mono); color: var(--muted); }
.kv-tok { font: 400 0.68rem/1.2 var(--mono); color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv-tok.is-new { color: var(--accent-text); font-weight: 600; }
.kv-tok.is-empty { opacity: 0.35; }
.kv-cell { height: 26px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); background: transparent; }
.kv-cell.is-cached { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.kv-cell.is-new { background: var(--accent); box-shadow: none; }
.kv-cost { display: grid; gap: 8px; margin-top: 4px; }
.kv-cost-row { display: grid; grid-template-columns: 7em minmax(0, 1fr) auto; gap: 10px; align-items: center; font: 400 0.8rem/1 var(--mono); color: var(--muted); }
.kv-cost-bar { display: block; height: 8px; border-radius: 999px; background: var(--line-strong); transform-origin: left; transform: scaleX(var(--w, 0)); }
.kv-cost-bar.is-accent { background: var(--accent); }
.kv-cost-value { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 5.6em; }

/* Transformer: the paper's architecture figure */
svg.tf { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; overflow: visible; }
.tf-frame { fill: color-mix(in srgb, var(--surface-2) 70%, transparent); stroke: var(--line-strong); stroke-width: 1.2; }
.tf-node.is-active .tf-frame { stroke: var(--accent); }
.tf-n { fill: var(--muted); font: italic 500 12px var(--sans); }
.tf-block rect { fill: var(--surface); stroke: var(--faint); stroke-width: 1.1; transition: fill 0.2s, stroke 0.2s; }
.tf-block.tone-att rect { fill: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.tf-block.tone-ff rect { fill: color-mix(in srgb, var(--mat-a) 16%, var(--surface)); }
.tf-block.tone-norm rect { fill: color-mix(in srgb, #a08a5c 16%, var(--surface)); }
.tf-block.tone-emb rect { fill: color-mix(in srgb, var(--mat-b) 16%, var(--surface)); }
.tf-block.is-active rect { fill: color-mix(in srgb, var(--accent) 26%, var(--surface)); stroke: var(--accent); stroke-width: 2; }
.tf-label { fill: var(--text); font: 500 11.5px var(--sans); pointer-events: none; }
.tf-small { fill: var(--faint); font: 400 10.5px var(--mono); }
.tf-wire { stroke: var(--faint); stroke-width: 1.2; fill: none; transition: stroke 0.2s; }
.tf-wire.is-active, .tf-memory.is-active { stroke: var(--accent); stroke-width: 1.8; }
.tf-res { stroke: var(--line-strong); stroke-width: 1.2; fill: none; stroke-linejoin: round; }
.tf-res.is-active { stroke: var(--accent); }
.tf-head { fill: var(--faint); }
.tf-head-soft { fill: var(--line-strong); }
.tf-add { fill: var(--surface); stroke: var(--faint); stroke-width: 1.2; }
.tf-plus { stroke: var(--text); stroke-width: 1.3; fill: none; stroke-linecap: round; }
.tf-pe.is-active .tf-add { stroke: var(--accent); stroke-width: 2; fill: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.tf-chip rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.tf-chip text { fill: var(--text); font: 500 11px var(--mono); }
.tf-chip.is-new rect { fill: var(--accent); stroke: var(--accent); }
.tf-chip.is-new text { fill: var(--on-accent); }
.tf-chip.is-attn rect { fill: color-mix(in srgb, var(--accent) calc(var(--w, 0) * 85%), var(--surface)); stroke: var(--accent); }
.tf-tokens.is-active .tf-chip rect { stroke: var(--accent); }
.tf-pulse { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; }
.tf-node[role="button"] { cursor: pointer; outline: none; }
.tf-node[role="button"]:focus-visible rect, .tf-node[role="button"]:focus-visible circle { stroke: var(--accent); stroke-width: 2.4; }
.tf-memory[role="button"]:focus-visible { stroke: var(--accent); stroke-width: 2.4; }

.tf-note { min-height: 9.5em; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); display: grid; gap: 6px; align-content: start; }
.tf-sec { margin: 0; font-size: 0.9rem; }
.tf-sec span { font: 500 0.76rem/1 var(--mono); color: var(--accent-text); margin-right: 4px; }
.tf-tex { color: var(--text); font-size: 0.98rem; overflow-x: auto; overflow-y: hidden; white-space: nowrap; padding-bottom: 2px; scrollbar-width: thin; }
.tf-say { margin: 0; font-size: 0.88rem; color: var(--muted); }
.tf-extra:empty { display: none; }
.tf-mask { display: inline-grid; grid-template-columns: auto repeat(var(--n), minmax(28px, auto)); gap: 4px 5px; align-items: center; font: 500 0.7rem/1 var(--mono); color: var(--muted); }
.tf-mask-head { text-align: center; white-space: nowrap; padding: 0 2px; }
.tf-mask-head.is-row { text-align: right; padding-right: 6px; }
.tf-mask-cell { height: 18px; border-radius: 4px; display: grid; place-items: center; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tf-mask-cell.is-on { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); box-shadow: none; }
.tf-cross { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font: 400 0.8rem/1.4 var(--mono); color: var(--muted); }
.tf-cross b { color: var(--text); font-weight: 600; }

/* Long-form pages (privacy notice) and the 404 page */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.15; }
.doc h2 { margin: 40px 0 10px; font-size: 1.2rem; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc-meta { margin: 0 0 24px; font: 400 0.82rem/1.4 var(--mono); color: var(--faint); }
.notfound { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding-top: 48px; padding-bottom: 96px; }
.notfound h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: -0.04em; line-height: 1.05; }
.notfound h1 em { color: var(--accent-text); }
.notfound .lede { margin: 10px 0 18px; }
.notfound-code { margin: 0 0 28px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--code-bg); color: var(--code-fg); font: 0.9rem/1.7 var(--mono); max-width: 100%; overflow-x: auto; }

/* Agent: the ReAct loop and its trace */
svg.ag-loop { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.ag-node rect { fill: var(--surface); stroke: var(--faint); stroke-width: 1.2; transition: fill 0.2s, stroke 0.2s; }
.ag-node text { fill: var(--text); font: 500 12px var(--sans); }
.ag-node.is-active rect { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); stroke: var(--accent); stroke-width: 2; }
.ag-node.is-exit.is-active rect { fill: var(--accent); }
.ag-node.is-exit.is-active text { fill: var(--on-accent); }
.ag-wire, .ag-arc { stroke: var(--faint); stroke-width: 1.3; fill: none; }
.ag-arc.is-active { stroke: var(--accent); stroke-width: 1.8; }
.ag-head { fill: var(--faint); }
.ag-small { fill: var(--faint); font: 400 10.5px var(--mono); }
.ag-trace { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ag-step { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 2px 12px; align-items: baseline; transition: opacity 0.3s ease; }
.ag-step.is-hidden { visibility: hidden; opacity: 0; }
.ag-role { font: 500 0.68rem/1.6 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.ag-step.is-current .ag-role { color: var(--accent-text); }
.ag-text { font-size: 0.9rem; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.kind-task .ag-text { font-weight: 600; }
code.ag-text { font: 0.8rem/1.5 var(--mono); padding: 6px 10px; border-radius: 8px; }
.kind-call code.ag-text { background: var(--code-bg); color: var(--code-fg); }
.kind-observation code.ag-text { background: var(--surface-2); color: var(--muted); box-shadow: inset 2px 0 0 var(--line-strong); }
.kind-answer .ag-text { font-weight: 600; color: var(--accent-text); }
@media (max-width: 520px) {
  .ag-step { grid-template-columns: minmax(0, 1fr); }
  #agent-demo .status { min-height: 3em; }
}
.ck-code { font: 0.76rem/1.4 var(--mono); color: #d4d4d4; }

/* Learning paths: illustrated cards, not a sequence, so no numbers. */
:root {
  --cap-bg: #18181b; --cap-fg: #f4f4f5; --cap-muted: #a1a1aa; --cap-accent: #e39b7d;
  --art-ink: #3f3f46; --art-soft: #b4b4bc; --art-paper: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --cap-bg: #0c0c0e; --art-ink: #d4d4d8; --art-soft: #52525b; --art-paper: #232328; }
}
.rgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.rcard {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cap-bg);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rcard:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-strong), 0 14px 30px -18px var(--shadow); }
@media (prefers-reduced-motion: reduce) { .rcard { transition: none; } .rcard:hover { transform: none; } }
.rcard-art { --tint: var(--faint); aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--tint) 11%, var(--surface)); }
.rcard-art[data-art="stats"] { --tint: var(--mat-a); }
.rcard-art[data-art="network"] { --tint: var(--mat-b); }
.rcard-art[data-art="transformer"] { --tint: #8a7a6c; }
.rcard-art[data-art="inference"] { --tint: #a08a5c; }
.rcard-art[data-art="gpu"] { --tint: #7c7a8c; }
.rcard-art[data-art="pipeline"] { --tint: #8a7f72; }
.rcard-art[data-art="papers"] { --tint: #8f7a82; }
.rcard-art[data-art="agents"] { --tint: #6b8584; }
.rcard-art[data-art="system"] { --tint: #737f91; }
.rcard-art svg { display: block; width: 100%; height: 100%; }
.rcard-cap { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-content: start; align-items: baseline; padding: 16px 18px 18px; color: var(--cap-fg); }
.rcard-cap h3 { margin: 0; font-size: 1.06rem; letter-spacing: -0.02em; }
.rcard-cap p { grid-column: 1 / -1; margin: 0; color: var(--cap-muted); font-size: 0.86rem; line-height: 1.55; }
.rcard-tag { font: 500 0.72rem/1 var(--mono); color: var(--cap-accent); padding: 4px 8px; border-radius: 999px; background: rgb(217 128 93 / 0.16); }
.rcard-cap p span { color: color-mix(in srgb, var(--cap-muted) 75%, var(--cap-bg)); }
.rcard-cap cite { font-style: normal; color: var(--cap-fg); }

/* The card illustrations */
.ra-label { fill: var(--art-ink); font: 500 11px var(--sans); }
.ra-small { font-size: 10px; }
.ra-mono { font-family: var(--mono); font-size: 10.5px; }
.ra-math { font-style: italic; font-family: var(--sans); }
.ra-label.is-acc { fill: var(--accent-text); }
.ra-label.is-on { fill: var(--on-accent); }
.ra-ink { stroke: var(--art-ink); stroke-width: 1.3; fill: none; stroke-linecap: round; }
.ra-guide { stroke: var(--art-soft); stroke-width: 1; stroke-dasharray: 3 3; fill: none; }
.ra-leader { stroke: var(--art-ink); stroke-width: 0.9; fill: none; }
.ra-dot { fill: var(--art-ink); }
.ra-edge { stroke: var(--art-soft); stroke-width: 0.9; }
.ra-back { stroke: var(--accent); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.ra-res { stroke: var(--art-soft); stroke-width: 1.3; fill: none; stroke-linejoin: round; }
.ra-head { fill: var(--art-ink); }
.ra-head-acc { fill: var(--accent); }
.ra-head-soft { fill: var(--art-soft); }
.ra-bar { fill: color-mix(in srgb, var(--mat-a) 30%, var(--art-paper)); }
.ra-bar.is-in { fill: color-mix(in srgb, var(--mat-a) 62%, var(--art-paper)); }
.ra-curve { stroke: var(--accent); stroke-width: 2; fill: none; }
.ra-node { fill: var(--art-paper); stroke: var(--art-ink); stroke-width: 1.2; }
.ra-node.is-acc { stroke: var(--accent); stroke-width: 1.8; }
.ra-box { fill: var(--art-paper); stroke: var(--art-ink); stroke-width: 1.2; }
.ra-box.is-acc { fill: color-mix(in srgb, var(--accent) 16%, var(--art-paper)); stroke: var(--accent); }
.ra-box.is-b { fill: color-mix(in srgb, var(--mat-b) 22%, var(--art-paper)); stroke: color-mix(in srgb, var(--mat-b) 80%, var(--art-ink)); }
.ra-box.is-norm { fill: color-mix(in srgb, var(--art-soft) 22%, var(--art-paper)); }
.ra-box.is-solid { fill: var(--accent); stroke: var(--accent); }
.ra-frame { fill: color-mix(in srgb, var(--art-paper) 55%, transparent); stroke: var(--art-soft); stroke-width: 1.2; }
.ra-chip { fill: var(--art-paper); stroke: var(--art-ink); stroke-width: 1.1; }
.ra-chip.is-acc { fill: var(--accent); stroke: var(--accent); }
.ra-cell { fill: color-mix(in srgb, var(--mat-a) 26%, var(--art-paper)); stroke: color-mix(in srgb, var(--mat-a) 60%, var(--art-paper)); stroke-width: 1; }
.ra-cell.is-acc { fill: var(--accent); stroke: var(--accent); }
.ra-cell.is-empty { fill: none; stroke: var(--art-soft); stroke-dasharray: 3 2; }
.ra-page { fill: var(--art-paper); stroke: var(--art-soft); stroke-width: 1.2; }
.ra-fill-ink { fill: var(--art-ink); }
.ra-fill-soft { fill: var(--art-soft); }
.ra-highlight { fill: color-mix(in srgb, var(--accent) 20%, transparent); }
.ra-dash { stroke-dasharray: 4 3; }
.ra-code { fill: var(--code-bg); }
.ra-code-dot { fill: #3c3c3c; }
.ra-code-t { font: 400 9.5px var(--mono); fill: var(--code-fg); white-space: pre; }
.ra-def { fill: #569cd6; }
.ra-kw { fill: #c586c0; }
.ra-fn { fill: #dcdcaa; }
.ra-id { fill: #9cdcfe; }
.ra-op { fill: #d4d4d4; }
.ra-face { stroke: color-mix(in srgb, var(--art-ink) 45%, transparent); stroke-width: 0.6; stroke-linejoin: round; }
.ra-face.is-pkg.top { fill: color-mix(in srgb, var(--mat-b) 30%, var(--art-paper)); }
.ra-face.is-pkg.right { fill: color-mix(in srgb, var(--mat-b) 55%, var(--art-paper)); }
.ra-face.is-pkg.left { fill: color-mix(in srgb, var(--mat-b) 75%, var(--art-ink)); }
.ra-face.is-die.top { fill: color-mix(in srgb, var(--art-ink) 82%, var(--art-paper)); }
.ra-face.is-die.right, .ra-face.is-die.left { fill: var(--art-ink); }
.ra-face.sm { fill: color-mix(in srgb, var(--mat-a) 55%, var(--art-paper)); stroke: none; }
.ra-face.sm.is-hot { fill: var(--accent); }
.ra-face.is-mem.top { fill: color-mix(in srgb, var(--mat-a) 30%, var(--art-paper)); }
.ra-face.is-mem.right { fill: color-mix(in srgb, var(--mat-a) 60%, var(--art-paper)); }
.ra-face.is-mem.left { fill: color-mix(in srgb, var(--mat-a) 85%, var(--art-ink)); }
.ra-face.is-sink.top, .ra-face.is-fin.top { fill: var(--art-paper); }
.ra-face.is-sink.right, .ra-face.is-fin.right { fill: color-mix(in srgb, var(--art-soft) 45%, var(--art-paper)); }
.ra-face.is-sink.left, .ra-face.is-fin.left { fill: color-mix(in srgb, var(--art-soft) 80%, var(--art-paper)); }
