/* ==========================================================
   iinek.net – the whole design lives in this one file.
   Colours, fonts and sizes come from the iinek design system.
   Change a value in :root and the whole site follows.
   ========================================================== */

:root {
  /* colour */
  --orange: #E8792F;        /* the missing puzzle piece: logo and the home page quote */
  --orange-light: #F3A56C;  /* buttons on dark cards, the puzzle quote link */
  --orange-soft: #EDA472;   /* buttons on the white page when the mouse is over them */
  --navy: #3A3E42;          /* graphite head card (Teaching pages, head: blue) */
  --cobalt-tint: #F0F0EE;   /* light grey panels (::: peach) and tags */
  --burnt-orange: #A84A0C;  /* links and small orange text */
  --cobalt: #2F3337;        /* headings, dark buttons and pills (graphite since 26 Nov 2026; was cobalt blue) */
  --ink: #2F3337;           /* text, dark panels */
  --slate: #5B6168;         /* secondary text */
  --mist: #F5F5F4;          /* small grey boxes */
  --white: #FFFFFF;
  --line: #E2E2E0;          /* thin lines */
  --rule: #4F545A;          /* the dark-grey line above the footer */
  --on-dark: #E3E5E8;       /* text on ink */
  --on-dark-muted: #B9BEC4;
  --chip: #ECECEA;          /* "since 2002" tags */
  --chip-grey: #F0F0EE;     /* tags for earlier things */

  /* type */
  --font-heading: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* shape and space */
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --max-width: 1240px;
  --gap: 16px;
}

/* Fonts, served from this website (no Google, no tracking) */
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/public-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/public-sans-latin-800-normal.woff2") format("woff2"); }

/* ---------- basics ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
a { color: var(--burnt-orange); text-underline-offset: 3px; }
a:hover { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--focus, var(--burnt-orange)); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; }
.site { padding: var(--gap); }

.label { margin: 0; font-weight: 500; font-size: 15px; line-height: 1.4; color: var(--burnt-orange); } /* small labels in orange since 27 Nov 2026 (were slate) */
code { font-family: var(--font-body); }

/* ---------- header and footer (the same look) ---------- */
.site-header, .site-footer { max-width: calc(var(--max-width) + 32px); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-header { padding: 8px 16px 20px; }
.site-header__logo img { display: block; height: 48px; width: auto; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-weight: 500; font-size: 16px; }
.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--burnt-orange); }
.site-footer { margin-top: 96px; padding: 28px 16px 16px; border-top: 2px solid var(--rule); font-size: 15px; color: var(--slate); }
.site-footer__id { display: flex; align-items: center; gap: 14px; }
.site-footer__id img { display: block; height: 30px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; }
.button--light { background: var(--orange-light); color: var(--ink); }
.button--light:hover { background: var(--white); color: var(--ink); }
.button--ink, .panel--peach a.button--ink { background: var(--cobalt); color: var(--white); }
.button--ink:hover, .panel--peach a.button--ink:hover { background: var(--orange-soft); color: var(--ink); }

.toc { padding: 22px 24px; border-radius: var(--radius-md); background: var(--mist); display: flex; flex-direction: column; gap: 8px; }
.stats { margin: 0; padding: 0 4px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--slate); }
.stats b { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: var(--cobalt); }

