/* jonathan-weiss.de, one stylesheet for every page.
   Editorial layout: the work is the page, contact sits in the nav and at the end.

   Colors are designed in OKLCH (noted beside each token) and written as hex,
   because pa11y's contrast checker cannot parse oklch(). Colors and font
   families are only ever set through the tokens below.

   Theme: js/theme.js sets [dark] on <html> (plus .js). Without JavaScript the
   system preference applies through the :root:not(.js) block. */

/* Work Sans, self-hosted (Google Fonts v24, 2026-03-15). One variable file per subset. */
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/fonts/work-sans-normal-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/fonts/work-sans-normal-latin-ext.woff2') format('woff2'); 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: 'Work Sans'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/fonts/work-sans-normal-latin.woff2') format('woff2'); 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; }

/* JetBrains Mono (OFL, fonts/OFL-JetBrainsMono.txt), subset to the characters dates use:
   digits, slash, hyphen, space and a-z (Google Fonts text= subset, 2026-11-13).
   js/tests/design-gates.test.js fails if a date uses a character outside it. */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-dates.woff2') format('woff2'); unicode-range: U+20, U+2D, U+2F-39, U+61-7A; }

:root {
  --font: 'Work Sans', system-ui, sans-serif;
  /* Dates only (Work, Talks, press, founder and managing director years): the site's one signature detail. */
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --paper: #f4f7fb; /* oklch(97.6% 0.006 255) */
  --paper-2: #e9edf3; /* oklch(94.5% 0.009 255) */
  --ink: #0f1828; /* oklch(21% 0.035 262) */
  --ink-2: #464d5b; /* oklch(42% 0.025 262) */
  --rule: #cdd1d9; /* oklch(86% 0.012 262) */
  --rule-strong: #0f1828; /* oklch(21% 0.035 262) */
  --accent: #285cc2; /* oklch(50% 0.17 262) */
  --accent-ink: #f7f8fc; /* oklch(98% 0.005 262) */
  --focus: #285cc2; /* oklch(50% 0.17 262) */
  --band: #0f1828; /* oklch(21% 0.035 262) */
  --band-ink: #f4f7fb; /* oklch(97.6% 0.006 255) */
  --band-ink-2: #b7becb; /* oklch(80% 0.02 262) */
  --band-rule: #70819f; /* oklch(60% 0.05 262) */
  --field: #fcfeff; /* oklch(99.5% 0.003 255) */
  --field-border: #7b8492; /* oklch(61% 0.024 259), 3:1 on --field and --paper-2 */
  /* Photos are near-black studio shots: invisible edge on light paper, a hairline on dark. */
  --photo-edge: transparent;
  /* The JW tile (brand/README.md): ink ground, paper letters, accent strip. Drawn
     from the theme tokens, so it inverts in dark mode; print pins the brand
     colors (--brand-*), which no theme changes. */
  --brand-ink: #0f1828; /* oklch(21% 0.035 262) */
  --brand-paper: #f4f7fb; /* oklch(97.6% 0.006 255) */
  --brand-accent: #285cc2; /* oklch(50% 0.17 262) */
  --tile: var(--ink);
  --tile-ink: var(--paper);
  --tile-strip: var(--accent);

  --text-display: clamp(2.5rem, 5.2vw, 5rem);
  --text-section: clamp(2rem, 3.4vw, 3.25rem);
  --text-title: 1.5rem;
  --text-lead: clamp(1.125rem, 1.4vw, 1.3rem);
  --text-md: 1.0625rem;
  --text-sm: 0.9rem;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 144px;

  --container: 1320px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --header: 72px;
  --radius: 4px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* Dark is designed, not inverted: lifted navy paper, softer ink, a lighter accent. */
:root[dark] {
  --paper: #0d1118; /* oklch(17.5% 0.016 262) */
  --paper-2: #141a23; /* oklch(21.5% 0.02 262) */
  --ink: #e8ebf1; /* oklch(94% 0.008 262) */
  --ink-2: #acb1bb; /* oklch(76% 0.015 262) */
  --rule: #2d333d; /* oklch(32% 0.02 262) */
  --rule-strong: #e8ebf1; /* oklch(94% 0.008 262) */
  --accent: #7daafd; /* oklch(74% 0.13 262) */
  --accent-ink: #0b0f18; /* oklch(17% 0.02 262) */
  --focus: #85b6ff; /* oklch(78% 0.14 262) */
  --band: #171f2e; /* oklch(24% 0.03 262) */
  --band-ink: #f0f2f6; /* oklch(96% 0.006 262) */
  --band-ink-2: #b7becb; /* oklch(80% 0.02 262) */
  --band-rule: #596986; /* oklch(52% 0.05 262) */
  --field: #12161e; /* oklch(20% 0.018 262) */
  --field-border: #6c7789; /* oklch(57% 0.031 260), 3:1 on --field and --paper-2 */
  --photo-edge: var(--rule);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not(.js) {
    --paper: #0d1118; /* oklch(17.5% 0.016 262) */
    --paper-2: #141a23; /* oklch(21.5% 0.02 262) */
    --ink: #e8ebf1; /* oklch(94% 0.008 262) */
    --ink-2: #acb1bb; /* oklch(76% 0.015 262) */
    --rule: #2d333d; /* oklch(32% 0.02 262) */
    --rule-strong: #e8ebf1; /* oklch(94% 0.008 262) */
    --accent: #7daafd; /* oklch(74% 0.13 262) */
    --accent-ink: #0b0f18; /* oklch(17% 0.02 262) */
    --focus: #85b6ff; /* oklch(78% 0.14 262) */
    --band: #171f2e; /* oklch(24% 0.03 262) */
    --band-ink: #f0f2f6; /* oklch(96% 0.006 262) */
    --band-ink-2: #b7becb; /* oklch(80% 0.02 262) */
    --band-rule: #596986; /* oklch(52% 0.05 262) */
    --field: #12161e; /* oklch(20% 0.018 262) */
    --field-border: #6c7789; /* oklch(57% 0.031 260), 3:1 on --field and --paper-2 */
    --photo-edge: var(--rule);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: var(--space-xl); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--text-md)/1.6 var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; font-synthesis: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
/* Weights stay at 600 or below: hierarchy comes from size, not boldness. */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
.hero__portrait img, .split img, .doc__portrait img, .doc__photo img, .kit__photos img { box-shadow: 0 0 0 1px var(--photo-edge); }
svg.icon { width: 20px; height: 20px; }
a { color: inherit; text-decoration-color: var(--rule); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; transition: text-decoration-color 160ms var(--ease-out), color 160ms var(--ease-out); }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: var(--space-md); top: -100px; z-index: 50; padding: var(--space-sm) var(--space-md); border-radius: var(--radius); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--space-md); color: var(--paper); }

