/* Concept: a workshop logbook. Each entry opens on the part it is about, assembled from the same
   loose blocks as caissonai.co, and then a sheet of paper slides over the parts for reading.
   Measured, plain, kinetic. Bone paper, ink, one signal orange; sans headings over serif text. */

@font-face { font-family: "Anthropic Sans Web"; src: local("Anthropic Sans Web"), local("Anthropic Sans"); font-weight: 300 800; }
@font-face { font-family: "Anthropic Serif Web"; src: local("Anthropic Serif Medium"), local("AnthropicSerif-Medium"); font-weight: 400 600; }

@property --bg { syntax: '<color>'; inherits: true; initial-value: #ebe7de; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #171a21; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #50545e; }
@property --subtle { syntax: '<color>'; inherits: true; initial-value: #777b84; }
@property --line { syntax: '<color>'; inherits: true; initial-value: rgb(23 26 33 / .18); }
@property --signal { syntax: '<color>'; inherits: true; initial-value: #df5a2b; }
@property --on-fg { syntax: '<color>'; inherits: true; initial-value: #ebe7de; }

:root {
  color-scheme: light;
  --bg: #ebe7de;
  --plate: #e2ded4;
  --fg: #171a21;
  --ink-2: #3a3f4b;
  --muted: #50545e;
  --subtle: #6c7079;
  --line: rgb(23 26 33 / .18);
  --line-soft: rgb(23 26 33 / .09);
  --signal: #df5a2b;
  --signal-ink: #b03f17;
  --signal-soft: #eeb69c;
  --on-fg: #ebe7de;
  --key: #f4f1ea;
  --hover: color-mix(in srgb, var(--fg), #000 30%);
  --tone-move: 900ms cubic-bezier(.65, 0, .35, 1);
  transition: --bg var(--tone-move), --fg var(--tone-move), --muted var(--tone-move), --subtle var(--tone-move),
    --line var(--tone-move), --signal var(--tone-move), --on-fg var(--tone-move);

  --font: "Anthropic Sans Web", "Instrument Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --serif: "Anthropic Serif Web", "Source Serif 4", Georgia, serif;

  --t--1: clamp(.8125rem, .79rem + .1vw, .875rem);
  --t-0:  clamp(1rem, .96rem + .2vw, 1.125rem);
  --t-read: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --t-1:  clamp(1.1875rem, 1.1rem + .42vw, 1.5rem);
  --t-2:  clamp(1.5rem, 1.3rem + .9vw, 2.25rem);
  --t-3:  clamp(2rem, 1.5rem + 2.2vw, 3.75rem);
  --t-title: clamp(2.4rem, 1.2rem + 4.4vw, 6rem);

  --pad: clamp(18px, 3.4vw, 56px);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px; --s-10: 168px;

  /* one radius scale: 2 for rules and bars, 6 for media, 22 for the floating menu, full for pills */
  --r-1: 2px;
  --r-2: 6px;
  --r-menu: 22px;

  --ease-out-quint: cubic-bezier(.22, 1, .36, 1);
  --ease-out-expo:  cubic-bezier(.16, 1, .3, 1);
  --ease-in-quart:  cubic-bezier(.5, 0, .75, 0);
  --ease-spring: linear(0, .0743 4.17%, .2236 8.33%, .3846 12.5%, .5286 16.67%, .6475 20.83%, .741 25%, .8121 29.17%, .8653 33.33%, .904 37.5%, .932 41.67%, .9521 45.83%, .9664 50%, .9765 54.17%, .9836 58.33%, .9886 62.5%, .9921 66.67%, .9945 70.83%, .9962 75%, .9974 79.17%, .9982 83.33%, .9987 87.5%, .9991 91.67%, .9994 95.83%, 1);
}

[data-tone="paper"] {
  color-scheme: light;
  --bg: #ebe7de; --plate: #e2ded4; --fg: #171a21; --ink-2: #3a3f4b; --muted: #50545e; --subtle: #6c7079;
  --line: rgb(23 26 33 / .18); --line-soft: rgb(23 26 33 / .09);
  --signal: #df5a2b; --signal-ink: #b03f17; --signal-soft: #eeb69c; --on-fg: #ebe7de; --key: #f4f1ea;
}

[data-tone="night"] {
  color-scheme: dark;
  --bg: #14161b; --plate: #1b1e25; --fg: #ece8df; --ink-2: #c9c5bc; --muted: #b5b1a8; --subtle: #8b8880;
  --line: rgb(236 232 223 / .2); --line-soft: rgb(236 232 223 / .1);
  --signal: #f0703f; --signal-ink: #f38d63; --signal-soft: #6b3a26; --on-fg: #14161b; --key: #22252d;
}

[data-tone="ember"] {
  --bg: #df5a2b; --plate: #d24f22; --fg: #14161b; --ink-2: #2c150c; --muted: #3b1c10; --subtle: #4f2413;
  --line: rgb(20 22 27 / .3); --line-soft: rgb(20 22 27 / .15);
  --signal: #f6f1e7; --signal-ink: #fbf7ee; --signal-soft: #f0a07c; --on-fg: #f0703f; --key: #e8754b;
}

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

html { -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--line) transparent; scroll-padding-top: 96px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 420;
  font-size: var(--t-0);
  line-height: 1.55;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  font-variation-settings: 'opsz' 40, 'wght' 600;
  line-height: 1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

p { text-wrap: pretty; }
button { font-family: inherit; font-weight: 500; }
img, canvas, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; text-decoration-color: var(--line); transition: text-decoration-color 160ms var(--ease-out-quint), color 160ms var(--ease-out-quint); }
a:hover { text-decoration-color: currentColor; }

::selection { background: var(--signal); color: #14161b; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: var(--r-1); }

.label { font-size: var(--t--1); color: var(--subtle); font-weight: 500; letter-spacing: 0; }

.skip { position: fixed; left: var(--pad); top: -80px; z-index: 80; background: var(--fg); color: var(--on-fg); padding: 10px 16px; border-radius: var(--r-1); text-decoration: none; }
.skip:focus { top: 12px; }

/* the canvas sits behind everything; opaque surfaces cover it */

#field { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1200ms var(--ease-out-quint); }
html.field-on #field { opacity: 1; }
main, .legal { position: relative; z-index: 2; }

/* header and menu, as on caissonai.co */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: calc(var(--pad) * .7) var(--pad);
  color: var(--fg);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: var(--s-3); transition: translate 420ms var(--ease-out-expo), opacity 240ms var(--ease-out-quint); }
.mark {
  font-variation-settings: 'opsz' 24, 'wght' 620; font-weight: 600;
  font-size: var(--t-0); letter-spacing: -.02em; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.mark--blog { color: var(--subtle); }
.mark--blog::before { content: '/'; margin-right: var(--s-3); color: var(--line); }
body[data-away="true"] .brand { translate: 0 -160%; opacity: 0; pointer-events: none; transition: translate 260ms var(--ease-in-quart), opacity 200ms var(--ease-in-quart); }

.menu { position: relative; }
.menu__btn {
  position: relative; z-index: 2;
  width: 96px; height: 44px;
  border: 0; border-radius: var(--r-menu);
  background: var(--fg); color: var(--on-fg);
  font-size: var(--t--1); font-variation-settings: 'opsz' 18, 'wght' 600; font-weight: 600;
  cursor: pointer;
  transition: background 160ms var(--ease-out-quint);
}
.menu__btn:hover { background: var(--hover); }
.menu__btn:active { scale: .97; }
.menu__panel {
  position: absolute; top: 0; right: 0; z-index: 1;
  width: min(400px, calc(100vw - var(--pad) * 2));
  padding: 64px var(--s-5) var(--s-5);
  background: var(--fg); color: var(--on-fg);
  border-radius: var(--r-menu);
  clip-path: inset(0 0 calc(100% - 44px) calc(100% - 96px) round var(--r-menu));
  transition: clip-path 300ms var(--ease-in-quart), visibility 0s 300ms;
  visibility: hidden;
}
.menu[data-open="true"] .menu__panel { clip-path: inset(0 round var(--r-menu)); visibility: visible; transition: clip-path 620ms var(--ease-spring); }
.menu__list { list-style: none; padding: 0; display: grid; }
.menu__list a {
  display: grid; grid-template-columns: 34px 1fr; align-items: baseline;
  padding: 9px 0; text-decoration: none;
  font-variation-settings: 'opsz' 36, 'wght' 600; font-weight: 600;
  font-size: var(--t-1); letter-spacing: -.025em; line-height: 1.1;
  border-top: 1px solid rgb(127 127 127 / .28);
}
.menu__list a span { font-size: var(--t--1); letter-spacing: 0; opacity: .6; font-variation-settings: 'opsz' 18, 'wght' 500; font-variant-numeric: tabular-nums; }
.menu__list a[aria-current="page"] { color: var(--signal); }
.menu__list a:hover { opacity: .78; }
.menu__foot { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; margin-top: var(--s-5); font-size: var(--t--1); }
.menu__foot a { opacity: .75; }

/* first screen: the part on the right, the words at the bottom left */

.phero {
  position: relative; min-height: 100dvh;
  padding: calc(var(--pad) * 2.6) var(--pad) calc(var(--pad) * 1.2);
  display: grid; align-content: end; gap: var(--s-5);
  --col: min(60vw, 980px);
}
.phero__stage { position: absolute; top: 9vh; right: var(--pad); width: min(46vw, 760px); height: 60vh; pointer-events: none; }
.phero__lead { font-size: var(--t-1); line-height: 1.34; letter-spacing: -.015em; color: var(--muted); max-width: 40ch; }

.crumbs { display: flex; gap: var(--s-3); font-size: var(--t--1); color: var(--subtle); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs span { color: var(--line); }

.nb { white-space: nowrap; }
.post__title { font-size: var(--t-title); line-height: .96; letter-spacing: -.045em; max-width: 13em; width: var(--col); }

.fit {
  font-size: min(var(--max, 13rem), calc(var(--col) / (var(--chars) * .54)));
  line-height: .86; letter-spacing: -.05em; white-space: nowrap;
}
.phero--index .fit { --max: 17rem; padding-bottom: .14em; }

[data-title] span[style*="overflow"] { padding: .1em .05em .24em; margin: -.1em -.05em -.24em; }

.facts { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); max-width: min(100%, 60rem); }
.facts > div { display: grid; gap: 4px; align-content: start; }
.facts dt { font-weight: 600; font-variation-settings: 'opsz' 36, 'wght' 600; font-size: var(--t-2); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.facts dt a { text-decoration-color: var(--signal); }
.facts dd { font-size: var(--t--1); color: var(--muted); line-height: 1.35; }

/* the reading sheet: paper over the parts, whatever tone the entry opened on */

.sheet {
  position: relative;
  background: var(--bg); color: var(--fg);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-6);
  padding: var(--s-9) var(--pad) var(--s-10);
  border-radius: var(--r-menu) var(--r-menu) 0 0;
  box-shadow: 0 -1px 0 rgb(23 26 33 / .06), 0 -24px 60px -30px rgb(23 26 33 / .35);
}
.sheet__side { grid-column: 1 / span 3; position: sticky; top: 96px; align-self: start; display: grid; gap: var(--s-6); }
.toc ol { list-style: none; padding: 0; margin-top: var(--s-3); display: grid; border-top: 1px solid var(--line); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 28px 1fr; gap: 0; padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none; font-size: var(--t--1); line-height: 1.3; color: var(--muted);
  transition: color 160ms var(--ease-out-quint), border-color 160ms var(--ease-out-quint);
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--subtle); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--fg); border-bottom-color: var(--fg); }
.toc a[aria-current="true"] { color: var(--fg); border-bottom-color: var(--signal); }

.go {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-5);
  background: var(--fg); color: var(--on-fg); border-radius: var(--r-1);
  font-size: var(--t--1); font-variation-settings: 'opsz' 18, 'wght' 600; font-weight: 600;
  text-decoration: none;
  transition: background 160ms var(--ease-out-quint);
}
.go:hover { background: var(--hover); }

.prose { grid-column: 5 / -1; min-width: 0; display: grid; gap: var(--s-5); align-content: start; }
.prose > p, .prose > .bullets {
  font-family: var(--serif); font-weight: 450; font-size: var(--t-read); line-height: 1.62;
  letter-spacing: 0; color: var(--ink-2); max-width: 64ch;
}
.prose > p:first-child { font-size: var(--t-1); line-height: 1.5; color: var(--fg); }
.prose > p a, .prose li a, .prose dd a { text-decoration-color: var(--signal); }
.prose h2 { font-size: var(--t-3); margin-top: var(--s-7); max-width: 18em; }
.prose h3 { font-size: var(--t-1); letter-spacing: -.02em; line-height: 1.15; margin-top: var(--s-4); }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86em; background: var(--plate); padding: .08em .35em; border-radius: var(--r-1); }
.prose .formula { max-width: none; }
.prose .formula code { display: inline-block; font-size: var(--t--1); padding: var(--s-3) var(--s-4); border-radius: var(--r-2); white-space: pre-wrap; }
.prose .code { background: var(--fg); color: var(--on-fg); border-radius: var(--r-2); padding: var(--s-5); overflow-x: auto; font-size: var(--t--1); line-height: 1.6; max-width: 64ch; }
.prose .code code { background: none; padding: 0; font-size: inherit; }
.bullets { padding-left: 1.2em; display: grid; gap: var(--s-2); }
.prose__end { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); font-family: var(--font) !important; font-size: var(--t--1) !important; color: var(--subtle) !important; }