/* ---------- page body ---------- */
.flow { max-width: var(--max-width); margin: 0 auto; padding: 56px 16px 0; }
.flow--home { padding-top: 48px; }
.flow > :first-child { margin-top: 0; }
.flow h2 { margin: 80px 0 20px; font-family: var(--font-heading); font-weight: 800; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -.02em; color: var(--cobalt); scroll-margin-top: 24px; }
.flow > h2:first-child, .panel__inner > h2:first-child { margin-top: 0; }
.flow h2.title { font-size: clamp(24px, 2.6vw, 30px); }
.flow h3 { margin: 36px 0 12px; font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--burnt-orange); } /* subheadings in the same orange as the labels */
.flow p, .flow ul, .flow ol { margin: 0 0 18px; max-width: 68ch; }
.flow ul[class], .panel .flow, .flow .panel p { max-width: none; }
.flow li { margin-bottom: 6px; }
.flow blockquote { margin: 0 0 24px; max-width: 68ch; padding: 6px 0 6px 22px; border-left: 3px solid var(--cobalt); font-family: var(--font-heading); font-size: 19px; line-height: 1.5; color: var(--ink); }
.flow blockquote p:last-child { font-family: var(--font-body); font-size: 15px; color: var(--slate); }
.flow img { border-radius: var(--radius-md); }
.flow hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* ---------- panels: ::: band, ::: peach, ::: feature, ::: contact ---------- */
.panel { margin: 64px -16px; border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.panel__inner { position: relative; padding: 56px 32px; }
.panel__inner > :last-child { margin-bottom: 0; }
.panel--band, .panel--feature, .panel--contact { background: var(--ink); color: var(--on-dark); }
.panel--band h2, .panel--feature h2, .panel--contact h2 { color: var(--white); }
.panel--band a, .panel--feature a, .panel--contact a { color: var(--white); }
.panel--band h3, .panel--feature h3, .panel--contact h3 { color: var(--on-dark-muted); }
.panel__edge { display: none; }
.panel--peach { background: var(--cobalt-tint); color: var(--ink); }
.panel--peach h2 { color: var(--cobalt); }
.panel--peach a { color: var(--ink); }
.panel--peach h3 { color: var(--ink); }
.panel--feature .panel__inner { max-width: 62%; }
.panel--feature::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 38%; background: url("/assets/img/puzzle-header.jpg") 30% center / cover; }
.panel--feature p:first-of-type { font-size: 18px; }
.panel--contact { margin: 0 0 24px; }
.panel--contact .panel__inner { padding: 28px; }
.panel a.button, .flow a.button { text-decoration: none; }

/* ---------- styled lists: {.name} after a list ---------- */
.flow ul[class] { list-style: none; padding: 0; }
.li__head { display: block; }
.li__text { display: block; }

/* cards: {.grid}, {.courses}, {.videos}, {.books} */
.flow .grid, .flow .courses, .flow .videos, .flow .books { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-bottom: 24px; }
.grid > li, .courses > li, .videos > li, .books > li { margin: 0; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--slate); }
.grid .li__head, .courses .li__head, .books .li__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.grid .li__head > a, .grid .li__head > strong, .courses .li__head > a, .courses .li__head > strong, .books .li__head > a, .books .li__head > strong,
.videos .li__head > a {
  font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--cobalt); text-decoration: none;
}
.grid .li__head > a:hover, .courses .li__head > a:hover, .videos .li__head > a:hover, .books .li__head > a:hover { text-decoration: underline; }
.grid code, .courses code, .rows code, .videos code, .books code { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--chip); color: var(--cobalt); font-size: 13px; font-weight: 500; white-space: nowrap; }
.rows code, .videos code { background: var(--chip-grey); color: var(--slate); }

/* {.videos}: label line (second line) above the title */
.videos > li { flex-direction: column-reverse; justify-content: flex-end; padding: 20px 22px; }
.videos .li__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.videos .li__head > a { font-size: 21px; line-height: 1.2; }
.videos .li__text { font-weight: 500; font-size: 14px; }

/* {.rows}: compact rows, two columns – earlier courses */
.rows { columns: 2 440px; column-gap: 56px; }
.rows > li { break-inside: avoid; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.rows .li__head { display: contents; }
.rows .li__head > strong, .rows .li__head > a { flex: 0 0 190px; font-weight: 600; color: var(--ink); }
.rows .li__text { flex: 1 1 200px; font-size: 15px; color: var(--slate); }
.rows code { order: 3; }

/* {.facts}: at a glance */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.facts > li { margin: 0; padding: 20px 22px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); }
.facts .li__head { font-weight: 500; font-size: 14px; color: var(--slate); margin-bottom: 6px; }
.facts .li__head strong { font-weight: 500; }

