/* ==========================================================================
   Design tokens
   The single source of truth for color, type, space, radius, and layout.
   Components only reference these variables, never raw values.
   The /design page is generated from this file, so keep each "@group"
   section comment and one declaration per line.
   ========================================================================== */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-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;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Newsreader Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-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;
}
@font-face {
  font-family: "Newsreader Variable";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}

:root {
  color-scheme: light;

  /* @group Color: surface */
  --color-bg: #ffffff;
  --color-bg-subtle: #f7f8f9;
  --color-bg-hover: #f0f1f3;
  --color-bg-inverse: #0b0c0e;

  /* @group Color: text */
  --color-text-primary: #0b0c0e;
  --color-text-secondary: #3b3f47;
  --color-text-tertiary: #6a6f78;
  --color-text-inverse: #ffffff;

  /* @group Color: border */
  --color-border: #e8eaed;
  --color-border-strong: #d3d6db;

  /* @group Color: accent */
  --color-accent: #2f7d5b;
  --color-accent-hover: #226246;
  --color-accent-subtle: #e9f4ee;
  --color-focus: #2f7d5b;

  /* @group Type: family */
  --font-sans: "Inter Variable", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Newsreader Variable", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* @group Type: size */
  --text-display: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  --text-h1: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-h2: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --text-h3: 1.25rem;
  --text-lg: 1.1875rem;
  --text-body: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  /* @group Type: weight */
  --weight-regular: 400;
  --weight-medium: 510;
  --weight-semibold: 590;
  --weight-display: 500;

  /* @group Type: line height */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-body: 1.6;

  /* @group Type: tracking */
  --tracking-display: -0.022em;
  --tracking-tight: -0.011em;
  --tracking-serif: -0.015em;

  /* @group Space (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* @group Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* @group Layout */
  --container: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --column-meta: 11.5rem;
  --column-content: 40rem;
  --header-height: 3.5rem;

  /* @group Motion */
  --duration: 140ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* @group Shadow */
  --shadow-sm: 0 1px 2px rgba(11, 12, 14, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 12, 14, 0.08);
}

/* ==========================================================================
   Base: reset and element defaults
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05", "cv08", "ss03";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--color-text-primary);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

p, ul, ol, figure, blockquote, pre { margin: 0; }

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

a {
  color: inherit;
  text-decoration-color: var(--color-border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease), text-decoration-color var(--duration) var(--ease);
}
a:hover { color: var(--color-text-primary); text-decoration-color: currentColor; }

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

::selection { background: var(--color-accent-subtle); color: var(--color-text-primary); }

hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-6) 0; }

time { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-3); color: var(--color-text-inverse); }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Components
   Layout -> header/footer -> page head -> timeline/entries -> content
   (prose, callout, table, code) -> small pieces (button, tag, card).
   ========================================================================== */

/* ---- Layout ------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Site header ------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgb(255 255 255 / 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  text-decoration: none;
}
.brand img { width: 1.5rem; height: 1.5rem; border-radius: var(--radius-full); object-fit: cover; }
.nav { display: flex; align-items: center; gap: var(--space-1); }
.nav-link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.nav-link:hover, .nav-link[aria-current] { color: var(--color-text-primary); }

/* ---- Button ------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 2rem;
  padding: 0 var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.button-primary { background: var(--color-bg-inverse); color: var(--color-text-inverse); }
.button-primary:hover { background: #2a2d33; color: var(--color-text-inverse); }
.button-secondary { background: var(--color-bg); border-color: var(--color-border-strong); color: var(--color-text-primary); }
.button-secondary:hover { background: var(--color-bg-hover); }
.button-lg { height: 2.5rem; padding: 0 var(--space-5); font-size: var(--text-body); }

/* ---- Tag + filters ----------------------------------------------------- */

.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0; list-style: none; }
.tag {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-subtle);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
a.tag:hover { background: var(--color-bg-hover); color: var(--color-text-primary); }

