@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist-mono:vf@5.3.0/latin-wght-normal.woff2") format("woff2-variations");
  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;
}

:root {
  --bg: #000000;
  --text: #e6e6e6;
  --muted: rgba(230, 230, 230, 0.55);
  --faint: rgba(230, 230, 230, 0.32);
  --line: rgba(230, 230, 230, 0.22);
  --fill: #141414;
  --font: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-read: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --ui: 0.875rem;
  --read: 1.125rem;
  --lh-ui: 1.7;
  --lh-read: 1.8;
  --measure: 42rem;
  --wide: 64rem;
  --track: 0.04em;
  --gap: 1.25rem;
  --gutter: 1.25rem;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--ui);
  font-weight: 400;
  line-height: var(--lh-ui);
  letter-spacing: 0.01em;
  font-feature-settings: "ss01" on, "calt" on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  opacity: 0.72;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  background: var(--text);
  color: var(--bg);
  padding: 0.4rem 0.7rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.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;
}

.measure {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  max-width: 100%;
  margin-inline: auto;
}

.measure-wide {
  width: min(var(--wide), calc(100% - 2 * var(--gutter)));
  max-width: 100%;
  margin-inline: auto;
}

.muted {
  color: var(--muted);
}

/* Nav — YC events bar: mark centered, links right */
.site-bar {
  position: relative;
  min-height: 4.5rem;
  padding: 1.25rem 0 0.5rem;
}

.site-bar-inner {
  width: min(var(--wide), calc(100% - 2 * var(--gutter)));
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 1.5rem;
  gap: 1.25rem;
}

.brand {
  font-size: var(--ui);
  letter-spacing: var(--track);
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: underline;
  opacity: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  min-width: 0;
}

.nav-link {
  font-size: var(--ui);
  letter-spacing: var(--track);
  text-decoration: none;
  color: var(--text);
}

.nav-link:hover {
  text-decoration: underline;
  opacity: 1;
}

.nav-link.is-active {
  opacity: 0.55;
}

/* Hero */
.hero {
  padding: 2.75rem 0 0.5rem;
}

.hero-compact {
  padding: 3rem 0 0;
}

.hero-title {
  margin: 0 0 0.85rem;
  font-size: var(--ui);
  font-weight: 400;
  letter-spacing: var(--track);
  line-height: 1.6;
}

.hero-title + .pixel-banner {
  margin-top: 2.15rem;
}

.hero-meta {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  color: var(--text);
}

.hero-meta li {
  margin: 0;
  letter-spacing: var(--track);
}

.kicker {
  margin: 0 0 1.5rem;
  font-size: var(--ui);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.7;
}

.block {
  padding: 2.5rem 0 1rem;
}

.hero-compact + .block {
  padding-top: 2rem;
}

/* Pixel mosaic — events page banner */
.pixel-banner {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.pixel-banner--hero {
  aspect-ratio: 48 / 8;
}

.pixel-banner--featured {
  aspect-ratio: 48 / 10;
}

.pixel-banner--card {
  aspect-ratio: auto;
}

.pixel-banner--rule {
  aspect-ratio: 48 / 6;
  margin-top: 2rem;
}

.pixel-banner--cover {
  aspect-ratio: 48 / 8;
  display: block;
}

/* Featured — OpenAI lead story, YC events type */
.featured {
  margin: 0 0 3rem;
}

.featured-media {
  display: block;
  text-decoration: none;
  background: var(--fill);
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.featured-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-title {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-read);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: pretty;
}

.featured-title a {
  text-decoration: none;
}

.featured-title a:hover {
  text-decoration: underline;
  opacity: 1;
}

.featured-excerpt {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-read);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  letter-spacing: 0.01em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: var(--track);
}

.meta a {
  color: inherit;
  text-decoration: none;
}

.meta a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* OpenAI-style series row */
.hero-compact .series-nav {
  margin-top: 2rem;
  margin-bottom: 0;
}

.series-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0 0 2.5rem;
  letter-spacing: var(--track);
}

