/* ascii-port -- holographic ASCII on deep blue, lots of air.
   Everything you read is a character. The shapes are the foil light under
   the page, the soft backings under cards and the pill buttons. */

/* Departure Mono by Helena Zhang, SIL OFL 1.1 (static/fonts/DepartureMono-LICENSE.txt). One weight only
   (the browser thickens it for bold); sharpest at multiples of 11px. */
@font-face {
  font-family: "Departure Mono";
  src: url("/fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05070f;
  --fg: #eef2ff;
  --text: #a3acc8;
  --dim: #6a7392;
  --faint: #2c3352;
  --line: #414b6e;
  /* theme colours: app.js overwrites these when the theme changes */
  --accent-rgb: 94, 140, 255;
  --h1: 70, 130, 255;
  --h2: 90, 235, 255;
  --h3: 185, 120, 255;
  --h4: 255, 120, 200;
  --h5: 255, 232, 150;
  --accent: rgb(var(--accent-rgb));
  --panel: rgba(9, 12, 24, .9);
  --panel-hi: rgba(14, 18, 36, .94);
  --fs: 14px;
  --lh: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --mono: "Departure Mono", "Cascadia Mono", "SF Mono", ui-monospace, Menlo, Consolas,
    "DejaVu Sans Mono", "Liberation Mono", monospace;
  color-scheme: dark;
}

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

html {
  overflow-x: clip;
  background: var(--bg);
  scroll-padding-top: 88px;
  scrollbar-color: #232a45 transparent;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs) / var(--lh) var(--mono);
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "calt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

pre { margin: 0; font: inherit; }
p { margin: 0 0 var(--lh); }
a { color: inherit; }
b { font-weight: 600; }
::selection { background: rgba(var(--accent-rgb), .4); color: #fff; }

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

/* ---------- background ---------- */
#bg, #form {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* layer 1: the foil. A tiny image, stretched by the browser and blurred into soft light. */
#glow {
  position: fixed; z-index: 0; pointer-events: none;
  filter: blur(14px) saturate(1.2);
}
/* the sculpture is a projection: cyan and magenta fringes, and now and then a flicker */
#form {
  filter: drop-shadow(-1.5px 0 0 rgba(0, 235, 255, .5)) drop-shadow(1.5px 0 0 rgba(255, 40, 150, .42));
  animation: flicker 6s steps(1) infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; } 7% { opacity: .8; } 8% { opacity: 1; }
  41% { opacity: .9; } 43% { opacity: 1; } 76% { opacity: .84; } 77% { opacity: 1; }
}
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 42%, rgba(2, 3, 8, .8) 100%);
}
/* fine static scanlines over the canvases */
.scan {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .2) 2px 3px);
}

/* ---------- layout ---------- */
.wrap {
  position: relative; z-index: 1;
  width: min(120ch, 100% - 6ch);
  margin-inline: auto;
}

/* stretches a run of repeated characters across whatever space is left */
.fill { flex: 1 1 0; min-width: 0; overflow: hidden; white-space: pre; }

