/* joe538 Book Archive — converted from the "Book Archive" design */
:root {
  --bg: oklch(0.965 0.014 78);
  --ink: oklch(0.24 0.03 45);
  --muted: oklch(0.45 0.03 50);
  --body: oklch(0.42 0.03 50);
  --clay: oklch(0.52 0.13 38);
  --line: oklch(0.87 0.02 70);
  --field: oklch(0.99 0.006 80);
  --field-line: oklch(0.85 0.025 70);
  --chip-line: oklch(0.82 0.025 70);
  --on-dark: oklch(0.98 0.008 80);
  --wash: oklch(0.9 0.05 65);
  --wash-text: oklch(0.3 0.03 45);
  --gutter: clamp(20px, 5vw, 64px);
  --serif: 'Gloock', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--clay); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; }
.brand-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; margin-top: 4px; color: var(--clay);
}

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 880px);
  padding: clamp(48px, 8vw, 104px) var(--gutter);
}
.hero-inner { display: flex; flex-direction: column; gap: 28px; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--clay);
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 86px); line-height: 1.02;
  letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
.hero p {
  font-size: 19px; line-height: 1.55; max-width: 520px; margin: 0;
  color: var(--body); text-wrap: pretty;
}
.search {
  display: flex; gap: 8px; max-width: 540px; padding: 6px;
  border-radius: 999px; background: var(--field);
  border: 1px solid var(--field-line);
}
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; padding: 12px 18px; color: inherit;
}
.search button {
  white-space: nowrap; flex-shrink: 0;
  cursor: pointer; border: 0; font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--clay); color: var(--on-dark);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Catalog */
.catalog {
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 32px;
}
.hero:has(+ #catalog) { padding-bottom: clamp(24px, 3vw, 40px); }
.hero:has(+ #directory) { padding-bottom: clamp(24px, 3vw, 40px); }
#directory { padding-top: clamp(24px, 3vw, 40px); }
#catalog { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(24px, 3vw, 40px); }
#spotlight { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(24px, 3vw, 40px); }
#bookstores { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(32px, 4vw, 56px); }
#restaurants { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(24px, 3vw, 40px); }
#events { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(24px, 3vw, 40px); }
#culture { padding-top: clamp(24px, 3vw, 40px); }
.catalog-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.catalog-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 48px); margin: 0 0 8px; letter-spacing: -0.01em;
}
.catalog-title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.catalog-title h2 { margin-bottom: 0; }
.updated {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--clay);
}
.count { font-size: 15px; color: var(--muted); }
.count a { color: var(--clay); font-weight: 500; margin-left: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--chip-line); color: var(--ink);
  min-height: 36px; display: inline-flex; align-items: center;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.on:hover { color: var(--bg); }
.more { flex-basis: 100%; }
.more summary { cursor: pointer; list-style: none; width: fit-content; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " +"; }
.more[open] summary::after { content: " −"; }
.more .chips { margin-top: 10px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 36px 24px;
}
.book { display: flex; flex-direction: column; gap: 14px; }
.cover {
  aspect-ratio: 2 / 3; border-radius: 2px 6px 6px 2px;
  position: relative; overflow: hidden;
}
.cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: oklch(0.9 0.05 65);
}
.cover.art {
  padding: 20px 18px; display: flex; flex-direction: column;
  justify-content: space-between;
  background: var(--c-bg); color: var(--c-fg);
  box-shadow: inset 6px 0 0 var(--c-mark);
}
.cover-initial {
  position: absolute; right: -8px; bottom: -40px;
  font-family: var(--serif); font-size: 160px; line-height: 1;
  color: var(--c-mark); pointer-events: none;
}
.cover-year {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; position: relative;
}
.cover-text { display: flex; flex-direction: column; gap: 8px; position: relative; }
.cover-title { font-family: var(--serif); font-size: 22px; line-height: 1.08; text-wrap: balance; }
.cover-author { font-size: 13px; font-weight: 500; }
.c0 { --c-bg: oklch(0.52 0.13 38); --c-fg: oklch(0.98 0.01 80); --c-mark: oklch(0.58 0.13 40); }
.c1 { --c-bg: oklch(0.8 0.11 75); --c-fg: oklch(0.24 0.03 45); --c-mark: oklch(0.75 0.12 72); }
.c2 { --c-bg: oklch(0.27 0.035 42); --c-fg: oklch(0.95 0.014 78); --c-mark: oklch(0.33 0.04 42); }
.c3 { --c-bg: oklch(0.9 0.05 65); --c-fg: oklch(0.24 0.03 45); --c-mark: oklch(0.85 0.06 62); }

