/* My VN Shelf — v12
   Quiet archive: ink ground, paper text, one lamp-amber accent.
   Tokens follow essay.myvn.blog so the family of sites reads as one. */

@font-face {
  font-family: "Shelf Serif";
  src: url("/fonts/shelf-serif-v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Shelf Italic";
  src: url("/fonts/shelf-italic-v1.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0a0b0a;
  --ink-deep: #060706;
  --ink-soft: #121412;
  --paper: #eee9df;
  --text: #d8d5cd;
  --muted: #a6aaa2;
  --faint: #747b74;
  --amber: #b89b68;
  --lamp: 224 196 142;
  --line: rgb(238 233 223 / .1);
  --line-strong: rgb(238 233 223 / .22);
  --board-top: #24231d;
  --board-top-deep: #1b1a16;
  --board-edge: rgb(238 233 223 / .15);
  --board-face: #131310;
  --board-face-deep: #0b0b09;
  --serif: "Shelf Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --italic: "Shelf Italic", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(16px, 5vw, 64px);
  --measure: 1240px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2b302c var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font: 400 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* lamp light pooled at the top of the room */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 560px at 10% -12%, rgb(var(--lamp) / .05), transparent 70%),
    radial-gradient(760px 520px at 104% -6%, rgb(129 153 138 / .035), transparent 72%);
}

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgb(var(--lamp) / .28); color: var(--paper); }

a { color: inherit; text-decoration: none; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page {
  position: relative;
  z-index: 1;
  /* exhibit light spills past narrow gutters; clip (not hidden) keeps the
     sticky toolbar working */
  overflow-x: clip;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── masthead ─────────────────────────────────────────── */

.masthead-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "eyebrow portal social";
  align-items: center;
  gap: 16px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  grid-area: eyebrow;
  margin: 0;
  font: 500 11px/1 var(--sans);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--faint);
}

.portal {
  grid-area: portal;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 13px;
  letter-spacing: .04em;
}

.portal a,
.colophon a {
  position: relative;
  color: var(--muted);
  transition: color .35s var(--ease);
}

.portal a { padding: 4px 0; }

.portal a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.portal a:hover,
.colophon a:hover { color: var(--paper); }

.portal a:hover::after { transform: scaleX(1); }

.social {
  grid-area: social;
  display: flex;
  gap: 16px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.social a {
  display: inline-flex;
  color: var(--faint);
  transition: color .35s var(--ease);
}

.social a:hover { color: var(--paper); }

.social svg { width: 15px; height: 15px; }

.masthead-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding: clamp(56px, 9vw, 116px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  margin: 0;
  font: 500 clamp(44px, 7vw, 84px)/1 var(--serif);
  letter-spacing: -.015em;
  color: var(--paper);
}

.ledger {
  display: flex;
  margin: 0;
}

.ledger div {
  min-width: 64px;
  margin-left: 28px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.ledger div:first-child {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}

.ledger dt {
  font: 500 11px/1 var(--sans);
  letter-spacing: .22em;
  color: var(--faint);
}

.ledger dd {
  margin: 14px 0 0;
  font: 400 40px/1 var(--serif);
  color: var(--paper);
  font-variant-numeric: lining-nums tabular-nums;
}

.masthead-title,
.ledger { animation: rise 1s var(--ease) both; }

.ledger { animation-delay: .12s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
}

/* ── section heads ────────────────────────────────────── */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 28px;
}

.section-head h2 {
  margin: 0;
  font: 600 20px/1.3 var(--serif);
  letter-spacing: .08em;
  color: var(--paper);
}

.section-note {
  font: 500 11px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* ── epigraph ───────────────────────────────────────── */

.epigraph {
  position: relative;
  margin: 0;
  padding: clamp(56px, 8vw, 108px) 0 clamp(52px, 7.5vw, 100px);
  border-bottom: 1px solid var(--line);
  text-align: center;
  animation: rise 1.2s .25s var(--ease) both;
}

/* a little of the lamplight reaches the words as well */
.epigraph::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, 92%);
  height: 76%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgb(var(--lamp) / .06), rgb(var(--lamp) / 0) 100%);
}

