/* ==========================================================================
   Jeffrey Groneberg · résumé (facts.html)
   The room's text version, set as a recruiter's résumé: the same night palette,
   lettering and pills as the HUD in site.css. Print and the PDF use the paper
   styles at the end. Generated markup: scripts/build-facts.mjs.
   ========================================================================== */

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/m-plus-rounded-1c-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../fonts/m-plus-rounded-1c-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "DotGothic16";
  src: url("../fonts/dotgothic16-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* world tokens, shared with site.css */
  --night: #0b1026;
  --paper: #fff4e0;
  --paper-dim: #e9dcc4;
  --lantern: #ffb45a;
  --gold: #ffd75e;
  --win-top: #2b3fb4;
  --win-bottom: #121b6e;
  --win-edge: #f3f1ff;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, sans-serif;
  --pixel: "DotGothic16", "Osaka-Mono", ui-monospace, monospace;

  /* night (default): the room after dark */
  color-scheme: dark light;
  --bg: var(--night);
  --ink: var(--paper);
  --ink-2: var(--paper-dim);
  --accent: var(--gold);
  --line: rgba(255, 244, 224, 0.82);
  --rule: rgba(255, 244, 224, 0.16);
  --wash: rgba(255, 244, 224, 0.08);
  --link-line: var(--lantern);
  --hover: var(--lantern);
  --focus: var(--lantern);
  --glow-warm: rgba(255, 180, 90, 0.11);
  --glow-cool: rgba(143, 211, 255, 0.07);
  --lift: rgba(4, 6, 18, 0.55);
  --name-shadow: 0 3px 0 rgba(26, 14, 48, 0.55), 0 8px 22px rgba(0, 0, 0, 0.5);

  /* one column: key (dates, groups, portrait) + reading column */
  --pad: 1.5rem;
  --key: 9.5rem;
  --gut: 1.75rem;
  --measure: 38rem;
}

