:root {
  --bg: #f5f1ea;
  --surface: #fffdf9;
  --ink: #1f1b16;
  --muted: #6d655b;
  --line: #e3dccf;
  --accent: #c8400b;
  --accent-ink: #fff;
  --danger: #b3261e;
  --scrim: rgb(0 0 0 / 0.62);
  --on-scrim: #fff;
  --star-on-scrim: #ffc46b;
  --shadow: 0 1px 2px rgb(60 40 20 / 0.06), 0 6px 18px rgb(60 40 20 / 0.06);
  --shadow-hover: 0 2px 4px rgb(60 40 20 / 0.08), 0 14px 32px rgb(60 40 20 / 0.12);
  --tint-l: 0.955;
  --tint-c: 0.035;
  --dot-l: 0.62;
  --serif: "Instrument Serif", "Iowan Old Style", "Songti SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --gap: 16px;
  color-scheme: light;
}

/* Dark follows the system setting; a host that sets data-theme on the root wins either way. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161412;
    --surface: #211e1a;
    --ink: #efe9e0;
    --muted: #a59c8f;
    --line: #37322b;
    --accent: #ff8a4c;
    --accent-ink: #1b120b;
    --danger: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 18px rgb(0 0 0 / 0.25);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.4), 0 14px 32px rgb(0 0 0 / 0.4);
    --tint-l: 0.27;
    --tint-c: 0.04;
    --dot-l: 0.74;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #161412;
  --surface: #211e1a;
  --ink: #efe9e0;
  --muted: #a59c8f;
  --line: #37322b;
  --accent: #ff8a4c;
  --accent-ink: #1b120b;
  --danger: #ff8a80;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 18px rgb(0 0 0 / 0.25);
  --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.4), 0 14px 32px rgb(0 0 0 / 0.4);
  --tint-l: 0.27;
  --tint-c: 0.04;
  --dot-l: 0.74;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
}

/* Covers the strip above the sticky filter bar on phones that draw under the status bar. */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 10;
  height: env(safe-area-inset-top, 0px); background: var(--bg);
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */

.top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px;
  padding: 36px clamp(16px, 4vw, 48px) 8px;
}

.brand h1 {
  margin: 0;
  font: 400 clamp(40px, 6vw, 64px)/1 var(--serif);
  letter-spacing: -0.01em;
}

.tagline { margin: 10px 0 0; color: var(--muted); max-width: 52ch; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.search input {
  width: min(280px, 70vw);
  padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
}

.btn {
  padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.danger { color: var(--danger); }


/* ---------- filters ---------- */

.filters {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  padding: 12px clamp(16px, 4vw, 48px) 10px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 6px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  white-space: nowrap;
}
.chip .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] .n { color: inherit; opacity: 0.7; }
.chips.small .chip { padding: 4px 11px; font-size: 13px; }

.dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: oklch(var(--dot-l) 0.15 var(--hue, 60));
}

.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.filter-row .sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.sort select { padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

/* ---------- board ---------- */

main { padding: 18px clamp(16px, 4vw, 48px) 60px; }

.count-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.count { margin: 0; color: var(--muted); font-size: 13px; min-width: 0; }
.text-btn { flex: none; padding: 4px 2px; border: 0; background: none; color: var(--accent); font-weight: 600; }
.text-btn:hover { text-decoration: underline; }

.board { display: flex; align-items: flex-start; gap: var(--gap); }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }

.card {
  position: relative;
  display: block; width: 100%; padding: 0; text-align: left;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card.held { opacity: 0.5; }
body.reviewing .card.held { opacity: 1; }

.held-note {
  margin: 12px 0 0; padding: 8px 12px; border-radius: 8px;
  border: 1px dashed var(--muted); color: var(--muted); font-size: 13.5px;
}

.card figure { position: relative; margin: 0; background: var(--line); }
.card img { display: block; width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute; bottom: 8px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--scrim); color: var(--on-scrim); font-size: 12px;
}
/* Edit mode: quick star and remove on every card. */
.quick { position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; gap: 6px; }
.quick-btn {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: var(--scrim); color: var(--on-scrim); font-size: 15px; line-height: 1;
}
.quick-btn[aria-pressed="true"] { color: var(--star-on-scrim); }
body.editing .card.text-only .card-body { padding-top: 48px; }

.badge.video { left: 8px; }

