@font-face {
  font-family: "Jacquard 24";
  src: url("../fonts/jacquard24.woff") format("woff");
  font-display: swap;
}
:root {
  --ink: #050505;
  --paper: #e6e2d8;
  --dim: #8a867b;
  --faint: #2b2a27;
  --red: #e3121b;
  --serif: "Times New Roman", Times, serif;
  --black: "Jacquard 24", var(--serif);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --gut: 16px;
  --bar: 34px;
  color-scheme: dark;
}
@media (min-width: 900px) { :root { --gut: 24px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--paper); scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 8px); }
body { background: var(--ink); font: 14px/1.45 var(--mono); overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { background: var(--paper); color: var(--ink); text-decoration: none; outline: none; }
::selection { background: var(--red); color: #fff; }
canvas { display: block; width: 100%; height: 100%; image-rendering: crisp-edges; image-rendering: pixelated; }
i { font-style: italic; }

/* placeholders are meant to be seen */
.ph { color: var(--red); font-family: var(--mono); font-style: normal; font-size: 0.8em; letter-spacing: 0.02em; }
.ph.block { display: block; font-size: 14px; line-height: 1.5; max-width: 52ch; border-left: 1px solid var(--red); padding-left: 12px; }

/* ── bar ───────────────────────────────────────────── */
.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 10;
  display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gut);
  background: var(--ink); border-bottom: 1px solid var(--paper);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.bar ul { list-style: none; display: flex; gap: 18px; }
.bar a { text-decoration: none; }
.bar a:hover, .bar a:focus-visible { background: var(--paper); color: var(--ink); }
.bar ul a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ── hero ──────────────────────────────────────────── */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; border-bottom: 1px solid var(--paper); overflow: hidden; background: #000; }
.hero canvas { position: absolute; inset: 0; cursor: crosshair; }
.hero h1 {
  position: absolute; left: calc(var(--gut) - 0.05em); bottom: var(--gut); pointer-events: none;
  font: 400 clamp(64px, 13vw, 230px)/0.8 var(--serif); letter-spacing: -0.05em;
}
.hero .wordmark {
  font: 400 1em/0.95 var(--black); letter-spacing: 0; display: inline-block;
  color: #fff; text-shadow: 0 0 14px rgba(255, 255, 255, 0.35), 0 0 42px rgba(255, 255, 255, 0.12);
}
.hero h1 span {
  display: block; margin: 0 0 0.9em 0.06em;
  font: 400 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
}

/* ── page header (archive) ─────────────────────────── */
.page-h { padding: calc(var(--bar) + var(--gut) * 4) var(--gut) 0; }
.page-h h1 { font: 400 clamp(64px, 13vw, 230px)/0.8 var(--serif); letter-spacing: -0.05em; margin: 0 0 0 -0.05em; }
.page-h .lede.small { margin-bottom: 0; }

/* the house, full width */
.band { height: 56vh; min-height: 320px; border-bottom: 1px solid var(--paper); background: #000; }
.band canvas { cursor: crosshair; }
.band.cam { position: relative; }
/* camcorder on-screen display */
.osd {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 14px; display: flex; justify-content: flex-end;
  font: 700 clamp(14px, 1.6vw, 22px)/1 var(--mono); letter-spacing: 0.06em; color: #fff;
  text-shadow: 2px 2px 0 #000; pointer-events: none;
}

/* ── sections ──────────────────────────────────────── */
.sec { border-bottom: 1px solid var(--paper); }
.sec-h {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: var(--gut);
  padding: calc(var(--gut) * 4) var(--gut) 10px; border-bottom: 1px solid var(--paper);
}
.sec-h h2, .sec-h .meta { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; padding-bottom: 4px; }
.sec-h .meta { color: var(--dim); text-align: right; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split > .col { padding: var(--gut); min-width: 0; }
.split > .col:first-child { border-right: 1px solid var(--paper); }

.prose p { font: 400 clamp(22px, 2.5vw, 34px)/1.16 var(--serif); max-width: 30ch; margin-bottom: 0.9em; }
.prose p:first-child { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -0.015em; max-width: 20ch; }

.solo { padding: var(--gut); }
.photo { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--dim); color: var(--faint); }
.photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo path { stroke: currentColor; stroke-width: 1; fill: none; }
.photo figcaption { position: absolute; left: 10px; bottom: 8px; color: var(--red); font-size: 12px; }

.lede { font: 400 clamp(20px, 2vw, 28px)/1.18 var(--serif); max-width: 36ch; margin-bottom: 14px; }
.lede.small { font: 13px/1.5 var(--mono); color: var(--dim); max-width: 60ch; margin-bottom: calc(var(--gut) * 1.5); }
.sub { font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin: calc(var(--gut) * 2) 0 8px; }

/* ── object viewer ─────────────────────────────────── */
.viewer { position: sticky; top: calc(var(--bar) + var(--gut)); }
.viewer canvas { aspect-ratio: 1 / 1; height: auto; border: 1px solid var(--paper); cursor: crosshair; }
.obj-label {
  display: grid; grid-template-columns: 7ch minmax(0, 1fr); gap: 3px 12px; margin-top: 10px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; min-height: 6.6em;
}
.obj-label dt { color: var(--dim); }
.obj-label dd { overflow-wrap: anywhere; }
.obj-label .gone { color: var(--red); }

@media (max-width: 820px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > .col:first-child { border-right: 0; border-bottom: 1px solid var(--paper); }
  /* the viewer rides along with the list on small screens */
  .split > .viewer-col { display: contents; }
  .viewer {
    top: var(--bar); z-index: 5; background: var(--ink); padding: 8px var(--gut);
    border-bottom: 1px solid var(--paper);
    display: grid; grid-template-columns: 34vw minmax(0, 1fr); gap: 12px; align-items: start;
  }
  .viewer canvas { width: 34vw; }
  .obj-label { margin-top: 0; min-height: 0; font-size: 11px; }
}

/* ── catalogue tables ──────────────────────────────── */
.cat { width: 100%; border-collapse: collapse; font-size: 12px; }
.cat th { text-align: left; font-weight: 400; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--paper); }
.cat td { padding: 6px 10px 6px 0; border-bottom: 1px solid var(--faint); vertical-align: baseline; }
.cat tbody tr { cursor: crosshair; }
.cat tbody tr:hover, .cat tbody tr:focus-visible, .cat tbody tr.on { background: var(--paper); color: var(--ink); outline: none; }
.cat tbody tr:hover .st, .cat tbody tr.on .st, .cat tbody tr:focus-visible .st { color: var(--ink); }
.cat td:first-child, .cat th:first-child { padding-left: 4px; }
.cat .t { font: 400 18px/1.1 var(--serif); overflow-wrap: anywhere; }
.cat .num { text-align: right; font-variant-numeric: tabular-nums; }
.cat .isrc, .cat .with { color: var(--dim); }
.cat tr:hover .isrc, .cat tr:hover .with, .cat tr.on .isrc, .cat tr.on .with { color: inherit; }
.cat .st { color: var(--red); white-space: nowrap; }
.cat td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .cat .isrc, .cat .with { display: none; } }

