:root{
  --accent:#9EE88E;
  --accent-ink:#091307;
  --bg:#2A303C;
  --surface:#333A48;
  --surface-alt:#3E4756;
  --ink:#DCE9EF;
  --muted:#B2CCD6;
  --line:#4A5565;
  --radius:14px;
  --font-display:"Archivo",system-ui,sans-serif;
  --font-body:"Newsreader",Georgia,serif;
  --font-mono:"JetBrains Mono",ui-monospace,monospace;
  --scrim:linear-gradient(to top,color-mix(in oklab,var(--bg) 92%,transparent) 6%,color-mix(in oklab,var(--bg) 55%,transparent) 42%,transparent 78%);
}

/* Light mode is derived from the same accent so toggling never changes brand. */
[data-theme="light"]{
  --bg:oklch(0.985 0.003 85);
  --surface:oklch(0.965 0.004 85);
  --surface-alt:oklch(0.935 0.005 85);
  --ink:oklch(0.19 0.008 60);
  --muted:oklch(0.47 0.01 65);
  --line:oklch(0.87 0.006 80);
  --scrim:linear-gradient(to top,color-mix(in oklab,var(--bg) 94%,transparent) 6%,color-mix(in oklab,var(--bg) 62%,transparent) 44%,transparent 80%);
}

/* ==========================================================================
   Media site — design system
   Tokens come from site.config.mjs via src/lib/theme.mjs (inlined at build).
   Composition: an Explore surface. Shelves + filters + a video-shaped grid.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block }
a { color: inherit; text-decoration: none }
button, input, select { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px }

.shell { width: min(1460px, 100% - clamp(24px, 5vw, 72px)); margin-inline: auto }

/* ── micro type: broadcast-style labels ─────────────────────────────── */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}
.muted { color: var(--muted) }
.dot { padding-inline: .5ch; color: var(--line) }

/* ── header ─────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px);
  min-height: 62px; padding-block: 10px;
}
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 19px }
.wordmark__mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0;
}
.wordmark__mark--img { background: none; overflow: hidden; border: 1px solid var(--line) }
.wordmark__mark--img img { width: 100%; height: 100%; object-fit: cover }
.wordmark__sub { display: none }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto }
.nav a {
  padding: 10px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted);
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { color: var(--ink); background: var(--surface) }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-alt) }

.head-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto }
.nav + .head-tools { margin-inline-start: 0 }

.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.icon-btn:hover { background: var(--surface); border-color: var(--muted) }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7 }

.search { position: relative; display: flex; align-items: center }
.search input {
  width: clamp(150px, 20vw, 260px); min-height: 44px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 16px 0 40px; font-size: 14px;
}
.search input::placeholder { color: var(--muted) }
.search svg { position: absolute; left: 14px; width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.8; pointer-events: none }

/* ── feature band (the newest item, video-shaped) ───────────────────── */
.feature { position: relative; margin-block: clamp(18px, 3vw, 34px) 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line) }
.feature__media { position: relative; aspect-ratio: 16 / 9; max-height: 62vh; background: var(--surface-alt) }
.feature__media img { width: 100%; height: 100%; object-fit: cover }
.feature__media--empty { background: repeating-linear-gradient(115deg, var(--surface) 0 22px, var(--surface-alt) 22px 44px) }
.feature__scrim { position: absolute; inset: 0; background: var(--scrim) }
.feature__body { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 3.4vw, 44px); display: grid; gap: 12px; max-width: 66ch }
.feature__kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.feature__title {
  font-size: clamp(26px, 4.6vw, 54px); line-height: 1.03; letter-spacing: -.028em; font-weight: 800;
  margin: 0; text-wrap: balance;
}
.feature__desc { margin: 0; color: color-mix(in oklab, var(--ink) 82%, var(--bg)); font-size: clamp(14px, 1.5vw, 17px); max-width: 58ch; text-wrap: pretty }
.feature__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted) }

.badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 700;
  white-space: nowrap;
}
.badge--quiet { background: color-mix(in oklab, var(--surface-alt) 88%, transparent); color: var(--ink); border: 1px solid var(--line) }
.badge--demo { background: repeating-linear-gradient(135deg, #ffd166 0 6px, #1b1b1b 6px 12px); color: #fff; text-shadow: 0 1px 2px #000 }

/* ── shelves (swipeable rows) ───────────────────────────────────────── */
.shelf { margin-block: clamp(28px, 4vw, 52px) 0 }
.shelf__head { display: flex; align-items: end; gap: 14px; margin-bottom: 14px }
.shelf__title { margin: 0; font-size: clamp(17px, 2vw, 22px); letter-spacing: -.02em; font-weight: 700 }
.shelf__count { color: var(--muted) }
.shelf__more { margin-inline-start: auto; font-size: 13px; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; gap: 6px }
.shelf__more:hover { color: var(--accent) }
.shelf__rail {
  display: grid; grid-auto-flow: column; gap: 16px;
  grid-auto-columns: minmax(272px, 1fr);
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin;
}
.shelf__rail > * { scroll-snap-align: start }
.shelf__rail::-webkit-scrollbar { height: 6px }
.shelf__rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px }
@media (min-width: 1100px) {
  /* Enough room to see 4+ cards: stop the horizontal rail, use the grid. */
  .shelf__rail { grid-auto-columns: unset; grid-auto-flow: row }
}

/* ── filter bar ─────────────────────────────────────────────────────── */
.filters {
  position: sticky; top: 62px; z-index: 30;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-block: 12px; margin-top: 8px;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 2px }
.chips::-webkit-scrollbar { display: none }
.chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  min-height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.chip:hover { border-color: var(--muted) }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink) }
.chip__n { font-family: var(--font-mono); font-size: 10.5px; opacity: .62 }
.filters__right { display: flex; align-items: center; gap: 8px; margin-inline-start: auto }
.select {
  min-height: 38px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); padding: 0 12px; font-size: 13px; font-weight: 600;
}
.viewtoggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden }
.viewtoggle button {
  min-height: 38px; padding: 0 13px; background: transparent; border: 0; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.viewtoggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink) }

.result-count { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase }

/* ── card grid ──────────────────────────────────────────────────────── */
.grid {
  display: grid; gap: clamp(18px, 2.2vw, 28px) clamp(14px, 1.7vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(266px, 1fr));
  padding-block: clamp(22px, 3vw, 36px);
}
.grid[hidden] { display: none }

.card { display: grid; gap: 11px; align-content: start; position: relative }
.card__thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-alt); border: 1px solid var(--line);
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1) }
.card:hover .card__thumb img { transform: scale(1.045) }
.card__thumb--empty { background: repeating-linear-gradient(115deg, var(--surface) 0 18px, var(--surface-alt) 18px 36px); display: grid; place-items: center }
.card__thumb--empty span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  color: color-mix(in oklab, var(--ink) 74%, var(--bg)); text-transform: uppercase;
  background: color-mix(in oklab, var(--bg) 70%, transparent); padding: 5px 10px; border-radius: 6px;
}
.card__play {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in oklab, var(--bg) 82%, transparent); border: 1px solid var(--line);
  border-radius: 6px; padding: 5px 8px;
}
.card__duration { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em }
.card__kind {
  position: absolute; left: 10px; top: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 7px; border-radius: 5px; background: color-mix(in oklab, var(--bg) 80%, transparent);
  border: 1px solid var(--line);
}
.card__title { margin: 0; font-size: 16.5px; line-height: 1.24; letter-spacing: -.012em; font-weight: 700; text-wrap: pretty }
.card__desc { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45 }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.card__meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase }
.card__link::after { content: ""; position: absolute; inset: 0 } /* whole card clickable, one real link */

.empty {
  grid-column: 1 / -1; padding: 56px 0; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px }

/* ── swipe deck (full-screen vertical snap) ─────────────────────────── */
.deck { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: none }
.deck[data-open="true"] { display: block }
.deck__rail {
  height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.deck__rail::-webkit-scrollbar { display: none }
.slide {
  position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; align-items: end; overflow: hidden;
}
.slide__media { position: absolute; inset: 0; background: var(--surface-alt) }
.slide__media img { width: 100%; height: 100%; object-fit: cover }
.slide__media--empty { background: repeating-linear-gradient(115deg, var(--surface) 0 26px, var(--surface-alt) 26px 52px) }
.slide__scrim { position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in oklab, var(--bg) 96%, transparent) 14%, color-mix(in oklab, var(--bg) 40%, transparent) 55%, color-mix(in oklab, var(--bg) 30%, transparent)) }
.slide__body { position: relative; padding: clamp(20px, 5vw, 64px); display: grid; gap: 12px; max-width: 62ch; padding-bottom: clamp(64px, 9vh, 110px) }
.slide__title { margin: 0; font-size: clamp(24px, 6.4vw, 46px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; text-wrap: balance }
.slide__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: var(--muted) }
.deck__close { position: fixed; top: 14px; right: clamp(14px, 4vw, 34px); z-index: 62 }