.button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 48px; padding: var(--space-xs) var(--space-lg); border: 0; border-radius: var(--radius); background: var(--ink); color: var(--paper); font: inherit; font-weight: 600; text-align: center; text-decoration: none; white-space: normal; cursor: pointer; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.button:hover { background: var(--accent); color: var(--accent-ink); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: progress; opacity: 0.7; }
.text-link { font-weight: 600; }
.lead { font-size: var(--text-lead); color: var(--ink-2); }
.after { margin-top: var(--space-lg); }
.link-list { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); list-style: none; }

.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius); background: none; color: var(--ink-2); cursor: pointer; transition: color 160ms var(--ease-out); }
.icon-button:hover { color: var(--ink); }

/* ---------- header and navigation ---------- */
.site-header { position: relative; z-index: 20; }
.nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-lg); min-height: var(--header); }
.logo { margin-right: auto; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
/* The wordmark's full stop (brand/README.md): an accent square on the baseline,
   0.2em wide with a 0.08em gap, as in brand/logo/wordmark.svg. Decorative. */
.logo__mark { display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.08em; background: var(--accent); }
@media (forced-colors: active) { .logo__mark { background: CanvasText; } }
.nav__list { display: flex; flex-wrap: wrap; gap: var(--space-lg); list-style: none; }
.nav__link { color: var(--ink-2); text-decoration: none; }
.nav__link[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.nav-buttons { display: flex; align-items: center; margin-right: -10px; }
/* The same page in the other language, outside the menu so it stays one tap away
   on phones. The menu's size (smaller read as a mistake, 2026-11-15), the
   language named in itself; a hairline sets it apart from the pages. */
.lang-switch { position: relative; display: inline-grid; place-items: center; min-height: 44px; padding-inline: calc(var(--space-lg) + 10px) 10px; color: var(--ink-2); text-decoration: none; }
.lang-switch::before { content: ''; position: absolute; left: 10px; top: 50%; height: 1.1em; transform: translateY(-50%); border-left: 1px solid var(--rule); }
.lang-switch:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.nav__open, .nav__close { display: none; }

/* Keep this breakpoint in sync with MOBILE_MENU in js/common.js. */
@media (max-width: 48rem) {
  .menu-ready .nav__open { display: inline-grid; }
  /* Beside the menu button there is nothing to set it apart from. */
  .menu-ready .lang-switch { padding-inline: 10px; }
  .menu-ready .lang-switch::before { display: none; }
  .menu-ready .main-nav { display: none; }
  .menu-ready .main-nav.is-open { display: block; position: fixed; inset: 0; z-index: 30; overflow-y: auto; background: var(--paper); padding: calc(var(--header) + var(--space-md)) var(--gutter) var(--space-xl); }
  .menu-ready .main-nav.is-open .nav__close { display: inline-grid; position: absolute; top: calc((var(--header) - 44px) / 2); right: calc(var(--gutter) - 10px); }
  .menu-ready .main-nav.is-open .nav__list { display: grid; gap: 0; }
  /* Keep the name visible above the open menu (it is inert while the menu is open). */
  .menu-ready .site-header:has(.main-nav.is-open) .logo { position: relative; z-index: 31; }
  .menu-ready .main-nav.is-open .nav__link { display: block; padding-block: var(--space-md); border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 1.75rem; font-weight: 600; }
}

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; min-height: min(calc(100svh - var(--header)), 720px); padding-block: var(--space-xl); }
.hero h1 { font-size: var(--text-display); max-width: 13ch; }
/* The lead carries the message under the name, so it is larger than other leads. */
/* On narrow phones it follows the viewport (4.8vw, never below the 17px body
   size), so each sentence of the lead stays on one line down to about 355px. */
.hero .lead { margin-top: var(--space-lg); max-width: 34ch; font-size: max(1.0625rem, min(clamp(1.25rem, 1.9vw, 1.6rem), 4.8vw)); line-height: 1.45; }
/* Role and what the work is about: one text in one size, two paragraphs. Only
   the name is larger, so the hero has two type sizes, not three. */
.hero .lead + .lead { margin-top: var(--space-md); }
/* One line per sentence: the three facts read as a short list. */
/* One sentence per line; the longest (German "Engineering-Executive bei
   Databricks.") needs about 36ch. */
.hero .hero__lead { max-width: 36ch; }
.hero__lead span { display: block; }
.actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
/* The portrait file is cut to 4:5 with headroom (from the studio original), so desktop shows it uncropped. */
.hero__portrait img { width: 100%; max-height: 640px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; border-radius: var(--radius); }

.section { padding-top: var(--space-4xl); }
.section__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-xl); align-items: end; margin-bottom: var(--space-2xl); }
.section__head--record { grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 6fr); }
/* Same columns as .record below, so the subhead lines up with the descriptions. */
.section__head--record h2 { grid-column: 1 / 3; }
.section__head--record p { grid-column: 3; }
.section__head--stack { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); margin-bottom: var(--space-xl); }
.section__head h2 { font-size: var(--text-section); }
.section__head p { max-width: 48ch; color: var(--ink-2); font-size: var(--text-lead); }

