/* benjaminmoritz.de
   Paper #F8F9F8  Ink #17232A  Slate #55626A  Rule #D8DEE0  Teal #0D6A6A  Plum #8B3A5A
   Source Serif 4 for reading, Hanken Grotesk for navigation, data and captions. */

@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("fonts/source-serif-4-latin-opsz-normal.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;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("fonts/source-serif-4-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url("fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/hanken-grotesk-latin-wght-normal.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;
}
@font-face {
  font-family: "Hanken Grotesk"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F8F9F8;
  --ink: #17232A;
  --slate: #55626A;
  --rule: #D8DEE0;
  --teal: #0D6A6A;
  --teal-dark: #0A5050;
  --plum: #8B3A5A;
  --wash: #E9EFEE;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --side: 13rem;
  --measure: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
[id] { scroll-margin-top: 4rem; }  /* room for the sticky jump bar */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.62;
  font-optical-sizing: auto; font-kerning: normal;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); text-wrap: balance; }
h3 { font-size: 1.1875rem; line-height: 1.35; font-weight: 600; margin: 0 0 .35rem; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem;
  font-family: var(--sans); font-weight: 600; z-index: 10; text-decoration: none; }
.skip:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 74rem; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* Header -------------------------------------------------------------- */
.site-head { border-bottom: 1px solid var(--rule); }
.head-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "word nav lang";
  align-items: baseline; gap: 1rem 2rem; padding-block: 1.1rem; }
.wordmark { grid-area: word; }
.site-head nav { grid-area: nav; justify-self: end; }
.wordmark { font-size: 1.3125rem; font-weight: 600; letter-spacing: -.005em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.site-head nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-head nav a { display: block; font-family: var(--sans); font-size: .9375rem; font-weight: 500; color: var(--ink);
  text-decoration: none; padding-block: .3rem; border-bottom: 2px solid transparent; }
.site-head nav a:hover { border-bottom-color: var(--rule); color: var(--ink); }
.site-head nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.lang-switch { grid-area: lang; font-family: var(--sans); font-size: .9375rem; font-weight: 500; color: var(--slate);
  text-decoration: none; padding: .3rem 0 .3rem clamp(1rem, 2.4vw, 2rem); border-left: 1px solid var(--rule); }
.lang-switch:hover { color: var(--ink); text-decoration: underline; }

/* Hero ---------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 27rem); gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start; padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-text { padding-top: .25rem; }
.hero h1, .page-head h1 { font-weight: 600; letter-spacing: -.022em; line-height: 1.02; margin: 0 0 1.4rem; }
.hero h1 { font-size: clamp(2.75rem, 6.4vw, 4.75rem); }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.45; max-width: 34rem; margin-bottom: 1rem; }
.hero-meta { font-family: var(--sans); font-size: .9375rem; line-height: 1.5; color: var(--slate); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; font-family: var(--sans); font-weight: 600; }

.btn { display: inline-block; font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: .9rem 1.35rem; border-radius: 3px; background: var(--teal); border: 1.5px solid var(--teal);
  color: #fff; text-decoration: none; }
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-quiet { background: transparent; color: var(--teal); }
.btn-quiet:hover { background: var(--wash); color: var(--teal-dark); }

.hero-fig { margin: 0; }
.tree-fig { display: block; width: 100%; height: auto; }
.tree-fig .split { stroke: var(--ink); stroke-linecap: square; stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  animation: draw .55s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: var(--d); }
.tree-fig .leaf { opacity: 0; animation: settle .7s ease forwards; animation-delay: var(--d); }
.tree-fig .frame { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.tree-fig text { font-family: var(--sans); font-size: 13px; fill: var(--slate); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .tree-fig .split { animation: none; stroke-dashoffset: 0; }
  .tree-fig .leaf { animation: none; opacity: 1; }
}
.hero-fig figcaption, .tree-box figcaption { font-family: var(--sans); font-size: .875rem; line-height: 1.55; color: var(--slate); margin-top: .75rem; }
.tree-box figcaption { padding-left: 34px; }
.tree-box { margin: 1.5rem 0 .5rem; max-width: 30rem; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; color: var(--ink); font-weight: 500; margin-bottom: .6rem; }
.legend-scale { display: inline-flex; align-items: center; gap: .5rem; color: var(--slate); font-weight: 400; }
.legend-bar { width: 6.5rem; height: .55rem; display: block; }

/* Recognition --------------------------------------------------------- */
.facts ul { list-style: none; margin: 0; padding: 1.75rem 0 2.5rem; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2.25rem; }
.facts li { font-family: var(--sans); line-height: 1.45; }
.facts strong { display: block; font-size: 1rem; font-weight: 650; margin-bottom: .2rem; }
.facts span { font-size: .875rem; color: var(--slate); }
.facts strong a { color: var(--ink); text-decoration-color: var(--rule); }
.facts strong a:hover { color: var(--teal-dark); text-decoration-color: var(--teal); }

/* Sections ------------------------------------------------------------ */
.sec { display: grid; grid-template-columns: var(--side) minmax(0, var(--measure)); column-gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(2.5rem, 5.5vw, 4.25rem); border-top: 1px solid var(--rule); }
.sec h2 { font-size: 1.5rem; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 0 0 1.25rem; }
.sec-body > :last-child { margin-bottom: 0; }
.muted { color: var(--slate); }
.ink { color: var(--ink); }

.portrait { display: block; width: 100%; max-width: var(--side); aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 2px; }
.portrait-missing { display: grid; place-items: center; background: var(--wash); color: var(--slate);
  font-family: var(--sans); font-size: .875rem; border: 1px dashed var(--rule); }

ul.squares { list-style: none; padding: 0; margin: 0 0 1.1em; }
ul.squares li { position: relative; padding-left: 1.35rem; margin-bottom: .35rem; }
ul.squares li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: .45em; height: .45em; background: var(--teal); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); gap: 1.25rem; padding-block: .7rem; }
.timeline > li + li { border-top: 1px solid var(--rule); }
.timeline .yr { font-family: var(--sans); font-size: .9375rem; color: var(--slate); font-variant-numeric: tabular-nums; padding-top: .18rem; }
.timeline .what strong { display: block; font-weight: 600; line-height: 1.4; }
.timeline .what > span { display: block; color: var(--slate); }
.timeline .what > span.ink { color: var(--ink); }
.timeline-long > li { padding-block: 1.1rem; }
.timeline-long .squares { margin-top: .75rem; font-size: 1.0625rem; }
.timeline-compact { margin-top: 1.25rem; font-size: 1rem; }
.timeline-compact > li { padding-block: .5rem; grid-template-columns: 3.75rem minmax(0, 1fr); }
.timeline .links { display: block; font-family: var(--sans); font-size: .875rem; margin-top: .15rem; }
.timeline .links a + a, p.links a + a { margin-left: 1rem; }
.more { margin-top: 1.25rem; font-family: var(--sans); font-weight: 600; }

