  /* The Catalogue: the museum as one plain list. Same palette as cabinet.css; prints black on white. */
  :root {
    --wood-0: #120c08;
    --wood-1: #1c130d;
    --wood-edge: #3e2b1c;
    --cream: #efe3c8;
    --cream-soft: #b8a689;
    --brass: #c9a14a;
    --brass-hi: #ecc96f;
    --brass-lo: #7d5f24;
    --fancy: #b998f5;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "P052", "URW Palladio L", "Book Antiqua", Georgia, serif;
    --mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0; min-height: 100vh; color: var(--cream); font-family: var(--serif); line-height: 1.5;
    background-color: var(--wood-0);
    background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 161, 74, .14), transparent 70%), linear-gradient(180deg, var(--wood-1), var(--wood-0) 60%);
    background-attachment: fixed;
  }
  a { color: var(--brass-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
  a:hover { color: #fff1c9; }
  :focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
  [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

  .wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
  .masthead { padding: 28px 0 18px; }
  .eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-soft); }
  h1 { margin: 0; font-weight: 400; line-height: 1.02; letter-spacing: -.01em; font-size: clamp(2.1rem, 5vw, 3.7rem); }
  h1 em { color: var(--brass-hi); }
  .lede { max-width: 72ch; margin: 12px 0 0; color: #dccdb0; font-size: 1.06rem; }
  .counts { margin: 12px 0 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--cream-soft); }

  .cat-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 22px; padding: 16px 0; border-top: 1px solid var(--wood-edge); border-bottom: 1px solid var(--wood-edge); }
  .field { display: grid; gap: 4px; font-size: .92rem; color: #dccdb0; }
  .cat-tools input, .cat-tools select { font: inherit; font-size: 1rem; color: var(--cream); background: #1d140d; border: 1px solid var(--brass-lo); border-radius: 6px; padding: 7px 10px; }
  .cat-tools input { width: min(320px, 80vw); }
  .shown { margin: 0 0 8px; font-family: var(--mono); font-size: .76rem; color: var(--cream-soft); }

  .group { margin-top: 26px; }
  .group h2, .walks h2 { margin: 0; font-weight: 400; font-size: 1.6rem; line-height: 1.15; color: var(--cream); }
  .group h2 .n { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--cream-soft); margin-left: .4em; }
  .group-lede { margin: 6px 0 0; color: #dccdb0; max-width: 72ch; }
  .entries { list-style: none; margin: 10px 0 0; padding: 0; }
  .entry { padding: 18px 0; border-top: 1px solid var(--wood-edge); }
  .entry-h { margin: 0; font-weight: 400; font-size: 1.3rem; color: var(--cream); scroll-margin-top: 12px; }
  .entry-meta { margin: 2px 0 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .03em; color: var(--cream-soft); }
  .entry-meta .date { color: var(--brass-hi); }
  .teaser { font-style: italic; color: #dccdb0; }
  .melody { font-size: .92rem; }
  .entry p { max-width: 72ch; }
  .facts { margin: 10px 0 0; }
  .facts dt { margin-top: 10px; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-soft); }
  .facts dd { margin: 4px 0 0; }
  .threads, .sources, .steps { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
  .threads .kind { font-family: var(--mono); font-size: .76rem; color: var(--brass-hi); }
  .threads .fancy .kind { color: var(--fancy); }
  .to, .site { color: var(--cream-soft); }
  a .site { display: inline-block; text-decoration: none; }
  .walks { margin-top: 34px; }
  .steps { margin-top: 8px; }
  .steps .kind { color: var(--cream-soft); }
  .none { margin: 24px 0; color: #dccdb0; }

  footer { padding: 24px 0 40px; color: #9a876b; font-size: .88rem; }
  footer p { margin: 0; max-width: 80ch; }

  @media (max-width: 760px) {
    .wrap { padding: 0 16px; }
    .group h2, .walks h2 { font-size: 1.35rem; }
  }

  /* ---------- print: a clean black-on-white list with the source addresses written out ---------- */
  @media print {
    @page { margin: 16mm 15mm; }
    :root { color-scheme: light; }
    body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.4; }
    .rooms, .cat-tools, noscript { display: none !important; }
    .wrap { max-width: none; padding: 0; }
    .masthead { padding: 0 0 6pt; }
    h1, h1 em, .eyebrow, .lede, .counts, .group h2, .walks h2, .group-lede, .entry-h, .entry-meta, .entry-meta .date,
    .group h2 .n, .teaser, .facts dt, .threads .kind, .threads .fancy .kind, .to, .site, .steps .kind, footer { color: #000; }
    h1 { font-size: 26pt; }
    a { color: #000; text-decoration: none; }
    .sources a[href^="http"]::after { content: " <" attr(href) ">"; font-family: var(--mono); font-size: 8pt; word-break: break-all; }
    .group, .walks { margin-top: 14pt; }
    .group + .group, .walks { break-before: page; }
    h2, h3, .facts dt { break-after: avoid; }
    .entry { padding: 8pt 0; border-top: .5pt solid #999; break-inside: avoid; }
    .entry p { max-width: none; margin: 4pt 0; }
    footer { padding: 12pt 0 0; font-size: 9pt; }
  }