.book-meta { display: flex; flex-direction: column; gap: 3px; }
.book-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.book-by { font-size: 14px; color: var(--muted); }
.book-genre { font-size: 13px; color: var(--clay); font-weight: 500; margin-top: 4px; }
/* List layout (the design's "List" catalog option) */
.list { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 8px 24px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.row-year { font-family: var(--mono); font-size: 13px; color: var(--clay); }
.row-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.row-author { font-size: 15px; color: var(--muted); }
.row-genre { font-size: 14px; font-weight: 500; }
.row:hover .row-title { color: var(--clay); }
.row:hover .row-author, .row:hover .row-genre { color: inherit; }

/* Book spotlight */
.spotlight {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.spot-art {
  aspect-ratio: 1 / 1; border-radius: 4px;
  background: var(--clay); color: oklch(0.98 0.01 80);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(24px, 4vw, 40px); position: relative; overflow: hidden;
}
.spot-initial {
  position: absolute; right: -20px; bottom: -90px;
  font-family: var(--serif); font-size: 380px; line-height: 1;
  color: oklch(0.58 0.13 40); pointer-events: none;
}
.spot-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; position: relative;
}
.spot-cover-wrap {
  position: relative; flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center; padding-top: 16px;
}
.spot-cover {
  height: 100%; aspect-ratio: 2 / 3; border-radius: 2px; overflow: hidden;
  box-shadow: 0 18px 40px oklch(0.2 0.05 40 / 0.35);
}
.spot-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-name { display: flex; flex-direction: column; gap: 6px; }
.spot-title {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance;
}
.spot-author { font-size: 17px; font-weight: 600; }
.spot-text { display: flex; flex-direction: column; gap: 20px; }
.spot-meta { font-family: var(--mono); font-size: 13px; color: var(--clay); }
.spot-text h2 {
  font-family: var(--serif); font-weight: 400; color: var(--body);
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; margin: 0; text-wrap: balance;
}
.spot-text p {
  font-size: 17px; line-height: 1.55; margin: 0; color: var(--body);
  max-width: 520px; text-wrap: pretty;
}
.spot-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  white-space: nowrap; flex-shrink: 0;
  font-size: 15px; font-weight: 600; padding: 12px 22px; border-radius: 999px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: var(--bg); background: var(--clay); }
.btn-line { border: 1px solid var(--chip-line); }

/* Suggest a book */
.contribute {
  margin: 0 var(--gutter);
  padding: clamp(40px, 6vw, 72px);
  border-radius: 6px; background: var(--wash);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px; align-items: center;
}
.contribute h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; margin: 0; text-wrap: balance;
}
.contribute-text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.contribute-text p {
  font-size: 17px; line-height: 1.55; margin: 0;
  color: var(--wash-text); text-wrap: pretty;
}

.empty { padding: 40px 0; font-size: 17px; color: var(--muted); }
.catalog-more {
  align-self: flex-start; font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; min-height: 44px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--chip-line);
}
.catalog-more:hover { border-color: var(--clay); }