/* daylight: the paper of the lantern turned into the page */
@media (prefers-color-scheme: light) {
  :root {
    --bg: var(--paper);
    --ink: var(--night);
    --ink-2: #464b69;
    --accent: #974c00;
    --line: rgba(11, 16, 38, 0.78);
    --rule: rgba(11, 16, 38, 0.14);
    --wash: rgba(11, 16, 38, 0.06);
    --link-line: #d57a1a;
    --hover: #2b3fb4;
    --focus: #2b3fb4;
    --glow-warm: rgba(255, 180, 90, 0.2);
    --glow-cool: transparent;
    --lift: rgba(11, 16, 38, 0.2);
    --name-shadow: none;
  }
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(var(--pad), 1fr) minmax(0, calc(var(--key) + var(--gut) + var(--measure))) minmax(var(--pad), 1fr);
  align-content: start;
  /* the lantern (top right) and the CRT (top left) still light the top of the page */
  background:
    radial-gradient(54rem 30rem at 100% 0, var(--glow-warm), transparent 70%),
    radial-gradient(44rem 28rem at 0 0, var(--glow-cool), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--ink);
  font: 500 1rem/1.6 var(--round);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
body > * { grid-column: 2; }

::selection { background: var(--lantern); color: var(--night); }

img { display: block; max-width: 100%; }
.px { image-rendering: pixelated; }

h1, h2, h3 { margin: 0; font-weight: 800; text-wrap: balance; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.24em;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
a:hover { color: var(--hover); text-decoration-color: currentColor; }

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

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* label on screen, bare URL on paper */
.on-paper { display: none; }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- pills: the HUD's hairline controls ---------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: 500 0.8125rem/1 var(--round);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill:focus-visible { border-radius: 999px; }

/* the site's own pixel cartridge: put it in and play */
.pill-play::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: url("../img/favicon.svg") 0 0 / 16px 16px no-repeat;
}

/* a pixel arrow into the tray */
.pill-pdf::before {
  content: "";
  flex: none;
  width: 11px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 13'%3E%3Cpath d='M4 0h3v5h3v1h-1v1H8v1H7v1H4V8H3V7H2V6H1V5h3zM0 11h11v2H0z'/%3E%3C/svg%3E") 0 0 / 11px 13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 13'%3E%3Cpath d='M4 0h3v5h3v1h-1v1H8v1H7v1H4V8H3V7H2V6H1V5h3zM0 11h11v2H0z'/%3E%3C/svg%3E") 0 0 / 11px 13px no-repeat;
}

/* ---------- masthead ------------------------------------------------------- */

.masthead { padding: max(32px, env(safe-area-inset-top)) 0 3rem; }

h1 {
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-shadow: var(--name-shadow);
}

.title {
  margin-top: 0.6rem;
  font-size: 1.125rem;
  line-height: 1.45;
}
.title .line { display: inline; }
.title .line + .vh + .line::before { content: " · "; color: var(--ink-2); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.35rem; }
/* the one filled pill: what a recruiter takes away */
.pill-pdf { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill-pdf:hover { background: transparent; color: var(--ink); }

.reach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: 1rem;
}
.reach-row li:has(+ li:not(.on-paper))::after { content: "·"; margin: 0 0.6em; color: var(--ink-2); }
.reach-row a { color: var(--ink); font-weight: 800; }

.hello {
  display: grid;
  grid-template-columns: var(--key) minmax(0, 1fr);
  column-gap: var(--gut);
  align-items: center;
  margin-top: 2.25rem;
}

.avatar {
  justify-self: end;
  width: 128px;
  height: 128px;
  border-radius: 10px;
  background: #1a2350;
  box-shadow: 0 0 0 1.5px var(--line), 0 10px 22px var(--lift);
}

.headline {
  max-width: var(--measure);
  font-size: 1.3125rem;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---------- sections ------------------------------------------------------- */

.sec {
  display: grid;
  grid-template-columns: var(--key) minmax(0, 1fr);
  column-gap: var(--gut);
  scroll-margin-top: 1.5rem;
}
.sec + .sec { margin-top: 3.75rem; }
.sec > * { grid-column: 2; }
.sec > h2, .sec > .ledger, .sec > .employer-block, .sec > .highlights { grid-column: 1 / -1; }

h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1.5rem;
  line-height: 1.2;
}
/* a cartridge seen end-on, in the chapter's label colour */
h2::before {
  content: "";
  flex: none;
  width: 12px;
  height: 17px;
  border-radius: 3px 3px 1.5px 1.5px;
  background: var(--c, var(--accent));
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.lede { max-width: var(--measure); text-wrap: pretty; }
.lede + .ledger { margin-top: 1.75rem; }

/* highlights: the proof, two columns on wide screens */
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.5rem;
}
.highlights a { text-decoration-color: color-mix(in srgb, var(--link-line) 60%, transparent); }
.highlights li { position: relative; padding-left: 1.1rem; text-wrap: pretty; }
.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--c, var(--accent));
}
.highlights b { font-weight: 800; }

/* ---------- the ledger: key column + reading column ------------------------ */

.ledger > li, .ledger > div {
  display: grid;
  grid-template-columns: var(--key) minmax(0, 1fr);
  column-gap: var(--gut);
  align-items: baseline;
}
.ledger > li > *, .ledger > div > * { grid-column: 2; }
.ledger .key { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }

.ledger p, .ledger dd { max-width: var(--measure); text-wrap: pretty; }