/* {.cv}: timeline rows on the About page */
.cv > li { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 28px; }
.cv > li:last-child { border-bottom: 1px solid var(--line); }
.cv .li__head { flex: 0 0 190px; }
.cv .li__head strong { font-family: var(--font-heading); font-weight: 600; font-size: 19px; color: var(--cobalt); }
.cv .li__text { flex: 1 1 360px; }

/* {.pubs}: year on the left, reference on the right */
.pubs > li { position: relative; margin: 0; padding: 20px 0 20px 76px; border-top: 1px solid var(--line); font-size: 16px; }
.pubs > li:last-child { border-bottom: 1px solid var(--line); }
.pubs > li > em:first-child { position: absolute; left: 0; top: 18px; font-family: var(--font-heading); font-style: normal; font-weight: 600; font-size: 18px; color: var(--cobalt); }
.pubs strong { font-family: var(--font-heading); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--ink); display: block; margin-bottom: 2px; }
.pubs a:has(> strong) { display: block; text-decoration: none; }
.pubs a:has(> strong):hover strong { color: var(--burnt-orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.panel .pubs > li { border-color: rgba(255, 255, 255, .2); color: var(--on-dark-muted); }
.panel .pubs strong { color: var(--white); }
.panel .pubs > li > em:first-child { color: var(--on-dark-muted); }
.panel .pubs a:has(> strong):hover strong { color: var(--white); }
.pubs code { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; margin-right: 8px; border-radius: 999px; background: var(--chip-grey); color: var(--slate); font-size: 13px; font-weight: 600; }

/* {.inline}: links in a row */
.inline { display: flex; flex-wrap: wrap; gap: 10px; }
.inline > li { margin: 0; }
.inline > li > a, .inline > li { display: inline-flex; }
.inline > li > a { align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.inline > li > a:hover { border-color: var(--burnt-orange); color: var(--burnt-orange); }
.panel--peach .inline > li > a { border-color: transparent; }


/* ---------- blog ---------- */
.split { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 80px; }
.split > h2 { flex: 1 1 280px; margin: 0; }
.split > .posts { flex: 2 1 560px; }
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { margin: 0; }
.posts a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; }
.posts li:last-child a { border-bottom: 1px solid var(--line); }
.posts__title { font-family: var(--font-heading); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--ink); }
.posts a:hover .posts__title { color: var(--burnt-orange); }
.posts time { font-size: 15px; color: var(--slate); }
.draft { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--white); background: var(--burnt-orange); padding: 1px 8px; border-radius: 4px; vertical-align: middle; }
.prose { max-width: 760px; }
.back { margin-top: 48px; font-size: 16px; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .site { padding: 10px; }
  .panel__inner { padding-left: 20px; padding-right: 20px; }
  .panel--feature .panel__inner { max-width: none; }
  .panel--feature::after { position: static; display: block; width: auto; height: 220px; }
  .site-header__logo img { height: 40px; }
  .pubs > li { padding-left: 64px; }
}

/* plain (unlinked) items in an {.inline} list */
.inline > li:not(:has(> a)) { align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 500; }

/* buttons and headings inside panels */
.panel a.button--light { color: var(--ink); }
.panel__inner > h3:first-child { margin-top: 0; }
.panel__inner > h3 + h2 { margin-top: 10px; }

.toc__text { margin: 0; font-size: 15px; color: var(--ink); white-space: pre-line; }

/* a card list of exactly three always sits in one row (stacks on phones) */
.grid:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .grid:has(> li:nth-child(3):last-child) { grid-template-columns: 1fr; }
}

/* a quote card in the head card's right-hand box (aside: quote / cite) */
.aside-quote { margin: 0; padding: 26px 26px 22px; border-radius: var(--radius-md); background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; gap: 14px; }
.aside-quote blockquote { margin: 0; font-family: var(--font-heading); font-size: 18px; line-height: 1.4; color: var(--white); }
.aside-quote blockquote::before { content: "“"; display: block; font-size: 56px; line-height: .6; color: var(--on-dark-muted); margin-bottom: 6px; }
.aside-quote figcaption { font-size: 13px; font-style: italic; line-height: 1.45; color: var(--on-dark-muted); }