.album { border: 1px solid var(--paper); margin-bottom: calc(var(--gut) * 2); cursor: crosshair; }
.album-h { display: flex; justify-content: space-between; align-items: end; gap: var(--gut); padding: 12px; border-bottom: 1px solid var(--paper); }
.album-h h3 { font: 400 clamp(40px, 6vw, 92px)/0.8 var(--serif); letter-spacing: -0.04em; }
.album-h p { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; text-align: right; color: var(--dim); }
.album-h:hover, .album-h.on { background: var(--paper); color: var(--ink); }
.album-h:hover p, .album-h.on p { color: var(--ink); }
.album .cat { font-size: 12px; }
.album .cat td:first-child { padding-left: 12px; }

.withdrawn { border-top: 1px solid var(--paper); }
.withdrawn div { display: grid; grid-template-columns: 16ch minmax(0, 1fr); gap: var(--gut); padding: 10px 0; border-bottom: 1px solid var(--faint); }
.withdrawn h4 { font: 400 11px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.withdrawn ul { list-style: none; font: 400 17px/1.5 var(--serif); }
.withdrawn li { display: inline; cursor: crosshair; }
.withdrawn li:not(:last-child)::after { content: " · "; color: var(--dim); }
.withdrawn li:hover, .withdrawn li.on, .withdrawn li:focus-visible { background: var(--paper); color: var(--ink); outline: none; }
@media (max-width: 600px) { .withdrawn div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.call { border: 1px solid var(--red); color: var(--red); padding: var(--gut); margin: var(--gut) 0 0; max-width: 62ch; font-size: 13px; }
.call strong { display: block; font: 400 clamp(26px, 3vw, 40px)/1 var(--serif); margin-bottom: 12px; }
.call p + p { margin-top: 8px; }
.call .ph { font-size: inherit; }

.filters { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 10px; }
.filters button {
  font: 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper);
  background: none; border: 1px solid var(--paper); margin: 0 -1px -1px 0; padding: 7px 10px; cursor: pointer;
}
.filters button[aria-pressed="true"], .filters button:hover { background: var(--paper); color: var(--ink); }
.filters button:focus-visible { outline: 1px solid var(--red); outline-offset: 2px; }
.cat .go { text-align: right; white-space: nowrap; }
.cat tr:hover .go a, .cat tr.on .go a { color: var(--ink); }

/* ── words ─────────────────────────────────────────── */
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--paper); }
.slot { min-height: 46vh; padding: var(--gut); border-right: 1px solid var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
.slot:last-child { border-right: 0; }
.slot p { font: italic 400 clamp(22px, 2.4vw, 32px)/1.15 var(--serif); color: var(--dim); }
.slot span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
@media (max-width: 820px) {
  .slots { grid-template-columns: minmax(0, 1fr); }
  .slot { min-height: 26vh; border-right: 0; border-bottom: 1px solid var(--paper); }
  .slot:last-child { border-bottom: 0; }
}
.note { padding: 10px var(--gut); font-size: 12px; color: var(--dim); }

/* ── contact ───────────────────────────────────────── */
.contact { padding: calc(var(--gut) * 3) var(--gut); text-align: center; }
.btn { display: inline-block; border: 1px solid var(--paper); padding: 0.6em 1.1em; font: 400 clamp(20px, 2.2vw, 30px)/1 var(--serif); text-decoration: none; }

/* ── foot ──────────────────────────────────────────── */
.foot {
  font: 400 15.4vw/0.74 var(--serif); letter-spacing: -0.06em; white-space: nowrap;
  padding: calc(var(--gut) * 3) 0 0 calc(var(--gut) * 0.5); overflow: hidden; color: var(--faint);
  user-select: none; height: 15vw;
}

/* ── 404 ───────────────────────────────────────────── */
.lost-page { min-height: 100vh; padding: calc(var(--gut) * 3) var(--gut); display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; }
.lost-page .n { font: 400 clamp(120px, 30vw, 420px)/0.74 var(--serif); letter-spacing: -0.06em; }
