@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #070605;
  --ink: #f1eae0;
  --ink-2: rgba(241, 234, 224, 0.84);
  --ink-3: rgba(241, 234, 224, 0.7);   /* the quietest text: still 6:1 on the ground */
  --rule: rgba(241, 234, 224, 0.14);
  --gutter: clamp(20px, 3.4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --name-bottom: 60vh;
  --name-mid: 43.6vh;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* sideways drags belong to the light; the page only scrolls up and down */
html { background: var(--bg); -webkit-text-size-adjust: 100%; overflow-x: hidden; touch-action: pan-y; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 150, 80, 0.35); color: #fff; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.proj a:focus-visible { outline-offset: 2px; display: inline-block; line-height: 1; padding-bottom: 0.06em; }

/* ------------------------------------------------------------ stage */

.stage {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  /* the same warm dark, still: what shows without WebGL, without scripts, or with motion reduced */
  background:
    var(--bg);
}
#gl { display: none; width: 100%; height: 100%; opacity: 0; }
.js:not(.no-gl) .stage { background: var(--bg); }
/* without the live scene, each project shows a still of its scene beside its words */
.ch__still { display: none; }
.no-gl .ch__still { display: block; }
.no-gl .ch { min-height: 100vh; align-items: flex-end; }
.no-gl .ch__body { position: static; }
/* with motion reduced (or no WebGL) each chapter stands on a full-bleed still of its scene */
.no-gl .ch__still { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; max-width: none; margin: 0; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.no-gl .ch { position: relative; overflow: hidden; }
html:not(.js) .ch__still { display: block; width: 100%; max-width: 46rem; height: auto; margin: 0 0 28px; border-radius: 4px; -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent); mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent); }
.js:not(.no-gl) #gl { display: block; }
.gl-on #gl { opacity: 1; }
/* under the index the light steps back so the list reads */
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  /* a shade only behind the reading column, so the water stays visible either side */
  background: linear-gradient(90deg, rgba(7, 6, 5, 0.18), rgba(7, 6, 5, 0.66) 28%, rgba(7, 6, 5, 0.66) 72%, rgba(7, 6, 5, 0.18));
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.in-index .stage::after { opacity: 1; }

/* the first thing on screen: one point of light, breathing, until the rest is ready */
.loader { display: none; position: fixed; left: 0; right: 0; top: var(--name-mid); height: 0; z-index: 20; place-items: center; pointer-events: none; }
.js:not(.no-gl) .loader { display: grid; }
.loader__drop {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 36%, #fff 0 20%, #ffd7b0 36%, rgba(255, 140, 60, 0) 72%);
  box-shadow: 0 0 22px 6px rgba(255, 160, 90, 0.35), 0 0 80px 20px rgba(255, 120, 50, 0.12);
}
.gl-on .loader__drop { animation: release 0.9s var(--ease) forwards; }
@keyframes release { 35% { transform: scale(1.6, 1.6); opacity: 1; } 100% { transform: scale(60, 0.12); opacity: 0; } }

/* ------------------------------------------------------------ bar */