/* wide: true in a note – text runs the full width of the page */
.flow--wide p, .flow--wide ul, .flow--wide ol, .flow--wide blockquote { max-width: none; }

/* section menu under the main menu (Teaching, Research) */
.subnav { max-width: calc(var(--max-width) + 32px); margin: -8px auto 16px; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.subnav__label { font-weight: 500; font-size: 14px; color: var(--slate); margin-right: 6px; }
.subnav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.subnav a:hover { border-color: var(--burnt-orange); color: var(--burnt-orange); }
.subnav a[aria-current="page"] { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
@media (max-width: 760px) {
  .subnav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; justify-content: flex-start; }
  .subnav a { flex: none; }
}

/* head: false in a note – no white head card; the page starts with its first panel */
.flow--nohead { padding-top: 0; }
.flow > .panel:first-child { margin-top: 0; }

/* head: feature – the dark card with a picture on the right (research pages). image: /assets/img/… picks the picture */
.page-feature { max-width: var(--max-width); margin: 0 auto; border-radius: var(--radius-xl); overflow: hidden; background: var(--ink); color: var(--on-dark); display: flex; flex-wrap: wrap; }
.page-feature__text { flex: 3 1 520px; min-width: 0; padding: 48px 32px; display: flex; flex-direction: column; gap: 16px; }
.page-feature .label { color: var(--orange-light); }
.page-feature h1 { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; letter-spacing: -.025em; color: var(--white); }
.page-feature__intro > :first-child { margin-top: 0; }
.page-feature__intro > :last-child { margin-bottom: 0; }
.page-feature__intro p:first-child { font-size: 18px; }
.page-feature__intro a { color: var(--white); }
.page-feature__img { flex: 2 1 340px; min-width: 0; min-height: 280px; width: 100%; object-fit: cover; object-position: 30% center; display: block; contain: size; /* never makes the card taller than its text */ }
.page-feature__intro a.button { margin-top: 8px; color: var(--ink); text-decoration: none; }
.page-feature__intro a.button:hover { color: var(--ink); }
.page-feature + .flow { padding-top: 32px; }
/* a card whose title is a link: show it as a link */
.grid .li__head a { text-decoration: none; }
.grid .li__head a:hover { color: var(--burnt-orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* {.quotes} – student quotes as three cards */
.quotes { list-style: none; padding: 0; margin: 24px 0 0; max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.quotes > li { position: relative; margin: 0; padding: 52px 24px 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); color: var(--ink); font-family: var(--font-heading); font-size: 17px; line-height: 1.5; }
.quotes > li::before { content: "\201C"; position: absolute; left: 22px; top: 6px; font-family: var(--font-heading); font-size: 64px; line-height: 1; color: var(--cobalt); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.li__more { display: block; margin-top: 10px; font-weight: 600; font-size: 15px; color: var(--burnt-orange); text-decoration: none; }
.li__more:hover { text-decoration: underline; text-underline-offset: 4px; }
/* {.profile-links} after a paragraph of links: turns them into small light buttons */
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0; color: transparent; }
.profile-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--cobalt); color: var(--white) !important; font-size: 15px; font-weight: 600; text-decoration: none; }
.profile-links a:hover { background: var(--orange-soft); color: var(--ink) !important; }
/* publication filters (made by the script in base.njk) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.filters button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 500 14px/1 var(--font-body, inherit); cursor: pointer; }
.filters button span { color: var(--slate); font-size: 13px; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.filters button[aria-pressed="true"] span { color: var(--on-dark-muted); }
.pubs > li[hidden] { display: none; }
/* profile buttons in a page head (Publications) */
.page-feature__intro .profile-links { margin-top: 8px; gap: 10px; }
.page-feature__intro .profile-links a { min-height: 48px; padding: 0 22px; font-size: 16px; background: var(--orange-light); color: var(--ink) !important; }
.page-feature__intro .profile-links a:hover { background: var(--white); }
.page-feature + .flow > h2:first-child { margin-top: 40px; }
/* book covers: an image at the start of a {.books} description */
.books .li__text img { float: left; width: 96px; height: auto; margin: 4px 18px 8px 0; border-radius: 4px; box-shadow: 0 6px 16px rgba(47,51,55,.18); }
.books > li { display: block; }
.books .li__head { margin-bottom: 10px; }
.flow .profile-links { gap: 10px; max-width: none; }
.flow .profile-links a { min-height: 48px; padding: 0 22px; font-size: 16px; }
/* aside: dark: true – the right-hand box in ink (About: contact) */
.toc--dark { background: var(--ink); }
.toc--dark .label { color: var(--orange-light); }
.toc--dark .toc__text { color: var(--on-dark); }
.toc--dark a { color: var(--white); }
/* {.pics}: cards with an optional picture on top (home: What I do, Selected publications).
   - [Title](link) `Label`
     ![](/assets/img/picture.jpg) Text */
.pics { list-style: none; padding: 0; margin: 24px 0 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.pics > li { margin: 0; padding: 22px 22px 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--slate); }
.pics .li__pic { display: block; width: calc(100% + 44px); max-width: none; margin: -22px -22px 12px; aspect-ratio: 16 / 10; object-fit: cover; }
.pics .li__head { display: flex; flex-direction: column-reverse; gap: 8px; }
.pics .li__head > a { font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--cobalt); text-decoration: none; }
.pics .li__head > a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pics code { align-self: flex-start; padding: 0; background: none; font-weight: 500; font-size: 14px; color: var(--slate); }
.flow--home .pics { margin-bottom: 24px; }
/* home: the name above "Law & informatics" a bit larger */
.page-feature--home .label { font-size: 19px; }

