/* ---------------------------------------------------------------------------
   Käte Hamburger Kolleg Rohstoffwelten — temporary splash page
   Studio Folder, 2026

   Deliberately neutral. This is scaffolding, not identity: one typeface,
   one column, no ornament. Everything visual is a token below, so the
   studio's identity work can be dropped in without touching markup.

   Constraints this file is built under (see docs/ in the repo root):
   - nothing loads from a third-party server, ever
   - WCAG 2.2 AA: contrast, visible focus, 24px targets, reflow at 320px
   - no dependency that has to survive until 2030
--------------------------------------------------------------------------- */

/* --- Typeface -------------------------------------------------------------
   Inter Variable, subset to latin + latin-ext, self-hosted. SIL OFL 1.1,
   licence alongside the file. Placeholder — swap when the identity lands. */

@font-face {
  font-family: "Inter var";
  src: url("../fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Instrument Sans (Instrument / Rodrigo Fuenzalida), for text. Variable,
   subset to latin + latin-ext, self-hosted. SIL OFL 1.1, licence alongside the file. Upright only: the
   page sets nothing in italic. */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Director (Ange Degheest, revived by May Jolivet and Justine Herbel, U+270D
   EESAB Rennes), SIL OFL, for titles. Regular only, no italic; no ß, which
   uppercase titles turn into SS anyway. */

@font-face {
  font-family: "Director";
  src: url("../fonts/Director-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --font-sans: "Instrument Sans", "Inter var", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: "Director", ui-monospace, "SF Mono", Menlo, Consolas,
    monospace;

  /* Light is the base definition. Never define a colour only inside a
     media query — see the dark block below, which redefines these. */
  --bg: #faf7f1; /* warm white */
  --ink: #2b2a28; /* very dark warm grey, not black */
  --muted: #6b6b6b;
  --rule: #e5e0d6;
  --focus: #0b5bd3;
  --on-image: #fff; /* type set on satellite images, both modes */

  /* Fluid type. Bottom of each clamp is the 320px value, top is ~1400px. */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.926rem + 0.37vw, 1.25rem); /* 16 → 20px */
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.25vw, 2.6rem);
  /* Title size. The 320px end is fixed by "Across Worlds", which must fit
     on one line there; the top end can grow. */
  --step-3: clamp(2.1rem, 1.2rem + 4.5vw, 6rem); /* 33.6 → 96px */

  /* --- 8px module grid ---------------------------------------------------
     Every margin, padding, gap, scroll-margin and box dimension in this file
     is one of these. The number is the multiple: --space-3 is 3 × 8 = 24px.
     Do not introduce a raw length; add a step here instead.

     Exempt, because they are type metrics rather than layout: line-height,
     letter-spacing, text-underline-offset, and hairlines (borders, outlines,
     the 1px rules). Those follow the typeface, not the grid. */

  --space-1: 0.5rem; /*   8px */
  --space-2: 1rem; /*  16px */
  --space-3: 1.5rem; /*  24px */
  --space-4: 2rem; /*  32px */
  --space-5: 2.5rem; /*  40px */
  --space-6: 3rem; /*  48px */
  --space-8: 4rem; /*  64px */

  /* Fluid steps. Both ends of every clamp sit on the grid; only the
     interpolated middle does not, which no one can see. */
  --gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); /*  40 →  80 */
  --pad: clamp(1.5rem, 0.75rem + 3vw, 4rem); /*  24 →  64 */
  --masthead-pad: clamp(2rem, 1rem + 5vw, 7rem); /*  32 → 112 */
  --pad-top: clamp(1rem, 0.5rem + 2vw, 2rem); /*  16 →  32: home page, above the eyebrow */
  --nav-pad: clamp(2rem, 1rem + 3vw, 3rem); /*  32 →  48 */
  --logo-gap: clamp(2rem, 1rem + 3vw, 3.5rem); /*  32 →  56 */

  --measure: 34rem; /* 544px = 68 modules */
  --label-col: 12rem; /* 192px = 24 modules */
  --label-title: 10rem; /* 160px = 20 modules: section titles in that column */
  --logo-width: 240px; /*        = 30 modules */
  --rail: 10rem; /* 160px = 20 modules: pinned header on wide screens */
  --tile: min(100vw / 9, 17vh); /* mosaic tile: about 9 of 13 columns in view */
  --logo-width-uni: 192px; /*    = 24 modules */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #222222;
    /* One warm white for all text: no grey tier in dark mode. */
    --ink: #ede8df;
    --muted: var(--ink);
    --rule: #3a3a3a;
    --focus: #7fb3ff;
  }
}

/* --- Reset (minimal) ------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  /* Menu links glide to their section. Overridden for anyone who has asked
     for reduced motion — see the media query at the foot of this file. */
  scroll-behavior: smooth;
  /* With this on the root, the body's own clip (see body) applies to the
     body itself instead of passing to the window, so the mosaic's overflow
     never makes the page wider: phones cannot pan sideways. */
  overflow-x: clip;
}

body,
h1,
h2,
h3,
p,
ul,
ol,
li,
figure,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul[class] {
  list-style: none;
}

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

/* --- Page ----------------------------------------------------------------- */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-optical-sizing: auto;
  font-weight: 400;
  /* 1.6: at the top of the scale (20px) the line box is 32px — four
     modules. Fluid sizes drift off the grid in between; that is the price
     of fluid type, and the alternative is fixed sizes. */
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding: var(--pad);
  /* Long German compounds must not force a horizontal scrollbar at 320px. */
  overflow-wrap: break-word;
  /* The mosaic runs off both edges of the window; clip, never scroll
     sideways. clip, not hidden: it keeps the sticky masthead working. */
  overflow-x: clip;
}

