/*
Theme Name: Tassix
Description: The Tassix engine's website: features, roadmap, progress and compatibility, synced from the repository by the Tassix Site plugin. Colours, type and shapes from docs/branding.
Version: 1.0.0
Requires PHP: 8.1
License: MIT OR Apache-2.0
Text Domain: tassix
*/

/* assets/tokens.css is docs/branding/tokens.css; these are the site's own on top of it. */
:root {
  --wrap: 1180px;
  --gutter: 24px;
  --radius-lg: 10px;
  --glow-amber: color-mix(in srgb, var(--amber) 22%, transparent);
  --glow-rose: color-mix(in srgb, var(--rose) 18%, transparent);
  color-scheme: dark;
}
[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: var(--selection); }
code, pre, .mono { font-family: var(--font-mono); font-size: 0.88em; }
code { background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.05em 0.35em; }
pre { background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); overflow-x: auto; line-height: 1.5; }
pre code { background: none; border: 0; padding: 0; }
.icon { flex: none; }
.muted { color: var(--ink-muted); }
.measure { max-width: 68ch; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--amber); color: var(--on-amber); padding: 8px 12px; }

/* Type, from the brand's styles. */
.display { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 var(--space-6); text-wrap: balance; }
.display--article { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.08; }
.heading { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.title { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.25; margin: 0 0 var(--space-4); }
.label { font-size: 12px; line-height: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 var(--space-4); }
.kicker { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--ink-muted); letter-spacing: 0.02em; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-muted); max-width: 62ch; margin: 0; }
.lede p { margin: 0 0 var(--space-4); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; gap: var(--space-8); height: 68px; }
.brand { display: flex; }
.brand__logo { height: 34px; width: auto; }
.site-footer .brand__logo { height: 30px; margin-bottom: var(--space-3); }
[data-theme="dark"] .brand__logo--light, [data-theme="light"] .brand__logo--dark { display: none; }
[data-theme="dark"] .only-light, [data-theme="light"] .only-dark { display: none; }
.nav { margin-right: auto; }
.nav__list { display: flex; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 8px 12px; border-radius: var(--radius-md); color: var(--ink-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav__list a:hover { color: var(--ink); background: var(--surface-raised); }
.nav__list a[aria-current="page"], .nav__list .current-menu-item > a { color: var(--ink); background: var(--surface-raised); box-shadow: inset 0 -2px 0 var(--amber); }
.site-header__tools { display: flex; gap: var(--space-2); margin-left: auto; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); cursor: pointer; }
.icon-button:hover { border-color: var(--line-strong); }
.nav-toggle { display: none; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.button { display: inline-flex; align-items: center; gap: var(--space-2); height: 46px; padding: 0 20px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.button:hover { border-color: var(--ink-muted); }
.button--primary { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.button--primary:hover { background: color-mix(in srgb, var(--amber) 88%, white); border-color: transparent; }
.more { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto 40%; height: 140%; background: radial-gradient(closest-side, var(--glow-amber), transparent 70%), radial-gradient(closest-side at 70% 30%, var(--glow-rose), transparent 70%); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero__art { display: grid; place-items: center; }
.hero__art img { width: min(100%, 320px); filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--rose) 30%, transparent)); }
[data-theme="light"] .hero__art img { content: url("assets/tassix-icon-light-bg.svg"); }
/* With the editor screenshot the copy takes the width and the editor sits below it. */
.hero--shot .hero__inner { grid-template-columns: minmax(0, 1fr); padding-bottom: 56px; }
.hero--shot .hero__copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
.hero--shot .hero__copy .label, .hero--shot .hero__copy .display { grid-column: 1 / -1; }
.hero--shot .hero__copy .display { margin-bottom: var(--space-4); }
.hero--shot .hero__copy .actions { margin-top: 0; justify-content: flex-end; }
.editor-shot { position: relative; margin: 0 auto; padding-bottom: 96px; }
.editor-shot img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -20px color-mix(in srgb, var(--rose) 28%, transparent), 0 24px 60px -24px rgba(0, 0, 0, 0.6); }
.editor-shot figcaption { margin-top: var(--space-4); font-size: 14px; text-align: center; }
.hero--shot + .wrap .stats { margin-top: -48px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); position: relative; top: -1px; }
.hero + .wrap .stats { margin-top: -48px; position: relative; z-index: 1; }
.page-head + .wrap .stats { margin-top: var(--space-2); }
.stat { padding: var(--space-6); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat dt { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.stat dd { margin: var(--space-1) 0 var(--space-2); font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }

/* Sections */
.section { padding-top: 88px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-6); flex-wrap: wrap; }
.section__head p { margin: 0; }
.section__sub { margin-top: var(--space-8); }
main > .section:last-child, main > .wrap:last-child { padding-bottom: 96px; }
.page-head { padding-top: 80px; padding-bottom: var(--space-8); }

.grid { display: grid; gap: var(--space-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-4); }

.card { display: block; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); color: var(--ink); text-decoration: none; }
a.card { transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); min-width: 0; }