.defs { border-top: 1px solid var(--line); max-width: 72ch; }
.defs > div { display: grid; grid-template-columns: minmax(140px, 2fr) minmax(0, 5fr); gap: var(--s-6); padding: var(--s-5) 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.defs dt { font-variation-settings: 'opsz' 28, 'wght' 600; font-weight: 600; font-size: var(--t-0); letter-spacing: -.015em; line-height: 1.2; }
.defs dd { font-family: var(--serif); font-weight: 450; color: var(--ink-2); line-height: 1.55; }

.table-wrap { overflow-x: auto; max-width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: var(--t--1); }
.table th { text-align: left; color: var(--subtle); padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line); font-weight: 500; white-space: nowrap; }
.table td { padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-variant-numeric: tabular-nums; }
.table td:first-child { font-variation-settings: 'opsz' 24, 'wght' 600; font-weight: 600; }

/* figures: screenshots, film and charts drawn from the post's own numbers */

.shot, .chart, .film { margin: var(--s-4) 0; display: grid; gap: var(--s-3); }
.shot img, .film video { width: 100%; height: auto; border-radius: var(--r-2); background: var(--plate); }
.film video { aspect-ratio: 16 / 9; }
.shot figcaption, .chart figcaption, .film figcaption { font-size: var(--t--1); color: var(--subtle); line-height: 1.45; max-width: 70ch; }
.chart { border-top: 2px solid var(--fg); padding-top: var(--s-5); }
.chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.chart svg[viewBox^="0 0 560"] { max-width: 600px; }