.filters { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.filter {
  padding: var(--space-1) 0;
  border: 0;
  background: none;
  color: var(--color-text-tertiary);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}
.filter:hover, .filter[aria-pressed="true"] { color: var(--color-text-primary); }

/* ---- Page head --------------------------------------------------------- */

.page-head {
  padding-block: var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}
.page-title {
  font-size: var(--text-h1);
  font-weight: var(--weight-medium);
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
}
.page-lede { margin-top: var(--space-3); max-width: 38rem; font-size: var(--text-lg); color: var(--color-text-tertiary); }
.page-head .filters { margin-top: var(--space-5); }

/* ---- Hero (home) ------------------------------------------------------- */

.hero { padding-block: var(--space-9) var(--space-7); }
.hero-avatar {
  width: 4rem;
  height: 4rem;
  margin-bottom: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  object-fit: cover;
}
.eyebrow { margin-bottom: var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-tertiary); }
.hero-title {
  max-width: 16em;
  font-size: var(--text-display);
  font-weight: var(--weight-medium);
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
}
.hero-text { margin-top: var(--space-5); max-width: 40rem; display: grid; gap: var(--space-4); }
.hero-text p:first-child { font-size: var(--text-lg); color: var(--color-text-primary); }
.hero-actions { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-image {
  margin-top: var(--space-8);
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

/* ---- Timeline + entries ------------------------------------------------ */

.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(var(--space-7) + 0.6rem);
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}
.entry {
  display: grid;
  grid-template-columns: var(--column-meta) minmax(0, var(--column-content));
  column-gap: var(--space-8);
  padding-block: var(--space-7);
}
.timeline--wide .entry { grid-template-columns: var(--column-meta) minmax(0, 1fr); }
.entry-label {
  position: sticky;
  top: calc(var(--header-height) + var(--space-5));
  align-self: start;
  padding-left: var(--space-5);
  color: var(--color-text-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.entry-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-bg);
}
.entry-label--section { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.entry-label--section::before { top: 0.5rem; }
.entry-title {
  font-size: var(--text-h2);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: 1.15;
}
.entry-title a { text-decoration: none; }
.entry-title a:hover { color: var(--color-accent); }
.entry-body > * + * { margin-top: var(--space-4); }
.entry-body > .entry-title + * { margin-top: var(--space-4); }
.entry-body > .tags + .entry-title { margin-top: var(--space-4); }
.entry-cover {
  display: block;
  margin-top: var(--space-5);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
}
.entry-cover img { width: 100%; height: 100%; object-fit: cover; }
.entry-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.entry-link:hover { color: var(--color-accent-hover); text-decoration: underline; text-underline-offset: 3px; }

.role + .role { margin-top: var(--space-6); }
.role-title { font-size: var(--text-h3); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); }
.role-meta { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--color-text-tertiary); }
.role ul { margin-top: var(--space-3); }

/* ---- Content (prose) --------------------------------------------------- */

.prose > * + * { margin-top: var(--space-4); }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: var(--text-h2); margin-top: var(--space-7); }
.prose h2 { font-size: 1.625rem; margin-top: var(--space-7); }
.prose h3 { font-size: var(--text-h3); margin-top: var(--space-6); }
.prose h4 { font-size: var(--text-body); margin-top: var(--space-5); }
.prose h1 + *, .prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: var(--space-3); }
.prose strong, .prose b { color: var(--color-text-primary); font-weight: var(--weight-semibold); }
.prose a { color: var(--color-text-primary); }
.prose a:hover { color: var(--color-accent); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: var(--space-2); }
.prose li::marker { color: var(--color-text-tertiary); }
.prose hr { margin-block: var(--space-7); }
.prose blockquote {
  padding-left: var(--space-5);
  border-left: 2px solid var(--color-accent);
  color: var(--color-text-primary);
  font-size: var(--text-lg);
}
.prose blockquote p + p { margin-top: var(--space-3); }
.prose figure { margin-block: var(--space-5); }
.prose figure img {
  margin-inline: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.prose figcaption { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--color-text-tertiary); text-align: center; }

code {
  padding: 0.12em 0.4em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 0.86em;
}
pre {
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
}
pre code { padding: 0; border: 0; background: none; font-size: inherit; }