.epigraph blockquote {
  position: relative;
  margin: 0;
}

.epigraph blockquote::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 0 auto 36px;
  background: var(--amber);
  opacity: .7;
}

.epigraph p {
  margin: 0;
  font: italic 400 clamp(30px, 4.2vw, 52px)/1.25 var(--italic);
  letter-spacing: .005em;
  color: var(--text);
  text-wrap: balance;
}

/* ── shelf + toolbar ──────────────────────────────────── */

.shelf { padding: 56px 0 24px; }

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  margin-bottom: 44px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgb(10 11 10 / .9);
  /* cover the ends of the boards, which run a little past the content */
  box-shadow:
    -24px 0 0 rgb(10 11 10 / .9),
    24px 0 0 rgb(10 11 10 / .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.filters,
.sorts {
  display: flex;
  align-items: center;
  gap: 24px;
}

.toolbar button {
  position: relative;
  padding: 6px 0;
  border: 0;
  background: none;
  font: 500 13px/1 var(--sans);
  letter-spacing: .08em;
  color: var(--faint);
  cursor: pointer;
  transition: color .35s var(--ease);
}

.toolbar button:hover { color: var(--text); }

.toolbar button[aria-pressed="true"] { color: var(--paper); }

.toolbar button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.toolbar button[aria-pressed="true"]::after { transform: scaleX(1); }

.filters sup {
  margin-left: 4px;
  font: 400 10px/0 var(--sans);
  letter-spacing: 0;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.sorts button[data-order]::before {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  font: 400 11px/1 var(--sans);
  color: var(--amber);
  transform: translateY(-50%);
}

.sorts button[data-order="asc"]::before { content: "↑"; }

.sorts button[data-order="desc"]::before { content: "↓"; }

.sorts-label {
  font: 500 11px/1 var(--sans);
  letter-spacing: .22em;
  color: var(--faint);
  opacity: .7;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 240px;
  margin-left: auto;
  padding: 4px 0;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .35s var(--ease);
}

.search:focus-within { border-color: var(--amber); }

.search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font: 400 13px/1.6 var(--sans);
  color: var(--paper);
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder { color: var(--faint); }

.search input::-webkit-search-cancel-button { display: none; }

.search kbd {
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font: 500 10px/1 var(--sans);
  color: var(--faint);
}

.search:focus-within kbd { opacity: 0; }

.sorts { padding-right: 12px; }

/* ── groups ───────────────────────────────────────────── */

.group { animation: fade .6s var(--ease) both; }

.group + .group { margin-top: 76px; }

@keyframes fade {
  from { opacity: 0; }
}

.group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 52px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.group-head h3 {
  margin: 0;
  font: 400 34px/1 var(--serif);
  letter-spacing: .01em;
  color: var(--paper);
  font-variant-numeric: lining-nums;
}

.group-head h3 small {
  margin-left: 8px;
  font: 500 12px/1 var(--sans);
  letter-spacing: .2em;
  color: var(--faint);
}

.group-count {
  margin-left: auto;
  font: 500 12px/1 var(--sans);
  letter-spacing: .12em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* Columns are explicit so the script can top up each shelf with empty
   slots; the boards then always run the full width of a row. */
.grid {
  --cols: 6;
  --gap-x: 28px;
}

.works {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 68px var(--gap-x);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ── a single work ────────────────────────────────────── */

.work {
  position: relative;
  min-width: 0;
}

.work-link { display: block; }

.work-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.work-link:focus-visible { outline: none; }

.work-link:focus-visible .cover {
  outline: 1px solid var(--amber);
  outline-offset: 10px;
}

/* the cover stands on a board; neighbouring boards meet in the gutters */
.stage { position: relative; }

/* the back of the shelf falls into shadow just above the board */
.stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: calc(var(--gap-x) / -2);
  right: calc(var(--gap-x) / -2);
  height: 45%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(0 0 0 / 0) 0%,
    rgb(0 0 0 / .02) 30%,
    rgb(0 0 0 / .07) 60%,
    rgb(0 0 0 / .14) 85%,
    rgb(0 0 0 / .2) 100%
  );
}

.stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 100%;
  left: calc(var(--gap-x) / -2);
  right: calc(var(--gap-x) / -2);
  height: 34px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--board-top) 0,
    var(--board-top-deep) 4px,
    var(--board-edge) 4px,
    var(--board-edge) 5px,
    var(--board-face) 5px,
    var(--board-face-deep) 14px,
    rgb(0 0 0 / .42) 14px,
    rgb(0 0 0 / .14) 22px,
    rgb(0 0 0 / 0) 34px
  );
}