.t-label { font-size: 15px; font-weight: 600; fill: var(--fg); letter-spacing: -.01em; }
.t-val { font-size: 14px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.t-small { font-size: 13px; fill: var(--muted); }
.t-axis { font-size: 12px; fill: var(--subtle); font-variant-numeric: tabular-nums; }
.t-halo { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.t-strong { fill: var(--fg); font-weight: 600; }
.f-ink { fill: var(--fg); }
.f-ink2 { fill: var(--ink-2); opacity: .55; }
.f-ink3 { fill: var(--fg); opacity: .18; stroke: var(--fg); stroke-width: 1; stroke-opacity: .6; }
.f-signal { fill: var(--signal); }
.f-signal-soft { fill: var(--signal-soft); }
.f-key { fill: var(--key); }
.s-key { stroke: var(--fg); stroke-opacity: .35; stroke-width: 1; }
.s-grid { stroke: var(--line); stroke-width: 1; }
.s-ink { stroke: var(--fg); stroke-width: 1.4; }
.s-ink2 { stroke: var(--ink-2); stroke-opacity: .55; stroke-width: 2; }
.s-signal { stroke: var(--signal); stroke-width: 2.4; stroke-linejoin: round; }
.s-dash { stroke-dasharray: 5 6; }
.s-path { stroke-linecap: round; stroke-linejoin: round; }
.s-dot { stroke-width: 2.1; stroke-linecap: round; }

/* the next post: its part assembles in its own tone */

.next {
  position: relative; display: grid; align-content: end; gap: var(--s-4);
  min-height: 92vh; padding: var(--pad) var(--pad) calc(var(--pad) * 1.5);
  text-decoration: none; color: var(--fg);
}
.next__stage { position: absolute; top: 8vh; right: var(--pad); width: min(46vw, 700px); height: 64vh; pointer-events: none; }
.next__title {
  font-weight: 600; font-variation-settings: 'opsz' 40, 'wght' 600;
  font-size: var(--t-3); line-height: 1; letter-spacing: -.04em; max-width: 16em; text-wrap: balance;
  transition: color 200ms var(--ease-out-quint);
}
.next .label { color: var(--muted); }
.next:hover .next__title { color: var(--hover); }

.legal { padding: var(--s-5) var(--pad) var(--s-6); font-size: var(--t--1); }
.legal__pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding: 14px 28px; border-radius: 999px; corner-shape: squircle; background: #f7f5f0; color: #14161b; }
.legal__pill a, .legal__pill span { color: inherit; }

/* index: the list on the left, the part for the entry in view on the right */

.feed {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--s-6);
  padding: var(--s-8) var(--pad) var(--s-10);
}
.feed__title { grid-column: 1 / -1; font-size: var(--t--1); font-weight: 500; letter-spacing: 0; color: var(--subtle); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); font-variation-settings: 'opsz' 18, 'wght' 500; }
.entries { grid-column: 1 / span 7; list-style: none; padding: 0; }
.feed__stage { grid-column: 8 / -1; grid-row: 2; position: sticky; top: 12vh; height: 76vh; pointer-events: none; }