.pointers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.pointers p { margin: 0; color: var(--slate); }
.pointers-plain { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-weight: 600; }
.pointers-plain li { margin-bottom: .5rem; }

.contact-mail { font-size: clamp(1.375rem, 2.6vw, 1.75rem); line-height: 1.3; margin-bottom: 1rem; }
.profiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-family: var(--sans); font-weight: 600; }

/* Sub pages ----------------------------------------------------------- */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.5rem, 5.4vw, 3.9rem); }
.page-head .actions { margin-top: 1.5rem; }

.paper + .paper { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.paper .meta { font-family: var(--sans); font-size: .9375rem; line-height: 1.5; color: var(--slate); margin: 0 0 .6rem; }
.paper p.links { font-family: var(--sans); font-size: .9375rem; font-weight: 600; margin: 0; }
.featured h3 { font-size: 1.4375rem; line-height: 1.3; }
.featured h3 a { color: var(--ink); text-decoration-color: var(--rule); }
.featured h3 a:hover { text-decoration-color: var(--teal); }

.table-title { margin-top: 2rem; font-size: 1.125rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .9375rem; line-height: 1.45; }
th { text-align: left; font-weight: 600; color: var(--slate); border-bottom: 1.5px solid var(--ink); padding: .45rem 1rem .45rem 0; }
td { border-bottom: 1px solid var(--rule); padding: .6rem 1rem .6rem 0; vertical-align: top; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--slate); }