.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--gutter) * 0.5) var(--gutter);
  padding-top: max(calc(var(--gutter) * 0.5), env(safe-area-inset-top));
  font-size: clamp(13.5px, 0.82vw, 16px);
  pointer-events: none;
}
.js .bar { opacity: 0; transition: opacity 1.4s var(--ease) 0.5s; }
.js.named .bar, .js.no-gl .bar { opacity: 1; }
/* a shade behind the bar once the page moves, so nothing reads through it */
.bar::before {
  content: '';
  position: absolute;
  inset: 0 0 -36px;
  z-index: -1;
  background: linear-gradient(rgba(7, 6, 5, 0.86), rgba(7, 6, 5, 0.5) 55%, rgba(7, 6, 5, 0));
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.scrolled .bar::before { opacity: 1; }
.in-index .bar::before, .at-contact .bar::before { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.in-index .bar::before { inset: 0 0 -20px; background: linear-gradient(rgba(7, 6, 5, 0.97) 62%, rgba(7, 6, 5, 0)); }
.bar a, .bar button { pointer-events: auto; }
.skip { position: fixed; left: var(--gutter); top: 10px; z-index: 40; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 4px; font-size: 14px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.bar__name { font-family: var(--serif); font-size: 20px; padding: 10px 0; }
.js:not(.no-gl) .bar__name { opacity: 0; transform: translateY(-4px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js.scrolled .bar__name, .js .bar__name:focus-visible { opacity: 1; transform: none; }
.bar__nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.bar__nav a { position: relative; padding: 12px 0; color: var(--ink-2); transition: color 0.3s; }
.bar__nav a:hover { color: var(--ink); }
.bar__nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 9px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.bar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* the music switch: four small bars that move while it plays */
.sound {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.3s;
}
.js .sound { display: inline-flex; }
.sound:hover, .sound-on .sound { color: var(--ink); }
.sound__label { min-width: 4.6em; text-align: left; }
.sound-on .sound__label { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* what is playing, shown for a few seconds when a piece begins */
.playing {
  position: fixed;
  left: var(--gutter);
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 18px);
  z-index: 10;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.playing.on { opacity: 1; transform: none; }
.at-contact .playing.on, .in-index .playing.on { opacity: 0; }
/* where the words sit at the bottom, it goes to the top instead */
.stacked .playing { bottom: auto; top: calc(max(calc(var(--gutter) * 0.5), env(safe-area-inset-top)) + 54px); }
.playing__by { font-size: 11px; color: var(--ink-2); }
.playing__title { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); }

/* how far through, with a mark at each chapter and the name of the one you are in */
.progress {
  position: fixed;
  left: var(--gutter); right: var(--gutter); bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 10;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s;
}
.js.scrolled:not(.no-gl) .progress { opacity: 1; }
/* over the list the line steps aside; the list is its own measure */
.js.in-index .progress, .js.in-index .progress::before { opacity: 0; }
/* a shade under the line, so the list never reads through it */
.progress::before { content: ''; position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); bottom: -18px; height: 76px; z-index: -1; background: linear-gradient(rgba(7, 6, 5, 0), rgba(7, 6, 5, 0.9) 70%); opacity: 0; transition: opacity 0.6s; }
.in-index .progress::before { opacity: 1; }
.progress span { display: block; height: 100%; background: var(--ink-2); transform-origin: left; transform: scaleX(0); }
.progress i { position: absolute; top: -3px; width: 1px; height: 7px; background: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.progress b { display: none; position: absolute; right: 0; bottom: 9px; font-weight: 500; font-size: 11px; color: var(--ink-3); }

/* ------------------------------------------------------------ chapters */

main { position: relative; z-index: 1; overflow-x: clip; }

/* Plain flow first: this is the page without scripts, without WebGL, or with motion reduced. */
.ch { position: relative; display: flex; padding: clamp(56px, 12vh, 120px) var(--gutter); }
.ch__body { position: relative; }
.ch--hero { min-height: 100vh; min-height: 100svh; align-items: center; justify-content: center; text-align: center; }
.ch--sky { justify-content: flex-start; padding-bottom: 0; }

/* The journey: each chapter is pinned to its place on the page and fades with the camera. */
.js:not(.no-gl) .journey { pointer-events: none; }
.js:not(.no-gl) .ch {
  /* pinned to the window: words arrive and leave in place, so they never slide under the bar or through the name */
  position: fixed;
  inset: 0;
  overflow: hidden;
  padding: calc(var(--gutter) * 2.2) var(--gutter);
  --o: 0;
  --y: 0px;
}
.js:not(.no-gl) .ch__body { opacity: var(--o); transform: translate3d(0, var(--y), 0); will-change: opacity, transform; }
.js:not(.no-gl) .ch.on .ch__body { pointer-events: auto; }
/* a pool of shade under the words, so they read over bright light */
.js:not(.no-gl) .ch__body::before {
  content: '';
  position: absolute;
  inset: -26% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(7, 6, 5, 0.7), rgba(7, 6, 5, 0.34) 58%, rgba(7, 6, 5, 0) 100%);
  pointer-events: none;
}
.js:not(.no-gl) .ch--left { align-items: center; }
.js:not(.no-gl) .ch--right { align-items: center; justify-content: flex-end; text-align: right; }
.js:not(.no-gl) .ch--right .label { justify-content: flex-end; }
.js:not(.no-gl) .ch--right .proj__desc, .js:not(.no-gl) .ch--right .proj__fact { margin-left: auto; }
/* Reverie: the form fills the frame; the words sit low on the left, under it */
.js:not(.no-gl) .ch--low { align-items: flex-end; padding-bottom: calc(var(--gutter) * 2.4); }
.js:not(.no-gl) .ch--low .ch__body { max-width: 34rem; }
/* the pull requests: the count above, centred, the field spread beneath it */
.js:not(.no-gl) .ch--top { align-items: flex-start; justify-content: center; text-align: center; padding-top: 9vh; }
.js:not(.no-gl) .ch--top .ch__body { max-width: 40rem; }
.js:not(.no-gl) .ch--top .proj__desc { margin-left: auto; margin-right: auto; }
.js:not(.no-gl) .ch--top .ch__body::before { inset: -20% -20% -10%; }
.js:not(.no-gl) .ch--sky { align-items: flex-start; justify-content: center; text-align: center; padding-top: 22vh; }
.js:not(.no-gl) .ch--sky .label { justify-content: center; }
.js:not(.no-gl) .ch--sky .lede { margin: 0 auto; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.75), 0 0 6px rgba(0, 0, 0, 0.5); }
.js:not(.no-gl) .ch--sky .ch__body::before { display: none; }

/* the first screen: the name is made of light, the words sit under it */
.js:not(.no-gl) .ch--hero { min-height: 0; padding-top: 0; padding-bottom: 0; }
.js:not(.no-gl) .ch--hero .ch__body { position: absolute; top: calc(var(--name-bottom) + clamp(18px, 3.4vh, 40px)); left: var(--gutter); right: var(--gutter); pointer-events: none; }
.js:not(.no-gl) .ch--hero .ch__body::before { display: none; }
.hero__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.js:not(.no-gl) .hero__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* the words under the name sit on the brightest part of the light */
.js:not(.no-gl) .hero__line { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 0, 0, 0.7); color: var(--ink); }
.hero__line {
  margin: clamp(20px, 3vh, 36px) auto 0;
  font-size: clamp(16px, 1.3vw, 28px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 25em;
  text-wrap: balance;
}
.js:not(.no-gl) .hero__line { margin-top: 0; }
.hero__hint { display: none; margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.2vw, 19px); color: var(--ink-3); }
.js:not(.no-gl) .hero__hint { display: block; }
.js:not(.no-gl) .hero__line, .js:not(.no-gl) .hero__hint { opacity: 0; transform: translateY(10px); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease); }
.js:not(.no-gl) .hero__hint { transition-delay: 1.3s; }
.js.named .hero__line, .js.named .hero__hint { opacity: 1; transform: none; }

.label {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 0 0 clamp(18px, 3vh, 30px);
  font-family: var(--sans);
  font-size: clamp(12px, 0.72vw, 14px);
  font-weight: 500;
 
 
  color: var(--ink-3);
}
.label__no { color: var(--ink-2); font-variant-numeric: tabular-nums; }

.lede {
  margin: 0;
  max-width: 17em;
  font-family: var(--serif);
  font-size: clamp(27px, 2.8vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.proj {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(60px, 9vw, 230px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.proj a { background: linear-gradient(currentColor, currentColor) 0 92% / 0 1px no-repeat; transition: background-size 0.7s var(--ease); }
.proj a:hover { background-size: 100% 1px; }
.proj--count { font-variant-numeric: tabular-nums lining-nums; }
.count__of { font-size: 0.32em; color: var(--ink-3); margin-left: 0.15em; letter-spacing: 0; }
/* no single word left alone on a line */
.proj__desc, .proj__fact, .lede, .hero__line, .essay__sum { text-wrap: pretty; }
.proj__desc {
  margin: clamp(14px, 2vh, 22px) 0 0;
  font-size: clamp(15px, 1.15vw, 26px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 27em;
}
/* one measured thing about each, from the essay that reports it */
.proj__fact { margin: 16px 0 0; max-width: 27em; font-size: clamp(14px, 0.9vw, 21px); line-height: 1.45; color: var(--ink-3); }
.proj__fact a { display: inline-block; padding: 8px 0; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; transition: color 0.3s, text-decoration-color 0.3s; }
.proj__fact a:hover, .proj__fact a:focus-visible { text-decoration-color: var(--ink-2); }
.proj__fact a:hover { color: var(--ink); }
.proj__fact .fig { display: inline-block; padding: 8px 0; cursor: default; outline-offset: 4px; transition: color 0.3s; }
.proj__fact .fig:hover { color: var(--ink); }
.proj__more { margin: 14px 0 0; }
.prs-open { padding: 10px 0; border: 0; background: none; font-size: 14px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: color 0.3s; }
.prs-open:hover { color: var(--ink); }
.proj__fact b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink); }

/* Words under the form rather than beside it: tablets, half windows, phones. */
.js.stacked:not(.no-gl) .ch { padding: var(--gutter); padding-bottom: calc(var(--gutter) + 56px); }
.js.stacked:not(.no-gl) .ch--left, .js.stacked:not(.no-gl) .ch--right, .js.stacked:not(.no-gl) .ch--low, .js.stacked:not(.no-gl) .ch--top { align-items: flex-end; justify-content: flex-start; text-align: left; }
.js.stacked:not(.no-gl) .ch--right .label { justify-content: flex-start; }
.js.stacked:not(.no-gl) .ch--top { text-align: left; padding-top: var(--gutter); }
.js.stacked:not(.no-gl) .ch--top .proj__desc { margin-left: 0; }
.js.stacked:not(.no-gl) .ch--right .proj__desc, .js.stacked:not(.no-gl) .ch--right .proj__fact { margin-left: 0; }
.js.stacked:not(.no-gl) .ch--sky { padding-top: 15vh; }
.js.stacked:not(.no-gl) .proj { font-size: clamp(54px, 13vw, 110px); }
.js.stacked:not(.no-gl) .ch__body::before { inset: -18% -40% -30%; background: radial-gradient(closest-side, rgba(7, 6, 5, 0.82), rgba(7, 6, 5, 0.45) 60%, rgba(7, 6, 5, 0) 100%); }

/* ------------------------------------------------------------ the pull request under the pointer */

.tip {
  position: fixed;
  left: 0; top: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: max-content;
  max-width: min(22rem, 70vw);
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: rgba(7, 6, 5, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.8);
}
.tip.on { opacity: 1; }
.tip__repo { font-size: 11px; color: var(--ink-2); }
.tip__title { font-family: var(--serif); font-size: 22px; line-height: 1.1; text-wrap: balance; }
.tip__date { font-size: 12px; color: var(--ink-2); }
.on-seed, .on-seed * { cursor: pointer; }
/* the ring replaces the arrow over the scene; links and buttons keep their own pointer */
.ring-cursor, .ring-cursor body { cursor: none; }
.ring-cursor a, .ring-cursor button, .ring-cursor [role="button"] { cursor: pointer; }

/* a ring that trails the pointer; it tightens over a link and opens when you are the watcher */
.cursor {
  position: fixed;
  left: -17px; top: -17px;
  z-index: 30;
  width: 34px; height: 34px;
  border: 1px solid rgba(241, 234, 224, 0.5);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s, width 0.35s var(--ease), height 0.35s var(--ease), left 0.35s var(--ease), top 0.35s var(--ease), border-color 0.3s;
}
.cursor.on { opacity: 1; }
.cursor.over { width: 12px; height: 12px; left: -6px; top: -6px; border-color: var(--ink-2); }
.cursor.watch { width: 64px; height: 64px; left: -32px; top: -32px; border-color: rgba(255, 220, 180, 0.7); }
.on-seed .cursor { width: 52px; height: 52px; left: -26px; top: -26px; border-color: var(--ink-2); }
.no-gl .cursor, .no-gl .tip, html:not(.js) .cursor, html:not(.js) .tip { display: none; }
/* words about the live scene only show when there is one */
.live { display: none; }
.js:not(.no-gl) .live { display: inline; }
/* on the plain page the bar scrolls away with the top of the page */
html:not(.js) .bar, .no-gl .bar { position: absolute; }

/* the pull requests as a plain list */
.prs {
  width: min(46rem, 92vw);
  max-height: 84vh;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: rgba(10, 8, 7, 0.96);
  color: var(--ink);
}
.prs::backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.prs header { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: rgba(10, 8, 7, 0.98); border-bottom: 1px solid var(--rule); }
.prs h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.prs__close { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.prs__close:hover { color: var(--ink); }
.prs ol { list-style: none; margin: 0; padding: 6px 22px 22px; }
.prs li { border-bottom: 1px solid var(--rule); }
.prs a { display: grid; grid-template-columns: 6.5rem 1fr; gap: 2px 16px; padding: 12px 0; }
.prs time { grid-row: 1 / 3; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.prs__repo { font-size: 11.5px; color: var(--ink-2); }
.prs__title { font-size: 15px; color: var(--ink-2); }
.prs a:hover .prs__title { color: #fff; }

/* ------------------------------------------------------------ index */

.index { position: relative; padding: 0 var(--gutter) clamp(80px, 16vh, 180px); }
.index__inner { max-width: clamp(54rem, 52vw, 68rem); margin: 0 auto; }
.essays { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.essays li { border-bottom: 1px solid var(--rule); }
.essay {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 20px 0;
  align-items: baseline;
  transition: padding 0.6s var(--ease);
}
.essay:hover .essay__title { color: #fff; }
.essay { scroll-margin-block: 130px; }
.essay time { font-size: clamp(12px, 0.72vw, 14px); color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.essay:hover time { color: var(--ink-2); }
.essay__title { display: block; font-family: var(--serif); font-size: clamp(23px, 2vw, 30px); line-height: 1.12; transition: color 0.3s; }
.essay__sum { display: block; margin-top: 6px; font-size: clamp(14.5px, 0.9vw, 17px); color: var(--ink-2); line-height: 1.45; max-width: 38em; transition: color 0.3s; }
.essay:hover .essay__title { color: #fff; }
.essay:hover .essay__sum { color: var(--ink-2); }

/* ------------------------------------------------------------ contact: the address is written in light */

.contact {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
}
.contact__inner { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 4vh, 44px); }
.contact .label { margin: 0; justify-content: center; }
.contact__mail {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 5.4vw, 96px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  padding-bottom: 6px;
  background: linear-gradient(var(--ink-2), var(--ink-2)) 50% 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease);
}
.contact__mail:hover, .contact__mail:focus-visible { background-size: 100% 1px; }
/* with the light on, the real link stays where the light writes it: unseen, but it can be clicked, focused and selected */
/* the light writes the address and glows behind it; the real words stay sharp and readable over it */
.gl-on .contact__mail { color: var(--ink); text-shadow: 0 0 24px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.8); }
.gl-on .contact__mail::selection { color: transparent; background: rgba(255, 150, 80, 0.4); }
.contact__row { margin: 0; display: flex; gap: 28px; align-items: center; justify-content: center; font-size: 14px; }
.contact__gh, .copy { color: var(--ink-3); transition: color 0.3s; }
.contact__gh { padding: 12px 0; }
.copy { min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.contact__gh:hover, .copy:hover { color: var(--ink); }
.gl-on .contact .label, .gl-on .contact__row { opacity: 0; transition: opacity 1.2s var(--ease); }
.gl-on.at-contact .contact .label, .gl-on.at-contact .contact__row { opacity: 1; }
.credits {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 22px);
  margin: 0 auto;
  max-width: 46rem;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}
.credits a { text-decoration: underline; text-underline-offset: 2px; }
.credits a:hover { color: var(--ink); }

/* ------------------------------------------------------------ small screens */

@media (max-width: 760px) {
  .bar__nav { gap: 16px; }
  .bar__nav { gap: 14px; font-size: 13px; }
  .bar__name { display: none; }
  .bar { justify-content: flex-end; }
  /* on a phone the list runs right under the bar: give it a solid shade */
  .scrolled .bar::before { inset: 0 0 -14px; background: linear-gradient(rgba(7, 6, 5, 0.96) 70%, rgba(7, 6, 5, 0)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .playing { bottom: calc(max(18px, env(safe-area-inset-bottom)) + 12px); }
  .playing__title { font-size: 15px; }
  .lede { font-size: 26px; }
  .essay { grid-template-columns: 1fr; gap: 6px; }
  .hero__line { max-width: 19em; }
  .contact__row { flex-direction: column; gap: 4px; }
  .progress b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .essay, .bar { transition: none; }
}