/* ---------- the server-rendered text, before the script redraws it ---------- */
.ssr { max-width: 86ch; padding: calc(var(--lh) * 3) 0; }
.ssr h1 { margin: 0 0 var(--lh); font-size: 1.4em; color: var(--fg); }
.ssr h2 { margin: calc(var(--lh) * 2) 0 var(--lh); font-size: 1em; color: var(--accent); }
.ssr h3 { margin: var(--lh) 0 4px; font-size: 1em; color: var(--fg); }
.ssr h4 { margin: 0; font-size: 1em; font-weight: 400; color: var(--dim); }
.ssr ul { margin: 0 0 var(--lh); padding-left: 3ch; }
.ssr dl { display: grid; grid-template-columns: auto 1fr; gap: 0 2ch; margin: 0; }
.ssr dt { color: var(--dim); }
.ssr dd { margin: 0; }
.ssr article { padding: var(--lh) 2ch; margin-bottom: var(--lh); border-radius: 12px; background: var(--panel); }
.ssr a { color: rgb(var(--h2)); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 7, 15, .6);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2ch; height: 60px; padding-bottom: 6px;
}
/* the rule under the nav doubles as a scroll progress bar */
.nav-rule {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 12px; line-height: 12px;
  color: var(--faint); overflow: hidden; white-space: pre;
  pointer-events: none; user-select: none;
}
.nav-rule .prog {
  position: absolute; left: 0; top: 0; overflow: hidden;
  width: calc(var(--progress, 0) * 100%);
  color: transparent;
  background: linear-gradient(90deg, rgb(var(--h1)), rgb(var(--h2)), rgb(var(--h3)), rgb(var(--h4)));
  -webkit-background-clip: text; background-clip: text;
}
.brand { color: var(--fg); text-decoration: none; white-space: nowrap; }
.brand .at { color: var(--accent); }
.nav-links {
  position: relative; display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
/* one highlight that slides between the links */
.nav-ind {
  position: absolute; left: 0; top: 50%; height: 28px;
  width: var(--w, 0); opacity: var(--o, 0);
  transform: translate(var(--x, 0), -50%);
  border-radius: 999px; background: rgba(255, 255, 255, .1);
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .35s;
  pointer-events: none;
}

/* ---------- pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: 36px; padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: var(--fg);
  font: inherit; font-size: 13px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease),
    color .35s var(--ease), transform .35s var(--ease);
}
.pill:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.pill:active { transform: scale(.97); transition-duration: .1s; }
.pill:focus-visible, .brand:focus-visible, .repo a:focus-visible, .scroll-hint:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.pill.primary { background: #f5f5f7; border-color: #f5f5f7; color: #0a0a0a; font-weight: 600; }
.pill.primary:hover { background: #fff; border-color: #fff; }
.pill.sm { height: 28px; padding: 0 13px; font-size: 12px; }
.pill.ghost { background: transparent; border-color: transparent; color: var(--dim); }
.pill.ghost:hover, .pill.ghost.on { background: transparent; border-color: transparent; color: var(--fg); transform: none; }
.pill.theme { margin-left: 1ch; gap: 1ch; color: var(--text); }
.pill.theme .sw { color: var(--accent); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: min(calc(100vh - 60px), 900px);
  padding: calc(var(--lh) * 3) 0 calc(var(--lh) * 5);
}
.hero-art {
  position: absolute; z-index: 0; margin: 0;
  top: 50%; right: -7ch; width: 45.7em;
  transform: translateY(-53%);
  user-select: none;
  animation: fade 1.8s ease both .15s;
}
/* a breath of the accent colour behind the sculpture */
.hero-art::before {
  content: ""; position: absolute; inset: 8% 12%; z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--h1), .2), rgba(var(--h3), .08) 60%, transparent);
  filter: blur(24px);
}
.art-box { height: 41.4em; }
.cap { color: var(--dim); text-align: center; white-space: pre-wrap; }
.cap .idx { color: var(--line); }
.cap .hint { display: block; color: var(--faint); }