.page {
  max-width: 72rem; /* 1152px = 144 modules */
  margin: 0 auto;
}

/* Lets the page title size itself to the content column (cqi), and the
   grids switch on the page's width, not the window's. On these two rather
   than on .page: a container is also the containing block for anything
   position: fixed inside it, and Firefox would carry the pinned rail away
   with the page. Both are as wide as .page. */
.page > main,
.page > .masthead--compact {
  container-type: inline-size;
}

.prose {
  max-width: var(--measure);
}

/* --- Visually hidden -----------------------------------------------------
   Available to screen readers, invisible on screen. Used to announce that a
   link opens in a new tab (BITV-Test checks this; sighted users get no
   marker, by design). */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Skip link ------------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: var(--space-1) var(--space-2);
  z-index: 10;
  text-decoration: none;
}

.skip-link:focus {
  left: var(--pad);
  top: var(--pad);
}

/* --- Focus ---------------------------------------------------------------
   Never remove this without replacing it. It is the single most common
   accessibility failure and it is a legal requirement here (2.4.7 / 2.4.11). */

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- Typography ----------------------------------------------------------- */

/* One label style, used by the section headings, the subsection headings
   inside them, the eyebrow and the menu. Changing it here changes all. */
.eyebrow,
h2,
.group-title,
.mainnav a,
.pinned__nav a,
.pinned__drawer a {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Director marks the main elements only: the title, the opening
   statements and people's names. Section headings stay in the label style. Always in capitals,
   except the opening statements, which are running text. A monospace is already
   open, so it drops the sans's letter-spacing. */
h1,
.intro,
.people .name {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.eyebrow,
h2,
.group-title {
  color: var(--muted);
}

h2,
.group-title {
  margin-bottom: var(--space-3);
}

h1 {
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: 0;
  /* Same gap above as the menu's below (--space-8): the eyebrow and the
     menu sit symmetrically around the title. */
  margin-block: var(--space-8) 0;
  text-wrap: balance;
}

h3 {
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.3;
}

/* Opening statement. Deliberately not held to --measure: it runs the full
   width of the content column, which is what separates it from the supporting
   text below. */
.intro {
  font-size: var(--step-1);
  line-height: 1.4;
  font-weight: 400;
  max-width: none;
  text-transform: none;
  letter-spacing: 0;
}

.intro p + p {
  margin-top: var(--space-3);
}

p + p {
  margin-top: var(--space-2);
}

/* Links carry no colour of their own — the underline is the whole signal, so
   it has to be visible without being loud. Muted at rest, full ink on hover
   and focus. Never remove the underline: colour alone would fail 1.4.1. */

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

/* Hover clears the underline rather than thickening it. Safe for 1.4.1: the
   link is underlined at rest, and hover is a transient state that never
   determines whether something reads as a link. */
a:hover {
  text-decoration-line: none;
}

/* Focus keeps its underline — the ring alone should not be the only signal,
   and keyboard focus is a state you sit in rather than pass through. */
a:focus-visible {
  text-decoration-line: underline;
  text-decoration-color: currentColor;
}

/* Interactive targets meet the 24×24px minimum — three modules (2.5.8).
   Inline links in running prose are exempt; footer and list links are not. */
.footer a,
.people a,
.meta a,
.mainnav a,
.pinned__nav a,
.pinned__drawer a {
  display: inline-block;
  min-height: var(--space-3);
}

/* --- Structure ------------------------------------------------------------ */

/* Eyebrow at the top margin, menu --space-4 above the rule, title centred
   between the top of the window and the rule. The title keeps a line of
   room above and below for its displaced outer lines, and the --hold spacer
   under it is the distance over which it recomposes. On load the gap from
   the eyebrow to the title equals the gap from the title to the menu: the
   h1's top margin is its line of room plus the spacer plus the menu's own
   margin. Same geometry with or without the animation. */
.masthead-track {
  border-bottom: 1px solid var(--rule);
  padding-bottom: var(--space-4);
  text-align: center;
}

/* Home page: the masthead fills the window, so the menu and the rule are
   always on screen on load, the rule as far from the bottom as the eyebrow
   is from the top. --hold takes whatever height the fixed parts leave,
   half above the title and half below. Fixed parts: eyebrow, "Center for"
   and its gap, the title's four lines (two, plus a line of room each
   side), the two --space-6 gaps, the menu, the padding and the rule.
   Small viewport units, so phone toolbars never cover the menu. Never less
   than --space-4: very short windows scroll to the rule instead. The flex
   column takes up any rounding, keeping the rule at the bottom. */
body:has(.masthead-hold) {
  padding-top: var(--pad-top);
}

.masthead-track:not(.masthead--compact) {
  --nav-h: var(--space-3);
  --fixed: calc(
    1.6 * var(--step--1) + 1.2 * var(--step-1) + var(--space-3) +
      4 * var(--step-3) + 2 * var(--space-6) + var(--nav-h) +
      var(--space-4) + 1px
  );
  --window: calc(100vh - 2 * var(--pad-top));
  --hold: max(var(--space-4), (var(--window) - var(--fixed)) / 2);
  display: flex;
  flex-direction: column;
  min-height: var(--window);
}

@supports (height: 100svh) {
  .masthead-track:not(.masthead--compact) {
    --window: calc(100svh - 2 * var(--pad-top));
  }
}

.masthead-track:not(.masthead--compact) .masthead-hold {
  flex: 1 0 auto;
}

.masthead-hold::after {
  content: "";
  display: block;
  height: var(--hold);
}

/* The line of room above the fragments is .title-frags' padding (animated
   version only, see "Title fragments"), so the h1's own top margin is just
   spacer plus menu gap. */
.masthead h1 {
  margin-block: calc(var(--hold) + var(--space-6)) 1em;
}

section {
  padding-block: var(--gap);
  border-bottom: 1px solid var(--rule);
  /* Jumped-to headings shouldn't sit flush against the viewport edge. */
  scroll-margin-top: var(--space-3);
}

/* --- Mosaic ----------------------------------------------------------------
   Satellite tiles behind the title, laid out by assets/js/mosaic.js from
   assets/mosaic/sites.json (made by tools/mosaic/build_mosaic.py). Each
   tile is one Landsat pass, turned by its heading (--rot); --x and --y
   place it in tile units. Thirteen columns by three rows, about nine in
   view; on phones five columns by five rows. Wider than the window: it
   runs off both edges (the body clips it). At rest only the
   outlines show; the image fades in under the pointer and lingers as it
   fades out, and the site's name shows under the middle column meanwhile.
   Inside the sticky masthead, so it holds still with the title while the
   title recomposes. Hidden without JavaScript, and in print. */

@media (max-width: 40rem) {
  :root {
    --tile: min(32vw, 13.5vh); /* 5 columns, well wider than the screen */
  }
}

.title-stage {
  position: relative;
}

/* The eyebrow stays over the mosaic where tall mosaics reach it. On
   phones the mosaic's caption takes its place while an image shows
   (is-captioned, set by the script): the eyebrow fades out at once and
   fades back in once the caption has faded (1.6s), or at once on scroll. */
.masthead .eyebrow {
  position: relative;
  z-index: 1;
  transition: opacity 0.5s ease 1.6s;
}

.masthead.is-captioned .eyebrow {
  opacity: 0;
  transition-delay: 0s;
  transition-duration: 0.25s;
}

.masthead.is-scrolled .eyebrow {
  opacity: 1;
  transition-delay: 0s;
}

/* The title sits over the tiles but lets the pointer through to them. */
.title-stage h1 {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.mosaic {
  position: absolute;
  z-index: 0; /* its own layer: the tiles' stacking stays under the title */
  left: 50%;
  top: 50%;
}

.mosaic__tile {
  position: absolute;
  left: calc(var(--tile) / -2);
  top: calc(var(--tile) / -2);
  width: var(--tile);
  height: var(--tile);
  rotate: var(--rot);
  translate: calc(var(--x) * var(--tile))
    calc(var(--y) * var(--tile) + var(--space-1));
  /* Filled with a tint of the site's dominant hue (--hue, set by the
     script from sites.json): pale on a light page, deep on a dark one.
     Outlined in the page colour, so tiles lying on top of one another
     (random order, from the script) separate rather than cross. */
  background: var(--rule);
  background: color-mix(in oklab, var(--hue, var(--muted)) 22%, var(--bg));
  box-shadow: inset 0 0 0 1px var(--bg);
  opacity: 0;
  transition:
    opacity 0.5s ease,
    translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mosaic__tile.is-in {
  opacity: 1;
  translate: calc(var(--x) * var(--tile)) calc(var(--y) * var(--tile));
}

/* Two tiles tall: the script picks the half where the tile sits. */
.mosaic__img {
  position: absolute;
  inset: 0;
  background-size: 100% 200%;
  box-shadow: inset 0 0 0 1px var(--bg);
  opacity: 0;
  transition: opacity 1.6s ease;
}

/* The tile in use (is-shown) is lifted to the top of the pile by the
   script, and stays there as it fades: the pile keeps the order in which
   tiles were revealed. */

.mosaic__tile.is-shown .mosaic__img {
  opacity: 1;
  transition-duration: 0.25s;
}

.mosaic__date {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: calc(var(--space-1) / 2);
  font-size: calc(var(--step--1) * 0.75);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--on-image);
}

/* Under the middle column, halfway between the bottom of the mosaic and the menu
   (--cy, set by the script), only while the mosaic is in use. */
.mosaic__caption {
  position: absolute;
  left: 0;
  top: 0;
  translate: calc(var(--x) * var(--tile) - 50%) calc(var(--cy, 0px) - 50%);
  z-index: 100000; /* over the tiles, however many have been lifted */
  white-space: nowrap;
  text-align: center;
  font-size: var(--step--1);
  line-height: 1.4;
  color: var(--muted);
  opacity: 0;
  transition: opacity 1.6s ease;
}

.mosaic__name {
  color: var(--ink);
  font-weight: 500;
}

.mosaic.is-active .mosaic__caption {
  opacity: 1;
  transition-duration: 0.25s;
}

/* Gone at the first scroll (the script sets is-gone). */
.mosaic .mosaic__caption.is-gone {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

/* As the title recomposes (the first --hold of scroll, see "Title
   fragments"), the tiles drop out one by one, each over a tenth of that
   scroll starting at its own random point (--out, from the script); none
   is left once the title is whole. Uses
   filter rather than opacity, which the arrival transition already drives.
   Browsers without scroll-driven animations, and anyone who asks for
   reduced motion, keep the tiles until the masthead scrolls away. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .mosaic__tile {
      animation: mosaic-out linear both;
      animation-timeline: scroll(root);
      animation-range: calc(var(--hold) * var(--out))
        calc(var(--hold) * (var(--out) + 0.1));
    }
  }
}

@keyframes mosaic-out {
  to {
    filter: opacity(0);
    visibility: hidden;
  }
}

/* --- Section menu ---------------------------------------------------------
   Sits inside the masthead so there is one rule under the header, not two.
   Same label style as the section headings it points at. Underline is
   omitted at rest — inside a nav landmark there is no ambiguity about what is
   a link — and restored on hover and focus. */

.mainnav {
  margin-top: var(--space-6);
  /* Over the mosaic, should its tiles reach this far down. */
  position: relative;
  z-index: 1;
}

.mainnav ul {
  /* Explicit: the reset only clears markers on ul[class], and this one has
     the class on the <nav>, not the list. */
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-1) var(--space-4);
}

/* Sections on the left, Fellowship Call (its own page) on the right; the
   call page itself leaves it out. Each item is exactly as tall as its link
   (--space-3), which the home masthead's height relies on. */
.mainnav li {
  display: flex;
}

.mainnav .mainnav__call {
  margin-left: auto;
}

/* Once "Fellowship Call" no longer fits beside the sections (about
   615px), it shortens to "Call", and About goes: the page opens on it. */
@media (max-width: 40rem) {
  .mainnav__long,
  .mainnav li:first-child {
    display: none;
  }
}

/* Phones: tighter gaps, spread edge to edge, so it stays on one line. */
@media (max-width: 31rem) {
  .mainnav ul {
    justify-content: space-between;
    column-gap: var(--space-1);
  }

  .mainnav .mainnav__call {
    margin-left: 0;
  }
}

.mainnav a {
  text-decoration: none;
}

/* The nav is the one place with no underline at rest, so there is nothing for
   hover to remove — it adds instead. Change both if you want the nav
   underlined all the time. */
.mainnav a:hover,
.mainnav a:focus-visible,
.mainnav a[aria-current="page"],
.pinned__drawer a:hover,
.pinned__drawer a:focus-visible,
.pinned__drawer a[aria-current="page"] {
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
}

/* --- Pinned header -------------------------------------------------------
   Title and menu again, pinned. Below 80rem a slim bar across the top; from
   80rem a rail in the left margin, and the page narrows by the same amount
   on both sides so it stays centred.

   The bar, and the rail on the home page, appear once the masthead has
   scrolled out of view. No JavaScript: a view timeline of the masthead,
   over the last 8rem of it leaving the screen (the compact masthead leaves
   no more room before its top). The ground fades in first, then the lines
   one after another, 0.6rem of scroll apart: "Center for", each word of
   the title, each menu item (.k1–.k9). Browsers without view timelines
   (Firefox) get the same from assets/js/scroll.js (see "Scroll fallback");
   without that either, no bar, and the masthead stays. Hidden with visibility, not
   just opacity, so its links cannot be tabbed to while invisible.

   Call page and legal pages (.pinned--always): from 80rem the compact
   masthead is hidden and the rail is there from the top, with no animation,
   in every browser; the page title moves up to the rail's first line. */

.pinned {
  display: none;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-2) var(--pad);
  background: var(--bg);
  /* Full ink, unlike the page's grey rules: it marks the edge of what is
     pinned over the page. */
  border-bottom: 1px solid var(--ink);
}

.pinned ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.pinned__nav a,
.pinned__drawer a {
  text-decoration: none;
}

.pinned__title {
  font-family: var(--font-title);
  font-size: var(--step--1);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* The site title is never underlined, not even on hover; keyboard focus
   still gets the focus ring. */
.pinned__title a,
.pinned__title a:hover,
.pinned__title a:focus-visible {
  text-decoration: none;
}

.pinned__w {
  display: inline-block;
}

/* Bar: "Center for" on its own line, "Resources Across Worlds" on one
   line below it. (The rail on wide screens stacks every word; see there.) */
.pinned__pre {
  display: block;
}

.pinned__title a {
  white-space: nowrap;
}

/* "Apply" is the rail's wording only (see there). */
.pinned__apply {
  display: none;
}

/* The fold-out menu exists for phones only. */
.pinned__more {
  display: none;
}

/* Phones: title on two lines ("Center for" / the rest), the menu behind a
   button at the right; open, it drops down across the full width of the
   bar. */
@media (max-width: 45.999rem) {
  /* On phones the bar takes the tiles' tint (--hue, set on the root by
     mosaic.js, mixed with the page colour: pastel in light mode, deep in
     dark); a plain tint on pages without a mosaic. Title, menu and icon
     in the text colour; no rule. */
  .pinned {
    flex-wrap: nowrap;
    align-items: center;
    --bar: color-mix(in oklab, var(--hue, var(--muted)) 22%, var(--bg));
    background: var(--rule);
    background: var(--bar);
    color: var(--ink);
    border-bottom: 0;
  }

  .pinned :focus-visible {
    outline-color: currentColor;
  }

  .pinned .pinned__nav {
    display: none;
  }

  .pinned__more {
    display: block;
  }

  .pinned__more summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--space-6);
    height: var(--space-6);
    margin-right: calc(-1 * var(--space-2));
  }

  .pinned__more summary::-webkit-details-marker {
    display: none;
  }

  /* Two hairlines, a module apart; open, they meet in the middle and turn
     into a cross. Motion is cut by the reduced-motion rule at the end. */
  .burger {
    position: relative;
    width: var(--space-3);
    height: var(--space-2);
  }

  .burger::before,
  .burger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: currentColor;
    transition:
      top 0.2s ease,
      transform 0.2s ease;
  }

  .burger::before {
    top: calc(25% - 0.5px);
  }

  .burger::after {
    top: calc(75% - 0.5px);
  }

  .pinned__more[open] .burger::before,
  .pinned__more[open] .burger::after {
    top: calc(50% - 0.5px);
  }

  .pinned__more[open] .burger::before {
    transform: rotate(45deg);
  }

  .pinned__more[open] .burger::after {
    transform: rotate(-45deg);
  }

  .pinned__drawer {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2) var(--pad) var(--space-3);
    background: var(--rule);
    background: var(--bar);
  }
}

