/* salvatoredidio.com — one stylesheet, no framework, no external font.
   Budget: 8 KB Brotli (hard limit 12). Every rule here is paying rent. */

/* ---------- tokens ---------- */

:root {
  /* Colour. Every token is defined twice, once per theme. A colour that works
     in light almost never works in dark. Text pairs are AAA on --paper and --tint.
     Near-white paper, as in a journal: it leaves the black-and-white photographs alone.
     Cobalt is the one colour for text, and it marks links; on hover a link turns to ink.
     Azzurro (--sky) is for graphic details only, never text: timeline, frontier rule,
     focus ring. 3.4:1 on paper, enough for non-text marks (WCAG 1.4.11). */
  --ink: #141414;
  --ink-soft: #45464a;
  --paper: #fdfdfc;
  --tint: #f4f4f2;
  --line: #e6e6e2;
  --line-strong: #86878c; /* borders that outline a control: 3:1 on paper */
  --accent: #1b3fa8;
  --accent-2: #141414;
  --sky: #2f8fd8;
  --mark: #fff1a8;

  /* Two families for text: serif for reading, sans for metadata. Mono is kept for
     code only; dates and figures use sans with tabular numerals. */
  --font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
    Georgia, "Times New Roman", serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* One scale, ratio 1.25 on a 1.125rem base. --fs-s is the smallest size on the
     site (metadata, captions, notes): 14px, never less. */
  --fs-s: 0.875rem;
  --fs-base: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-m: clamp(1.25rem, 1.1rem + 0.5vw, 1.4rem);
  --fs-l: clamp(1.5rem, 1.25rem + 0.9vw, 1.75rem);
  --fs-claim: clamp(2.3rem, 1.4rem + 3.4vw, 3.6rem);

  --s1: 0.25rem; --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s6: 1.5rem;  --s8: 2rem;    --s12: 3rem;   --s16: 4rem;
  --s24: 6rem;

  --measure: 64ch;
  --page: 72rem;
  --gutter: clamp(1rem, 0.6rem + 1.6vw, 1.5rem);
  --gap: var(--s8);

  --radius: 2px;

  /* Two durations: colour changes, then movement. Built-in easings are too weak
     to read as intentional. */
  --dur: 150ms;
  --dur-move: 200ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ededee;
    --ink-soft: #a9abb2;
    --paper: #111214;
    --tint: #191a1d;
    --line: #2c2e33;
    --line-strong: #6b6e76;
    --accent: #86b4ff;
    --accent-2: #ededee;
    --sky: #6cb8f2;
    --mark: #3d3410;
  }
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-wrap: pretty;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 var(--s4);
}

h2 { font-size: var(--fs-l); letter-spacing: -0.01em; margin-top: 0; }
h3 { font-size: var(--fs-m); }

p { margin: 0 0 var(--s4); max-width: var(--measure); }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--accent-2); }
}

/* Never outline: none. This is the one style that must survive every redesign. */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: var(--radius);
}

img { max-width: 100%; height: auto; display: block; }

mark { background: var(--mark); color: var(--ink); padding: 0 0.2em; }

/* Metadata voice: sans, small, soft, tabular figures. Replaces the old monospace. */
.meta, .date, .when, .updated {
  font-family: var(--font-sans);
  font-size: var(--fs-s);
  line-height: 1.45;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* Text for screen readers only. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- layout ---------- */

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

/* Space between sections always exceeds space inside them. This single rule is
   what makes a text-only site look designed. */
main > section { margin-block: var(--s24); }
main > section > * + * { margin-top: var(--s6); }

.skip {
  position: absolute;
  left: -9999px;
  top: var(--s2);
  background: var(--paper);
  color: var(--ink);
  padding: var(--s3) var(--s4);
  border: 2px solid var(--accent);
  z-index: 10;
}
.skip:focus { left: var(--gutter); }

/* ---------- 1. header + nav ---------- */
/* Section numbers follow the component inventory in DOCUMENTO-DI-PROGETTO §7.4. */

.site-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s8);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
}