.cover {
  position: relative;
  z-index: 2;
  aspect-ratio: 2 / 3;
  border-radius: 1px;
  background: var(--ink-soft);
  box-shadow:
    0 2px 3px rgb(0 0 0 / .55),
    5px -1px 16px -7px rgb(0 0 0 / .7);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}

/* first glyph of the title, visible until the cover arrives */
.cover::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 44px/1 var(--serif);
  color: rgb(238 233 223 / .08);
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s var(--ease), filter .6s var(--ease);
}

.cover img.is-loaded { opacity: 1; }

/* the package itself: a hinge along the spine, a faint sheen on the
   sleeve, and a hairline lip */
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgb(var(--lamp) / calc(var(--C, 0) * .7)) 0,
      rgb(var(--lamp) / 0) 3px),
    radial-gradient(ellipse 62% 6% at 50% 10%,
      rgb(255 246 226 / calc(var(--C, 0) * .26)),
      rgb(255 246 226 / 0) 100%),
    linear-gradient(90deg,
      rgb(0 0 0 / .32) 0,
      rgb(255 255 255 / .16) 2px,
      rgb(255 255 255 / .04) 5px,
      rgb(0 0 0 / .14) 8px,
      rgb(0 0 0 / 0) 15px),
    linear-gradient(155deg, rgb(255 255 255 / .08) 0%, rgb(255 255 255 / 0) 34%),
    linear-gradient(to top, rgb(0 0 0 / .16) 0, rgb(0 0 0 / 0) 18%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .07);
}

/* hover lifts the work off the board */
.work:hover .cover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 18px -10px rgb(0 0 0 / .75),
    6px 0 20px -8px rgb(0 0 0 / .6);
}

/* unread covers rest slightly in shadow; the read ones sit under the lamp */
/* Lighting on the sleeve. The script works out how much light reaches the
   left edge, middle and right edge of each cover (--L, --C, --R, 0–1) from
   the exhibit lights in its row. The room's shadow is wiped away where
   light falls, and the lit part warms up; both fade towards the bottom,
   since the light comes from above. */
.shade,
.light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity .6s var(--ease);
}

.shade {
  background: linear-gradient(to bottom,
    rgb(2 5 9 / .28) 0%,
    rgb(2 5 9 / .48) 60%,
    rgb(2 5 9 / .66) 100%);
  -webkit-mask-image: linear-gradient(90deg,
    rgb(0 0 0 / calc(1 - var(--L, 0))) 0%,
    rgb(0 0 0 / calc(1 - var(--C, 0))) 50%,
    rgb(0 0 0 / calc(1 - var(--R, 0))) 100%);
  mask-image: linear-gradient(90deg,
    rgb(0 0 0 / calc(1 - var(--L, 0))) 0%,
    rgb(0 0 0 / calc(1 - var(--C, 0))) 50%,
    rgb(0 0 0 / calc(1 - var(--R, 0))) 100%);
}

.light {
  mix-blend-mode: soft-light;
  background: linear-gradient(90deg,
    rgb(255 210 140 / var(--L, 0)) 0%,
    rgb(255 210 140 / var(--C, 0)) 50%,
    rgb(255 210 140 / var(--R, 0)) 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .45) 55%, rgb(0 0 0 / .12) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .45) 55%, rgb(0 0 0 / .12) 100%);
}