@media (min-width: 80rem) {
  .pinned {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--space-4);
    top: var(--pad);
    right: auto;
    left: var(--pad);
    width: var(--rail);
    padding: 0;
    background: none;
    border: 0;
  }

  .pinned__title {
    font-size: var(--step-0);
  }

  .pinned__title a {
    white-space: normal;
  }

  .pinned__pre,
  .pinned__w {
    display: block;
  }

  /* In the rail, the call is "Apply", framed as a button like the one in
   the home page's call section, an empty line below the sections. Not on
   the call page itself. ("Fellowship Call" in the bar.) */
  .pinned__long {
    display: none;
  }

  .pinned__apply {
    display: inline;
  }

  .pinned__nav .pinned__call {
    margin-top: 1lh;
  }

  .pinned__nav .pinned__call a {
    display: inline-block;
    white-space: nowrap;
    padding: var(--space-1) var(--space-2);
    border: 1px solid currentColor;
    border-radius: var(--space-1);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .pinned__nav .pinned__call a:hover,
  .pinned__nav .pinned__call a:focus-visible {
    translate: none;
    background: var(--ink);
    color: var(--bg);
  }

  /* The rail is never underlined. The section being read (is-current, set
     by menu.js), the page you are on and the entry under the pointer slide
     in by two modules instead;
     keyboard focus keeps its ring. */
  .pinned__nav a {
    transition: translate 0.3s ease;
  }

  .pinned__nav a:hover,
  .pinned__nav a.is-current,
  .pinned__nav a[aria-current="page"] {
    translate: var(--space-2) 0;
  }

  .pinned__pre {
    font-size: var(--step--1);
    margin-bottom: var(--space-1);
  }

  .pinned ul {
    flex-direction: column;
    gap: var(--space-1);
  }

  /* Call page and legal pages: rail from the top, no masthead, title up. */
  .pinned--always {
    display: flex;
  }

  .masthead--compact {
    display: none;
  }

  .page:has(.pinned--always) {
    max-width: min(72rem, calc(100% - 2 * (var(--rail) + var(--space-4))));
  }

  .page:has(.pinned--always) .page-head {
    padding-top: 0;
  }
}