/* A silent preview that fades in over the card's still once it is playing. */
.card figure video.preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.card figure video.preview.on { opacity: 1; }
.card figure .badge { z-index: 1; }
.badge.more { right: 8px; }

.card-body { padding: 12px 14px 12px; }

.card h3 {
  margin: 0;
  font: 400 21px/1.15 var(--serif);
  overflow-wrap: anywhere;
}
.card .blurb {
  margin: 6px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.card.text-only {
  background: oklch(var(--tint-l) var(--tint-c) var(--hue, 60));
  border-color: transparent;
}
.card.text-only .card-body { padding: 18px 18px 14px; }
.card.text-only h3 { font-size: 27px; line-height: 1.1; }
.card.text-only .blurb { color: var(--ink); opacity: 0.78; font-size: 14px; -webkit-line-clamp: 6; }

.card.note { background: oklch(var(--tint-l) 0.07 95); border-color: transparent; }
.card.note h3 { font-style: italic; }

.meta {
  display: flex; align-items: center; gap: 7px;
  margin-top: 11px; color: var(--muted); font-size: 12px; min-width: 0;
}
.meta .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta .marks { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.meta .star { color: var(--accent); }

/* A small padlock, drawn in the text colour of wherever it sits. */
.lock {
  display: inline-block; flex: none; width: 0.82em; height: 0.95em; vertical-align: -0.1em;
  background: currentColor;
  -webkit-mask: var(--lock) center / contain no-repeat; mask: var(--lock) center / contain no-repeat;
  --lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath d='M7 0a4.5 4.5 0 0 0-4.5 4.5V7H2a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-.5V4.5A4.5 4.5 0 0 0 7 0zm0 2a2.5 2.5 0 0 1 2.5 2.5V7h-5V4.5A2.5 2.5 0 0 1 7 2z'/%3E%3C/svg%3E");
}
.chip .lock, .btn .lock, .private-tag .lock { margin-right: 6px; }
.private-tag { display: inline-flex; align-items: center; }
.private-tag::before { content: "·"; margin-right: 8px; }
.private-tag:first-child::before { content: none; }
.btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

.src {
  flex: none; padding: 1px 6px; border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
}

.empty { margin: 60px 0; text-align: center; color: var(--muted); }

/* ---------- detail ---------- */

dialog {
  padding: 0; border: 0; border-radius: 18px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
}
dialog::backdrop { background: rgb(20 14 8 / 0.55); backdrop-filter: blur(3px); }

.detail { width: min(1080px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.detail[open] { display: flex; flex-direction: column; }

.detail-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spacer { flex: 1; }
.icon-btn {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); line-height: 1;
}
.icon-btn:hover { border-color: var(--muted); }

.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: auto; }
.detail-body.no-media { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; }

.detail-media { padding: 20px; display: flex; flex-direction: column; gap: 12px; background: color-mix(in srgb, var(--line) 45%, transparent); }
.shots { display: flex; flex-direction: column; gap: 12px; }
.detail-media img { display: block; width: 100%; height: auto; border-radius: 10px; }
.detail-media .video-note { margin: 0; color: var(--muted); font-size: 13px; }
.detail-media .video-note a { color: inherit; }
/* --r is the video's width / height: wide ones fill the column, tall ones stop at 70% of the screen. */
.detail-media video {
  display: block; width: min(100%, calc(70vh * var(--r, 1.7778))); height: auto; aspect-ratio: var(--r, 1.7778);
  margin: 0 auto; border-radius: 10px; background: #000;
}
.video-missing { display: flex; flex-direction: column; gap: 8px; }

.detail-content { padding: 26px clamp(18px, 3vw, 36px) 30px; min-width: 0; }

.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.eyebrow button { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: inherit; }
.eyebrow button:hover { color: var(--ink); text-decoration: underline; }

.detail-content h2 { margin: 10px 0 12px; font: 400 clamp(30px, 4vw, 42px)/1.05 var(--serif); overflow-wrap: anywhere; }
.detail-content .summary { margin: 0; font-size: 16px; line-height: 1.55; }

.block { margin-top: 22px; }
.label { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }


.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--muted); font-size: 13px;
}
.tag:hover { color: var(--ink); border-color: var(--muted); }

.source-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 13.5px; }
.source-line a { color: var(--accent); font-weight: 600; text-decoration: none; }
.source-line a:hover { text-decoration: underline; }