.when, .year, .yr {
  color: var(--accent);
  font: 400 16px/1.5 var(--pixel);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.yr .dot { color: var(--ink-2); font-family: var(--round); }
.yr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.meta, .org, .gist, .desc { color: var(--ink-2); }
.meta { font-size: 0.9375rem; line-height: 1.5; }

/* experience: recent roles in full, earlier ones condensed */
.roles h3 { font-size: 1.1875rem; line-height: 1.35; }
.org { margin-top: 0.1rem; font-size: 1rem; }
.roles > li + li { margin-top: 2rem; }
.points { margin-top: 0.6rem; }
.points li { position: relative; max-width: var(--measure); padding-left: 1.15rem; text-wrap: pretty; }
.points li + li { margin-top: 0.35rem; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  background: var(--c, var(--accent));
}

.role-links { margin-top: 0.55rem; font-size: 0.9375rem; }
.role-links .dot { color: var(--ink-2); }

/* employer blocks: official logo (never recoloured, cropped or decorated) and tenure */
.employer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
  margin: 0 0 1.5rem;
  padding: 2px 0 2px calc(var(--key) + var(--gut));
}
.logo { display: block; flex: none; width: auto; height: 24px; }
.logo-on-light { display: none; }
@media (prefers-color-scheme: light) {
  .logo-on-dark { display: none; }
  .logo-on-light { display: block; }
}
.employer-name { font-weight: 800; font-size: 1.0625rem; }
.tenure { color: var(--ink-2); font-size: 0.9375rem; }
.employer-block + .employer-block { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }

.earlier { margin-top: 0; }
.earlier > li + li { margin-top: 0.8rem; }
.earlier h3 { font-size: 1rem; line-height: 1.45; }
.gist { font-size: 0.9375rem; line-height: 1.5; }

/* skills */
.skills > div + div { margin-top: 0.8rem; }
.skills dt { font-weight: 800; line-height: 1.5; }

/* workshops & projects: grouped by year */
.entries h3 { font-size: 1.0625rem; line-height: 1.45; }
.entries > li + li { margin-top: 1.1rem; }
.entries > li.fresh + li.fresh,
.entries > li.same + li.fresh { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.desc { margin-top: 0.25rem; font-size: 0.9375rem; line-height: 1.55; }

/* featured work: date | title, kind · site, value | the site's screenshot */
.featured-work > li { grid-template-columns: var(--key) minmax(0, 1fr) 11rem; column-gap: var(--gut); }
.featured-work > li > * { grid-column: 2 / -1; }
.featured-work > li.has-shot > :not(.key):not(.feat-shot) { grid-column: 2; }
.featured-work > li + li { margin-top: 1.6rem; }
.featured-work h3 { font-size: 1.125rem; line-height: 1.4; }
.featured-work .meta { margin-top: 0.15rem; }
.featured-work .site { color: var(--ink); overflow-wrap: anywhere; }
.featured-work .desc { margin-top: 0.35rem; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; text-wrap: pretty; }
.featured-work > li > .feat-shot { grid-column: 3; grid-row: 1 / span 3; align-self: start; display: block; margin-top: 0.3rem; border-radius: 6px; }
.feat-shot .shot {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--rule), 0 8px 18px var(--lift);
  transition: filter 0.2s ease;
}
.feat-shot:hover .shot { filter: brightness(1.08); }

/* selected publications: dated, newest first, no year groups */
.entries.pubs > li + li { margin-top: 1.25rem; padding-top: 0; border-top: 0; }

/* speaking: an event per entry, grouped by year; its sessions by kind under the month and role; the general talks note
   closes the list */
.entries.talks > li + li { margin-top: 0.8rem; }
.talks h3 { text-wrap: pretty; }
.talks .place { font-weight: 500; }
.talks .sessions { margin-top: 0.2rem; }
.talks .sessions li { max-width: var(--measure); font-size: 0.9375rem; line-height: 1.5; text-wrap: pretty; }
.talks .sessions li + li { margin-top: 0.2rem; }
.talks .kind { font-weight: 800; }
.talks-note { margin-top: 1.4rem; max-width: var(--measure); color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; text-wrap: pretty; }

/* current focus: the room's whiteboard, a topic per entry with Jeffrey's own references under it (screen only) */
.entries.focus > li + li { margin-top: 1.6rem; }
.focus .refs { margin-top: 0.5rem; }
.focus .refs li { max-width: var(--measure); color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; text-wrap: pretty; }
.focus .refs li + li { margin-top: 0.3rem; }
.focus .kind { font-weight: 800; color: var(--ink); }