.hero-copy { position: relative; z-index: 1; max-width: 58ch; }
/* a dark pool behind the unboxed hero text so the foil never fights it */
.hero-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -100px -130px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 7, 15, .9) 55%, rgba(5, 7, 15, .6) 78%, transparent);
}
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(3) { animation-delay: .15s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-copy > :nth-child(5) { animation-delay: .4s; }
.hero-copy > :nth-child(6) { animation-delay: .5s; }
.hero-copy > :nth-child(7) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
@keyframes fade { from { opacity: 0; } }

.over { margin-bottom: calc(var(--lh) * 2); color: var(--dim); }
.over .n { color: var(--accent); }
.banner { margin-bottom: calc(var(--lh) * 2); overflow: hidden; }
.banner pre { white-space: pre; line-height: 1.214em; }
.banner[data-scale="1"] pre { line-height: .786em; }
/* the name is plain text: the foil sheen is a gradient clipped to the glyphs,
   and the colour fringes are two offset shadows */
.banner-base {
  display: inline-block; color: transparent;
  background: linear-gradient(105deg, var(--fg) 0 30%, rgb(var(--h2)) 40%, rgb(var(--h1)) 48%, rgb(var(--h3)) 56%,
    rgb(var(--h4)) 63%, rgb(var(--h5)) 69%, var(--fg) 78% 100%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(-1.5px 0 rgba(0, 235, 255, .5)) drop-shadow(1.5px 0 rgba(255, 40, 160, .4));
  animation: foil 9s linear infinite;
}
@keyframes foil { from { background-position: 150% 0; } to { background-position: 0 0; } }

.hero-meta { margin-bottom: 4px; color: var(--text); }
.hero-meta .sep { color: var(--faint); }
.avail { color: var(--dim); }
.avail .dot { color: rgb(var(--h2)); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.prompt { min-height: var(--lh); margin-bottom: calc(var(--lh) * 1.5); color: var(--fg); overflow-wrap: anywhere; }
.prompt .ps { color: var(--dim); }
.cursor { color: rgb(var(--h2)); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-hint {
  position: absolute; left: 0; bottom: calc(var(--lh) * 1.5);
  color: var(--dim); text-decoration: none; white-space: pre;
  transition: color .3s;
}
.scroll-hint:hover { color: var(--fg); }
.scroll-hint .bob { display: inline-block; color: var(--accent); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- section headings ---------- */
.sec { padding-top: calc(var(--lh) * 6); }
.rule {
  display: flex; margin: 0 0 calc(var(--lh) * 1.5);
  font: inherit; color: var(--faint); white-space: pre;
}
.rule .n { color: var(--accent); }
.rule .t { color: var(--fg); font-weight: 600; letter-spacing: .08em; }
.rule .note { color: var(--dim); }
/* text that sits straight on the foil gets its own backing or a dark halo */
.lead {
  display: inline-block; max-width: 96ch; padding: 10px 2ch; border-radius: 10px;
  background: var(--panel); color: var(--text);
}
.rule, .foot, .cap { text-shadow: 0 0 6px var(--bg), 0 0 14px var(--bg), 0 0 22px var(--bg); }

/* ---------- card: a soft backing with ascii crop marks ---------- */
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 18px 2ch 16px;
  border-radius: 14px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 30px 50px -40px rgba(0, 0, 0, .9);
  transition: background .6s var(--ease), transform .6s var(--ease);
}
.card:hover { background: var(--panel-hi); transform: translateY(-3px); }
/* an iridescent rim, faint at rest */
.card::before, .card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card::before {
  padding: 1px; opacity: .26;
  background: linear-gradient(115deg, rgba(var(--h1), 0) 4%, rgba(var(--h2), .7) 28%, rgba(var(--h1), .6) 44%,
    rgba(var(--h3), .7) 58%, rgba(var(--h4), .6) 72%, rgba(var(--h5), 0) 94%);
}
/* under the pointer the rim itself lights up: a tight spot that runs along the border,
   with nothing blurred over the text */
.card::after {
  padding: 1.5px; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(170px circle at var(--mx, -999px) var(--my, -999px),
    #fff, rgb(var(--h2)) 22%, rgba(var(--h3), .85) 50%, rgba(var(--h4), 0) 100%);
}
.card:hover::after { opacity: 1; }
.c-top, .c-bot { display: flex; color: var(--line); white-space: pre; user-select: none; }
.c-bot .grow { flex: 1; }
.c-pos { color: rgb(var(--h2)); }
.c-top { margin-bottom: var(--lh); }
.c-bot { margin-top: var(--lh); }
.c-title { color: var(--fg); font-weight: 600; }
.c-tag { color: var(--dim); }
/* the top rule is text; the travelling glint is a gradient clipped to it */
.c-top .fill {
  color: transparent;
  background: linear-gradient(90deg, var(--line) 0 36%, rgb(var(--h2)) 43%, rgb(var(--h1)) 49%, rgb(var(--h3)) 55%,
    rgb(var(--h4)) 61%, var(--line) 68% 100%) 100% 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text;
}
.card.ping:not(:hover) .c-top .fill { animation: run 1.5s var(--ease); }
/* on hover a short lit stretch of the rule follows the pointer */
.card:hover .c-top .fill {
  background: linear-gradient(90deg, var(--line) calc(var(--fx, -99px) - 9ch), rgb(var(--h2)) calc(var(--fx, -99px) - 4ch),
    #fff var(--fx, -99px), rgb(var(--h3)) calc(var(--fx, -99px) + 4ch), var(--line) calc(var(--fx, -99px) + 9ch));
  -webkit-background-clip: text; background-clip: text;
}
@keyframes run { from { background-position: 100% 0; } to { background-position: 0 0; } }
.c-in { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 0 2ch; }
.c-in > :last-child { margin-bottom: 0; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid2 > .featured, .grid2 > .wide { grid-column: 1 / -1; }
.push { margin-top: auto; }

.reveal {
  opacity: 0; transform: translateY(20px); filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* key ..... value rows */
.kvs { margin-bottom: var(--lh); }
.kv { display: flex; }
.kv .k { flex: none; color: var(--dim); white-space: pre; }
.kv .v { min-width: 0; color: var(--fg); overflow-wrap: anywhere; }

/* ---------- bio ---------- */
.bio { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 7ch; }
.bio-text p:first-child { color: var(--fg); }
.bio-text p:last-child { margin-bottom: 0; }
.bio .kvs { margin-bottom: 0; }

/* ---------- github ---------- */
.gh-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--lh) 4ch; margin-bottom: calc(var(--lh) * 1.5); }
.stats { display: flex; flex-wrap: wrap; gap: 0 6ch; }
.stat { display: flex; flex-direction: column; }
.stat span { color: var(--dim); }
.stat b { color: var(--fg); }
.heat { overflow: hidden; color: var(--dim); }
.heat span { opacity: 0; transition: color .7s, text-shadow .7s; }
.heat.go span { animation: cell-in .6s var(--ease) both; }
.heat.done span { animation: none; opacity: 1; }
@keyframes cell-in { from { opacity: 0; } to { opacity: 1; } }
.h0 { color: #39426a; }
.h1 { color: rgb(var(--h1)); font-weight: 600; }
.h2 { color: rgb(var(--h2)); font-weight: 600; }
.h3 { color: #fff; font-weight: 700; }
.h4 { color: rgb(var(--h5)); font-weight: 700; text-shadow: 0 0 9px rgba(var(--h5), .8); }
.heat .tw { color: rgb(var(--h4)); text-shadow: 0 0 10px rgba(var(--h4), 1); transition-duration: .15s; }
[data-date] { cursor: crosshair; }
[data-date].at { background: rgba(255, 255, 255, .16); border-radius: 2px; }
#gh-readout { transition: color .25s; }
#gh-readout.on { color: var(--fg); }
.stats.activity { margin-bottom: calc(var(--lh) * 1.5); }
.recent { overflow: hidden; margin-bottom: calc(var(--lh) * 2); color: var(--dim); }
.recent .cnt { color: var(--fg); font-weight: 600; }
.recent .cnt.zero { color: var(--faint); font-weight: 400; }
.recent .dom { color: var(--dim); }
.recent .dom.we { color: var(--faint); }
.recent .mon { color: var(--dim); }
.heat-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 3ch; margin: var(--lh) 0 calc(var(--lh) * 1.5); color: var(--dim); white-space: pre; }
.gh-cols { display: grid; grid-template-columns: minmax(0, 44ch) minmax(0, 1fr); gap: 0 7ch; }
.sub { margin: 0 0 var(--lh); font: inherit; color: var(--dim); }
.bars { overflow: hidden; margin-bottom: var(--lh); color: var(--text); }
.bars .on { color: var(--fg); }
.bars .on.top { color: rgb(var(--h2)); }
.bars .off { color: var(--faint); }
.bars .pct { color: var(--dim); }
.repo { margin-bottom: var(--lh); }
.repo:last-child { margin-bottom: 0; }
.repo p { margin: 0; }
.repo-top { display: flex; white-space: pre; }
.repo-top a { color: var(--fg); font-weight: 600; text-decoration: none; transition: color .3s; }
.repo-top a:hover { color: var(--accent); }
.repo-top .fill { color: var(--faint); }
.repo-top .stars { color: var(--fg); }
.repo-top .stars i { font-style: normal; color: var(--accent); }
.repo-meta { color: var(--dim); }

/* ---------- what a card says: task, how, result ---------- */
.lbl { margin: 0 0 4px; font: inherit; color: var(--dim); }
.task { color: var(--fg); }
.steps { margin: 0 0 var(--lh); padding: 0; list-style: none; }
.steps li { display: flex; }
.steps li + li { margin-top: 4px; }
.steps .gt, .impact .gt { flex: none; color: rgb(var(--h2)); white-space: pre; }
.steps li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
/* a featured card: its emblem in characters next to the text */
.with-art { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 6ch; align-items: center; flex: 1; }
.with-art-text { display: flex; flex-direction: column; min-width: 0; align-self: stretch; }
.with-art-text > :last-child { margin-bottom: 0; }
.art { line-height: 1.15em; white-space: pre; overflow: hidden; color: var(--dim); font-weight: 700; }
.pill.lang { color: var(--fg); border-color: rgba(255, 255, 255, .22); }

/* ---------- project cards ---------- */
.proj .tags { color: var(--dim); }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 2ch;
  min-height: 36px; color: var(--dim);
}
.card-foot b { color: var(--fg); font-weight: 400; }

/* ---------- nda ---------- */
.nda .c-tag { color: rgb(var(--h3)); }
.nda p.nda-name { color: var(--fg); font-weight: 600; }
.nda .impact { color: var(--fg); }
.nda .kvs { margin-bottom: var(--lh); }
.redact { color: var(--fg); background: rgba(var(--h3), .22); border-radius: 2px; }

/* ---------- contact / footer ---------- */
.contact .pills { margin-bottom: calc(var(--lh) * 1.5); }
.contact .kvs { margin-bottom: 0; }
.contact .kv .v { color: var(--text); }
.foot { padding: calc(var(--lh) * 6) 0 calc(var(--lh) * 3); color: var(--line); text-align: center; }
.foot p { margin: 0; }
.foot .eof { color: var(--dim); }

/* ---------- wide screens: everything is sized in characters, so a bigger font scales the whole page ---------- */
@media (min-width: 1800px) {
  :root { --fs: 16px; --lh: 25px; }
  .pill { height: 40px; padding: 0 20px; font-size: 14.5px; }
  .pill.sm { height: 31px; padding: 0 14px; font-size: 13.5px; }
  .nav-in { height: 66px; }
  .nav-ind { height: 31px; }
}
@media (min-width: 2300px) {
  :root { --fs: 18px; --lh: 28px; }
  .wrap { width: min(128ch, 100% - 6ch); }
  .pill { height: 44px; padding: 0 22px; font-size: 16px; }
  .pill.sm { height: 34px; padding: 0 16px; font-size: 15px; }
  .nav-in { height: 72px; }
  .nav-ind { height: 34px; }
  .grid2 { gap: 26px; }
}
@media (min-width: 3000px) {
  :root { --fs: 21px; --lh: 33px; }
  .pill { height: 50px; padding: 0 26px; font-size: 18px; }
  .pill.sm { height: 40px; padding: 0 18px; font-size: 17px; }
  .nav-in { height: 82px; }
  .nav-ind { height: 40px; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1060px) {
  .hero { min-height: 0; padding: var(--lh) 0 calc(var(--lh) * 2); }
  .hero-art { position: relative; top: auto; right: auto; width: 100%; transform: none; margin-bottom: var(--lh); }
  .hero-copy::before { inset: -50px -2ch; } /* the wide pool would stick out past a narrow screen */
  .art-box { height: 24em; }
  .scroll-hint { display: none; }
  .sec { padding-top: calc(var(--lh) * 4); }
}
@media (max-width: 860px) {
  .grid2, .bio, .gh-cols, .with-art { grid-template-columns: minmax(0, 1fr); }
  .art { margin: 0 auto var(--lh); }
  .bio-text p:last-child { margin-bottom: var(--lh); }
  .langs { margin-bottom: var(--lh); }
}
@media (max-width: 620px) {
  .brand, #theme-name { display: none; }
  .pill.lang { order: -1; margin-right: 4px; } /* the language switch stays in view; the links scroll */
  .pill.theme { margin-left: 0; }
  .nav-in { justify-content: center; }
  .wrap { width: min(120ch, 100% - 3ch); }
  .card { padding-inline: 1ch; }
}
@media (max-width: 520px) {
  :root { --fs: 12px; --lh: 19px; }
  .art-box { height: 23em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .heat span { opacity: 1; }
}