/* home: the puzzle photo with the lawyer's quote that explains it */
.page-feature__figure { flex: 2 1 340px; min-width: 0; margin: 0; position: relative; display: flex; }
.page-feature__figure .page-feature__img { flex: 1; }
.puzzle-note { position: absolute; left: 20px; right: 20px; bottom: 20px; max-width: 400px; margin-left: auto; padding: 18px 20px; border-radius: var(--radius-md); background: rgba(47, 51, 55, .88); color: var(--on-dark); }
.puzzle-note blockquote { margin: 0 0 10px; font-family: var(--font-heading); font-weight: 500; font-size: 17px; line-height: 1.35; color: var(--white); }
.puzzle-note blockquote::before { content: "\201C"; }
.puzzle-note blockquote::after { content: "\201D"; }
.puzzle-note a { font-size: 15px; color: var(--orange-light); }
@media (max-width: 760px) { .page-feature__figure { flex-direction: column; } .puzzle-note { position: static; max-width: none; margin: 0; border-radius: 0; background: var(--ink); } .page-feature__figure .page-feature__img { min-height: 200px; } }

/* a light button on the white page (not in a dark panel) becomes a cobalt button */
.flow > p > a.button--light { background: var(--cobalt); color: var(--white); }
.flow > p > a.button--light:hover { background: var(--orange-soft); color: var(--ink); }

/* ---------- typeset (impeccable pass, 25 Nov 2026) ---------- */
/* book cards wide enough for the description to run beside the cover */
.flow .books { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.books .li__text { font-size: 16px; }
/* figures that line up: years, dates, counts */
.pubs > li > em:first-child, .cv .li__head strong, .posts time, .stats b, .filters button span, time { font-variant-numeric: tabular-nums; }
/* even line breaks */
h1, h2, h3, .li__head > a, .li__head > strong, .pubs strong, .posts__title, .puzzle-note blockquote { text-wrap: balance; }
p, li, blockquote { text-wrap: pretty; }

/* ---------- layout (impeccable pass, 25 Nov 2026) ---------- */
/* a picture-card list of exactly three stays in one row (no orphan card), stacks on phones */
.pics:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .pics:has(> li:nth-child(3):last-child) { grid-template-columns: 1fr; } }
/* the home intro keeps a readable line length at every width */
.page-feature--home .page-feature__intro p { max-width: 60ch; }