/* education, certifications: compact */
.sec.small h2 { font-size: 1.25rem; margin-bottom: 1.1rem; }
.compact li + li { margin-top: 0.7rem; }
.compact h3 { font-size: 1rem; line-height: 1.45; }
.compact .meta .dot { color: var(--ink-2); }

/* interests: one blue RPG window, the way secrets appear in the room */
.rpg {
  max-width: var(--measure);
  padding: 0.95rem 1.25rem 1.05rem;
  background: linear-gradient(180deg, var(--win-top), var(--win-bottom));
  border: 3px solid var(--win-edge);
  border-radius: 9px;
  box-shadow: inset 0 0 0 2px #0a1040, 0 8px 18px var(--lift);
  color: #fff;
  font: 400 16px/1.5 var(--pixel);
  text-shadow: 1px 1px 0 #070b2a;
}
.rpg li { position: relative; padding-left: 28px; }
.rpg li + li { margin-top: 0.45rem; }
.rpg li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: url("../img/tv/icons/ui-star.png") 0 0 / 16px 16px no-repeat;
  image-rendering: pixelated;
}
.rpg b { font-weight: 400; color: var(--gold); }
.rpg a { text-decoration-color: var(--gold); }
.rpg a:hover { color: var(--gold); }

/* the photographs: a short strip of thumbnails, each opens on 500px */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: var(--measure);
  margin-top: 1.25rem;
}
.photo-strip a { display: block; border-radius: 5px; }
.photo-strip .shot {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 5px;
  background: var(--wash);
  transition: filter 0.2s ease;
}
.photo-strip a:hover .shot { filter: brightness(1.1); }
.photo-strip a:focus-visible { outline-offset: 2px; }
.photo-more { margin-top: 0.75rem; font-size: 0.9375rem; }

/* ---------- the close ------------------------------------------------------ */