@supports (timeline-scope: --a) and (animation-timeline: view()) {
  body {
    timeline-scope: --masthead;
  }

  /* Inset 0: measured against the window itself, not the scroll padding
     (which browsers apply differently, and which made Safari start the
     bar while the masthead was still on screen). */
  .masthead-track {
    view-timeline: --masthead block;
    view-timeline-inset: 0;
  }

  .pinned {
    display: flex;
    animation: pinned-in linear both;
    animation-timeline: --masthead;
    animation-range: cover calc(100% - 8rem) cover calc(100% - 7rem);
  }

  .pinned :is(.k1, .k2, .k3, .k4, .k5, .k6, .k7, .k8, .k9) {
    animation: pinned-in linear both;
    animation-timeline: --masthead;
    animation-range:
      cover calc(100% - 8rem + var(--k) * 0.6rem)
      cover calc(100% - 6.5rem + var(--k) * 0.6rem);
  }

  /* On phones the bar slides down from above the screen as it fades in. */
  @media (max-width: 45.999rem) {
    .pinned {
      animation-name: pinned-bar-in;
    }
  }

  /* Jumped-to sections clear the bar, which wraps to two rows on phones. */
  html {
    scroll-padding-top: calc(var(--space-8) + var(--space-6));
  }

  @media (min-width: 46rem) {
    html {
      scroll-padding-top: var(--space-8);
    }
  }

  @media (min-width: 80rem) {
    html {
      scroll-padding-top: 0;
    }

    .page {
      max-width: min(72rem, calc(100% - 2 * (var(--rail) + var(--space-4))));
    }

    .pinned--always,
    .pinned--always :is(.k1, .k2, .k3, .k4, .k5, .k6, .k7, .k8, .k9) {
      animation: none;
    }
  }
}