.record { list-style: none; border-top: 1px solid var(--rule-strong); }
.record li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 6fr); gap: var(--space-xl); align-items: baseline; padding-block: var(--space-lg); border-bottom: 1px solid var(--rule); }
.record__when { color: var(--ink-2); }
.record__when, .talks__date, .press td:first-child, .entries dt span { font-family: var(--font-mono); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.record h3 { font-size: var(--text-title); letter-spacing: -0.015em; }
.record__role { display: block; margin-top: var(--space-xs); color: var(--ink-2); font-size: var(--text-sm); font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.record__text { max-width: 60ch; color: var(--ink-2); }


.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.talks { list-style: none; }
.talks li { display: grid; grid-template-columns: 7ch minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); }
.talks li + li { border-top: 1px solid var(--rule); }
.talks__date { padding-top: 3px; color: var(--ink-2); }
.talks a { display: block; overflow-wrap: anywhere; font-weight: 400; text-decoration: none; }
.talks a span { display: block; }
.talks__venue { color: var(--ink-2); font-size: var(--text-sm); font-weight: 400; }
.talks__resource { margin-top: var(--space-xs); font-size: var(--text-sm); hyphens: auto; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.2em; }
.talks a:hover .talks__resource { text-decoration-color: currentColor; }
.talks__title { font-weight: 500; }

/* Four activities: one row on wide screens, two by two below 75rem, stacked below 60rem. */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xl); }
.ways div { padding-top: var(--space-lg); border-top: 2px solid var(--rule-strong); }
.ways h3 { margin-bottom: var(--space-sm); font-size: var(--text-title); }
.ways h3 a { text-decoration: none; }
.ways p { color: var(--ink-2); }