/* colour drains a little in the dark */
.work .cover img.is-loaded { filter: saturate(calc(.72 + .28 * var(--C, 1))); }

.is-finished .cover img.is-loaded { filter: brightness(1.05) contrast(1.04); }

/* picked up, a work comes forward into the light */
.work:hover .shade { opacity: .3; }

.work:hover .cover img.is-loaded { filter: none; }

/* finished: an exhibit light hangs over the work. Its light washes down
   the wall, across the top of the sleeve and pools on the board. It is
   steady; the lights only come up once, when the page first opens. */
.spot {
  position: absolute;
  z-index: 1;
  top: -60px;
  bottom: -20px;
  left: calc(var(--gap-x) / -2 - 30px);
  right: calc(var(--gap-x) / -2 - 30px);
  pointer-events: none;
}

/* the wash on the wall: a bloom under the fitting and a long scallop of
   light down either side of the work; nothing above the fitting */
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  /* every gradient fades to nothing inside the box, so no edge shows */
  background:
    radial-gradient(ellipse 24% 9% at 50% 30px,
      rgb(var(--lamp) / .75), rgb(var(--lamp) / 0) 100%),
    radial-gradient(ellipse 50% 86% at 50% 36px,
      rgb(var(--lamp) / .5) 0%,
      rgb(var(--lamp) / .32) 36%,
      rgb(var(--lamp) / .14) 66%,
      rgb(var(--lamp) / .04) 88%,
      rgb(var(--lamp) / 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 6px, #000 42px);
  mask-image: linear-gradient(to bottom, transparent 6px, #000 42px);
}

/* the pool of light on the board */
.spot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background:
    linear-gradient(90deg,
      rgb(255 232 188 / 0) 12%,
      rgb(255 232 188 / .7) 50%,
      rgb(255 232 188 / 0) 88%) center 24px / 100% 1px no-repeat,
    radial-gradient(ellipse 42% 38% at 50% 52%,
      rgb(var(--lamp) / .7), rgb(var(--lamp) / .2) 55%, rgb(var(--lamp) / 0) 100%);
}

/* the beam: light seen in the air between the fitting and the board.
   It sits in front of the work and only ever lightens (screen). */
.beam {
  position: absolute;
  z-index: 3;
  top: -31px;
  bottom: 0;
  left: calc(var(--gap-x) / -2 - 30px);
  right: calc(var(--gap-x) / -2 - 30px);
  pointer-events: none;
  mix-blend-mode: screen;
  /* a 48° cone whose virtual apex sits above the fitting, so the beam
     leaves the fitting at about its own width */
  background: conic-gradient(from 156deg at 50% -79px,
    rgb(var(--lamp) / 0) 0deg,
    rgb(var(--lamp) / .12) 10deg,
    rgb(var(--lamp) / .17) 24deg,
    rgb(var(--lamp) / .12) 38deg,
    rgb(var(--lamp) / 0) 48deg);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .55) 45%, rgb(0 0 0 / .1) 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgb(0 0 0 / .55) 45%, rgb(0 0 0 / .1) 90%, transparent 100%);
}

.is-lighting .beam {
  animation: lights-on 1.6s var(--ease) both;
  animation-delay: calc(.4s + var(--lit, 0) * 90ms);
}

/* dust drifting through the beam: only seen where the light catches it,
   fading with the beam towards the board. Hidden when motion is reduced,
   paused while the work is off screen. */
.mote {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgb(255 248 232);
  box-shadow: 0 0 4px 1px rgb(255 232 190 / .55);
  filter: blur(var(--b));
  opacity: 0;
  animation: drift var(--t) ease-in-out var(--d) infinite;
  animation-play-state: paused;
}

.in-view .mote { animation-play-state: running; }