.k1 { --k: 0; }
.k2 { --k: 1; }
.k3 { --k: 2; }
.k4 { --k: 3; }
.k5 { --k: 4; }
.k6 { --k: 5; }
.k7 { --k: 6; }
.k8 { --k: 7; }
.k9 { --k: 8; }

@keyframes pinned-bar-in {
  from {
    opacity: 0;
    visibility: hidden;
    translate: 0 -100%;
  }

  to {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
  }
}

@keyframes pinned-in {
  from {
    opacity: 0;
    visibility: hidden;
  }

  to {
    opacity: 1;
    visibility: visible;
  }
}

/* Two-column from tablet up: label left, content right. Collapses to one
   column below, which is what keeps 320px reflow honest. */
@media (min-width: 46rem) {
  section {
    display: grid;
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    gap: var(--space-4);
    /* The label sits on the baseline of the first line of the content,
       whatever its size or typeface. */
    align-items: baseline;
  }

  section > h2 {
    margin-bottom: 0;
    grid-column: 1;
    /* Narrower than the label column, so longer titles break onto a
       second line early and naturally ("Fellowships / 2027/2028"). */
    max-width: var(--label-title);
  }

  section > :not(h2) {
    grid-column: 2;
  }
}

/* --- People --------------------------------------------------------------- */

/* One value, applied uniformly: every subsection is separated from the one
   above it by eight modules, whatever it contains. */
.group + .group {
  margin-top: var(--space-8);
}