.filter { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: 1.25rem; }
.filter button { font: 500 .875rem/1 var(--sans); padding: .6rem .8rem; border: 1px solid var(--rule); border-radius: 3px;
  background: #fff; color: var(--ink); cursor: pointer; }
.filter button:hover { border-color: var(--slate); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter .count { color: var(--slate); margin-left: .25rem; font-variant-numeric: tabular-nums; }
.filter button[aria-pressed="true"] .count { color: #B9C4C9; }
.filter-status { font-family: var(--sans); font-size: .875rem; color: var(--slate); min-height: 1.3em; margin: 0 0 .5rem; }
/* Research: timeline of all projects (zeitleiste.py) */
.tl-fig { position: relative; margin: 1.5rem 0 2.25rem; }
.tl-ask { font-family: var(--sans); font-size: .875rem; color: var(--slate); margin: -.4rem 0 .6rem; }
.tl-grid { border-bottom: 1px solid var(--ink); }
.tl-row { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: .75rem; align-items: center;
  border-top: 1px solid var(--rule); transition: opacity .2s; }
.tl-row.dim { opacity: .3; }
.tl-lab { display: flex; justify-content: space-between; align-items: center; gap: .5rem; width: 100%; min-height: 2.75rem;
  padding: .35rem .25rem .35rem 0; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer;
  font: 500 .875rem/1.25 var(--sans); }
.tl-lab .count { color: var(--slate); font-variant-numeric: tabular-nums; }
.tl-lab:hover span:first-child { text-decoration: underline; text-underline-offset: .2em; }
.tl-lab[aria-pressed="true"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--teal); padding-left: .55rem; }
.tl-cells, .tl-axis { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.tl-cells { padding-block: .4rem; row-gap: 1px; }
.tl-c { grid-row: 1; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 3px; min-height: 12px; }
.tl-m { display: inline-block; width: 10px; height: 10px; flex: none; }
.tl-sup { border-radius: 50%; background: var(--teal); }
.tl-own { border-radius: 1px; background: var(--ink); }
.tl-teach { border-radius: 50%; border: 2px solid var(--teal); background: var(--paper); }
.tl-lab-static { cursor: default; }
.tl-lab-static:hover span:first-child, .tl-lab-static:hover { text-decoration: none; }
.tl-work { border-top: 1px solid var(--ink); }
.tl-band { position: relative; height: 2rem; margin-block: .45rem; }
.tl-w { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 .5rem; overflow: hidden;
  background: var(--wash); border-left: 2px solid var(--paper); color: var(--ink); text-decoration: none;
  font: 500 .8125rem/1.05 var(--sans); }  /* a long name may take two lines */
.tl-w:hover { background: #DAE5E3; color: var(--ink); }
.tl-w-cut { border-left: 0; background: linear-gradient(to right, rgba(233, 239, 238, 0), var(--wash) 1.25rem); }
.tl-w-on { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); padding-right: 1rem; }
.tl-w .w-short { display: none; }
.tl-edu { border-top: 1px solid var(--rule); }
.tl-band-wrap { padding-block: .45rem; }
.tl-band-wrap .tl-band { margin: 0; }
.tl-dots { position: relative; height: 14px; margin-top: 6px; }
.tl-ss { display: inline-block; width: 9px; height: 9px; flex: none; transform: rotate(45deg); border: 2px solid var(--ink); background: var(--paper); }
.tl-dots .tl-ss { position: absolute; top: 2px; margin-left: -4.5px; }
[data-to] { position: relative; cursor: pointer; transition: opacity .2s; }
[data-to]::before { content: ""; position: absolute; inset: -4px; }
[data-to]:hover { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.tl-m.dim { opacity: .2; }
.tl-s { position: relative; height: 7px; margin-inline: calc(50% / var(--w, 1)); background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat; }
.tl-s.tl-on { margin-right: 0; }
.tl-s.tl-on::after { content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  border-left: 7px solid var(--ink); border-block: 4.5px solid transparent; }
.tl-axis-row { border-top: 0; }
.tl-axis span { font: .75rem/1 var(--sans); color: var(--slate); text-align: center; padding-block: .45rem .1rem;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-tip { position: absolute; z-index: 3; max-width: 22rem; margin: 0; padding: .45rem .6rem; border-radius: 3px;
  background: var(--ink); color: #fff; font: .8125rem/1.4 var(--sans); pointer-events: none; }
.tl-fig figcaption { font-family: var(--sans); font-size: .875rem; line-height: 1.5; color: var(--slate); margin-top: .75rem; }
.tl-legend { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-bottom: .35rem; color: var(--ink); }
.tl-key { display: inline-flex; align-items: center; gap: .45rem; }
.tl-k-s { display: inline-block; width: 22px; height: 2px; background: var(--ink); }
.tl-filter { padding-bottom: .75rem; }
.tl-reset { margin: 0 0 1rem; }
.tl-reset .btn { padding: .55rem .2rem; font-size: .9375rem; }
.tl-list { list-style: none; margin: 2rem 0 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--rule); display: grid; gap: 1.35rem; }
.tl-e { position: relative; scroll-margin-top: 6rem; }
.tl-e > .tl-m { position: absolute; left: calc(-1.4rem - 6px); top: .3rem; box-shadow: 0 0 0 3px var(--paper); }
.tl-e:target h3 { background: var(--wash); box-shadow: -.3rem 0 0 var(--wash), .3rem 0 0 var(--wash); }
.tl-when { display: flex; flex-wrap: wrap; gap: .1rem .65rem; margin: 0 0 .15rem; font-family: var(--sans);
  font-size: .875rem; line-height: 1.45; color: var(--slate); }
.tl-when .yr { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-stage { color: var(--teal-dark); font-weight: 600; }
.tl-on-tag { color: var(--plum); font-weight: 600; }
.tl-e h3 { font-size: 1.0625rem; line-height: 1.4; margin: 0 0 .1rem; }
.tl-who { margin: 0; font-size: .9688rem; color: var(--slate); }
.tl-res { margin: .4rem 0 0; padding-left: .75rem; border-left: 3px solid var(--teal); }
.tl-badges { margin: .45rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tl-badge { font: 600 .75rem/1 var(--sans); padding: .35rem .5rem; border: 1px solid var(--rule); border-radius: 3px; background: #fff; }
.tl-e p.links { margin: .35rem 0 0; font-family: var(--sans); font-size: .875rem; font-weight: 600; }
.talk-h, .sub-h { font-size: 1.1875rem; margin: 2rem 0 .25rem; }
/* Jump bar: under the page head, stays on top while scrolling and marks the part you are in (since 2.11.2026) */
.page-head.with-jump { padding-bottom: 1.5rem; }
.jump { position: sticky; top: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule); transition: box-shadow .2s ease; }
.jump.stuck { box-shadow: 0 6px 14px -12px rgba(23, 35, 42, .35); }
.jump ul { position: relative; display: flex; flex-wrap: nowrap; gap: 0 1.5rem; overflow-x: auto; scrollbar-width: none;
  list-style: none; margin: 0; padding: .25rem 0; font-family: var(--sans); font-size: .9375rem; font-weight: 500; }
.jump ul::-webkit-scrollbar { display: none; }
.jump ul.more { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.jump li { flex: none; }
.jump a { display: inline-block; padding-block: .45rem; color: var(--ink); white-space: nowrap; text-decoration-color: var(--rule); }
.jump a:hover { color: var(--teal-dark); text-decoration-color: var(--teal); }
.jump a.on { color: var(--teal-dark); text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.talk-h .count { font-family: var(--sans); font-size: .875rem; font-weight: 500; color: var(--slate); margin-left: .35rem; }
.talks { margin-bottom: .5rem; }
.talks > li { padding-block: .55rem; }
.talk-note { font-family: var(--sans); font-size: .875rem; color: var(--slate); margin-top: 1.25rem; }

.legal { max-width: var(--measure); padding-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; }
.legal h2:first-child { margin-top: 0; }
mark.todo { background: #FFF0A3; color: var(--ink); padding: 0 .2em; }

/* Footer -------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--rule); margin-top: 2rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem;
  padding-block: 1.75rem 2.25rem; font-family: var(--sans); font-size: .875rem; color: var(--slate); }
.foot-in p { margin: 0; }
.foot-in ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.foot-in a { color: var(--slate); }
.foot-in a:hover { color: var(--ink); }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 64rem) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 54rem) {
  .head-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "word lang" "nav nav"; gap: .35rem 1rem; padding-block: .9rem .2rem; }
  .site-head nav { justify-self: start; width: 100%; }
  .lang-switch { border-left: 0; padding-left: 0; }
  .site-head nav ul { flex-wrap: wrap; gap: 0 1.25rem; }
  .site-head nav a { padding-block: .45rem .5rem; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 2.5rem; }
  .hero-fig { max-width: 30rem; }
  .sec { grid-template-columns: minmax(0, 1fr); }
  .sec-side { display: flex; flex-direction: column; }
  #about .portrait { max-width: 10rem; margin-bottom: 1.5rem; }
}
@media (max-width: 34rem) {
  body { font-size: 1.0625rem; }
  .facts ul { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .timeline > li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .timeline-compact > li { grid-template-columns: 3.25rem minmax(0, 1fr); gap: .75rem; }
  .tree-box figcaption { padding-left: 0; }
  .tl-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tl-lab { min-height: 2.5rem; padding-bottom: 0; }
  .tl-lab-gap { display: none; }
  .tl-cells { padding-block: .2rem .55rem; }
  .tl-axis span:not(.tl-y3) { visibility: hidden; }
  .tl-m { width: 8px; height: 8px; }
  .tl-c { gap: 2px; }
  .tl-e > .tl-m { width: 10px; height: 10px; }
  .tl-w { padding: 0 .35rem; font-size: .75rem; }
  .tl-w .w-long { display: none; }
  .tl-w .w-short { display: inline; }
}
@media print {
  .site-head nav, .filter, .skip { display: none; }
  body { background: #fff; }
  .sec { break-inside: avoid; }
}

/* Approach page ------------------------------------------------------- */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--sans); }
.steps a { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.steps a:hover { color: var(--teal-dark); }
.step-no { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; flex: none; font-family: var(--sans); font-size: .8125rem;
  font-weight: 650; color: var(--teal); border: 1.5px solid var(--teal); border-radius: 2px; font-variant-numeric: tabular-nums; }
.step .sec-side .step-no { margin-bottom: .9rem; }
figure.expl { margin: 1.75rem 0 0; }
.expl-fig, .fan-fig { display: block; width: 100%; height: auto; }
.expl-fig text, .fan-fig text { font-family: var(--sans); }
.expl-fig .tick, .fan-fig .tick { font-size: 12px; fill: var(--slate); }
.expl-fig .axis, .fan-fig .axis { font-size: 12.5px; fill: var(--slate); }
.fan-fig .goal { font-size: 12px; font-weight: 600; fill: var(--plum); }
.fan-fig .halo { paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }
figure.expl figcaption { font-family: var(--sans); font-size: .875rem; line-height: 1.5; color: var(--slate); margin-top: .6rem; }
.fig-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: .5rem 0 0; font-family: var(--sans); font-size: .875rem; color: var(--ink); }
.fig-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.fig-legend i { display: inline-block; width: .8rem; height: .8rem; }
.fig-legend i.line { height: 2px; width: 1.1rem; background: var(--ink); }
.sim { margin-top: 1.75rem; }
.sim .control label { font-family: var(--sans); font-weight: 600; font-size: 1rem; }
.sim .control output { color: var(--teal); font-variant-numeric: tabular-nums; }
/* the mix as a pie beside the slider (since 2.11.2026) */
.sim-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; }
.mix { display: flex; align-items: center; gap: .9rem; }
.mix-pie { width: 4.5rem; height: 4.5rem; flex: none; }
.mix-pie circle { fill: none; stroke-width: 9; }
.mix-s { stroke: #C9D6D4; }
.mix-g { stroke: var(--teal); transition: stroke-dasharray .3s ease; }
.mix-key { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: .875rem; line-height: 1.6; }
.mix-key li { display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.mix-key i { width: .75rem; height: .75rem; flex: none; }
.mix-key i.g { background: var(--teal); } .mix-key i.s { background: #C9D6D4; }
.mix-key b { font-weight: 650; font-variant-numeric: tabular-nums; margin-left: auto; padding-left: .5rem; }
@media (max-width: 40rem) { .sim-top { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .mix-g { transition: none; } }
.range-row { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; font-family: var(--sans); font-size: .875rem; color: var(--slate); }
.range-row input { flex: 1; accent-color: var(--teal); min-width: 0; height: 1.75rem; }
.sim figure.expl { margin-top: 1rem; }
.sim-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 1.25rem 0 0; }
.sim-out dt { font-family: var(--sans); font-size: .875rem; line-height: 1.4; color: var(--slate); }
.sim-out dd { margin: .2rem 0 0; font-size: 1.75rem; line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
details.assume { margin-top: 1rem; font-family: var(--sans); font-size: .875rem; color: var(--slate); }
details.assume summary { cursor: pointer; color: var(--ink); font-weight: 500; }
details.assume p { margin: .5rem 0 0; }
.stress-rows { display: grid; gap: .9rem; }
.srow { display: grid; grid-template-columns: 13rem minmax(0, 1fr) 4.5rem; gap: 1rem; align-items: center; font-family: var(--sans); font-size: .9375rem; }
.sbar { display: block; height: .9rem; background: var(--wash); border-radius: 1px; overflow: hidden; }
.sbar i { display: block; height: 100%; background: var(--plum); }
.sbar i.gain { background: var(--teal); }
.sval { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) {
  .expl-fig .tick, .fan-fig .tick, .expl-fig .axis, .fan-fig .axis { font-size: 21px; }
  .fan-fig .goal { font-size: 21px; }
  .sim-out { grid-template-columns: minmax(0, 1fr); }
  .srow { grid-template-columns: minmax(0, 1fr) 4rem; }
  .srow .slabel { grid-column: 1 / -1; }
}

/* Explainer page: parts, wide steps, tables, bars, pots ------------------ */
.overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2.5rem; margin-top: 2rem; max-width: 66rem; }
.ov-title { font-family: var(--sans); font-size: .8125rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); margin: 0 0 .6rem; }
.overview .steps { margin: 0; flex-direction: column; gap: .45rem; }
.part { border-top: 2px solid var(--ink); padding-block: clamp(2.5rem, 5vw, 3.5rem) .5rem; }
.part-no { font-family: var(--sans); font-size: .8125rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); margin: 0 0 .4rem; }
.part h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; margin: 0 0 .75rem; }
.part-lead { font-size: 1.25rem; line-height: 1.45; max-width: 40rem; color: var(--slate); margin: 0; }
.part + .step { border-top: 0; }
.step { grid-template-columns: var(--side) minmax(0, 1fr); }
.step .step-h { font-size: 1.5rem; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 0 0 1.25rem; }
.step .sec-body > p, .step .sec-body > h4 { max-width: var(--measure); }
.step figure.expl, .step .sim { max-width: 46rem; }
.step .sec-body > p + figure, .step .sec-body > figure + p { margin-top: 1.75rem; }
h4.sub { font-size: 1.1875rem; font-weight: 600; margin: 2.25rem 0 .5rem; }

figure.tbl { margin: 1.75rem 0; }
figure.tbl:last-child { margin-bottom: 0; }
.tbl-title { font-family: var(--sans); font-size: .9375rem; font-weight: 650; color: var(--ink); margin-bottom: .5rem; }
table.data { font-size: .9063rem; }
table.data th[scope="col"] { font-size: .8125rem; font-weight: 600; color: var(--slate); vertical-align: bottom; }
table.data th[scope="col"]:first-child:empty { border-bottom-color: var(--ink); }
table.data th[scope="row"] { text-align: left; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--rule);
  padding: .6rem 1rem .6rem 0; vertical-align: top; }
table.data td { color: var(--ink); }
table.data.cols-2 th[scope="row"] { width: 34%; }
table.data tbody tr:hover > * { background: rgba(13, 106, 106, .04); }
.tbl-note { font-family: var(--sans); font-size: .8125rem; line-height: 1.5; color: var(--slate); margin: .5rem 0 0; }

.bars-title { font-family: var(--sans); font-size: .9375rem; font-weight: 650; margin: 0 0 .75rem; }
.bar-rows { display: grid; gap: .6rem; }
.brow { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 4.5rem; gap: 1rem; align-items: center; font-family: var(--sans); font-size: .9375rem; }
.bbar { display: block; height: 1.1rem; background: var(--wash); border-radius: 1px; overflow: hidden; }
.bbar i { display: block; height: 100%; background: var(--teal); }
.bval { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.pots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pots li { background: #fff; border: 1px solid var(--rule); border-top: 6px solid var(--c); border-radius: 2px; padding: 1rem 1rem 1.1rem; }
.pots h4 { font-size: 1.125rem; margin: 0 0 .6rem; line-height: 1.25; }
.pots dl { margin: 0; font-family: var(--sans); font-size: .875rem; line-height: 1.45; }
.pots dt { color: var(--slate); font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; margin-top: .6rem; }
.pots dt:first-child { margin-top: 0; }
.pots dd { margin: .1rem 0 0; }
.pots-fig { max-width: none !important; }

@media (max-width: 64rem) {
  .pots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 54rem) {
  .step { grid-template-columns: minmax(0, 1fr); }
  .overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  /* tables become one card per row */
  table.data, table.data tbody, table.data tr, table.data th[scope="row"], table.data td { display: block; width: auto !important; }
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data tr { border-top: 1px solid var(--rule); padding: .7rem 0 .6rem; }
  table.data tbody tr:first-child { border-top: 1.5px solid var(--ink); }
  table.data th[scope="row"], table.data td { border: 0; padding: 0; }
  table.data th[scope="row"] { margin-bottom: .3rem; font-size: 1rem; }
  table.data td { padding: .15rem 0; }
  table.data td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 600; color: var(--slate); }
  table.data tbody tr:hover > * { background: none; }
}
@media (max-width: 34rem) {
  .pots { grid-template-columns: minmax(0, 1fr); }
  .brow { grid-template-columns: 6.5rem minmax(0, 1fr) 3.75rem; gap: .6rem; font-size: .875rem; }
}

/* Phones: long words, readable figure labels, tap targets of at least about 36 px ------------- */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: manual; }
.foot-in a { display: inline-block; padding-block: .55rem; }
.timeline .links a, p.links a { display: inline-block; padding-block: .4rem; }
.facts strong a { display: inline-block; padding-block: .2rem; }
.pointers h3 a { display: inline-block; padding-block: .25rem; }
.pointers-plain a { display: inline-block; padding-block: .4rem; }
.steps a { padding-block: .3rem; }
@media (max-width: 54rem) {
  .site-head nav a { padding-block: .5rem; }
  .lang-switch { padding-block: .5rem; }
}
@media (max-width: 34rem) {
  .tree-fig text { font-size: 18px; }
  .page-head h1 { font-size: clamp(2.1rem, 10vw, 2.5rem); }
}
@media (max-width: 25rem) {
  .expl-fig .tick, .fan-fig .tick, .expl-fig .axis, .fan-fig .axis, .fan-fig .goal { font-size: 24px; }
}
.profiles a { display: inline-block; padding-block: .45rem; }
.range-row input { height: 2.5rem; }
details.assume summary { padding-block: .45rem; }

/* Hero figure: one square per dollar ------------------------------------------------------- */
.dollar-fig .df-title { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; line-height: 1.25; margin: 0; }
.dollar-fig .df-sub { font-family: var(--sans); font-size: .875rem; color: var(--slate); margin: .2rem 0 1rem; }
.df-row { margin-bottom: .55rem; }
.df-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .3rem;
  font-family: var(--sans); font-size: .9375rem; }
.df-lab { color: var(--ink); font-weight: 500; }
.df-val { font-weight: 650; font-variant-numeric: tabular-nums; }
.df-big { margin-bottom: 0; }
.df-big .df-head { margin-top: .9rem; }
.df-big .df-val { font-size: 1.375rem; color: var(--teal); }
.df-sq { display: block; height: auto; }
.dollar-fig .df-source { display: block; margin-top: .45rem; font-size: .8125rem; }
.js .df-block { clip-path: inset(0 0 100% 0); }
.js .df-block.run { animation: dfreveal 2.4s cubic-bezier(.35, .1, .25, 1) forwards; }
@keyframes dfreveal { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) {
  .js .df-block, .js .df-block.run { clip-path: none; animation: none; }
}

/* Research: double sort next to the tree, tree grows with a slider ---------------------------- */
.paper-lead { font-size: 1.1875rem; line-height: 1.5; }
.tree-box.compare { max-width: none; margin: 2rem 0 1rem; }
.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.cmp-h { font-family: var(--sans); font-size: .9375rem; font-weight: 650; margin: 0; }
.cmp-sub { font-family: var(--sans); font-size: .875rem; color: var(--slate); margin: .1rem 0 .6rem; font-variant-numeric: tabular-nums; }
.cmp .tree-fig text { font-size: 17px; }
.grid-fig .gline { stroke: var(--ink); stroke-width: 1; stroke-opacity: .5; }
.tree-control { margin-top: .75rem; font-family: var(--sans); font-size: .9375rem; }
.tree-control label { font-weight: 600; }
.tree-control output { color: var(--teal); font-variant-numeric: tabular-nums; }
.tree-control input { display: block; width: 100%; height: 2.5rem; margin: 0; accent-color: var(--teal); }
.compare figcaption { padding-left: 0; }
@media (max-width: 34rem) {
  .cmp { grid-template-columns: minmax(0, 1fr); }
  .cmp .tree-fig text { font-size: 18px; }
}
@media (max-width: 34rem) {
  .cmp-panel .tree-fig { max-width: 21rem; }
}

/* Timeline: row Technik and the grey column 2004–2011 on the left (author 1.11.2026) */
.tl-grid { position: relative; z-index: 0; }
.tl-grid::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 11.25rem; width: calc((100% - 11.25rem) * var(--ez, 0));
  background: #EEF1F2; border-right: 1px dashed var(--rule); pointer-events: none; }
.tl-tech { border-top: 1px solid var(--ink); }
.tl-tech + .tl-work { border-top: 1px solid var(--rule); }
.tl-tk { display: inline-block; width: 12px; height: 11px; flex: none; background: var(--plum); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tl-dots .tl-tk { position: absolute; top: 1px; margin-left: -6px; }
.tl-w-tech { background: #F3E8ED; }
.tl-w-tech:hover { background: #EADAE2; }
.tl-w-early { background: #fff; border: 1px solid var(--rule); }
.tl-w-early:hover { background: var(--wash); }
.tl-axis .tl-early .w-short { display: none; }
@media (max-width: 34rem) {
  .tl-grid::before { left: 0; width: calc(100% * var(--ez, 0)); }
  .tl-axis .tl-early .w-long { display: none; }
  .tl-axis .tl-early .w-short { display: inline; visibility: visible; }
}

/* Timeline: the tip shows year and title, kind and place, people on three lines (author 1.11.2026) */
.tl-tip { white-space: pre-line; }
/* Result of a project as a small figure of its own, in the list of the timeline (ergebnisse.py) */
.rf { margin: .9rem 0 .25rem; max-width: 40rem; font-family: var(--sans); }
.rf-title { font-size: .9375rem; font-weight: 650; margin: 0 0 .6rem; }
.rf-plot { position: relative; height: 8.5rem; border-bottom: 1.5px solid var(--ink); }
.rf-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; }
.rf-b { position: relative; flex: 1 1 0; height: var(--h); background: #B9D6D3; border-radius: 1px 1px 0 0; }
.rf-b.on { background: var(--teal-dark); }
.rf-b i { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: .2rem; font-style: normal;
  font-size: .75rem; font-weight: 650; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rf-avg { position: absolute; left: 0; right: 0; bottom: var(--avg); border-top: 1.5px dashed var(--ink); z-index: 1; pointer-events: none; }
.rf-avg span { position: absolute; left: 0; bottom: .15rem; font-size: .75rem; font-weight: 600; background: var(--paper); padding-right: .3rem; }
.rf-legend { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: .5rem 0 0; font-size: .8125rem; }
.rf-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.rf-k { display: inline-block; width: 12px; height: 12px; background: #B9D6D3; }
.rf-k.on { background: var(--teal-dark); }
.rf figcaption { font-size: .8125rem; line-height: 1.5; color: var(--slate); margin-top: .35rem; }
.rf-points { margin: .6rem 0 0; font-size: .875rem; line-height: 1.45; }
.rf-b:first-child i { left: 0; transform: none; }
.rf-b:last-child i { left: auto; right: 0; transform: none; }
.page-head .page-quote { margin: -.4rem 0 1.4rem; }
.rf-plot { margin-top: 1.1rem; }
/* results as rows (since 2.11.2026): bars (El-Oraby and Rehms) and dots on a scale (Milewski) */
.rh-rows { position: relative; }
.rh-row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) 6.5rem; gap: .75rem; align-items: center; padding: .3rem 0; font-size: .875rem; }
.rh-l { line-height: 1.3; }
.rh-t { position: relative; height: .8rem; background: var(--wash); border-radius: 1px; }
.rh-bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); border-radius: 1px; }
.rh-bar.lt { background: #9CC5C1; } .rh-bar.base { background: #9AA5AB; } .rh-bar.neg { background: var(--plum); } .rh-bar.neg.base { background: #C9A3B4; }
.rh-h { font-size: .8125rem; font-weight: 650; color: var(--slate); margin: .7rem 0 .1rem; }
.rh-h:first-child { margin-top: 0; }
.rh-v { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.rh-dots .rh-scale { background: none; border-top: 1px solid var(--rule); height: 0; }
.rh-dots .rh-scale::after { content: ""; position: absolute; left: var(--base); top: -.75rem; height: 1.5rem; border-left: 1.5px dashed var(--ink); }
.rh-dot { position: absolute; top: 0; width: .85rem; height: .85rem; border-radius: 50%; transform: translate(-50%, -50%); background: var(--slate); z-index: 1; }
.rh-dot.nn { background: var(--teal); }  /* not "net": that class belongs to the network figure */
.rh-span { position: absolute; top: 0; height: .35rem; transform: translateY(-50%); background: #9CC5C1; border-radius: 2px; }
.rh-axis .rh-t { background: none; height: 1rem; }
.rh-axis .rh-t span { position: absolute; top: 0; transform: translateX(-50%); font-size: .75rem; color: var(--slate); white-space: nowrap; }
.rh-axis .rh-t span:first-child { transform: none; }
.rh-axis .rh-t span:last-child { transform: translateX(-100%); }
@media (max-width: 34rem) {
  .rh-row { grid-template-columns: minmax(0, 1fr) 5.5rem; row-gap: .3rem; }
  .rh-l { grid-column: 1 / -1; }
  .rh-axis .rh-l { display: none; }
}
/* Footer: a private website, not the employer's view, no investment advice (author 2.11.2026) */
.foot-note { margin: -.6rem auto 0; padding-bottom: 1.25rem; font-family: var(--sans); font-size: .8125rem; color: var(--slate); }