/* ---------- polish (impeccable pass, 25 Nov 2026) ---------- */
/* text only screen readers hear (page titles on head: false pages, "Read more about …") */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* touch screens: tap areas of at least 44 px, without changing how anything looks */
@media (pointer: coarse) {
  .site-header nav a, .toc a, .li__head > a, .pics .li__head > a { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .li__more { margin-top: 0; padding-block: 11px; margin-bottom: -11px; }
  .site-header__logo { display: block; padding-block: 2px; margin-block: -2px; }
  .subnav a, .filters button, .inline > li > a { min-height: 44px; }
  .site-header nav { row-gap: 14px; }
}

/* {.entries}: list rows – the year (the `tag`) on the left, title and description on the right, a thin line between rows.
   - [Title](link) `2021`
     Description */
.flow .entries { list-style: none; padding: 0; margin: 24px 0 24px; max-width: 980px; border-bottom: 1px solid var(--line); }
.entries > li { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 32px; row-gap: 6px; margin: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.entries .li__head { display: contents; }
.entries code { grid-column: 1; grid-row: 1 / span 2; padding-top: 3px; font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--cobalt); font-variant-numeric: tabular-nums; white-space: nowrap; }
.entries .li__head > a, .entries .li__head > strong { grid-column: 2; grid-row: 1; font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--cobalt); text-decoration: none; text-wrap: balance; }
.entries .li__head > a:hover { color: var(--burnt-orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entries .li__text { grid-column: 2; grid-row: 2; max-width: 68ch; color: var(--slate); }
@media (max-width: 600px) {
  .entries > li { grid-template-columns: 1fr; row-gap: 4px; }
  .entries code, .entries .li__head > a, .entries .li__head > strong, .entries .li__text { grid-column: 1; }
  .entries code { grid-row: auto; order: -1; padding-top: 0; font-size: 15px; }
  .entries .li__head > a, .entries .li__head > strong { grid-row: auto; }
  .entries .li__text { grid-row: auto; }
}

/* tables (Teaching: courses) – write them as Markdown tables in a note.
   First column: name in cobalt; last column: years, lined up. On phones each row stacks. */
.flow table { width: 100%; max-width: 980px; margin: 8px 0 32px; border-collapse: collapse; font-size: 16px; }
.flow th { padding: 0 24px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; font-size: 14px; font-weight: 600; color: var(--slate); }
.flow td { padding: 16px 24px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--slate); text-wrap: pretty; }
.flow td:first-child { width: 26%; font-weight: 600; color: var(--cobalt); }
.flow td:first-child a { color: var(--cobalt); text-decoration: none; }
.flow td:first-child a:hover { color: var(--burnt-orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.flow td:first-child strong { font-weight: 600; }
.flow th:last-child, .flow td:last-child { width: 120px; padding-right: 0; white-space: nowrap; }
.flow td:last-child { font-weight: 600; color: var(--cobalt); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .flow thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .flow table, .flow tbody { display: block; }
  .flow tr { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .flow td { display: block; width: auto !important; padding: 0; border: 0; }
  .flow td:last-child { order: -1; font-size: 15px; }
  .flow tbody tr:first-child { border-top: 1px solid var(--rule); }
  .flow td[data-label="Since"]::before { content: "Since "; }
}
@media (pointer: coarse) { .flow td a { display: inline-block; padding-block: 12px; margin-block: -12px; } }

/* labels and subheadings inside dark panels (::: feature, ::: band, ::: contact) */
.panel .label { color: var(--orange-light); margin-bottom: 12px; }
.panel--band h3, .panel--feature h3, .panel--contact h3 { color: var(--orange-light); }
/* buttons in the small box on the right of a top card (Juristresan, About) */
.toc a.button { align-self: flex-start; margin-top: 6px; min-height: 42px; font-size: 15px; color: var(--ink); text-decoration: none; }
.toc a.button:hover { color: var(--ink); }
/* Research: a tighter dark card at the top (label straight above the heading) */
.panel .label + h2 { margin-top: 0; }
.panel--feature .panel__inner { padding-top: 40px; padding-bottom: 40px; }
.panel--feature .panel__inner > p { margin-bottom: 14px; }

/* ---------- top card on every page (card.njk) ---------- */
/* without image: the card is text only, with a readable line length */
.page-feature--text .page-feature__intro { max-width: 68ch; }
.page-feature .label .draft { margin-left: 6px; }
/* under the card: On this page, numbers, a small box or a quote (toc, stats, aside) */
.page-extras { max-width: var(--max-width); margin: 16px auto 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.page-extras > .toc, .page-extras > .aside-quote { flex: 1 1 100%; }
.page-extras > nav.toc { flex: 1 1 520px; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 22px; }
.page-extras > nav.toc .label { margin: 0; }
.page-extras + .flow { padding-top: 48px; }
/* aside: in_card: true – picture with the box underneath, both inside the top card (About) */
.page-feature__side { flex: 0 1 340px; min-width: 0; padding: 32px 32px 32px 0; display: flex; flex-direction: column; gap: 20px; }
.page-feature__side .page-feature__img { flex: none; contain: none; min-height: 0; aspect-ratio: 1 / 1; border-radius: var(--radius-md); }
.page-feature__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.page-feature__contact .label { margin: 0; }
.page-feature__contact .toc__text { color: var(--on-dark); }
@media (max-width: 760px) { .page-feature__side { flex: 1 1 100%; padding: 0 20px 32px; } }
/* the button of an aside: always on the left, under the text of the top card */
.page-feature__action { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.page-feature__action p { margin: 0; max-width: 68ch; }
.page-feature__action a.button { margin-top: 8px; color: var(--ink); text-decoration: none; }
.page-feature__action a.button:hover { color: var(--ink); }
/* video cards: 16:9 preview picture (assets/img/video-….jpg), the whole card is the link */
.pics > li:has(.li__pic[src*="/video-"]) { position: relative; }
.pics .li__pic[src*="/video-"] { aspect-ratio: 16 / 9; }
.pics > li:has(.li__pic[src*="/video-"]) .li__head > a::after { content: ""; position: absolute; inset: 0; }
.pics > li:has(.li__pic[src*="/video-"]):hover { border-color: var(--burnt-orange); }

/* keyboard focus: burnt orange on light backgrounds, the lighter orange on dark ones (both at least 3:1) */
.page-feature, .panel--band, .panel--feature, .panel--contact, .aside-quote, .toc--dark { --focus: var(--orange); }
/* long web addresses in posts may break, so phones never scroll sideways */
.prose a { overflow-wrap: anywhere; }
/* narrow screens: tags may move to a new line when text is enlarged or spaced out */
@media (max-width: 420px) {
  .grid .li__head, .courses .li__head, .books .li__head { flex-wrap: wrap; }
  .entries code { white-space: normal; }
  .pubs > li, .grid > li { overflow-wrap: anywhere; min-width: 0; }
}
/* old posts that start at ### get a real second-level heading that looks the same */
.flow h2.minor { margin: 36px 0 12px; font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: normal; color: var(--burnt-orange); }

/* a quote beside the text: put {.side-quote} on the line after a quote; the last paragraph is the source */
.flow blockquote.side-quote { margin: 0 0 24px; padding: 26px 26px 22px; border: 0; border-radius: var(--radius-md); background: var(--ink); color: var(--white); font-size: 19px; line-height: 1.4; }
.flow blockquote.side-quote::before { content: "\201C"; display: block; font-size: 56px; line-height: .6; color: var(--on-dark-muted); margin-bottom: 12px; }
.flow blockquote.side-quote p { margin: 0 0 14px; }
.flow blockquote.side-quote p:last-child { margin: 0; font-size: 13px; font-style: italic; line-height: 1.45; color: var(--on-dark-muted); }
@media (min-width: 900px) {
  .flow blockquote.side-quote { float: right; width: min(420px, 38%); margin: 6px 0 24px 40px; }
  .flow blockquote.side-quote ~ h2 { clear: both; }
}