details.original { border-top: 1px solid var(--line); padding-top: 14px; }
details.original summary { cursor: pointer; color: var(--muted); font-size: 13.5px; }
.original-text { margin: 10px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; }
.quoted { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--line); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }

.manage { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.manage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.field { display: flex; flex-direction: column; }
.saved-hint { margin: -4px 0 0; }
.manage input, .manage textarea, .add textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); resize: vertical;
}

/* ---------- add ---------- */

.add { width: min(520px, calc(100vw - 24px)); }
.add form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.add h2 { margin: 0; font: 400 30px/1.1 var(--serif); }
.add-image { display: flex; align-items: center; gap: 12px; }
.add-actions { display: flex; justify-content: flex-end; gap: 8px; }
.muted { color: var(--muted); font-size: 13px; }
.error { margin: 0; color: var(--danger); font-size: 13.5px; }

.foot { padding: 0 clamp(16px, 4vw, 48px) 40px; color: var(--muted); font-size: 12.5px; }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 14px;
  box-shadow: var(--shadow-hover);
}
.toast button { flex: none; padding: 0; border: 0; background: none; color: inherit; font-weight: 700; text-decoration: underline; }

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

@media (max-width: 760px) {
  :root { --gap: 10px; }
  .top { padding-top: 24px; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .card h3 { font-size: 17px; }
  .card.text-only h3 { font-size: 21px; }
  .card.text-only .card-body { padding: 14px 13px 12px; }
  .card-body { padding: 10px 11px; }
  .card .blurb { font-size: 12.5px; }
  .detail-body { grid-template-columns: minmax(0, 1fr); }
  .detail-media { padding: 12px; }
}

/* Phones. Two narrow columns cannot carry four type styles per card, so the wall drops to one
   plain family: a short title and one quiet line. The serif stays for the page title and the
   heading of an opened item only. */
@media (max-width: 560px) {
  .top { gap: 12px; padding-top: 18px; padding-bottom: 4px; }
  .brand h1 { font-size: 32px; }
  .tagline { margin-top: 4px; font-size: 13.5px; line-height: 1.4; }
  .actions { gap: 8px; }
  .btn { padding: 8px 13px; font-size: 14px; }

  .filters { padding-top: 8px; padding-bottom: 8px; }
  .chip { padding: 5px 11px; font-size: 14px; }
  .filter-row { flex-wrap: nowrap; margin-top: 8px; }
  .filter-row #sources { flex: 1 1 auto; min-width: 0; }
  .filter-row .sort span { display: none; }

  main { padding-top: 12px; }

  .card h3, .card.text-only h3 {
    font: 600 14px/1.3 var(--sans); letter-spacing: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .card.note h3 { font-style: normal; }
  .card.has-media .blurb { display: none; }
  .card.text-only .blurb { margin-top: 5px; font-size: 13px; -webkit-line-clamp: 4; }
  .card-body, .card.text-only .card-body { padding: 9px 10px 10px; }
  .meta { margin-top: 5px; gap: 4px; font-size: 11.5px; }
  .card .src { padding: 0; border: 0; font-size: inherit; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .meta .who::before { content: "· "; }

  .detail-content { padding-top: 18px; }
  .detail-content h2 { font-size: 27px; line-height: 1.1; }
  .shots.many { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .shots.many::-webkit-scrollbar { display: none; }
  .shots.many img { flex: none; width: auto; max-width: 88%; max-height: 46dvh; scroll-snap-align: center; }
  .shots:not(.many) img { width: auto; max-width: 100%; max-height: 52dvh; margin: 0 auto; }
  .shots.many video { flex: none; width: min(88%, calc(46dvh * var(--r, 1.7778))); margin: 0; scroll-snap-align: center; }
  .shots.many .video-missing { flex: none; max-width: 88%; scroll-snap-align: center; }
  .shots:not(.many) video { width: min(100%, calc(60dvh * var(--r, 1.7778))); }
  .manage input, .manage textarea, .add textarea, .search input { font-size: 16px; } /* stops iOS zooming on focus */
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}


/* Editorial presentation layer; owner controls above remain shared. */
:root {
  --bg: #f6f4ee;
  --surface: #fcfbf7;
  --ink: #30362d;
  --muted: #73776c;
  --line: #deded3;
  --accent: #8b4937;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow: none;
  --shadow-hover: none;
}
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { font-size: 14px; -webkit-font-smoothing: antialiased; }
body::before { display: none; }
body.detail-open { overflow: hidden; }
a { color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, input, select { font-family: var(--sans); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.page-shell { width: min(1440px, 100%); padding: 0 clamp(24px, 5vw, 76px); margin: auto; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 30; background: var(--ink); color: white; padding: 12px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.masthead { height: 94px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 34px/1 'Newsreader', Georgia, serif; letter-spacing: -.8px; }
.brand-mark { font: 38px/1 Georgia, serif; color: var(--accent); margin: -2px 8px 0 0; }
.site-nav { display: flex; gap: 36px; font-size: 12px; }
.site-nav a { text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--accent); }
.site-nav span { margin-left: 12px; }
.introduction { display: grid; grid-template-columns: 1.8fr 1fr; gap: 40px; padding: 51px 0 50px; align-items: center; }
.eyebrow-label { font: 500 10px/1.5 var(--sans); letter-spacing: 1.7px; margin: 0 0 15px; color: var(--muted); }
.intro-title { position: relative; }
.intro-title h1 { font: 400 clamp(62px, 7.2vw, 104px)/.99 var(--serif); letter-spacing: -2.5px; margin: 0; max-width: 820px; }
.intro-title h1 em { font-weight: 400; color: #6f7758; white-space: nowrap; }
.title-period { display: inline-block; font: 400 34px/1 Georgia, serif; color: var(--accent); transform: translate(10px, -37px) rotate(-8deg); }
.intro-note { padding-top: 25px; justify-self: end; max-width: 315px; }
.intro-note p { font-size: 15px; line-height: 1.7; margin: 0; }
.intro-note .intro-subline { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 15px; }
main { padding: 0 0 78px; }
.collection-topline { display: flex; justify-content: space-between; align-items: center; min-height: 40px; }
.section-label { margin: 0; font-size: 10px; letter-spacing: 1.5px; font-weight: 500; }
.section-label span { color: var(--muted); font-size: 9px; letter-spacing: 0; vertical-align: super; margin-left: 6px; }
.surprise-btn { border: 0; padding: 10px 0 10px 10px; background: transparent; display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.surprise-btn:hover { color: var(--accent); }
.surprise-btn svg { transition: transform .3s; }
.surprise-btn:hover svg { transform: rotate(12deg); }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0; position: static; background: none; backdrop-filter: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 62px; }
.chips { gap: 27px; padding: 0; align-self: stretch; align-items: stretch; }
.topic-picker { display: none; }
#themes { flex-shrink: 0; }
.chip { background: none; border: 0; border-radius: 0; padding: 20px 0 19px; gap: 7px; font-size: 12px; color: var(--muted); position: relative; }
.chip[aria-pressed="true"] { background: none; color: var(--ink); }
.chip[aria-pressed="true"]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--ink); }
.chip:hover { color: var(--ink); }
.chip .n { font-size: 9px; align-self: flex-start; margin-top: 1px; color: var(--muted); }
.chip .dot { display: none; }
.filter-tools { display: flex; align-items: center; gap: 15px; }
.search { display: flex; align-items: center; gap: 9px; }
.search svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.search input { width: 143px; padding: 10px 0; background: none; border: 0; border-radius: 0; font-size: 11px; }
.search input::placeholder { color: var(--muted); }
.filter-toggle { background: none; border: 0; border-left: 1px solid var(--line); padding: 4px 0 4px 17px; display: flex; align-items: center; min-height: 36px; }
.filter-toggle svg { width: 19px; height: 19px; }
.filter-toggle[aria-expanded="true"] { color: var(--accent); }
.filter-options { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.filter-options .chip { padding: 6px 0; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }
.sort select { background: transparent; border: 1px solid var(--line); font-size: 12px; padding: 7px; border-radius: 2px; }
.filter-options .text-btn { font-size: 11px; font-weight: 400; }
.count-row { padding: 18px 0 20px; margin: 0; align-items: center; min-height: 55px; }
.count { font-size: 10px; color: var(--muted); }
.collection-aside { margin: 0 0 0 auto; color: #7f806e; font: italic 17px/1.3 var(--serif); }
.manage-entry { display: flex; gap: 12px; margin-left: auto; }
#active-tag { margin: 0 12px; }
#active-tag .chip { padding: 2px 0; font-size: 10px; }
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; gap: 64px 36px; }
.card { grid-column: span 4; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; transition: none; }
.card:hover { transform: none; box-shadow: none; }
.card:nth-child(6n + 1) { grid-column: span 5; }
.card:nth-child(6n + 2) { grid-column: span 3; padding-top: 65px; }
.card:nth-child(6n + 3) { grid-column: span 4; padding-top: 22px; }
.card:nth-child(6n + 4) { grid-column: span 3; padding-top: 8px; }
.card:nth-child(6n + 5) { grid-column: span 4; padding-top: 53px; }
.card:nth-child(6n + 6) { grid-column: span 5; }
.card figure { aspect-ratio: 1 !important; border-radius: 2px; background: #e8e6dd; overflow: hidden; isolation: isolate; }
.card:nth-child(6n + 1) figure { aspect-ratio: .94 !important; }
.card:nth-child(6n + 3) figure { aspect-ratio: .83 !important; }
.card:nth-child(6n + 4) figure { aspect-ratio: .78 !important; }
.card:nth-child(6n + 5) figure { aspect-ratio: 1.03 !important; }
.card:nth-child(6n + 6) figure { aspect-ratio: 1.08 !important; }
.card img { transition: transform .55s cubic-bezier(.2,.65,.3,1); }
.card:hover img { transform: scale(1.035); }
.card figure::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgb(40 45 30 / .05); z-index: 2; }
.card-body { padding: 15px 0 0; }
.card-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; line-height: 1.4; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 9px; }
.card-open { flex-shrink: 0; }
.card-open { color: var(--ink); font-size: 17px; line-height: .5; opacity: 0; transform: translate(-3px, 3px); transition: opacity .2s, transform .2s; }
.card:hover .card-open, .card:focus-visible .card-open { opacity: 1; transform: none; }
.card h3 { font: 400 clamp(23px, 2.05vw, 30px)/1.13 var(--serif); letter-spacing: -.25px; overflow-wrap: normal; }
.card .meta { margin-top: 9px; gap: 5px; font-size: 10px; }
.card .src { border: 0; padding: 0; font-size: 10px; text-transform: none; font-weight: 400; letter-spacing: 0; }
.card .who::before { content: '· '; }
.card .blurb { font-size: 12px; margin: 12px 0; }
.badge { bottom: 12px; padding: 5px 9px; border-radius: 2px; background: rgb(249 247 241 / .92); color: var(--ink); font-size: 9px; line-height: 1; letter-spacing: .3px; }
.badge.video { left: 12px; }
.badge.more { right: 12px; }
.card.text-only { background: #e9eadf; padding: 30px; border: 1px solid var(--line); }
.card.text-only .card-body { padding: 0; }
.board.is-filtered { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 32px; }
.board.is-filtered .card { grid-column: auto; padding-top: 0; }
.board.is-filtered .card figure { aspect-ratio: 1 !important; }
.empty { padding: 50px 0 80px; margin: 0; }
.empty-star { font: 44px Georgia, serif; color: var(--accent); }
.empty h2 { font: 38px var(--serif); color: var(--ink); margin: 12px 0; }
.empty p { font-size: 13px; }
.empty .btn { margin-top: 15px; border-radius: 2px; font-size: 12px; }
.foot { padding: 0; border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.footer-note { display: flex; align-items: flex-start; gap: 34px; padding: 58px 0 55px; }
.footer-mark { color: #7b805f; font: 74px/1 Georgia, serif; padding-top: 24px; }
.footer-note h2 { margin: 0 0 18px; font: 400 clamp(32px, 3.3vw, 48px)/1.1 var(--serif); color: var(--ink); }
.footer-note h2 em { color: #737b5c; }
.footer-note p:not(.eyebrow-label) { font-size: 13px; line-height: 1.8; margin: 0; }
.footer-contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px 40px; padding: 32px 0 38px; border-top: 1px solid var(--line); }
.footer-contact h2 { margin: 0; color: var(--ink); font: 400 clamp(30px, 3vw, 40px)/1.1 var(--serif); }
.footer-contact p { max-width: 490px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.contact-links { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 14px; }
.contact-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--ink); font-size: 13px; text-decoration-thickness: 1px; text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-links a:hover { color: var(--accent); }
.colophon { border-top: 1px solid var(--line); padding: 23px 0 32px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font-size: 10px; }
.colophon > p { line-height: 1.6; margin: 0; }
.colophon > a { text-decoration: none; }
.colophon > a:hover { color: var(--accent); }
dialog { border-radius: 4px; background: var(--bg); }
dialog::backdrop { background: rgb(33 38 29 / .55); backdrop-filter: blur(6px); }
.detail { width: min(1120px, calc(100vw - 56px)); max-height: calc(100dvh - 56px); }
.detail-bar { padding: 12px 20px; gap: 10px; }
.icon-btn { background: transparent; border-radius: 0; border: 0; width: 36px; height: 36px; }
.icon-btn:hover { background: var(--line); }
.icon-btn:disabled { opacity: .25; cursor: default; }
.detail-body { grid-template-columns: 1.1fr 1fr; }
.detail-media { padding: 24px; background: #eae8df; }
.detail-media img, .detail-media video { border-radius: 2px; }
.detail-media img { object-fit: contain; max-height: 65vh; width: 100%; }
.detail-content { padding: 35px 34px; }
.detail-content h2 { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.04; margin: 20px 0; }
.detail-content .summary { font-size: 13px; line-height: 1.8; color: #656b5f; }
.detail-content .eyebrow { text-transform: uppercase; letter-spacing: 1px; font-size: 10px; }
.detail-content .eyebrow .dot { background: #7c8565; width: 6px; height: 6px; }
.detail-content .tag { border: 0; border-radius: 0; background: #eaece2; padding: 5px 8px; font-size: 10px; }
.source-line { line-height: 1.8; font-size: 11px; }
.source-line a { font-weight: 500; }
.original summary { font-size: 11px !important; }
.original-text { font-size: 12px; line-height: 1.7; }
.video-note { font-size: 11px !important; padding-top: 8px; }
@media (min-width: 1400px) { .intro-title h1 { max-width: 870px; } }
@media (max-width: 1100px) {
  .introduction { grid-template-columns: 1.7fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .intro-title h1 { font-size: 77px; }
  .intro-title h1 em { display: block; }
  .title-period { position: absolute; left: 315px; bottom: 36px; transform: none; font-size: 28px; }
  .intro-note p { font-size: 14px; }
  .board { gap: 48px 25px; }
  .chips { gap: 22px; }
  .filters { flex-wrap: wrap; gap: 0; }
  #themes { width: 100%; justify-content: space-between; }
  .filter-tools { width: 100%; padding: 4px 0; border-top: 1px solid var(--line); }
  .filter-tools .search { flex: 1; }
  .filter-tools .search input { width: 100%; }
  .collection-aside { max-width: 65%; text-align: right; }
}
@media (max-width: 760px) {
  #themes { display: none; }
  .topic-picker { display: flex; width: 100%; align-items: center; gap: 20px; min-height: 54px; }
  .topic-picker > span { color: var(--muted); font-size: 11px; }
  .topic-picker select { width: 100%; min-width: 0; min-height: 44px; background: transparent; border: 0; border-radius: 0; font-size: 16px; padding: 8px 0; }
  .page-shell { padding: 0 24px; }
  .masthead { height: 76px; }
  .site-nav { gap: 22px; font-size: 11px; }
  .site-nav span { margin-left: 3px; }
  .wordmark { font-size: 30px; }
  .brand-mark { font-size: 32px; margin-right: 4px; }
  .introduction { display: block; padding: 34px 0 30px; }
  .intro-title h1 { font-size: 72px; max-width: 610px; }
  .intro-title h1 em { display: inline; }
  .title-period { display: none; }
  .intro-note { max-width: none; width: 100%; justify-self: start; padding-top: 20px; }
  .intro-note p { font-size: 14px; }
  .intro-note .intro-subline { margin-top: 7px; font-size: 11px; }
  .intro-subline br, .desktop-break { display: none; }
  .collection-topline { min-height: 45px; }
  .filters { flex-wrap: wrap; gap: 0; align-items: stretch; }
  .chips { gap: 24px; }
  .chip { font-size: 12px; padding: 16px 0; }
  .filter-tools { margin-left: auto; }
  .search input { width: 110px; }
  .filter-options { gap: 16px; flex-wrap: wrap; }
  .count-row { padding: 15px 0 20px; }
  .collection-aside { font-size: 15px; }
  .board, .board.is-filtered { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; }
  .board .card:nth-child(n) { grid-column: auto; padding-top: 0; }
  .board:not(.is-filtered) .card:nth-child(even) { padding-top: 40px; }
  .board .card:nth-child(n) figure { aspect-ratio: .88 !important; }
  .board .card:nth-child(even) figure { aspect-ratio: 1.08 !important; }
  .card-body { padding: 13px 0 0; }
  .card h3 { font-size: 25px; }
  .detail { width: calc(100vw - 28px); max-height: calc(100dvh - 28px); }
  .detail-body { grid-template-columns: 1fr; }
  .detail-content { padding: 24px; }
  .detail-content h2 { font-size: 36px; }
  .detail-media { padding: 16px; }
  .detail-media img { max-height: 46dvh; }
  .footer-note { gap: 22px; padding: 40px 0; }
  .footer-mark { font-size: 54px; padding-top: 28px; }
  .footer-contact { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
}
@media (max-width: 560px) {
  .page-shell { padding: 0 21px; }
  .masthead { height: 70px; }
  .site-nav a:first-child { display: none; }
  .site-nav { font-size: 10px; }
  .introduction { padding: 32px 0 28px; }
  .eyebrow-label { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 14px; }
  .intro-title h1 { font-size: clamp(62px, 16vw, 86px); letter-spacing: -1.3px; line-height: .95; }
  .intro-title h1 em { display: block; }
  .intro-note { padding-top: 22px; }
  .intro-note p { font-size: 13px; line-height: 1.65; }
  .intro-note .intro-subline { margin-top: 8px; font-size: 11px; max-width: 290px; }
  .section-label { font-size: 9px; letter-spacing: 1.2px; }
  .surprise-btn { font-size: 10px; gap: 6px; }
  .surprise-btn svg { width: 13px; height: 13px; }
  .filters { min-height: 0; }
  .chip { font-size: 12px; padding: 15px 0; }
  .chip .n { font-size: 9px; }
  .filter-tools { width: 100%; padding: 6px 0; border-top: 1px solid var(--line); gap: 12px; }
  .search { flex: 1; min-width: 0; gap: 10px; }
  .search input { width: 100%; min-width: 0; font-size: 16px; padding: 6px 0; }
  .search input::placeholder { font-size: 12px; }
  .filter-toggle { padding-left: 15px; width: 44px; }
  .count-row { min-height: 49px; padding: 15px 0 18px; }
  .count { font-size: 9px; }
  .collection-aside { display: none; }
  .topic-selected .count-row { flex-wrap: wrap; gap: 7px 0; }
  .topic-selected .collection-aside { display: block; flex: 1 1 100%; max-width: none; text-align: left; margin: 0; font-size: 16px; line-height: 1.4; }
  .board, .board.is-filtered { gap: 28px 18px; }
  .board:not(.is-filtered) .card:nth-child(even) { padding-top: 32px; }
  .card h3, .card.text-only h3 { font: 400 22px/1.08 var(--serif); letter-spacing: -.15px; display: block; overflow: visible; }
  .card-body { padding: 11px 0 0; }
  .card-kicker { font-size: 8px; letter-spacing: 1px; margin-bottom: 7px; }
  .card-open { opacity: 1; transform: none; font-size: 14px; }
  .card .meta, .card .src { font-size: 9px; }
  .card .meta { margin-top: 7px; }
  .badge { font-size: 8px; padding: 4px 5px; bottom: 7px; }
  .badge.video { left: 7px; }
  .badge.more { right: 7px; }
  .card.text-only { padding: 16px; }
  .filter-options { flex-wrap: wrap; }
  .filter-options #sources { flex: 1 1 100%; }
  .filter-options .sort { margin-left: 0; }
  .foot { padding: 0; }
  .footer-note { gap: 16px; padding: 35px 0; }
  .footer-mark { font-size: 40px; }
  .footer-note h2 { font-size: 32px; }
  .footer-note p:not(.eyebrow-label) { font-size: 11px; }
  .footer-note br { display: none; }
  .colophon { display: grid; grid-template-columns: 1fr auto; font-size: 9px; gap: 18px; }
  .colophon p { grid-row: 2; grid-column: 1 / -1; }
  .colophon a { grid-column: 2; grid-row: 1; }
  .detail-bar { padding: 7px 10px; }
  .detail-content { padding: 24px 20px; }
  .detail-content h2 { font-size: 35px; }
  .detail-content .summary { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover img, .surprise-btn:hover svg { transform: none; }
}