.close { margin-top: var(--space-4xl); padding-block: var(--space-xl); background: var(--band); color: var(--band-ink); }
/* The heading shares its baseline with the email address, the first line on the right. */
.close .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl); align-items: baseline; }
/* A quiet sign-off: the heading and the address share one size and one line. */
.close h2, .close__mail { font-size: clamp(1.25rem, 2.2vw, 2rem); }
.close__reach { display: grid; gap: var(--space-sm); justify-items: start; min-width: 0; }
.close__reach p { max-width: 65ch; color: var(--band-ink-2); }
.close a { color: var(--band-ink); text-decoration-color: var(--band-rule); }
.close a:hover { color: var(--band-ink); text-decoration-color: var(--band-ink); }
/* The heading links to the contact page, like the titles in "Beyond the day job": no underline until hover. */
.close h2 a { text-decoration-color: transparent; }
.close h2 a:hover { text-decoration-color: var(--band-ink); }
.close__mail { font-weight: 600; overflow-wrap: anywhere; }
.close :focus-visible { outline-color: var(--band-ink); }

/* ---------- the JW tile (site/layout.js tile()), always decorative ---------- */
.tile { display: block; flex-shrink: 0; }
.tile__ground { fill: var(--tile); }
.tile__letters { fill: var(--tile-ink); }
.tile__strip { fill: var(--tile-strip); }
@media (forced-colors: active) {
  .tile__ground, .tile__strip { fill: CanvasText; }
  .tile__letters { fill: Canvas; }
}
/* The printed letterhead: the letter template's head (brand/README.md) on paper,
   so a printed or PDF page names its author. Never on screen. */
.print-head { display: none; }

/* ---------- footer and scroll button ---------- */
.site-footer { padding-block: var(--space-xl); color: var(--ink-2); font-size: var(--text-sm); }
main > :last-child:not(.close) { margin-bottom: var(--space-3xl); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.site-footer__sign { display: inline-flex; align-items: center; gap: 0.75em; }
.site-footer__sign .tile { width: 2.2em; height: 2.2em; }
.site-footer ul { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); list-style: none; }
/* Theme switch: a footer item, not a header control. It names what it switches
   to; the hidden half drops out of the accessible name. It needs JavaScript;
   without it the system preference applies. */