/* Book detail (design v4) */
.crumbs {
  padding: 24px var(--gutter) 0; font-size: 14px; color: var(--muted);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 6vw, 96px); align-items: start;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 88px);
}
.detail-art {
  border-radius: 4px; background: var(--c-bg);
  padding: clamp(28px, 5vw, 56px);
  display: flex; justify-content: center; position: relative; overflow: hidden;
}
.detail-initial {
  position: absolute; right: -20px; bottom: -110px;
  font-family: var(--serif); font-size: 420px; line-height: 1;
  color: var(--c-mark); pointer-events: none;
}
.detail-cover {
  position: relative; width: min(100%, 340px); aspect-ratio: 2 / 3;
  border-radius: 2px; overflow: hidden; background: var(--field);
  box-shadow: 0 22px 48px oklch(0.2 0.05 40 / 0.35);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-media { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.image-credit {
  margin: 0; text-align: right;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted);
}
.image-credit a { color: inherit; border-bottom: 1px solid var(--line); }
.image-credit a:hover { color: var(--ink); }
.detail-cover-text {
  height: 100%; padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
}
.detail-cover-text .cover-title { font-size: 30px; }
.detail-cover-text .cover-author { font-size: 15px; color: var(--muted); }
.detail-text { display: flex; flex-direction: column; gap: 28px; max-width: 640px; }
.detail-name { display: flex; flex-direction: column; gap: 14px; }
.detail-name h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02;
  letter-spacing: -0.02em; margin: 0; text-wrap: balance; overflow-wrap: anywhere;
}
.detail-authors { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 19px; font-weight: 600; }
.detail-summary {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.detail-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.detail-summary p {
  font-size: 18px; line-height: 1.65; margin: 0;
  color: oklch(0.32 0.03 45); text-wrap: pretty;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-authors a { border-bottom: 1px solid var(--chip-line); }

/* Author detail (design v5) */
.detail-cover.portrait { aspect-ratio: 4 / 5; }
.detail:has(+ .author-books) { padding-bottom: clamp(24px, 3vw, 40px); }
.author-books {
  padding: clamp(24px, 3vw, 40px) var(--gutter) 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 32px;
}
.author-books h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 48px); margin: 0; letter-spacing: -0.01em;
}
.author-book {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 8px 24px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.author-book:hover .row-title { color: var(--clay); }
/* Authors list (design v6) */
.authors-page {
  padding: clamp(48px, 7vw, 88px) var(--gutter) 0;
  display: flex; flex-direction: column; gap: 32px;
}
.authors-page h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 72px); line-height: 1.02;
  letter-spacing: -0.02em; margin: 0;
}
.search-small { width: min(100%, 380px); }
.search-small input { padding: 10px 16px; }
.author-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.author-row:hover .row-title { color: var(--clay); }
[hidden] { display: none !important; }

/* Bookstore detail (design v8) */
.store-detail { grid-template-columns: minmax(0, 1fr); }
/* Restaurant photo: two columns like the book page, only when a photo exists.
   The photo keeps its own shape (dining rooms, dishes, logos) instead of a 2:3 crop. */
.store-detail.has-photo { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.store-art { background: var(--wash); }
.detail-cover.store-photo { width: 100%; aspect-ratio: auto; }
.detail-cover.store-photo img { height: auto; }
.store-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 24px; padding-top: 24px; border-top: 1px solid var(--line);
}
.store-info-item { display: flex; flex-direction: column; gap: 8px; }
.store-info-text { font-size: 16px; line-height: 1.55; }
.store-url { overflow-wrap: anywhere; }
.store-nearby {
  padding: clamp(48px, 7vw, 88px) var(--gutter) 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 24px;
}
.store-nearby h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px); margin: 0; letter-spacing: -0.01em;
}
.store-nearby .list { border-bottom: 0; }
.detail:has(+ .restaurant-nearby) { padding-bottom: clamp(24px, 3vw, 40px); }
.restaurant-nearby { padding-top: clamp(24px, 3vw, 40px); }
.store-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 8px 24px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.store-row:hover .row-title { color: var(--clay); }

/* Restaurants (joe538 Table): "Indigo & gold" color scheme, design v12.
   Only pages using layout section "restaurants" get these colors. */
body.section-restaurants {
  --bg: oklch(0.97 0.01 90);
  --ink: oklch(0.22 0.05 265);
  --clay: oklch(0.45 0.14 265);          /* accent */
  --muted: oklch(0.42 0.04 265);
  --body: oklch(0.42 0.04 265);
  --line: oklch(0.87 0.02 265);
  --field: oklch(0.995 0.004 90);
  --field-line: oklch(0.87 0.02 265);
  --chip-line: oklch(0.87 0.02 265);
  --on-dark: oklch(0.98 0.01 90);
  --wash: oklch(0.9 0.07 88);            /* gold */
  --wash-text: oklch(0.42 0.04 265);
}