.table-wrap { overflow-x: auto; margin-block: var(--space-5); }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
th, td { padding: var(--space-3) var(--space-4) var(--space-3) 0; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
th { border-bottom-color: var(--color-border-strong); color: var(--color-text-tertiary); font-size: var(--text-xs); font-weight: var(--weight-medium); white-space: nowrap; }
td:first-child { color: var(--color-text-primary); font-weight: var(--weight-medium); }

.callout {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
  color: var(--color-text-primary);
}
.callout-blue { border-color: #cfe5d9; background: var(--color-accent-subtle); }

.toc {
  padding: var(--space-4) var(--space-5);
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
  font-size: var(--text-sm);
}
.toc li { margin: 0; }
.toc li + li { margin-top: var(--space-1); }
.toc .toc-3 { padding-left: var(--space-5); }
.toc a { color: var(--color-text-tertiary); text-decoration: none; }
.toc a:hover { color: var(--color-text-primary); }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-subtle);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Card -------------------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-4); }
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  text-decoration: none;
  transition: background-color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.card:hover { border-color: var(--color-border-strong); background: var(--color-bg-subtle); }
.card-title { display: flex; justify-content: space-between; color: var(--color-text-primary); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); }
.card-arrow { color: var(--color-text-tertiary); transition: transform var(--duration) var(--ease); }
.card:hover .card-arrow { transform: translateX(2px); color: var(--color-text-primary); }
.card-text { color: var(--color-text-tertiary); font-size: var(--text-sm); }
.card-label { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-text-tertiary); }

.chip-links { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: 0; margin: 0; list-style: none; }

/* ---- Post page --------------------------------------------------------- */

.post { max-width: 44rem; margin-inline: auto; padding-inline: var(--gutter); }
.post-header { padding-block: var(--space-8) var(--space-6); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.back-link:hover { color: var(--color-text-primary); }
.post-title {
  margin-top: var(--space-5);
  font-size: var(--text-h1);
  font-weight: var(--weight-medium);
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
}
.post-lede { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--color-text-tertiary); }
.byline { margin-top: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-tertiary); }
.byline img { width: 1.5rem; height: 1.5rem; border-radius: var(--radius-full); object-fit: cover; }
.byline .dot { color: var(--color-border-strong); }
.post-body { padding-bottom: var(--space-8); }
.post-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--space-4); padding-block: var(--space-6) 0; border-top: 1px solid var(--color-border); }
.post-nav .card-title { display: block; line-height: var(--leading-snug); }

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  margin-top: var(--space-9);
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-5) var(--space-7); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); padding: 0; margin: 0; list-style: none; }
.footer-links a { color: var(--color-text-tertiary); text-decoration: none; }
.footer-links a:hover { color: var(--color-text-primary); }

/* ---- Design page ------------------------------------------------------- */

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: var(--space-4); }
.swatch { overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--text-xs); }
.swatch-chip { height: 3.5rem; border-bottom: 1px solid var(--color-border); }
.swatch-info { padding: var(--space-2) var(--space-3); display: grid; gap: 2px; }
.swatch-name { color: var(--color-text-primary); font-weight: var(--weight-medium); }
.swatch-value { color: var(--color-text-tertiary); font-family: var(--font-mono); }
.spec { display: grid; gap: var(--space-5); }
.spec-row { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--space-4); align-items: baseline; padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.spec-row:last-child { border-bottom: 0; }
.spec-label { font-size: var(--text-xs); color: var(--color-text-tertiary); font-family: var(--font-mono); }
.space-bar { height: 0.75rem; border-radius: 2px; background: var(--color-accent); }
.radius-box { width: 4rem; height: 4rem; border: 1px solid var(--color-border-strong); background: var(--color-bg-subtle); }
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 860px) {
  .entry,
  .timeline--wide .entry { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4); padding-block: var(--space-6); }
  .entry-label { position: relative; top: auto; }
  .timeline::before { display: none; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
}
@media (max-width: 560px) {
  .hero { padding-block: var(--space-8) var(--space-6); }
  .hero-image { aspect-ratio: 4 / 3; }
  .page-head { padding-block: var(--space-7) var(--space-5); }
}

/* A leading "# Title" inside a post is rendered as an h2 with this class. */
.prose .h-lead { font-size: var(--text-h2); margin-top: 0; }

/* Long reference URLs must wrap instead of widening the page on phones. */
.prose { overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }

/* Headlines use the serif; body, labels, and UI stay in the sans. */
.hero-title, .page-title, .post-title, .entry-title, .prose h2, .prose .h-lead {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-serif);
}