.toggle-theme { min-height: 24px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.toggle-theme:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.toggle-moon, .toggle-sun { display: inline-flex; align-items: center; gap: 0.4em; }
.toggle-theme svg { width: 1.1em; height: 1.1em; }
.toggle-sun, :root[dark] .toggle-moon { display: none; }
:root[dark] .toggle-sun { display: inline-flex; }
:root:not(.js) .site-footer li:has(> .toggle-theme) { display: none; }

/* Keep this action in document flow, so it cannot cover article text. */
.top { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.top:hover { color: var(--ink); text-decoration: underline; }
.site-footer li:has(> .top[hidden]) { display: none; }

/* ---------- about ---------- */
/* The contents column never drops below 13.5rem, so every entry fits one line
   just above the 60rem breakpoint (interactions.spec.js checks it). */
.doc { display: grid; grid-template-columns: minmax(13.5rem, 3fr) minmax(0, 9fr); column-gap: var(--space-3xl); padding-top: var(--space-2xl); }
.page__intro, .page { grid-column: 2; min-width: 0; }
.toc { position: sticky; top: var(--space-xl); align-self: start; grid-column: 1; grid-row: 1 / span 2; font-size: var(--text-sm); }
.toc summary { display: none; }
.toc ol { display: grid; gap: var(--space-xs); padding-left: var(--space-md); border-left: 1px solid var(--rule); list-style: none; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.page__intro h1 { font-size: var(--text-display); }
.page__intro { max-width: 65ch; }
/* As wide as the paragraphs below (65ch of body text), not a measure of its own. */
.page__intro .lead { margin-top: var(--space-lg); }
.audience-links { margin-top: var(--space-lg); }
.audience-links a { display: inline-flex; align-items: center; min-height: 44px; }
.doc__portrait { margin-block: var(--space-2xl) 0; }
.doc__photo { margin-bottom: var(--space-xl); }
.doc__photo img { width: 100%; height: auto; border-radius: var(--radius); }
.photo-credit { margin-top: var(--space-xs); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.4; }
.photo-credit span { display: block; }
.doc__portrait img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.page section { padding-top: var(--space-3xl); }
.page section h2 { margin-bottom: var(--space-lg); font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
.page section h3 { margin-block: var(--space-xl) var(--space-md); font-size: var(--text-title); line-height: 1.3; }
.page section > p { max-width: 65ch; margin-bottom: var(--space-md); line-height: 1.7; }
/* Closing resource links use the section width rather than the prose measure,
   so they wrap only when the available space requires it. */
.page section > p.after { max-width: none; }
.entries { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); margin-block: var(--space-xl) var(--space-lg); border-top: 1px solid var(--rule-strong); }
.entries dt, .entries dd { padding-block: var(--space-lg); border-bottom: 1px solid var(--rule); }
.entries dt { padding-right: var(--space-lg); font-weight: 600; }
.entries dt span { display: block; color: var(--ink-2); font-size: var(--text-sm); font-weight: 400; font-variant-numeric: tabular-nums; }
.entries dd { max-width: 62ch; color: var(--ink-2); }

.table-scroll { overflow-x: auto; }
.press { width: 100%; border-collapse: collapse; margin-top: var(--space-md); font-size: var(--text-sm); }
.press th { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: 1px solid var(--rule-strong); font-weight: 600; text-align: left; white-space: nowrap; }
.press td { padding: var(--space-md) var(--space-md) var(--space-md) 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.press td:first-child, .press td:last-child { color: var(--ink-2); white-space: nowrap; }
.press td:first-child { font-variant-numeric: tabular-nums; }
.press td a, .press td strong { font-weight: 600; }
.press td a { text-decoration: underline; text-decoration-color: var(--ink-2); }
.press td a:hover { text-decoration-color: currentColor; }
.press td span { display: block; color: var(--ink-2); }
#press-toggle-row td { padding-top: var(--space-lg); border-bottom: 0; }
.press-toggle { min-height: 44px; padding: var(--space-xs) 0; border: 0; background: none; color: var(--ink); font: 600 var(--text-sm)/1.5 var(--font); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; cursor: pointer; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); padding-top: var(--space-2xl); }
.contact h1 { max-width: 10ch; font-size: var(--text-display); }
.contact .lead { max-width: 40ch; margin-top: var(--space-lg); }
.channels { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin-top: var(--space-2xl); border-top: 1px solid var(--rule-strong); }
.channels dt, .channels dd { padding-block: var(--space-md); border-bottom: 1px solid var(--rule); }
.channels dt { padding-right: var(--space-xl); color: var(--ink-2); }
.channels dd a { font-weight: 600; overflow-wrap: anywhere; }
.form-panel { display: grid; gap: var(--space-lg); align-content: start; padding: var(--space-xl); border-radius: var(--radius); background: var(--paper-2); }
.form-panel h2 { font-size: var(--text-title); }
.form { display: grid; gap: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field__hint { color: var(--ink-2); font-size: var(--text-sm); }
.field__warning:not(:empty) { display: block; margin-top: var(--space-xs); color: var(--ink); font-weight: 600; }
.field input, .field textarea { min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--field); color: var(--ink); font: inherit; transition: border-color 160ms var(--ease-out); }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field textarea { min-height: 180px; resize: vertical; }
.form__note { color: var(--ink-2); font-size: var(--text-sm); }

/* ---------- speaker kit (contact page) ---------- */
.kit { padding-top: var(--space-4xl); }
/* The two columns hold English and German assets, not competing bio lengths. */
.section__head--kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kit__nav { margin-bottom: var(--space-xl); }
.kit__nav a { font-weight: 600; }
.kit__group { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 2px solid var(--rule-strong); }
.kit__group h3 { margin-bottom: var(--space-lg); font-size: var(--text-title); }
.kit__group > p { color: var(--ink-2); }
.kit__bios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); align-items: start; }
.kit__bio h4 { margin: 0 0 var(--space-sm); font-size: var(--text-sm); font-weight: 600; }
.kit__word-count { color: var(--ink-2); font-weight: 400; }
.kit__bio > h4 { padding-block: var(--space-sm); font-size: var(--text-md); line-height: 1.6; }
.kit__bio p + h4 { margin-top: var(--space-lg); }
.kit__bio p { max-width: 62ch; margin-bottom: var(--space-md); color: var(--ink-2); }
.kit__disclosure summary { min-height: 44px; padding-block: var(--space-sm); font-weight: 600; cursor: pointer; }
.kit__disclosure-content { padding-top: var(--space-sm); }
.kit__audience { display: block; margin-top: var(--space-xs); color: var(--ink-2); font-size: var(--text-sm); font-weight: 400; }
.kit__topics dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); }
.kit__topics dt, .kit__topics dd { padding-block: var(--space-md); border-bottom: 1px solid var(--rule); }
.kit__topics dt { font-weight: 600; }
.kit__topics dd { max-width: 62ch; color: var(--ink-2); }
.kit__photos { display: flex; flex-wrap: wrap; gap: var(--space-xl); margin-top: var(--space-2xl); list-style: none; }
.kit__photos li { max-width: 100%; }
/* A shared 240px desktop height with each original's aspect ratio. On phones,
   the landscape image scales down naturally instead of cropping or stretching. */