/* Books list (design v7) */
.books-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 4px 24px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.books-row .row-genre { text-align: right; }
.books-row:hover .row-title { color: var(--clay); }
@media (max-width: 560px) {
  .books-row .row-genre { text-align: left; }
}
@media (max-width: 560px) {
  .author-book { grid-template-columns: 52px minmax(0, 1fr); }
  .author-book .row-genre { grid-column: 2; }
}
.detail-missing {
  padding: clamp(48px, 8vw, 104px) var(--gutter);
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
.detail-missing h1 {
  font-family: var(--serif); font-weight: 400; margin: 0;
  font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05;
}
.detail-missing p { font-size: 18px; margin: 0; color: var(--body); }

/* Footer */
.site-footer {
  margin-top: clamp(48px, 7vw, 88px);
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
}
.footer-brand { color: var(--ink); }   /* same look as the header logo (.brand) */
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* RSS Feed Reader (/culture/, "feed-category" design).
   Palettes come from the design's picker; the footer select puts t-<name>
   on <html>. The site variables (--clay etc.) are mapped onto them. */
body.section-culture {
  --bg: oklch(0.965 0.014 78); --ink: oklch(0.24 0.03 45); --muted: oklch(0.43 0.03 50);
  --accent: oklch(0.52 0.13 38); --onaccent: oklch(0.98 0.01 80); --line: oklch(0.87 0.02 70);
  --line2: oklch(0.82 0.025 70); --field: oklch(0.99 0.006 80); --panel: oklch(0.27 0.035 42);
  --onpanel: oklch(0.95 0.014 78); --panelmuted: oklch(0.85 0.02 70); --panelline: oklch(0.42 0.03 45);
  --hi: oklch(0.8 0.11 75); --onhi: oklch(0.24 0.03 45);
  --clay: var(--accent); --body: var(--muted); --field-line: var(--line2);
  --chip-line: var(--line2); --on-dark: var(--onaccent);
}
html.t-midnight body.section-culture{--bg:oklch(0.2 0.03 262);--ink:oklch(0.95 0.01 85);--muted:oklch(0.78 0.02 260);--accent:oklch(0.82 0.13 82);--onaccent:oklch(0.2 0.03 262);--line:oklch(0.32 0.03 262);--line2:oklch(0.42 0.03 262);--field:oklch(0.25 0.03 262);--panel:oklch(0.82 0.13 82);--onpanel:oklch(0.2 0.03 262);--panelmuted:oklch(0.3 0.04 262);--panelline:oklch(0.62 0.1 80);--hi:oklch(0.2 0.03 262);--onhi:oklch(0.95 0.01 85)}
html.t-hardwood body.section-culture{--bg:oklch(0.965 0.018 95);--ink:oklch(0.25 0.04 155);--muted:oklch(0.42 0.03 150);--accent:oklch(0.46 0.1 155);--onaccent:oklch(0.98 0.01 95);--line:oklch(0.88 0.02 110);--line2:oklch(0.8 0.03 120);--field:oklch(0.99 0.008 95);--panel:oklch(0.3 0.05 155);--onpanel:oklch(0.96 0.015 95);--panelmuted:oklch(0.86 0.02 120);--panelline:oklch(0.44 0.05 155);--hi:oklch(0.86 0.13 92);--onhi:oklch(0.25 0.04 155)}
html.t-jersey body.section-culture{--bg:oklch(0.975 0.006 250);--ink:oklch(0.25 0.06 262);--muted:oklch(0.44 0.04 260);--accent:oklch(0.53 0.19 27);--onaccent:oklch(0.99 0.005 250);--line:oklch(0.89 0.01 255);--line2:oklch(0.82 0.02 255);--field:oklch(1 0 0);--panel:oklch(0.28 0.07 262);--onpanel:oklch(0.97 0.006 250);--panelmuted:oklch(0.85 0.02 255);--panelline:oklch(0.42 0.06 262);--hi:oklch(0.84 0.09 235);--onhi:oklch(0.25 0.06 262)}
html.t-plum body.section-culture{--bg:oklch(0.965 0.018 55);--ink:oklch(0.26 0.06 335);--muted:oklch(0.44 0.04 340);--accent:oklch(0.5 0.15 355);--onaccent:oklch(0.98 0.01 55);--line:oklch(0.88 0.025 45);--line2:oklch(0.82 0.035 40);--field:oklch(0.99 0.008 55);--panel:oklch(0.31 0.08 335);--onpanel:oklch(0.96 0.015 55);--panelmuted:oklch(0.86 0.03 340);--panelline:oklch(0.45 0.07 335);--hi:oklch(0.83 0.1 50);--onhi:oklch(0.26 0.06 335)}
html.t-newsprint body.section-culture{--bg:oklch(0.975 0 0);--ink:oklch(0.17 0 0);--muted:oklch(0.42 0 0);--accent:oklch(0.17 0 0);--onaccent:oklch(0.975 0 0);--line:oklch(0.88 0 0);--line2:oklch(0.78 0 0);--field:oklch(1 0 0);--panel:oklch(0.17 0 0);--onpanel:oklch(0.97 0 0);--panelmuted:oklch(0.82 0 0);--panelline:oklch(0.38 0 0);--hi:oklch(0.92 0.17 103);--onhi:oklch(0.17 0 0)}
html.t-harbor body.section-culture{--bg:oklch(0.97 0.01 215);--ink:oklch(0.25 0.04 230);--muted:oklch(0.44 0.03 225);--accent:oklch(0.48 0.09 210);--onaccent:oklch(0.99 0.005 215);--line:oklch(0.89 0.015 215);--line2:oklch(0.81 0.025 215);--field:oklch(0.995 0.004 215);--panel:oklch(0.3 0.05 225);--onpanel:oklch(0.97 0.01 215);--panelmuted:oklch(0.86 0.02 215);--panelline:oklch(0.44 0.05 225);--hi:oklch(0.8 0.11 40);--onhi:oklch(0.25 0.04 230)}
html.t-espresso body.section-culture{--bg:oklch(0.22 0.02 50);--ink:oklch(0.94 0.02 75);--muted:oklch(0.78 0.025 65);--accent:oklch(0.76 0.12 58);--onaccent:oklch(0.22 0.02 50);--line:oklch(0.33 0.025 50);--line2:oklch(0.43 0.03 50);--field:oklch(0.27 0.02 50);--panel:oklch(0.3 0.03 50);--onpanel:oklch(0.94 0.02 75);--panelmuted:oklch(0.8 0.025 65);--panelline:oklch(0.45 0.03 50);--hi:oklch(0.76 0.12 58);--onhi:oklch(0.22 0.02 50)}
html.t-sage body.section-culture{--bg:oklch(0.955 0.02 135);--ink:oklch(0.27 0.03 160);--muted:oklch(0.43 0.03 155);--accent:oklch(0.5 0.12 45);--onaccent:oklch(0.98 0.01 120);--line:oklch(0.87 0.025 135);--line2:oklch(0.79 0.035 135);--field:oklch(0.985 0.008 130);--panel:oklch(0.38 0.05 150);--onpanel:oklch(0.97 0.012 120);--panelmuted:oklch(0.88 0.02 130);--panelline:oklch(0.5 0.05 150);--hi:oklch(0.85 0.08 60);--onhi:oklch(0.27 0.03 160)}
html.t-royal body.section-culture{--bg:oklch(0.97 0.01 300);--ink:oklch(0.25 0.08 300);--muted:oklch(0.44 0.06 300);--accent:oklch(0.5 0.17 300);--onaccent:oklch(0.98 0.01 300);--line:oklch(0.89 0.02 300);--line2:oklch(0.81 0.035 300);--field:oklch(0.995 0.004 300);--panel:oklch(0.3 0.11 300);--onpanel:oklch(0.97 0.01 300);--panelmuted:oklch(0.86 0.03 300);--panelline:oklch(0.45 0.1 300);--hi:oklch(0.86 0.14 90);--onhi:oklch(0.25 0.08 300)}
html.t-nightgame body.section-culture{--bg:oklch(0.17 0.008 260);--ink:oklch(0.96 0.005 260);--muted:oklch(0.76 0.01 260);--accent:oklch(0.73 0.17 45);--onaccent:oklch(0.17 0.008 260);--line:oklch(0.29 0.01 260);--line2:oklch(0.4 0.01 260);--field:oklch(0.22 0.01 260);--panel:oklch(0.25 0.01 260);--onpanel:oklch(0.96 0.005 260);--panelmuted:oklch(0.78 0.01 260);--panelline:oklch(0.4 0.01 260);--hi:oklch(0.73 0.17 45);--onhi:oklch(0.17 0.008 260)}
.section-culture input::placeholder { color: var(--muted); }

.feed-hero {
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 22px;
}
.feed-crumbs {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.feed-here { color: var(--muted); }
.feed-hero-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}
.feed-hero-text { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.feed-hero-text h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 86px); line-height: 1.02;
  letter-spacing: -0.02em; margin: 0; overflow-wrap: anywhere;
}
.feed-hero-text p { font-size: 18px; line-height: 1.55; margin: 0; color: var(--muted); }
.feed-visit { color: var(--accent); font-weight: 500; white-space: nowrap; }