.feature-card { display: flex; flex-direction: column; gap: var(--space-3); }
.feature-card__icon, .feature__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--amber-soft); color: var(--accent-ink); }
.feature-card__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.feature-card__text { font-size: 15px; line-height: 1.55; color: var(--ink-muted); }

.update-card { display: flex; flex-direction: column; gap: var(--space-2); }
.update-card__meta { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 13px; color: var(--ink-muted); }
.update-card__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.3; }
.update-card__excerpt { font-size: 15px; line-height: 1.55; color: var(--ink-muted); }

/* Status: an icon and a word; the colour only repeats them. */
.status { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid currentColor; width: fit-content; }
.status--done { color: var(--success); }
.status--in-progress { color: var(--accent-ink); }
.status--ongoing { color: var(--rose-ink); }
.status--planned { color: var(--ink-muted); }

/* The engine's phases as a row on the home page. */
.track { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.track a { display: flex; flex-direction: column; gap: var(--space-2); height: 100%; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); color: var(--ink); text-decoration: none; }
.track a:hover { border-color: var(--line-strong); }
.track__bar { height: 4px; border-radius: 2px; background: var(--line); margin-bottom: var(--space-2); }
.track__step--done .track__bar { background: var(--success); }
.track__step--in-progress .track__bar { background: linear-gradient(90deg, var(--amber) 55%, var(--line) 55%); }
.track__step--ongoing .track__bar { background: linear-gradient(90deg, var(--amber), var(--rose)); }
.track__title { font-weight: 600; font-size: 15px; line-height: 1.3; flex: 1; }
.track__count { font-size: 13px; }