.series-link {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.series-link:hover {
  text-decoration: underline;
  opacity: 1;
}

.series-link.is-on {
  text-decoration: none;
  color: var(--muted);
}

.related {
  margin: 0 0 2.5rem;
}

/* OpenAI-style card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
  margin: 0 0 3rem;
}

.card {
  min-width: 0;
}

.card-media {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--fill);
  margin-bottom: 0.85rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.card-media img,
.card-media canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-read);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-wrap: pretty;
}

.card-title a {
  text-decoration: none;
}

.featured-title a {
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
  opacity: 1;
}

.card .meta {
  margin: 0;
}

/* YC knowledge list */
.row-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.row-list:empty {
  display: none;
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
}

.row:hover {
  opacity: 1;
}

.row:hover .row-title {
  text-decoration: underline;
}

.row-title {
  font-size: 1rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.row-meta {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: var(--track);
}

.row-arrow {
  color: var(--text);
}

.year-mark {
  margin: 2.5rem 0 0.75rem;
  font-size: var(--ui);
  font-weight: 400;
  letter-spacing: var(--track);
  color: var(--muted);
}

/* Button — events page outline CTA */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0 1.25rem;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: var(--ui);
  letter-spacing: var(--track);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 1;
}

.cta-wrap {
  margin: 3.5rem 0 0;
}

.hero .cta-wrap {
  margin-top: 2rem;
}

/* Pagination */
.pager {
  margin: 2.5rem 0 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: var(--track);
}

.pager .page-number,
.pager .extend,
.pager .space {
  display: none;
}

.pager .prev,
.pager .next {
  text-decoration: underline;
}

.pager .next {
  margin-left: auto;
}

/* Post — Kimi K3 column: 760px copy, ~1105px figures */
.page,
.post,
.post-hero,
.post-well,
.prose {
  max-width: 100%;
  min-width: 0;
}

.post {
  padding-bottom: 5rem;
}

.post-well {
  width: min(1040px, calc(100% - 2 * var(--gutter)));
  max-width: 100%;
  margin-inline: auto;
}

.post-copy,
.post-foot {
  max-width: 760px;
  margin-inline: auto;
}

.post-hero {
  padding: 3.5rem 0 0.5rem;
}

.post-cover {
  position: relative;
  margin: 0 0 1.5rem;
  background: var(--fill);
  overflow: hidden;
}

.post-head {
  max-width: 760px;
  margin: 0 auto 0.25rem;
}

.post-cover-copy {
  display: none;
}

.post-title {
  margin: 0.35rem 0 0;
  font-family: var(--font-read);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

.post-cover .post-title {
  margin: 0;
  max-width: 40rem;
}

.lede {
  margin: 0.85rem 0 0;
  max-width: 760px;
  padding: 0;
  font-family: var(--font-read);
  font-size: 1.0625rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.prose {
  font-family: var(--font-read);
  font-size: 1.0625rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.prose-ui {
  font-family: var(--font);
  font-size: var(--ui);
  line-height: var(--lh-ui);
  letter-spacing: 0.01em;
}

.prose-ui p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose p,
.prose h2,
.prose h3,
.prose h4,
.prose ul,
.prose ol,
.prose blockquote {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.prose p {
  margin-top: 0.9em;
  margin-bottom: 0;
  text-wrap: pretty;
}

.prose h2,
.prose h3,
.prose h4 {
  font-weight: 500;
  letter-spacing: normal;
  text-wrap: pretty;
}

.prose h2 {
  font-size: 1.5rem;
  line-height: 1.35;
  margin-top: 2.75rem;
}

.prose h3 {
  font-size: 22px;
  line-height: 28px;
  margin-top: 48px;
}

.prose h4 {
  font-size: 17px;
  line-height: 28px;
  margin-top: 32px;
  color: var(--muted);
}

.prose ul,
.prose ol {
  margin-top: 16px;
  padding-left: 1.4em;
}

.prose li {
  margin: 0.4em 0;
}

.prose li::marker {
  color: var(--muted);
}

.prose blockquote {
  margin-top: 16px;
  padding: 0.15em 0 0.15em 1.1em;
  border-left: 1px solid var(--text);
  color: var(--muted);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}

.prose a {
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.prose img {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  width: 100%;
}

.prose h1 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 500;
  margin-top: 0;
}

.prose .desmos-graph,
.prose .gpt-graph,
.prose .timeline,
.prose .steps,
.prose .callout,
.prose pre.mermaid,
.prose .mermaid {
  margin: 28px 0 8px;
  max-width: 100%;
}

.timeline {
  list-style: none;
  margin-left: auto;
  margin-right: auto;
  padding: 0.25rem 0 0.25rem 0;
  max-width: 760px;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.75rem 1.4rem;
  border-left: 1px solid var(--line);
}

.timeline-item:last-child {
  padding-bottom: 0.15rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.45rem;
  width: 7px;
  height: 7px;
  background: var(--text);
}

.timeline-when {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: var(--track);
}

.timeline-title {
  margin: 0;
  font-weight: 500;
}

.timeline-body {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.timeline-body p {
  margin-top: 0.35rem;
  max-width: none;
}

.steps {
  list-style: none;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  max-width: 760px;
}

.step-item {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.step-item:last-child {
  border-bottom: 1px solid var(--line);
}

.step-index {
  color: var(--muted);
  letter-spacing: var(--track);
  padding-top: 0.15rem;
}

.step-title {
  margin: 0;
  font-weight: 500;
}

.step-body {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.step-body p {
  margin-top: 0.35rem;
  max-width: none;
}

.callout {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--fill);
}

.callout p {
  margin-top: 0;
  max-width: none;
}

.callout p + p {
  margin-top: 0.75rem;
}

.source-block,
.source-card,
.fold,
.prose details {
  max-width: 760px;
  margin: 28px auto 8px;
  border: 1px solid var(--line);
}

.source-block {
  background: transparent;
}

.source-block .source-card,
.source-block .fold {
  margin: 0;
  max-width: none;
  border: 0;
}

.source-block .source-card {
  border-bottom: 1px solid var(--line);
}

.source-card {
  padding: 1.1rem 1.15rem 1.2rem;
  background: var(--fill);
}

.source-kicker {
  margin: 0 0 0.55rem;
  color: var(--muted);
  letter-spacing: var(--track);
}

.source-title {
  margin: 0;
  font-weight: 500;
}

.source-title a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.source-meta {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: var(--track);
}

.fold,
.prose details {
  background: transparent;
}

.fold > summary,
.prose details > summary {
  padding: 1rem 1.15rem;
  cursor: pointer;
  letter-spacing: var(--track);
  list-style: none;
}

.fold > summary::-webkit-details-marker,
.prose details > summary::-webkit-details-marker {
  display: none;
}

.fold > summary::after,
.prose details > summary::after {
  content: " +";
  color: var(--muted);
}

.fold[open] > summary::after,
.prose details[open] > summary::after {
  content: " −";
}

.fold[open] > summary,
.prose details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.fold-body {
  padding: 1.25rem 1.15rem 1.6rem;
}

.fold-body > *:first-child {
  margin-top: 0;
}

.fold-body h1 {
  font-size: 22px;
  line-height: 28px;
  margin-top: 2rem;
}

.fold-body h2 {
  font-size: 18px;
  line-height: 26px;
  margin-top: 1.75rem;
}

.fold-body p {
  max-width: none;
}

.prose .source-block,
.prose .source-card,
.prose .fold,
.prose details {
  margin-left: auto;
  margin-right: auto;
}

.prose pre.mermaid,
.prose .mermaid {
  padding: 1.75rem 1.35rem 1.5rem;
  overflow-x: auto;
  background: #000;
  border: 1px solid var(--line);
  text-align: center;
}

.prose .mermaid svg {
  max-width: 100%;
  height: auto;
  font-family: var(--font);
}

.prose .mermaid .node rect,
.prose .mermaid .node polygon,
.prose .mermaid .label-container,
.prose .mermaid .basic.label-container,
.prose .mermaid .cluster rect {
  rx: 0 !important;
  ry: 0 !important;
}

.prose .mermaid .node rect,
.prose .mermaid .node polygon,
.prose .mermaid .label-container {
  fill: var(--fill) !important;
  stroke: var(--line) !important;
  stroke-width: 1px !important;
}

.prose .mermaid .cluster rect {
  fill: #0a0a0a !important;
  stroke: rgba(230, 230, 230, 0.18) !important;
  stroke-width: 1px !important;
}

.prose .mermaid .edgePath .path,
.prose .mermaid .flowchart-link,
.prose .mermaid line,
.prose .mermaid .relation {
  stroke: var(--muted) !important;
  stroke-width: 1.15px !important;
  fill: none !important;
}

.prose .mermaid .arrowheadPath,
.prose .mermaid marker path {
  fill: var(--muted) !important;
  stroke: none !important;
}

.prose .mermaid .edgeLabel rect,
.prose .mermaid .label rect {
  fill: #000 !important;
  stroke: none !important;
}

.prose .mermaid .nodeLabel,
.prose .mermaid .edgeLabel,
.prose .mermaid .label,
.prose .mermaid foreignObject,
.prose .mermaid foreignObject div,
.prose .mermaid foreignObject span,
.prose .mermaid foreignObject p,
.prose .mermaid .actor,
.prose .mermaid .messageText,
.prose .mermaid .loopText,
.prose .mermaid .noteText,
.prose .mermaid text {
  font-family: var(--font) !important;
  color: var(--text) !important;
  fill: var(--text) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  background: transparent !important;
}

.prose .mermaid .nodeLabel p,
.prose .mermaid foreignObject p {
  padding: 0.2em 0.55em;
  margin: 0;
}

.desmos-graph,
.gpt-graph {
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}

.desmos-graph {
  width: 100%;
}

.gpt-graph {
  display: flex;
  min-width: 0;
}

.gpt-graph-panel {
  width: 14.5rem;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.25rem 1.2rem;
  background: var(--fill);
  border-right: 1px solid var(--line);
}

.gpt-graph-title {
  margin: 0;
  padding: 0.15rem 0 0.35rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
  overflow-x: auto;
}

.gpt-graph-title .MathJax,
.gpt-graph-title mjx-container {
  margin: 0 !important;
  font-size: 0.95em !important;
}

.gpt-slider {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: var(--track);
}

.gpt-slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.gpt-slider-value {
  min-width: 2.6rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.gpt-slider input[type="range"] {
  width: 100%;
  height: 2px;
  margin: 0.35rem 0 0.15rem;
  appearance: none;
  background: var(--line);
  cursor: pointer;
}

.gpt-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--text);
  border: 0;
  cursor: pointer;
}

.gpt-slider input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--text);
  border: 0;
  cursor: pointer;
}

.gpt-graph-canvas {
  flex: 1;
  min-width: 0;
  min-height: 240px;
  background: #000;
}

.desmos-graph .dcg-container,
.gpt-graph-canvas .dcg-container {
  background: #000 !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.desmos-graph .dcg-grapher,
.gpt-graph-canvas .dcg-grapher {
  filter: invert(1);
}

.desmos-graph .dcg-graphpaper-branding,
.gpt-graph .dcg-graphpaper-branding,
.desmos-graph .dcg-mr-powered-by,
.gpt-graph .dcg-mr-powered-by,
.desmos-graph .dcg-graphpaper-branding a,
.gpt-graph .dcg-graphpaper-branding a {
  display: none !important;
}

.prose figure,
.prose .highlight,
.prose pre,
.prose .desmos-graph,
.prose .gpt-graph,
mjx-container {
  max-width: 100%;
  min-width: 0;
}

mjx-container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

mjx-container[display="true"] {
  display: block;
  min-width: 0 !important;
}

.prose figure {
  margin: 24px 0 0;
}

.prose figcaption {
  margin-top: 0.6em;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: var(--track);
}

.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.5em 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  background: var(--bg);
  scrollbar-width: thin;
}

.prose .table-scroll table {
  display: table;
  width: max-content;
  min-width: max(100%, 42rem);
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  table-layout: auto;
}

.prose th,
.prose td {
  text-align: left;
  padding: 0.7em 1em;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  hyphens: none;
}

.prose th {
  white-space: nowrap;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  word-break: keep-all;
}

.prose td {
  min-width: 12.5rem;
  max-width: 20rem;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.55;
}

.prose tr:last-child th,
.prose tr:last-child td {
  border-bottom: 0;
}

.headerlink {
  display: none;
}

.prose code {
  font-family: var(--font);
  font-size: 0.9em;
  background: var(--fill);
  padding: 0.08em 0.32em;
  border: 1px solid var(--line);
  white-space: break-spaces;
  overflow-wrap: anywhere;
}

.prose pre code {
  white-space: inherit;
}

.prose pre {
  margin: 0 0 1.5em;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  max-width: 100%;
  background: var(--fill);
  border: 1px solid var(--line);
  line-height: 1.55;
  font-size: 0.875rem;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

.prose .highlight {
  margin: 0 0 1.5em;
  background: var(--fill);
  border: 1px solid var(--line);
  overflow-x: auto;
  max-width: 100%;
}

.prose .highlight figcaption {
  padding: 0.6rem 1rem 0;
}

.prose .highlight pre {
  margin: 0;
  border: 0;
  background: transparent;
}

.prose .highlight table,
.prose .highlight th,
.prose .highlight td {
  border: 0;
  padding: 0;
}

.hljs-comment,
.hljs-quote {
  color: var(--muted);
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-addition {
  color: var(--text);
  font-weight: 600;
}

.hljs-string,
.hljs-attribute {
  color: #cfcfcf;
}

.hljs-number,
.hljs-literal {
  color: #bdbdbd;
}

.post-foot {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 0 0 1.5rem;
}

.tag {
  letter-spacing: var(--track);
  color: var(--muted);
}

.keep-reading {
  margin: 3.5rem 0 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}

.keep-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.keep-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.keep-all {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: var(--track);
  flex-shrink: 0;
}

.keep-all:hover {
  color: var(--text);
  text-decoration: underline;
  opacity: 1;
}

.keep-reading .card-grid {
  margin: 0;
}

/* Search */
.search-form {
  margin: 0 0 1.5rem;
}

.search-input {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font: inherit;
  letter-spacing: var(--track);
  border-radius: 0;
}

.search-input::placeholder {
  color: var(--muted);
}

.search-status {
  margin: 0 0 1rem;
}

/* Footer */
.site-foot {
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.foot-kicker {
  margin: 0 0 1rem;
}

.foot-intro {
  margin: 0 0 1.75rem;
  max-width: 40rem;
}

.foot-intro p {
  margin: 0 0 0.75rem;
}

.foot-intro p:last-child {
  margin-bottom: 0;
}

.foot-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  margin: 0 0 1.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
}

.social-link:hover {
  color: var(--text);
  opacity: 1;
}

.social-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.social-icon svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.foot-credit {
  margin: 0;
}

.page {
  min-height: 60vh;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 640px) {
  :root {
    --read: 1.0625rem;
    --gutter: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
  }

  .measure,
  .measure-wide,
  .site-bar-inner,
  .post-well {
    width: min(var(--wide), calc(100% - 2 * var(--gutter)));
  }

  .post-copy,
  .post-foot,
  .lede,
  .prose p,
  .prose h2,
  .prose h3,
  .prose h4,
  .prose ul,
  .prose ol,
  .prose blockquote,
  .timeline,
  .steps,
  .callout,
  .source-block,
  .source-card,
  .fold,
  .prose details {
    max-width: 100%;
  }

  .post-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .prose td {
    min-width: 12.5rem;
  }

  .prose th:first-child,
  .prose td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--bg);
    box-shadow: 8px 0 12px -8px rgba(0, 0, 0, 0.9);
  }

  .gpt-graph {
    flex-direction: column;
    height: auto !important;
  }

  .gpt-graph-panel {
    width: auto;
    max-width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 1rem;
  }

  .gpt-graph-canvas {
    min-height: 260px;
    height: var(--graph-h, 320px);
    max-width: 100%;
  }

  .prose h2 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-top: 2.25rem;
  }

  .site-bar-inner {
    justify-content: space-between;
  }

  .site-nav {
    gap: 0.85rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-title {
    margin-bottom: 0.75rem;
  }

  .series-nav {
    gap: 0.5rem 1rem;
  }

  .block {
    padding-top: 3.25rem;
  }

  .hide-sm {
    display: none;
  }

  .row {
    flex-direction: column;
    gap: 0.35rem;
  }

  .row-meta {
    flex-shrink: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  :root {
    --bg: #fff;
    --text: #111;
    --muted: #444;
    --line: #ccc;
    --fill: #f4f4f4;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-bar,
  .site-foot,
  .pixel-banner,
  .skip-link,
  .pager,
  .cta-wrap {
    display: none;
  }

  a {
    text-decoration: none;
  }
}