/* the dip and return mid-way is a speck turning out of the light */
@keyframes drift {
  0% { opacity: 0; transform: translate(0, 0); }
  22% { opacity: var(--o); }
  42% { opacity: calc(var(--o) * .45); }
  50% { transform: translate(calc(var(--dx) * .45), calc(var(--dy) * .6)); }
  58% { opacity: var(--o); }
  78% { opacity: var(--o); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}

/* the fitting itself: a slim bar with a lit underside */
.fixture {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 28%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #3b382f 0 1px, rgb(255 236 196) 2px);
  box-shadow:
    0 2px 5px rgb(var(--lamp) / .7),
    0 0 18px 2px rgb(var(--lamp) / .3);
  transform: translateX(-50%);
}

.is-lighting .spot {
  animation: lights-on 1.6s var(--ease) both;
  animation-delay: calc(.4s + var(--lit, 0) * 90ms);
}

@keyframes lights-on {
  from { opacity: 0; }
}

/* empty places at the end of a shelf */
.is-slot .cover { visibility: hidden; }

.work-title {
  display: -webkit-box;
  margin-top: 30px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font: 600 15px/1.5 var(--serif);
  color: var(--text);
  transition: color .35s var(--ease);
}

.work:hover .work-title { color: var(--paper); }

.work-dev {
  margin: 4px 0 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.5;
  color: var(--faint);
}

.work-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font: 500 11px/1 var(--sans);
  letter-spacing: .04em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.work-state { white-space: nowrap; }

.is-finished .work-state { color: var(--amber); }

.work-state b {
  margin-left: 6px;
  font: 500 15px/1 var(--serif);
  color: var(--paper);
  font-variant-numeric: lining-nums;
}

.is-wishlist .work-state { color: #8fa596; }

.work-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 10px 0 0;
  font-size: 12px;
  letter-spacing: .04em;
}

.work-links a {
  color: var(--amber);
  transition: color .35s var(--ease);
}

.work-links a::after {
  content: " ↗";
  font-size: 10px;
  opacity: .7;
}

.work-links a:hover { color: var(--paper); }

/* ── loading / empty ──────────────────────────────────── */

.work.is-skeleton .cover {
  animation: pulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .08s);
}

.work.is-skeleton .work-title {
  width: 70%;
  height: 12px;
  margin-top: 32px;
  background: var(--ink-soft);
}

@keyframes pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.empty {
  padding: 96px 0;
  text-align: center;
  font: 400 16px/1.8 var(--serif);
  color: var(--faint);
}

/* ── colophon ─────────────────────────────────────────── */

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 32px;
  margin-top: 72px;
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--faint);
}

.colophon p { margin: 0; }

.colophon .sep {
  margin: 0 10px;
  opacity: .6;
}

.colophon-mark {
  font: 500 14px/1 var(--serif);
  letter-spacing: .02em;
  color: var(--muted);
}

.noscript {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* ── responsive ───────────────────────────────────────── */

@media (max-width: 1279px) {
  .grid { --cols: 5; }
}

@media (max-width: 1099px) {
  .grid { --cols: 4; }
}

@media (max-width: 859px) {
  .grid { --cols: 3; --gap-x: 22px; }
}

@media (max-width: 599px) {
  .grid { --cols: 2; --gap-x: 18px; }
}

@media (max-width: 860px) {
  .masthead-main {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .masthead-bar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "eyebrow social"
      "portal portal";
    padding: 18px 0;
  }

  .portal { gap: 6px 18px; }

  .social {
    gap: 14px;
    padding-left: 0;
    border-left: 0;
  }

  .masthead-main { gap: 36px; }

  .ledger div {
    margin-left: 22px;
    padding-left: 22px;
  }

  .ledger dd { font-size: 32px; }

  .shelf { padding-top: 44px; }

  .toolbar {
    position: static;
    gap: 16px 20px;
    margin-bottom: 36px;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .filters,
  .sorts { gap: 18px; }

  .sorts { margin-left: auto; }

  .sorts-label { display: none; }

  .search {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .search kbd { display: none; }

  .group + .group { margin-top: 60px; }

  .group-head h3 { font-size: 28px; }

  .works { row-gap: 56px; }


  .colophon { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .mote { display: none; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }

}