.entry {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-3);
  padding: var(--s-6) 0; border-bottom: 1px solid var(--line-soft);
  text-decoration: none; color: var(--fg);
  transition: border-color 200ms var(--ease-out-quint);
}
.entry > * { grid-column: 2; }
.entry__no { grid-column: 1; grid-row: 1 / span 2; font-size: var(--t--1); color: var(--subtle); font-variant-numeric: tabular-nums; padding-top: .15em; }
.entry__project { font-size: var(--t--1); color: var(--signal-ink); font-weight: 600; }
.entry__title { font-size: var(--t-2); line-height: 1.04; letter-spacing: -.035em; max-width: 20em; transition: color 200ms var(--ease-out-quint), translate 420ms var(--ease-out-expo); }
.entry__desc { font-family: var(--serif); font-weight: 450; color: var(--muted); max-width: 58ch; line-height: 1.5; }
.entry__meta { display: flex; gap: var(--s-5); font-size: var(--t--1); color: var(--subtle); font-variant-numeric: tabular-nums; }
.entry__thumb { display: none; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-2); background: var(--plate); margin-top: var(--s-2); }
.entry:hover, .entry.is-on { border-bottom-color: var(--fg); }
.entry:hover .entry__title, .entry.is-on .entry__title { translate: 6px 0; }
.entry:hover .entry__title { color: var(--hover); }
html[data-field="off"] .entry__thumb { display: block; max-width: 520px; }
html[data-field="off"] .feed__stage { display: none; }
html[data-field="off"] .entries { grid-column: 1 / -1; }