/* Chart: one series, recessive grid, rounded data ends. */
.chart-wrap { margin-top: var(--space-2); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__axis { stroke: var(--line-strong); stroke-width: 1; }
.chart__tick { fill: var(--ink-muted); font-family: var(--font-mono); font-size: 11px; }
.chart__mark { fill: var(--amber); }
.chart__hit { fill: transparent; }
.chart__bar { outline: none; cursor: default; }
.chart__bar:hover .chart__hit, .chart__bar:focus .chart__hit { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
.tooltip { position: absolute; z-index: 50; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: var(--radius-md); background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 600; pointer-events: none; white-space: nowrap; }

.commits { list-style: none; margin: 0; padding: 0; }
.commits li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.commits li:first-child { border-top: 0; padding-top: 0; }
.commits__hash { color: var(--accent-ink); }
.commits__subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.commits__time { font-size: 13px; white-space: nowrap; }

.band { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; padding: var(--space-8); border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(120deg, var(--amber-soft), var(--surface-raised) 60%); }
.band .label { margin-bottom: var(--space-2); }

/* Features page */
.features { display: grid; gap: var(--space-4); }
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-6); padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.feature__icon { width: 52px; height: 52px; }
.feature .heading { font-size: 26px; margin-bottom: var(--space-3); }
.shot { padding: 0; overflow: hidden; margin: 0; }
.shot img, .shot__placeholder { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.shot__placeholder { display: grid; place-items: center; color: var(--line-strong); background: radial-gradient(circle at 30% 20%, var(--glow-amber), transparent 60%), radial-gradient(circle at 80% 90%, var(--glow-rose), transparent 60%), var(--surface-sunken); }
.shot figcaption { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-6) var(--space-6); font-size: 15px; line-height: 1.5; }
.shot__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.shot__path { margin-top: var(--space-2); font-size: 12px; width: fit-content; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Prose from the repository's Markdown */
.prose { font-size: 16px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--space-4); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--line-strong); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); font-weight: 600; margin: var(--space-8) 0 var(--space-3); }
.feature .prose ul { color: var(--ink-muted); }
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-4); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; font-weight: 600; color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; }
td.num, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Roadmap */
.timeline { list-style: none; margin: var(--space-6) 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding-left: 52px; margin-bottom: var(--space-4); }
.timeline__node { position: absolute; left: 0; top: 22px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); color: var(--ink-muted); }
.timeline__item--done .timeline__node { border-color: var(--success); color: var(--success); }
.timeline__item--in-progress .timeline__node { border-color: var(--amber); color: var(--accent-ink); }
.timeline__item--ongoing .timeline__node { border-color: var(--rose-ink); color: var(--rose-ink); }
.phase__head { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.phase__when { font-size: 13px; margin-left: auto; }
.phase__title { font-size: 24px; margin: var(--space-3) 0; }
.phase__milestone { margin: 0 0 var(--space-4); color: var(--ink-muted); max-width: 80ch; }
.phase__milestone strong { color: var(--ink); }
.phase__updates { list-style: none; margin: 0 0 var(--space-4); padding: 0; border-top: 1px solid var(--line); }
.phase__updates li { display: flex; justify-content: space-between; gap: var(--space-4); padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.phase__updates a { color: var(--ink); text-decoration: none; font-weight: 500; }
.phase__updates a:hover { color: var(--accent-ink); }
.phase__updates .muted { font-size: 13px; white-space: nowrap; }
.phase__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.phase__foot details { flex: 1 1 400px; }
details > summary { cursor: pointer; color: var(--ink-muted); font-weight: 600; font-size: 15px; }
details > summary:hover { color: var(--ink); }
details[open] > summary { margin-bottom: var(--space-3); }
.phase .prose { font-size: 15px; }

.chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); list-style: none; margin: var(--space-6) 0 0; padding: 0; }
.chip { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.chip__title { font-weight: 600; font-size: 15px; line-height: 1.3; flex: 1; }
.next { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-4); }
.next__number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--amber-soft); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 500; }
.next__title { margin: 4px 0 var(--space-2); font-size: 17px; font-weight: 600; }
.next p { margin: 0; font-size: 15px; line-height: 1.55; }
.shipped { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.shipped__item { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--line); }
.shipped__item:first-child { border-top: 0; }
.shipped__item summary { display: flex; align-items: center; gap: var(--space-3); color: var(--ink); list-style: none; }
.shipped__item summary::-webkit-details-marker { display: none; }
.shipped__item summary .icon { color: var(--success); }
.shipped__item p { margin: 0; font-size: 15px; line-height: 1.6; }
.shipped__more { border-top: 1px solid var(--line); }
.shipped__more > summary { padding: var(--space-4) var(--space-6); }
.shipped__more[open] > summary { margin-bottom: 0; }