.feed-body {
  padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: flex-start;
}
.feed-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.feed-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--ink);
}
.feed-count { font-size: 15px; font-weight: 600; }
.feed-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.feed-chip {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--onaccent);
}
.feed-chip:hover { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.feed-entries { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed-entry {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.feed-num { font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 6px; }
.feed-entry-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feed-title {
  font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.2;
  text-wrap: pretty; overflow-wrap: anywhere;
}
.feed-meta { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.feed-channel { font-weight: 600; color: var(--muted); }
.feed-day {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.feed-go { font-weight: 500; color: var(--accent); }
.feed-go:hover { color: var(--ink); }

.feed-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.feed-block { display: flex; flex-direction: column; gap: 12px; }
.feed-label {
  font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.feed-cats { display: flex; flex-direction: column; }
.feed-cat {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500;
}
.feed-cat.sub { padding-left: 16px; font-weight: 400; }
.feed-cat[aria-current="page"] { color: var(--accent); font-weight: 600; }
.feed-cat-n { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.feed-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-pill {
  font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line2);
}
.feed-pill[aria-current="true"], .feed-pill[aria-current="true"]:hover {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.feed-archive {
  display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 6px;
  background: var(--panel); color: var(--onpanel); scroll-margin-top: 24px;
}
.feed-archive h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; }
.feed-archive p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--panelmuted); }
.feed-dates {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px; margin-top: 6px;
}
.feed-date {
  font-family: var(--mono); font-size: 12px; padding: 8px 6px; border-radius: 4px;
  border: 1px solid var(--panelline); color: var(--onpanel); text-align: center;
}
.feed-date:hover { color: var(--onpanel); border-color: var(--hi); }
.feed-date[aria-current="true"], .feed-date[aria-current="true"]:hover {
  background: var(--hi); color: var(--onhi); border-color: var(--hi);
}
.palette-pick { display: flex; gap: 8px; align-items: center; }
.palette-pick select {
  font: inherit; color: inherit; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line2); background: var(--field);
}

/* Pagination (view_all_books.cgi) */
.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-bottom: clamp(24px, 4vw, 48px);
}
.pager[hidden] { display: none; }
.pager-nums { display: flex; gap: 6px; flex-wrap: wrap; }
.pager-step, .pager-num {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; border-radius: 999px;
}
.pager-step { padding: 0 18px; border: 1px solid var(--chip-line); }
.pager-step[aria-disabled="true"] { color: var(--muted); opacity: 0.5; }
.pager-num { min-width: 44px; padding: 0 12px; color: var(--muted); }
.pager-num[aria-current="page"] { background: var(--ink); color: var(--bg); }
@media (max-width: 560px) {
  /* phones: page numbers on their own centered row, Previous / Next below */
  .pager-nums { order: -1; width: 100%; justify-content: center; }
}