/* Two columns when there is room (see below), else one. Fixed, not auto-fill:
   auto-fill gave three columns for short names and two for long ones, so the
   groups didn't line up with each other. */

.people {
  list-style: none;
  display: grid;
  gap: var(--space-3) var(--space-4);
  grid-template-columns: minmax(0, 1fr);
}

/* Inner two-column grids (.people, .facts, .cols) go to two columns only
   when the content column is at least 40rem wide, so each column keeps
   about 19rem. Measured on the page, not the window (container query on
   main): the page narrows when the side rail appears, and the label
   column takes 14rem (12rem + gap) of it. Below, one column. */
@container (min-width: 54rem) {
  .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Names in Director capitals: tighter leading when a long name wraps. Block,
   so the line box takes this value rather than the body's 1.6. */
.people .name {
  display: block;
  line-height: 1.25;
}

.people .role {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.4;
}

/* --- Fellowship call ------------------------------------------------------
   Key facts as a definition list, on the same two-column grid as .people so
   the two read as one system — but inverted: the label is small and muted,
   the value carries the weight. */

.facts {
  display: grid;
  gap: var(--space-3) var(--space-4);
  grid-template-columns: minmax(0, 1fr);
  margin-block: var(--space-6);
}

@container (min-width: 54rem) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Call page head: its content column is 17/23 of the page less the gap,
   so the same 40rem is reached at a wider page. */
.call-page .page-head .facts {
  grid-template-columns: minmax(0, 1fr);
}

@container (min-width: 56.2rem) {
  .call-page .page-head .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.facts dt {
  color: var(--ink);
  font-size: var(--step--1);
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.facts dd {
  font-weight: 500;
}

.download {
  margin-top: var(--space-4);
}

/* Framed like a button: a rounded rectangle, no underline; filled on
   hover. Keyboard focus keeps its ring. */
.download a {
  display: inline-block;
  min-height: var(--space-3);
  padding: var(--space-1) var(--space-2);
  border: 1px solid currentColor;
  border-radius: var(--space-1);
  /* Capitals, at the size, weight and tracking of the menu and labels. */
  font-size: var(--step--1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.download a:hover,
.download a:focus-visible {
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

/* --- Call page (call.html) ----------------------------------------------
   Below 80rem a compact masthead: the home page's eyebrow, rule and menu,
   with the title reduced to a link home in the title face. From 80rem the
   pinned rail replaces it. The page title and key facts sit on the section
   grid, in the content column, so every left edge below is the same one.
   The legal pages share this frame. */

.masthead--compact .site-name {
  margin-top: var(--space-4);
  font-family: var(--font-title);
  /* Never wider than the page: "Resources Across Worlds" (23 characters
     at about 0.62em with tracking) stays on one line down to 320px. */
  font-size: min(var(--step-1), 100cqi / 14.5);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* "Center for" on a line of its own, "Resources Across Worlds" on one
   line below, as in the pinned header. */
.site-name__pre {
  display: block;
}

.site-name a {
  white-space: nowrap;
}

/* A title, not running text: no underline at rest, like the menu. */
.site-name a {
  text-decoration: none;
}

.site-name a:hover,
.site-name a:focus-visible {
  text-decoration-line: underline;
  text-decoration-color: currentColor;
}

.page-head {
  padding-block: var(--gap);
  border-bottom: 1px solid var(--rule);
}

/* Same size and leading as the home page title, but never so large that
   its longest word ("Applications", 12 characters at about 0.6em each)
   overflows the content column: --title is the smaller of the two. */
.page-head {
  --title: min(var(--step-3), 100cqi / 7.5);
}

@media (min-width: 46rem) {
  .call-page .page-head {
    --title: min(var(--step-3), (100cqi - var(--space-4)) * 17 / 23 / 7.5);
  }
}

.page-head h1 {
  font-size: var(--title);
  line-height: 1;
  margin: 0;
}

.page-head .facts {
  margin-block: var(--space-8) 0;
}

@media (min-width: 46rem) {
  .page-head {
    display: grid;
    grid-template-columns: var(--label-col) minmax(0, 1fr);
    column-gap: var(--space-4);
  }

  .page-head > * {
    grid-column: 2;
  }
}

/* The call page fills the full page width, like the home page's About.
   Label and text columns keep the proportion of the home page's label
   column to its reading measure (192 : 544 = 6 : 17) and grow together. */
.call-page .prose {
  max-width: none;
}

@media (min-width: 46rem) {
  .call-page section,
  .call-page .page-head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 17fr);
  }
}

/* Subsection titles inside the call text (the profile areas) are set in
   Director, like the other main elements, instead of the label style the
   home page's subsections use. Scoped to this page only. */
.call-page .group-title {
  font-family: var(--font-title);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* In the call text, paragraphs and lists are a full empty line apart
   (1lh = one line of the running text), not the home page's --space-2. */
.longform p + p {
  margin-top: 1lh;
}

/* Lists inside long running text keep their markers: the guiding questions
   run to several lines each, and the application documents are numbered in
   the source. */
.longform ul,
.longform ol {
  padding-left: var(--space-3);
  margin-block: 1lh;
}

/* From two columns up, lists are indented on the right as well, so list
   items run shorter than the paragraphs around them. Not on phones, where
   the column is already narrow. Nested lists sit inside this already. */
@media (min-width: 46rem) {
  .longform ul,
  .longform ol {
    padding-right: var(--space-8);
  }

  .longform li > ul {
    padding-right: 0;
  }
}

.longform li + li,
.longform li > ul {
  margin-top: var(--space-1);
}

.longform li > ul {
  margin-bottom: 0;
}

.longform > :last-child {
  margin-bottom: 0;
}

/* Supporting text in two columns when there is room, same gaps and
   breakpoint as .people. */
.cols {
  display: grid;
  gap: var(--space-3) var(--space-4);
  grid-template-columns: minmax(0, 1fr);
}

@container (min-width: 54rem) {
  .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* About has no visible label: its opening statement spans both columns. */
@media (min-width: 46rem) {
  #about > .intro {
    grid-column: 1 / -1;
  }
}

/* Statement and supporting text sit --space-8 apart, like subsections. In
   the two-column section layout the grid's row gap already gives
   --space-4, so the margin supplies the rest. */
.intro + .cols {
  margin-top: var(--space-8);
}

@media (min-width: 46rem) {
  .intro + .cols {
    margin-top: var(--space-4);
  }
}

/* Institution list in the About text. No markers, in keeping with the rest of
   the page; still a real <ul>, so it is announced as a list of three. */
.institutions {
  margin-block: var(--space-2);
}

.institutions li + li {
  margin-top: var(--space-1);
}

.note {
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: var(--step--1);
  max-width: var(--measure);
}

/* --- Footer --------------------------------------------------------------- */

.footer {
  padding-block: var(--gap) var(--space-2);
  font-size: var(--step--1);
  color: var(--muted);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
  /* The legal links sit on the baseline of "University of Kassel", the
     last line beside them. flex-end first, for browsers without it. */
  align-items: flex-end;
  align-items: last baseline;
}

/* The Kolleg's full name breaks after "Kolleg" on phones only. */
.br-phone {
  display: none;
}
@media (max-width: 45.999rem) {
  .br-phone {
    display: inline;
  }
}

.footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

/* --- Funder and partner logos --------------------------------------------
   The viewBox is cropped tight to the mark, so its left edge aligns optically
   with the caption above. Clear space is therefore the job of the layout —
   the gap below the caption, the gap between logos, and the footer's own
   margins all exceed the artwork's original margin. Keep them if you rework
   this. */

.logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  /* University at the left edge, funder at the right. When the row wraps,
     each logo sits alone on its line and space-between puts it left. */
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4) var(--space-6);
  margin-bottom: var(--logo-gap);
}

/* Caption set in the footer's own type rather than baked into the artwork,
   so it stays real text — selectable, translatable, and it scales with the
   page instead of with the image. */
.logo__caption {
  display: block;
  margin-bottom: var(--space-1);
}

/* The link wrapper must not add its own box, or the mark stops sitting flush
   against the caption's left edge. */
.logos a {
  display: block;
  text-decoration: none;
  width: fit-content;
}

.logos img {
  /* Fixed width; the reset's max-width:100% is what shrinks it on narrow
     screens. A percentage here resolves against a shrink-to-fit parent and
     silently lands short. */
  width: var(--logo-width);
  height: auto;
}

.logo--uni img {
  width: var(--logo-width-uni);
}

/* A logo without a caption drops by one caption line (line box plus its
   margin), so its top lines up with the top of the captioned marks. */
.logo--uni {
  padding-top: calc(1lh + var(--space-1));
}

@media (prefers-color-scheme: dark) {
  /* Kassel: the <picture> serves the single-ink file, which paints black;
     inverting it gives the white version the manual allows. Never invert a
     colour file. */
  .logo--uni img {
    filter: invert(1);
  }

  /* BMFTR: always in colour, which the ministry only allows on white, so
     in dark mode it sits on a white plate with a module of clear space. */
  .logo--bmftr img {
    box-sizing: content-box;
    padding: var(--space-1);
    margin-left: calc(-1 * var(--space-1));
    background: #fff;
  }
}

/* Phones: both logos on one line, much smaller. */
@media (max-width: 45.999rem) {
  :root {
    --logo-width: 128px; /*     = 16 modules */
    --logo-width-uni: 104px; /* = 13 modules */
  }

  .logos {
    flex-wrap: nowrap;
    column-gap: var(--space-3);
  }
}

/* --- Legal pages ---------------------------------------------------------
   Same frame as the call page: title block on the content column, a rule,
   then the text on the same column. The title stays a size smaller. */

.doc .page-head h1 {
  font-size: var(--step-2);
}

/* Phones: four times the usual space under the title, before the rule. */
@media (max-width: 45.999rem) {
  .doc .page-head {
    padding-bottom: calc(4 * var(--gap));
  }
}

/* The title block is the same height on every inner page, so the rule
   under it sits where the call page's does: four lines of the call title
   (--title), its gap, and two rows of facts. From two columns up only; on
   phones the title keeps its own height. */
@media (min-width: 46rem) {
  .doc .page-head {
    box-sizing: content-box;
    min-height: calc(
      4 * var(--title) + var(--space-8) + var(--space-3) +
        2 * (1.4 * var(--step--1) + 1.6 * var(--step-0))
    );
  }
}

/* Closed by a rule above the footer, like every section on the other
   pages. */
.doc__body {
  padding-block: var(--gap);
  border-bottom: 1px solid var(--rule);
}

.doc__body > :first-child {
  margin-top: 0;
}

@media (min-width: 46rem) {
  .doc__body {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 17fr);
    column-gap: var(--space-4);
  }

  .doc__body > * {
    grid-column: 2;
  }
}

.doc h2 {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  margin-block: var(--space-5) var(--space-1);
}

.doc p,
.doc ul {
  max-width: var(--measure);
}

.doc ul {
  padding-left: var(--space-3);
  margin-top: var(--space-1);
}

.doc li + li {
  margin-top: var(--space-1);
}


/* --- Title fragments -----------------------------------------------------
   The title is set on two lines at line-height 1, so a line is exactly one
   em tall. It starts pulled apart vertically and recomposes as the page
   scrolls its first --hold, well before it leaves the screen.

   "Center for" sits above, small (--step-1) and still. Only "Resources
   Across Worlds" moves.

   Fragments move by whole lines only, so each one always sits on a line of
   its own and letters never overlap. The first line only moves up, the
   second only down, by one line at most, so the title spans four lines at
   the start; the line of room above is kept free below "Center for". Within
   a word, neighbouring fragments always sit on different lines. The first
   line is one word, so it never wraps; the second relies on "Across Worlds"
   never wrapping — it fits on one line down to 320px.

   That line of room would leave a gap under "Center for" once the title
   has recomposed, so the fragments' block rises by the same line as they
   close in: the raised fragments hold still and everything else moves up
   to meet them, ending right under "Center for".

   While it recomposes, the eyebrow and title stay put (sticky inside
   .masthead-hold, whose spacer equals the animation range): the outer lines
   close in on the middle two while the menu and the page below rise towards
   them; then everything scrolls away together.

   Scroll-driven animations; browsers without them (Firefox) get the same
   keyframes from assets/js/scroll.js (see "Scroll fallback"). Anyone who
   asks for reduced motion gets the title already composed. */

.title-pre {
  display: block;
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}

.title-frags {
  display: block;
}

.title-frags .line {
  display: block;
}

.title-frags .w {
  white-space: nowrap;
}

.title-frags .f {
  display: inline-block;
}

.s1 { --d: -1em; }  /* Re  */
.s2 { --d: 0em; }   /* sou */
.s3 { --d: -1em; }  /* rc  */
.s4 { --d: 0em; }   /* es  */
.s5 { --d: 1em; }   /* A   */
.s6 { --d: 0em; }   /* cr  */
.s7 { --d: 1em; }   /* oss */
.s8 { --d: 0em; }   /* Wo  */
.s9 { --d: 1em; }   /* rl  */
.s10 { --d: 0em; }  /* ds  */

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Eyebrow and title hold still while the title recomposes: sticky
       inside .masthead-hold, whose spacer is the travel. */
    .masthead {
      position: sticky;
      /* Where it already sits (the body's padding), so it holds from the
         first pixel of scroll. */
      top: var(--pad-top);
    }

    .title-frags {
      padding-top: 1em;
      animation: title-close-up linear both;
      animation-timeline: scroll(root);
      animation-range: 0 var(--hold);
    }

    .title-frags .f {
      animation: title-recompose linear both;
      animation-timeline: scroll(root);
      animation-range: 0 var(--hold);
    }
  }
}

@keyframes title-close-up {
  to {
    translate: 0 -1em;
  }
}

@keyframes title-recompose {
  from {
    translate: 0 var(--d);
  }
}

/* --- Scroll fallback -------------------------------------------------------
   For browsers without scroll-driven animations (Firefox). assets/js/
   scroll.js adds .js-title and/or .js-pinned to <html> and keeps two
   numbers up to date there: --p, the title's progress (0 to 1 over
   --hold), and --b, the bottom of the masthead in rem from the top of the
   window. The keyframes above then run paused, and a negative delay of
   progress × 1s stands in for the timeline. The ranges match the native
   ones: each tile over a tenth of --hold from its --out; the bar over the
   rem from 8 to 7, each line over 1.5rem from 8 − 0.6 × --k. */

@media (prefers-reduced-motion: no-preference) {
  .js-title .masthead {
    position: sticky;
    top: var(--pad-top);
  }

  .js-title .title-frags {
    padding-top: 1em;
    animation: title-close-up 1s linear both paused;
    animation-delay: calc(var(--p, 0) * -1s);
  }

  .js-title .title-frags .f {
    animation: title-recompose 1s linear both paused;
    animation-delay: calc(var(--p, 0) * -1s);
  }

  .js-title .mosaic__tile {
    animation: mosaic-out 1s linear both paused;
    animation-delay: calc(
      clamp(0, (var(--p, 0) - var(--out, 0)) * 10, 1) * -1s
    );
  }
}

.js-pinned .pinned {
  display: flex;
  animation: pinned-in 1s linear both paused;
  animation-delay: calc(clamp(0, 8 - var(--b, 99), 1) * -1s);
}

.js-pinned .pinned :is(.k1, .k2, .k3, .k4, .k5, .k6, .k7, .k8, .k9) {
  animation: pinned-in 1s linear both paused;
  animation-delay: calc(
    clamp(0, (8 - var(--k) * 0.6 - var(--b, 99)) / 1.5, 1) * -1s
  );
}

@media (max-width: 45.999rem) {
  .js-pinned .pinned {
    animation-name: pinned-bar-in;
  }
}

html.js-pinned {
  scroll-padding-top: calc(var(--space-8) + var(--space-6));
}

@media (min-width: 46rem) {
  html.js-pinned {
    scroll-padding-top: var(--space-8);
  }
}

@media (min-width: 80rem) {
  html.js-pinned {
    scroll-padding-top: 0;
  }

  .js-pinned .page {
    max-width: min(72rem, calc(100% - 2 * (var(--rail) + var(--space-4))));
  }

  .js-pinned .pinned--always,
  .js-pinned .pinned--always :is(.k1, .k2, .k3, .k4, .k5, .k6, .k7, .k8, .k9) {
    animation: none;
  }
}

/* --- Motion --------------------------------------------------------------- */

@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;
  }
}

/* --- Print ---------------------------------------------------------------- */

@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }

  .skip-link,
  .footer nav,
  .pinned,
  .mosaic {
    display: none;
  }
}