.kit__photo--portrait { width: 192px; }
.kit__photo--landscape { width: 360px; }
.kit__photos img { width: 100%; height: auto; border-radius: var(--radius); }
.kit__photos a { display: grid; gap: var(--space-sm); font-size: var(--text-sm); font-weight: 600; }

/* ---------- legal pages and 404 ---------- */
.prose { max-width: calc(72ch + 2 * var(--gutter)); padding-top: var(--space-2xl); }
.prose h1 { margin-bottom: var(--space-xl); font-size: var(--text-section); overflow-wrap: anywhere; hyphens: auto; }
.prose h2 { margin: var(--space-2xl) 0 var(--space-md); font-size: var(--text-title); overflow-wrap: anywhere; hyphens: auto; }
.prose h3 { margin: var(--space-xl) 0 var(--space-sm); font-size: 1.15rem; }
.prose p, .prose ul, .prose ol { margin-bottom: var(--space-md); line-height: 1.7; }
.prose ul, .prose ol { padding-left: var(--space-lg); }
.prose li + li { margin-top: var(--space-xs); }
.prose a { overflow-wrap: anywhere; }

.notice { padding-top: var(--space-3xl); }
.notice__code { color: var(--ink-2); font-size: var(--text-title); font-weight: 600; font-variant-numeric: tabular-nums; }
.notice h1 { margin-top: var(--space-sm); font-size: var(--text-display); }
.notice .lead { margin-top: var(--space-lg); max-width: 40ch; }
.notice__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xl); list-style: none; }