/* Updates */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.filters a { display: inline-flex; gap: var(--space-2); padding: 7px 14px; border-radius: var(--radius-full); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.filters a:hover { border-color: var(--line-strong); }
.filters a[aria-current] { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.filters a[aria-current] .muted { color: inherit; opacity: 0.7; }
.pagination { display: flex; gap: var(--space-2); justify-content: center; margin-top: var(--space-8); }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.pagination .current { background: var(--surface-raised); border-color: var(--line-strong); }
.article { max-width: calc(780px + 2 * var(--gutter)); padding-top: 64px; padding-bottom: 96px; }
.article__head { margin-bottom: var(--space-8); }
.article__head .kicker { margin: var(--space-6) 0 var(--space-3); display: block; }
.back { font-size: 14px; font-weight: 600; text-decoration: none; }
.back::before { content: "← "; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: 64px; }
.article__nav .card { display: flex; flex-direction: column; gap: var(--space-1); font-weight: 600; }
.article__nav-newer { grid-column: 2; text-align: right; }

/* Compatibility */
.toc { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 var(--space-6); }
.toc a { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-full); color: var(--ink); text-decoration: none; font-size: 14px; }
.toc a:hover { border-color: var(--line-strong); }
.matrix { margin-bottom: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); overflow: hidden; }
.matrix .title { margin: 0; padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); background: var(--surface-sunken); font-size: 18px; }
.matrix__row { border-top: 1px solid var(--line); }
.matrix .title + .matrix__row { border-top: 0; }
.matrix__row summary { display: grid; grid-template-columns: minmax(150px, 220px) auto minmax(0, 1fr); gap: var(--space-4); align-items: baseline; padding: var(--space-4) var(--space-6); color: var(--ink); font-weight: 400; list-style: none; }
.matrix__row summary::-webkit-details-marker { display: none; }
.matrix__row summary:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.matrix__area { font-weight: 600; }
.matrix__summary { font-size: 14px; line-height: 1.5; }
.matrix__row[open] .matrix__summary { display: none; }
.matrix__row[open] summary { margin: 0; }
.matrix__detail { padding: 0 var(--space-6) var(--space-6) calc(var(--space-6) + min(220px, 30%) + var(--space-4)); font-size: 14px; line-height: 1.65; color: var(--ink-muted); }
.coverage td { vertical-align: middle; }
.coverage__bar-head { width: 34%; }
.meter { display: inline-block; vertical-align: middle; width: calc(100% - 56px); height: 8px; border-radius: 4px; background: var(--surface-sunken); border: 1px solid var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--amber); border-radius: 0 4px 4px 0; }
.meter__value { display: inline-block; width: 48px; text-align: right; font-size: 13px; }

/* Footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface-sunken); }
.site-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 2fr; gap: var(--space-8); padding-top: 48px; padding-bottom: 48px; font-size: 14px; }
.site-footer p { margin: 0; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer__links a { color: var(--ink); text-decoration: none; }
.site-footer__links a:hover { color: var(--accent-ink); }
.site-footer__note { line-height: 1.6; }

@media (max-width: 1080px) {
  .track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 88px; }
  .hero__art { display: none; }
  .hero--shot .hero__copy { display: block; }
  .hero--shot .hero__copy .actions { margin-top: var(--space-6); justify-content: flex-start; }
  .hero--shot .hero__inner { padding-bottom: 32px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid--3, .grid--2, .split { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-grid; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--space-3) var(--gutter) var(--space-4); display: none; }
  .nav-open .nav { display: block; }
  .nav__list { flex-direction: column; }
  .site-header__tools { margin-left: auto; }
  .matrix__row summary { grid-template-columns: 1fr auto; }
  .matrix__summary { grid-column: 1 / -1; }
  .matrix__detail { padding-left: var(--space-6); }
  .section { padding-top: 64px; }
  .chart-wrap { overflow-x: auto; }
  .chart { min-width: 560px; }
  .feature { grid-template-columns: 1fr; padding: var(--space-6); }
  .phase__when { margin-left: 0; width: 100%; }
  .phase__updates li { flex-direction: column; gap: 0; }
}
@media (max-width: 560px) {
  .track, .chips, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .commits li { grid-template-columns: auto minmax(0, 1fr); }
  .commits__time { display: none; }
  .timeline__item { padding-left: 40px; }
  .timeline::before { left: 11px; }
  .timeline__node { width: 24px; height: 24px; }
  .article__nav { grid-template-columns: 1fr; }
  .article__nav-newer { grid-column: auto; text-align: left; }
  .coverage__bar-head { width: auto; }
}