/* ── signal (Blacksky) ──────────────────────────────────────────────── */
.signal__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 340px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin;
}
.signal__rail > * { scroll-snap-align: start }
.post {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: 16px; display: grid; gap: 10px; align-content: start; min-height: 168px;
}
.post__head { display: flex; align-items: center; gap: 10px }
.post__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-alt); object-fit: cover; flex: none }
.post__who { display: grid; line-height: 1.25; min-width: 0 }
.post__name { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.post__text { font-family: var(--font-body); font-size: 15px; line-height: 1.45; margin: 0; text-wrap: pretty }
.post__foot { margin-top: auto; display: flex; gap: 12px; color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase }
.post__img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16/9; object-fit: cover; width: 100% }
.skeleton { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase }

/* ── shop ───────────────────────────────────────────────────────────── */
.shop-strip { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding-block: 8px }
.tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface);
  display: grid; gap: 8px; align-content: start; min-height: 168px; position: relative; overflow: hidden;
}
.tile::after {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 190px; height: 190px; border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 16%, transparent); filter: blur(28px);
}
.tile__price { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em }
.tile--zines { background: linear-gradient(160deg, var(--surface) 55%, color-mix(in oklab, var(--accent) 9%, var(--surface))) }

/* ── article ────────────────────────────────────────────────────────── */
.article { padding-block: clamp(22px, 4vw, 46px) }
.article__kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px }
.article__title { margin: 0 0 12px; font-size: clamp(30px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; text-wrap: balance }
.article__desc { margin: 0; font-family: var(--font-body); font-size: clamp(17px, 2vw, 22px); line-height: 1.45; color: color-mix(in oklab, var(--ink) 80%, var(--bg)); max-width: 62ch; text-wrap: pretty }
.article__byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-block: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted) }
.article__cover { margin: clamp(20px, 3vw, 34px) 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line) }
.article__cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover }

.prose {
  font-family: var(--font-body); font-size: clamp(17.5px, 1.35vw, 20.5px); line-height: 1.68;
  max-width: 70ch; margin-top: clamp(26px, 3.4vw, 44px); text-wrap: pretty;
}
.prose > * + * { margin-top: 1.15em }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.15; margin-top: 1.9em; text-wrap: balance }
.prose h2 { font-size: 1.55em } .prose h3 { font-size: 1.28em } .prose h4 { font-size: 1.1em }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px }
.prose a:hover { text-decoration-thickness: 2px }
.prose img { border-radius: 10px; width: 100%; height: auto }
.prose figure { margin: 1.8em 0 }
.prose figcaption { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-top: 10px; line-height: 1.5 }
.prose .op-figure.is-wide, .prose .op-grid.is-wide { width: min(1040px, 92vw); margin-left: 50%; transform: translateX(-50%) }
.prose .op-grid { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 2), 1fr); margin-block: 1.8em }
.prose .op-grid img { aspect-ratio: var(--ar, 4/5); object-fit: cover }
.prose .op-carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-block: 1.8em;
  scrollbar-width: thin;
}
.prose .op-carousel img { scroll-snap-align: center; border-radius: 10px }
.prose .op-rule { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em }
.prose .op-callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-block: 1.8em;
}
.prose .op-callout p { margin: 0; font-size: .96em }
.prose .op-emoji { font-size: 22px; line-height: 1.2; flex: none }
.prose .op-button-row { margin-block: 1.6em }
.prose .op-button-row.is-center { text-align: center }
.prose .op-button-row.is-right { text-align: right }
.prose .op-button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-family: var(--font-display);
  font-weight: 700; font-size: 14px; text-decoration: none;
}
/* Leaflet blocks: link cards, embeds, lists, math */
.prose ul, .prose ol { padding-left: 1.35em }
.prose li { margin-top: .45em }
.prose blockquote p { margin: 0 }
.prose .op-card {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 17px;
  background: var(--surface); text-decoration: none; margin-block: 1.7em;
}
.prose .op-card:hover { border-color: var(--accent) }
.prose .op-card__body { display: grid; gap: 5px; min-width: 0 }
.prose .op-card__host { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.prose .op-card__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25 }
.prose .op-card__desc { font-size: 14.5px; color: var(--muted); line-height: 1.4 }
.prose .op-card img { width: 88px; height: 88px; object-fit: cover; border-radius: 9px }
.prose .op-embed { margin-block: 1.8em }
.prose .op-embed iframe { width: 100%; height: var(--h, 320px); border: 0; border-radius: 10px; background: color-mix(in oklab, #000 30%, var(--surface)) }
.prose .op-math { font-family: var(--font-mono); font-size: .92em; overflow-x: auto; color: var(--muted) }
.prose .op-embed-note { font-size: 14px }
.prose .op-figure.is-left, .prose .op-figure.is-right { width: min(420px, 100%) }
.prose .op-figure.is-left { margin-inline: 0 auto }
.prose .op-figure.is-right { margin-inline: auto 0 }
.prose .op-figure.is-center { margin-inline: auto }
.prose .op-figure.is-center img { margin-inline: auto }
.prose blockquote { margin-inline: 0; padding-left: 18px; border-left: 2px solid var(--accent); font-style: italic; color: color-mix(in oklab, var(--ink) 86%, var(--bg)) }
.prose code { font-family: var(--font-mono); font-size: .86em; background: var(--surface); padding: 2px 6px; border-radius: 5px }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow-x: auto; font-size: 14px }
.prose pre code { background: none; padding: 0 }

/* provenance box — this is the AT Protocol receipt */
.provenance {
  margin-top: clamp(34px, 5vw, 60px); padding: 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); display: grid; gap: 10px;
}
.provenance code { font-family: var(--font-mono); font-size: 11.5px; word-break: break-all; color: var(--muted) }
.provenance__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center }

.pager { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 28px }
.pager a { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); display: grid; gap: 6px }
.pager a:hover { border-color: var(--accent) }
.pager .mono { color: var(--muted) }

.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); width: 0; z-index: 70 }

/* ── footer ─────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); margin-top: clamp(44px, 6vw, 84px); padding-block: clamp(28px, 4vw, 46px) 40px }
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) }
.foot-grid h3 { margin: 0 0 10px; font-size: 12px }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px }
.foot-grid a { color: var(--muted); font-size: 14px }
.foot-grid a:hover { color: var(--accent) }
.foot-note { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted) }
.newsletter { display: flex; gap: 8px; flex-wrap: wrap }
.newsletter input { min-height: 44px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); padding: 0 16px; min-width: 220px }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px;
}
.btn:hover { filter: brightness(1.06) }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line) }

/* ── lightbox ───────────────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 80; background: color-mix(in oklab, #000 88%, transparent); display: none; place-items: center; padding: 4vw }
.lightbox[data-open="true"] { display: grid }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 10px }
.lightbox__close { position: fixed; top: 16px; right: 16px }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav { display: none }
  .nav[data-open="true"] {
    display: flex; position: fixed; inset: 62px 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 10px; flex-direction: column; align-items: stretch; z-index: 45;
  }
  .nav[data-open="true"] a { min-height: 48px }
  .menu-btn { display: grid !important }
  .search input { width: 44px; padding-inline: 12px; color: transparent }
  .search input:focus { width: min(60vw, 260px); color: var(--ink); padding-left: 40px }
}
.menu-btn { display: none }
@media (max-width: 620px) {
  .filters { top: 58px }
  .filters__right { width: 100%; justify-content: space-between }
  .shelf__rail { grid-auto-columns: 78% }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px }
  .grid .card__title { font-size: 14.5px }
  .card__desc { display: none }
  .pager { grid-template-columns: 1fr }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important }
  .card:hover .card__thumb img { transform: none }
}

/* print: the archive should be readable on paper too */
@media print {
  .site-head, .filters, .deck, .site-foot, .progress, .pager { display: none !important }
  body { background: #fff; color: #000 }
  .prose { max-width: none }
}