/* ---------- responsive ---------- */
@media (max-width: 75rem) {
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 60rem) {
  .section__head--record h2, .section__head--record p { grid-column: auto; }
  .hero, .split, .section__head, .doc, .close .container, .contact, .kit__bios { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .kit__topics dl { grid-template-columns: minmax(0, 1fr); }
  .kit__topics dt { padding-bottom: 0; border-bottom: 0; }
  .hero { min-height: 0; }
  /* Keep the introduction and contact action ahead of the portrait on small screens. */
  .hero__portrait img { max-height: 420px; aspect-ratio: 4 / 3; object-position: 50% 12%; }
  /* Use one treatment across the entire stacked layout. A separate phone cap
     made the conference photo jump from 320px to over 700px at 641px wide. */
  .split img { max-height: 420px; aspect-ratio: 4 / 3; object-position: 50% 15%; }
  .record li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .page__intro, .page, .toc { grid-column: 1; grid-row: auto; }
  .toc { position: static; }
  .toc summary { display: list-item; min-height: 44px; padding-block: var(--space-sm); color: var(--ink); font-weight: 600; cursor: pointer; }
  .toc ol { margin-top: var(--space-sm); }
  .doc__portrait { margin-top: 0; }
  .entries { grid-template-columns: minmax(0, 1fr); }
  .entries dt { padding-bottom: 0; border-bottom: 0; }
  .section { padding-top: var(--space-3xl); }
  .form-panel { padding: var(--space-lg); }
}
@media screen and (max-width: 40rem) {
  :root { --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px; --space-4xl: 80px; }
  .hero__portrait img { max-height: 280px; aspect-ratio: 3 / 2; object-position: 50% 25%; }
  .section__head { margin-bottom: var(--space-xl); }
  /* Give long titles and translated actions the full width, including at
     enlarged text sizes; a date column leaves too little room on phones. */
  .talks li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .press th:last-child, .press [data-press-entry] td:last-child { display: none; }
  /* The language column is hidden; show the same value under the coverage. Generated
     content, so the markup (reader mode, copy, no CSS) holds the language only once. */
  .press [data-press-entry] td[data-language]::after { content: attr(data-language); display: block; margin-top: var(--space-xs); color: var(--ink-2); font-size: var(--text-sm); }
}

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

/* ---------- print: the About page as a CV ---------- */
@media print {
  /* Match the no-JavaScript dark selector so system preference cannot win in print. */
  :root, :root[dark], :root:not(.js) {
    /* Every token :root[dark] sets is reset here; design-gates.test.js checks the list. */
    --paper: #ffffff; --paper-2: #ffffff; --ink: #000000; --ink-2: #333333; --rule: #cccccc; --rule-strong: #000000;
    --accent: #000000; --accent-ink: #ffffff; --focus: #000000;
    --band: #ffffff; --band-ink: #000000; --band-ink-2: #333333; --band-rule: #cccccc;
    --field: #ffffff; --field-border: #666666; /* oklch(51% 0 0) */
    --photo-edge: transparent;
    --tile: var(--brand-ink); --tile-ink: var(--brand-paper); --tile-strip: var(--brand-accent);
    color-scheme: light;
  }
  body { font-size: 10.5pt; }
  .print-head { display: flex; align-items: flex-end; gap: 3mm; margin-bottom: 8mm; padding-bottom: 4mm; border-bottom: 0.25mm solid var(--rule); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-head__name { margin-right: auto; font-size: 20pt; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
  .print-head__name .logo__mark { background: var(--brand-accent); }
  .print-head__contact { color: var(--ink-2); font-size: 8pt; line-height: 1.35; text-align: right; }
  .print-head .tile { width: 11mm; height: 11mm; }
  .site-header, .site-footer, .top, .skip-link, .toc, .close, .after, #press-toggle-row { display: none !important; }
  .doc, .container { display: block; max-width: none; padding: 0; }
  #press-table tr[data-press-entry] { display: table-row !important; }
  /* Closed disclosures still include every bio in print, without requiring script. */
  .kit__disclosure::details-content { content-visibility: visible; }
  .kit__disclosure > .kit__disclosure-content { display: block !important; }
  a { text-decoration: none; }
  h2, h3 { break-after: avoid; }
  tr, li, dd { break-inside: avoid; }
}