html.js-anim [data-reveal] { opacity: 0; }

@media (max-width: 1080px) {
  .sheet__side { grid-column: 1 / -1; position: static; margin-bottom: var(--s-7); }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: var(--s-5); }
  .prose { grid-column: 1 / -1; }
  .entries { grid-column: 1 / -1; }
  .feed__stage { display: none; }
  /* With no part beside the list, the list becomes a sheet that slides over the first screen. */
  .feed { background: var(--bg); border-radius: var(--r-menu) var(--r-menu) 0 0; box-shadow: 0 -1px 0 rgb(23 26 33 / .06), 0 -24px 60px -30px rgb(23 26 33 / .35); }
  .entry__thumb { display: block; max-width: 640px; }
}

@media (max-width: 860px) {
  .phero { --col: calc(100vw - var(--pad) * 2); padding-top: 54vh; }
  .phero__stage { top: 8vh; right: 0; width: 100vw; height: 42vh; }
  .phero__lead { font-size: var(--t-0); color: var(--fg); }
  .facts { gap: var(--s-4) var(--s-6); }
  .facts dt { font-size: var(--t-1); }
  .fit { font-size: min(var(--max, 13rem), calc((100vw - var(--pad) * 2) / (var(--chars) * .6))); }
  .sheet { padding-top: var(--s-8); border-radius: 16px 16px 0 0; }
  .defs > div { grid-template-columns: 1fr; gap: var(--s-2); }
  .next { min-height: 80vh; }
  .next__stage { top: 4vh; right: 0; width: 100vw; height: 44vh; }
  .entry { grid-template-columns: 32px minmax(0, 1fr); }
  .legal__pill { border-radius: 24px; padding: 14px 20px; }
}

/* On a phone a wide chart keeps readable labels and scrolls sideways instead of shrinking. */
@media (max-width: 640px) {
  .chart { overflow-x: auto; }
  .chart svg:not([viewBox^="0 0 560"]) { width: 620px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .12ms !important; }
}