.colophon { margin-top: 5rem; padding: 2.25rem 0 max(2.5rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.close .lede { font-size: 1.125rem; }
.reach { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.25rem; }
.credits { margin-top: 2.5rem; color: var(--ink-2); font-size: 0.875rem; line-height: 1.6; }
.credits p { max-width: 64ch; }
.credits p + p { margin-top: 0.5rem; }

/* ---------- phones --------------------------------------------------------- */

@media (max-width: 44rem) {
  :root { --pad: 1.25rem; }

  .masthead { padding-bottom: 2.25rem; }
  .actions { margin-top: 1.25rem; }
  .title { font-size: 1.0625rem; }
  .title .line { display: block; }
  .title .line + .vh + .line::before { content: none; }
  .hello { grid-template-columns: 64px minmax(0, 1fr); column-gap: 1rem; align-items: start; margin-top: 1.75rem; }
  .avatar { width: 64px; height: 64px; border-radius: 8px; margin-top: 0.25rem; }
  .headline { font-size: 1.125rem; }

  .sec, .ledger > li, .ledger > div { display: block; }
  .sec + .sec { margin-top: 3rem; }
  h2 { font-size: 1.375rem; }
  .highlights { grid-template-columns: 1fr; gap: 0.7rem; }

  .ledger .key { justify-self: auto; text-align: left; }
  .year { display: none; }
  .yr { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .roles .when { margin-top: 0.15rem; }
  .employer { padding-left: 0; }

  .reach { flex-direction: column; align-items: flex-start; }
  .photo-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .featured-work > li.has-shot { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; column-gap: 0.9rem; }
  .featured-work > li.has-shot > :not(.key):not(.feat-shot) { grid-column: 1; }
  .featured-work > li.has-shot > .feat-shot { grid-column: 2; grid-row: 1 / span 2; margin-top: 0.3rem; }
}

/* ---------- paper: print and "Save as PDF" ---------------------------------
   The classic résumé grammar: one full-width column, dates right-aligned on the
   title line, one line per workshop, links clickable in the PDF. */

@media print {
  @page { size: A4; margin: 10mm 12.5mm; }

  :root {
    --bg: #fff;
    --ink: #000;
    --ink-2: #333;
    --accent: #000;
    --rule: #999;
    --line: #000;
  }

  html, body { background: #fff; }
  body { display: block; font-size: 8.9pt; line-height: 1.27; color: #000; }

  .skip, .actions, .avatar, .on-screen, .desc, .year, .colophon .close, .credits > p:not(.tm), h2::before, #workshops .lede { display: none !important; }
  .on-paper { display: inline; }
  .yr { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font: inherit; color: inherit; }

  a { color: inherit; text-decoration: underline; text-decoration-color: #999; text-decoration-thickness: 0.5pt; text-underline-offset: 0.15em; }
  h3 a { text-decoration: none; }
  .highlights a { text-decoration-color: #999; }

  /* everything spans the page */
  .sec, .ledger > li, .ledger > div, .hello { display: block; }
  .sec > *, .ledger > li > *, .ledger > div > * { max-width: none; }

  .masthead { padding: 0 0 2.5mm; }
  h1 { font-size: 21pt; text-shadow: none; }
  .title { margin-top: 1.2mm; font-size: 10.5pt; }
  .reach-row { margin-top: 0.8mm; font-size: 9pt; color: #000; }
  .reach-row li:has(+ li)::after { content: "·"; margin: 0 0.5em; color: #000; }
  .reach-row a { font-weight: 500; text-decoration: none; }
  .hello { margin-top: 2mm; }
  .headline { font-size: 10pt; line-height: 1.38; max-width: none; }
  .focus-line b { font-weight: 800; }

  .sec + .sec { margin-top: 2.6mm; }
  h2, .sec.small h2 {
    display: block;
    margin-bottom: 1.4mm;
    padding-bottom: 0.7mm;
    border-bottom: 0.6pt solid #000;
    font-size: 10pt;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    break-after: avoid;
  }

  .highlights { grid-template-columns: 1fr 1fr; gap: 0.6mm 7mm; max-width: none; }
  /* printers drop backgrounds, so bullets become text */
  .highlights li, .points li { padding-left: 3mm; }
  .highlights li::before, .points li::before { content: "•"; top: 0; width: auto; height: auto; background: none; color: #000; }

  /* roles: title left, dates right; plain blocks so a role can continue on the next page */
  .roles > li { display: block; position: relative; }
  .roles h3 { font-size: 9.9pt; padding-right: 32mm; }
  .roles .when { position: absolute; top: 0; right: 0; font: 500 9pt/1.36 var(--round); color: #000; white-space: nowrap; }
  .org { font-size: 9.3pt; margin-top: 0; }
  .roles > li + li { margin-top: 1.9mm; }
  .points { margin-top: 0.8mm; }
  .points li + li { margin-top: 0.3mm; }
  .employer { margin: 0.8mm 0 2.2mm; padding: 0; gap: 1mm 3mm; }
  .logo { height: 4.6mm; }
  .logo-on-dark { display: none !important; }
  .logo-on-light { display: block !important; }
  .employer-name { font-size: 9.8pt; }
  .tenure { font-size: 9pt; color: #333; }
  .employer-block + .employer-block { margin-top: 2.2mm; padding-top: 1.6mm; border-top: 0.6pt solid var(--rule); }
  .earlier { margin-top: 1.2mm; }
  .earlier > li + li { margin-top: 0.8mm; }
  .earlier h3 { font-size: 9.6pt; }
  .gist { font-size: 9.2pt; }

  /* skills as runs: "AI & agents: …" */
  .skills > div + div { margin-top: 0.6mm; }
  .skills dt, .skills dd { display: inline; }
  .skills dt::after { content: ": "; }

  /* one line per workshop, project, credential */
  .lede { max-width: none; }
  .entries > li, .entries > li + li, .entries > li.fresh + li.fresh, .entries > li.same + li.fresh, .pubs > li + li { margin-top: 0.6mm; padding-top: 0; border-top: 0; }
  .entries .url { display: inline; color: #555; font-size: 7.6pt; }
  .paper-note { display: block; margin-top: 1mm; font-size: 9pt; }
  /* speaking: a dense run per event (its sessions follow the role) to keep the résumé on two pages; the general talks
     note stays on screen, and the publications' long deep links stay clickable on their (then underlined) titles */
  .entries.talks > li { font-size: 8pt; line-height: 1.2; }
  .entries.talks > li + li { margin-top: 0.4mm; }
  .entries.talks h3, .entries.talks .meta, .entries.talks .sessions li { font-size: 8pt; line-height: 1.2; }
  .talks .sessions, .talks .sessions li { display: inline; }
  .talks .sessions li::before { content: " · "; }
  .talks .place { font-weight: 500; }
  .talks-note, main:has(#speaking) #publications .url { display: none; }
  .talks h3 a, main:has(#speaking) #publications h3 a { text-decoration: underline; }
  .screen-only { display: none !important; }
  .role-links { margin-top: 0.6mm; font-size: 8.8pt; }
  .entries h3, .compact h3 { display: inline; font-size: 9.5pt; }
  .entries .meta, .compact .meta { display: inline; font-size: 8.8pt; }
  .entries h3::after, .compact h3::after { content: " · "; font-weight: 500; }
  .compact li + li { margin-top: 0.6mm; }
  .compact .on-paper.url { display: inline; color: #555; font-size: 7.6pt; }
  .compact p.on-paper.url::before { content: " · "; }

  .rpg { padding: 0; background: none; border: 0; box-shadow: none; color: #000; text-shadow: none; font: inherit; max-width: none; }
  .rpg li { display: inline; padding: 0; }
  .rpg li::before { content: none; }
  .rpg li + li::before { content: " · "; position: static; width: auto; height: auto; background: none; }
  .rpg a { text-decoration-color: #999; }

  .ledger > div, .highlights li, .compact li, .entries > li, .earlier > li, .points li { break-inside: avoid; }
  /* a long role may continue on the next page, but never leaves its heading behind */
  .roles > li { break-inside: auto; orphans: 3; widows: 2; }
  .roles h3, .org, .employer { break-after: avoid; }

  /* featured work on paper: three to a row, each screenshot beside its title, date, kind and site */
  /* a title wraps there: a kept space at the break keeps it in the PDF's bookmark too (Chromium drops a collapsed one) */
  .featured-work h3 { white-space: pre-wrap; }
  .featured-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6mm 5mm; align-items: start; }
  .featured-work > li, .featured-work > li.has-shot, .featured-work > li + li {
    display: grid; grid-template-columns: 19mm minmax(0, 1fr); column-gap: 2.4mm; align-items: start;
    margin: 0; padding: 0; break-inside: avoid;
  }
  .featured-work > li > * { grid-column: 2; }
  .featured-work > li:not(.has-shot) > * { grid-column: 1 / -1; }
  .featured-work > li > .feat-shot { grid-column: 1; grid-row: 1 / span 2; margin-top: 0.5mm; border-radius: 0; }
  .featured-work .feat-shot .shot { box-shadow: none; outline: 0.4pt solid #bbb; border-radius: 0; }
  .featured-work h3 { font-size: 8.4pt; line-height: 1.22; }
  .featured-work .meta { display: block; margin-top: 0.5mm; font-size: 7.2pt; line-height: 1.28; color: #333; }
  .featured-work .site { display: block; font-weight: 500; color: #000; overflow-wrap: anywhere; }
  .featured-work .desc, .featured-work .key { display: none !important; }

  /* short closing sections share a row on paper */
  main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 7mm; align-items: start; }
  main > .sec { grid-column: 1 / -1; }
  main > #education, main > #side-projects { grid-column: 1; }
  main > #certifications, main > #interests { grid-column: 2; }

  /* shown once on paper: featured items leave the publication list, role links leave the roles */
  .pubs .in-featured, .role-links { display: none !important; }

  .colophon { margin-top: 2.2mm; padding: 0; border-top: 0; }
  .printed-from { display: none !important; }
  .credits { margin: 0; }
  .credits .tm { color: #555; font-size: 6.6pt; line-height: 1.25; max-width: none; }
}