/* The name, set in the reading serif: the site is a person, not a brand. */
.site-head a.home {
  font-family: var(--font-serif);
  font-size: 1.2rem; /* between --fs-base and --fs-m on purpose: a name, not a heading */
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (hover: hover) and (pointer: fine) {
  .site-head a.home:hover { color: var(--accent-2); }
}

/* No hamburger: it needs JS or a :checked hack. On narrow screens the items
   wrap onto a second line — every page stays visible, nothing hides off-screen. */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  font-family: var(--font-sans);
  font-size: var(--fs-s);
  color: var(--ink);
  white-space: nowrap;
  text-decoration: underline 1px transparent;
  text-underline-offset: 0.3em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color var(--dur) var(--ease-out), text-decoration-color var(--dur) var(--ease-out);
}
.site-nav a:hover { color: var(--accent); text-decoration-color: currentColor; }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 40rem) {
  .site-head { padding-block: var(--s3); row-gap: 0; }
  /* The six items share the full width: one line from 360px phones up; narrower ones wrap. */
  .site-nav { width: 100%; }
  .site-nav ul { gap: 0 0.375rem; justify-content: space-between; }
}

/* ---------- 3. section: links in a row ---------- */

.links {
  font-family: var(--font-sans);
  font-size: var(--fs-s);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.links a { min-height: 44px; display: inline-flex; align-items: center; }
.label .links { font-size: 1rem; } /* the routes to inner pages: a step above metadata */
/* The routes to the inner pages: an arrow says "more of this", hidden from screen readers. */
.label .links a[href^="/"]::after { content: "\00a0\2192"; content: "\00a0\2192" / ""; text-decoration: none; display: inline-block; }

/* ---------- 8. data table ---------- */

.scroll-x { overflow-x: auto; max-width: 52rem; }

.data {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: var(--fs-s);
  text-align: left;
}
.data th, .data td {
  padding: var(--s3) var(--s4) var(--s3) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data thead th {
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  border-bottom-color: var(--ink-soft);
}
.data td:not(:first-child) { color: var(--ink-soft); white-space: nowrap; }
.data .num { font-variant-numeric: tabular-nums; }

/* ---------- 9. video facade ---------- */

/* A talk is a plain link (.watch, in the rows below) until someone clicks it:
   an embedded player costs 500 KB+ to everyone who never presses play. */

/* ---------- 10. footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: var(--s8) var(--s12);
  margin-top: var(--s8);
  font-family: var(--font-sans);
  font-size: var(--fs-s);
  color: var(--ink-soft);
}
.site-foot p { max-width: var(--measure); margin-bottom: var(--s2); }
.site-foot .weight { color: var(--ink); font-variant-numeric: tabular-nums; }
.site-foot .impact { color: var(--ink); }
.site-foot .impact .weight { font-weight: 600; }
.site-foot ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
}
.site-foot ul a { min-height: 44px; display: inline-flex; align-items: center; }
/* On the section grid: the page's weight in the label column, the rest under the content. */
@media (min-width: 56rem) {
  .site-foot { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .site-foot > * { grid-column: 4 / -1; }
  .site-foot > .impact { grid-column: 1 / span 3; grid-row: 1 / span 4; }
}
/* Links inside a sentence stay inline: WCAG 2.5.8 exempts them, and a block would break the line. */

/* ---------- 3. section on inner pages: page head, facts; 7. publication entry ---------- */

.page-head { display: grid; gap: var(--s6); padding-block: var(--s16) var(--s12); }
.page-head h1 { font-size: var(--fs-claim); letter-spacing: -0.02em; line-height: 1.05; max-width: 16ch; margin: 0; }
.page-head p { margin: 0; }
.lede { font-size: var(--fs-m); line-height: 1.5; color: var(--ink-soft); }
.page-head .lede { max-width: 46ch; }
.page-head .contact { font-size: var(--fs-m); font-weight: 600; overflow-wrap: anywhere; }
.page .sec { padding-block: var(--s12); }
@media (min-width: 56rem) { .page .sec { padding-block: var(--s16); } }
/* Running text flows inside the content column; the home's gap-based body is for blocks. */
.page .sec > .body { display: block; }
.page .sec > .body > * + * { margin-top: var(--s4); }
.page .sec > .body > h3 { margin-top: var(--s8); }
.page ul:not([class]) { max-width: var(--measure); margin: 0; padding-left: 1.2em; }
.page ul:not([class]) > li + li { margin-top: var(--s3); }
code { font-family: var(--font-mono); font-size: 0.9em; }

.portrait { margin: var(--s2) 0 0; max-width: 14rem; }
.portrait img { border: 1px solid var(--line); }
.facts { max-width: var(--measure); margin: 0; }
.facts dt { font-family: var(--font-sans); font-size: var(--fs-s); font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); margin-top: var(--s4); }
.facts dd { margin: var(--s1) 0 0; }
.data.text td:not(:first-child) { white-space: normal; }
.data.text td.num { white-space: nowrap; }
.data .line { display: block; }
.data .recog { font-size: 0.92em; }
.questions { max-width: var(--measure); padding-left: 1.4em; font-size: var(--fs-m); line-height: 1.45; }
.page .refs { list-style: none; padding-left: 0; margin: 0; }
.refs li + li { margin-top: var(--s4); }
.refs .venue { display: block; font-family: var(--font-sans); font-size: var(--fs-s); color: var(--ink-soft); }
.refs .note { display: block; margin-top: var(--s2); max-width: var(--measure); }
.frontier { border-left: 3px solid var(--sky); padding-left: var(--s4); }

/* Under the talk card: what clicking it costs, said before the click. */
.facade-note {
  font-family: var(--font-sans);
  font-size: var(--fs-s);
  color: var(--ink-soft);
  margin-top: var(--s3);
}

/* ---------- 3. section + band ---------- */

/* A section is a label column (h2 + meta + links) and a content column.
   Below 56rem the label sits above the content. Spacing comes from gaps, not margins. */
.sec {
  display: grid;
  gap: var(--s6) var(--gap);
  padding-block: var(--s16);
  border-top: 1px solid var(--line);
}
.sec h2, .sec h3, .sec p, .hero h1, .hero p { margin: 0; }
.sec p + p { margin-top: var(--s4); }
.sec > .label { display: grid; gap: var(--s3); align-content: start; }
.sec > .body { min-width: 0; display: grid; gap: var(--s8); align-content: start; }
@media (min-width: 56rem) {
  .sec { grid-template-columns: repeat(12, minmax(0, 1fr)); padding-block: var(--s24); }
  .sec > .label { grid-column: 1 / span 3; position: sticky; top: var(--s6); }
  .sec > .body { grid-column: 4 / -1; }
  .label .links { flex-direction: column; gap: 0; }
  .label .links a { min-height: 2.25rem; }
}

/* A tinted band groups the "recent activity" sections and breaks the even rhythm. */
.band { background: var(--tint); }
.band .sec { border-top: 0; }
.band .sec + .sec { border-top: 1px solid var(--line); }
.band + .wrap > .sec:first-child { border-top: 0; }

/* ---------- 2. hero ---------- */

.hero { display: grid; gap: var(--s8) var(--gap); padding-block: var(--s8) var(--s16); margin-block: 0; }
.hero > * + * { margin-top: 0; }
.hero .who { display: grid; gap: var(--s6); align-content: center; }
.eyebrow { font-family: var(--font-sans); font-size: var(--fs-s); line-height: 1.5; color: var(--ink-soft); max-width: none; }
.eyebrow strong { color: var(--ink); font-weight: 600; }
.hero h1 { font-size: var(--fs-claim); letter-spacing: -0.02em; line-height: 1.05; max-width: 14ch; }
.subclaim { font-size: var(--fs-m); line-height: 1.35; color: var(--ink-soft); max-width: 30ch; }
@media (min-width: 64rem) {
  .hero {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    min-height: min(calc(100svh - 5rem), 46rem);
    padding-block: var(--s8) var(--s12);
  }
  .hero .who { grid-column: 1 / span 6; }
  .hero .slider { grid-column: 7 / -1; }
}

/* Photographs: one at a time, swipe or arrows, never autoplay. Without JavaScript only
   the first shows; with it, the rest load on the first gesture near the slider. */
.slider { min-width: 0; }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { margin: 0; scroll-snap-align: start; }
.slide.later { display: none; }
.slider.ready .slide.later { display: block; }
.slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
@media (min-width: 64rem) { .slide img { aspect-ratio: 4 / 3; } }
.slide figcaption { margin-top: var(--s3); font-size: var(--fs-s); max-width: 52ch; }
.slider-nav { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); }
.slider-nav[hidden] { display: none; }
.slider-nav button { min-width: 44px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: none; color: var(--ink); font: inherit; font-family: var(--font-sans); cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.slider-nav button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .slider-nav button:hover { border-color: var(--ink); } }

/* ---------- 4. instrument card, and the home intro ---------- */

.sec .lede { font-size: var(--fs-m); line-height: 1.45; color: var(--ink); max-width: 46ch; }
.intro .lede { font-family: var(--font-sans); font-size: inherit; line-height: 1.6; max-width: 58ch; color: var(--ink-soft); }
.mission { max-width: 58ch; color: var(--ink-soft); font-family: var(--font-sans); line-height: 1.6; }

.instruments { display: grid; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 36rem) { .instruments { grid-template-columns: 1fr 1fr; } }
.instrument {
  display: grid; gap: var(--s2); align-content: start; height: 100%;
  padding: var(--s6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--dur-move) var(--ease-out), border-color var(--dur-move) var(--ease-out);
}
.instrument h3 { color: var(--ink); }
.instrument .verb { font-family: var(--font-sans); font-size: var(--fs-s); font-weight: 600; color: var(--accent); }
.instrument p { font-family: var(--font-sans); font-size: var(--fs-s); line-height: 1.55; color: var(--ink-soft); }
.instrument .go { font-family: var(--font-sans); font-size: var(--fs-s); color: var(--accent); margin-top: var(--s2); }
@media (hover: hover) and (pointer: fine) {
  .instrument:hover { transform: translateY(-2px); border-color: var(--ink-soft); }
  .instrument:hover .go { color: var(--accent-2); }
}
.instrument:active { transform: scale(0.99); }

/* ---------- 5. rows: one pattern for news, papers, talks, courses ---------- */

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows > li { display: grid; gap: var(--s1) var(--s6); padding-block: var(--s4); border-bottom: 1px solid var(--line); }
@media (min-width: 36rem) { .rows > li { grid-template-columns: 6.5rem minmax(0, 1fr); align-items: baseline; } }
.rows .date { padding-top: 0.1em; }
.rows .what { max-width: var(--measure); }
/* Long titles: a lighter underline, full strength on hover. */
.rows .what > a, .refs a { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.22em; }
@media (hover: hover) and (pointer: fine) { .rows .what > a:hover, .refs a:hover { text-decoration-color: currentColor; } }
.rows .where { display: block; font-family: var(--font-sans); font-size: var(--fs-s); color: var(--ink-soft); margin-top: var(--s1); }
.rows > li.featured { padding-block: var(--s6); }
.rows .pin { display: block; font-size: var(--fs-s); font-weight: 600; color: var(--ink); }
.featured .what { font-size: var(--fs-m); line-height: 1.3; }
.watch { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; margin-top: var(--s2);
  font-family: var(--font-sans); font-size: var(--fs-s); font-weight: 600; }
.watch .arrow { display: inline-block; transition: transform var(--dur-move) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .watch:hover .arrow { transform: translateX(2px); } }
.rows .facade-note { margin-top: var(--s2); }

/* ---------- 6. themes index ---------- */

.sub { font-family: var(--font-sans); font-size: var(--fs-s); font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; margin-bottom: var(--s3) !important; }
.themes { display: grid; gap: 0 var(--gap); counter-reset: theme; list-style: none; margin: 0; padding: 0; }
@media (min-width: 36rem) { .themes { grid-template-columns: 1fr 1fr; } }
.themes li { counter-increment: theme; border-bottom: 1px solid var(--line); }
.themes li:first-child { border-top: 1px solid var(--line); }
@media (min-width: 36rem) { .themes li:nth-child(2) { border-top: 1px solid var(--line); } }
.themes a { display: grid; grid-template-columns: 2rem 1fr; gap: var(--s3); padding-block: var(--s3); min-height: 44px;
  align-items: baseline; color: var(--accent); text-decoration: none; line-height: 1.35; }
.themes a::before { content: counter(theme, decimal-leading-zero); font-family: var(--font-sans); font-size: var(--fs-s);
  color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .themes a:hover { color: var(--accent-2); } }

/* ---------- 3. section variant: contact, with a face ---------- */

.contact-body { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 36rem) { .contact-body { grid-template-columns: 7rem minmax(0, 1fr); gap: var(--s8); } }
.avatar img { width: 7rem; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--line); }
.contact-body p { font-size: var(--fs-m); line-height: 1.45; }
.contact-body .mail { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- 11. timeline: a strip on the home, the full list on About ---------- */

/* One dot per milestone; the type is in the shape, not the colour:
   project ●, organisation ○, academic ■, award ◆. */
.tl li::before, .tl-full ul > li::before, .tl-key li::before {
  content: ""; position: absolute; box-sizing: border-box;
  width: var(--dot); height: var(--dot); border: 2px solid var(--sky); background: var(--sky);
}
.t-project::before { border-radius: 50%; }
.t-organisation::before { border-radius: 50%; background: var(--paper) !important; }
.t-award::before { transform: rotate(45deg) scale(0.85); background: var(--paper) !important; }

.tl, .tl-full, .tl-key { --dot: 0.75rem; list-style: none; margin: 0; padding: 0; }
.tl-key { display: grid; gap: var(--s1); font-family: var(--font-sans); font-size: var(--fs-s); color: var(--ink-soft); }
.tl-key li { position: relative; padding-left: calc(var(--dot) + var(--s2)); }
.tl-key li::before { left: 0; top: 0.35em; }

/* Home strip: vertical on phones, horizontal from 56rem. */
.tl { position: relative; display: grid; gap: var(--s2); padding-left: calc(var(--dot) + var(--s4)); }
.tl::before { content: ""; position: absolute; left: calc(var(--dot) / 2 - 0.5px); top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--sky); transform-origin: top; }
.tl li { position: relative; }
.tl li::before { left: calc(-1 * (var(--dot) + var(--s4))); top: calc(50% - var(--dot) / 2); }
.tl a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s3); min-height: 44px; align-content: center; text-decoration: none; color: var(--ink); }
.tl .yr { font-family: var(--font-sans); font-size: var(--fs-s); font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tl .what { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.22em; }
.tl .note { font-family: var(--font-sans); font-size: var(--fs-s); line-height: 1.35; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) { .tl a:hover .what { text-decoration-color: currentColor; } }
@media (min-width: 56rem) {
  .tl { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s4); padding: calc(var(--dot) + var(--s4)) 0 0; }
  .tl::before { left: 0; right: 0; top: calc(var(--dot) / 2 - 0.5px); bottom: auto; width: auto; height: 1px; transform-origin: left; }
  .tl li::before { left: 0; top: calc(-1 * (var(--dot) + var(--s4))); }
  .tl a { flex-direction: column; align-items: flex-start; align-content: flex-start; gap: var(--s1); }
}
/* The line draws and the milestones arrive as the strip scrolls into view.
   Tied to scrolling, not to a clock; absent with reduced motion or without support. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .tl { view-timeline: --tl block; }
    .tl::before { animation: tl-draw-y linear both; animation-timeline: --tl; animation-range: cover 5% cover 30%; }
    .tl > li { animation: tl-in linear both; animation-timeline: --tl;
      animation-range: cover calc(6% + var(--i) * 3%) cover calc(13% + var(--i) * 3%); }
    @media (min-width: 56rem) { .tl::before { animation-name: tl-draw-x; } }
  }
}
@keyframes tl-draw-y { from { transform: scaleY(0); } }
@keyframes tl-draw-x { from { transform: scaleX(0); } }
@keyframes tl-in { from { opacity: 0; translate: 0 0.5rem; } }

/* About: years on the left, milestones on a vertical line. */
.tl-full > li { display: grid; gap: var(--s2) var(--s6); padding-block: var(--s3); scroll-margin-top: var(--s8); }
@media (min-width: 36rem) { .tl-full > li { grid-template-columns: 4rem minmax(0, 1fr); } }
.tl-full .yr { font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-full ul { list-style: none; margin: 0 0 0 calc(var(--dot) / 2); padding: 0 0 0 var(--s6); border-left: 1px solid var(--sky); max-width: var(--measure); }
.tl-full ul > li { position: relative; }
.tl-full ul > li + li { margin-top: var(--s2); }
.tl-full ul > li::before { left: calc(-1 * var(--s6) - var(--dot) / 2 - 0.5px); top: 0.45em; }
.tl-full > li:target .yr { color: var(--accent); }

/* ---------- development placeholders ---------- */

.todo {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-s);
  background: var(--mark);
  border: 1px dashed var(--accent-2);
  padding: var(--s1) var(--s2);
}

/* ---------- motion preference ---------- */

/* Reduced motion means fewer and gentler, not zero: colour transitions still
   aid comprehension. What goes is movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  a { transition: color var(--dur) linear; }
  .instrument:hover, .instrument:active, .watch:hover .arrow { transform: none; }
}

/* ---------- print ---------- */

@media print {
  .site-nav, .skip, .slider-nav { display: none; }
  .band { background: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
