/* Shared by every room that draws on cabinet colours and type. Load before cabinet.css / game.css. */
  /* The ʻokina (U+02BB, as in Hōkūleʻa) for fonts without it (D-147) */
@font-face { font-family: "Cabinet Okina"; src: url("fonts/okina.woff2") format("woff2"); unicode-range: U+02BB; font-display: swap; }
:root {
    --wood-0: #120c08;
    --wood-1: #1c130d;
    --wood-2: #2b1d13;
    --wood-edge: #3e2b1c;
    --velvet-0: #0f1a15;
    --velvet-1: #18291f;
    --paper-0: #f5ecd8;
    --paper-1: #e8d9b9;
    --ink: #2b1e13;
    --ink-soft: #6b5640;
    --cream: #efe3c8;
    --cream-soft: #b8a689;
    --brass: #c9a14a;
    --brass-hi: #ecc96f;
    --brass-lo: #7d5f24;
    --fancy: #b998f5;
    --fancy-lo: #6e4fb3;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "P052", "URW Palladio L", "Book Antiqua", Georgia, "Cabinet Okina", 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%),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 9px),
      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; }
  button { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wrap { max-width: 1340px; 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: 80ch; margin: 12px 0 0; color: #dccdb0; font-size: 1.06rem; }
  .cabinet {
    list-style: none; margin: 0; padding: 0; position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 34px 18px;
  }
  .cabinet li { display: flex; }
  .strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible;
    filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, .6)); }
  .specimen {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%;
    padding: 14px 12px 14px; border: 0; border-radius: 3px; gap: 5px; cursor: pointer; text-align: center;
    color: var(--ink); background: linear-gradient(180deg, var(--paper-0), var(--paper-1));
    transform: rotate(var(--tilt, 0deg));
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 2px 3px rgba(0,0,0,.45), 0 14px 26px -14px rgba(0,0,0,.9);
    transition: opacity .35s ease, filter .35s ease, box-shadow .2s ease;
  }
  .specimen::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(43, 30, 19, .22); border-radius: 2px; pointer-events: none; }
  .specimen:hover { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 0 0 2px rgba(236,201,111,.55), 0 18px 30px -14px rgba(0,0,0,.95); }
  .specimen:focus-visible { outline-offset: 5px; }
  .specimen { scroll-margin-top: 22px; }
  .icon { display: block; width: 48px; height: 48px; margin: 2px 0 0; color: #4a3523; }
  .icon svg, .l-icon svg, .end svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .name { font-size: 1.06rem; line-height: 1.15; font-weight: 600; overflow-wrap: anywhere; hyphens: auto; }
  .specimen[data-link="fact"] { box-shadow: 0 0 0 2px rgba(236,201,111,.8), 0 14px 26px -14px rgba(0,0,0,.9); }
  .specimen[data-link="fancy"] { box-shadow: 0 0 0 2px rgba(185,152,245,.85), 0 14px 26px -14px rgba(0,0,0,.9); }
  .split { margin: 0 0 12px; padding: 14px 16px 4px; border-radius: 4px; border: 1px solid rgba(185,152,245,.35); background: rgba(185,152,245,.06); }
  .sources { margin-top: 16px; padding-top: 12px; border-top: 1px dashed #4a3626; }
  .sources ul { margin: 0; padding: 0 0 0 18px; font-size: .9rem; }
  .sources li { margin: 3px 0; color: var(--cream-soft); }
  .sources .site { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: #9a876b; }
  .sources a .site { display: inline-block; text-decoration: none; }
  footer { padding: 6px 0 40px; color: #9a876b; font-size: .88rem; }
  footer p { margin: 0; max-width: 80ch; }
  @media (max-width: 760px) {
    .wrap { padding: 0 16px; }
    .masthead { padding-top: 26px; }
    .cabinet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }
  [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
  @media print {
    @page { margin: 16mm 15mm; }
    *, *::before, *::after { color: #000 !important; background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
    :root { color-scheme: light; }
    html, body { background: #fff !important; }
    body { font-size: 10.5pt; }
    .rooms, .toolbar, .tours, .board, .candle-dark, .ledger-top, .walk-next-h, .walk-next, .walk-tools, .entry-link, [data-action], .lede, footer { display: none !important; }
    .wrap { max-width: none; padding: 0; }
    .masthead { padding: 0 0 8pt; }
    h1 { font-size: 20pt; }
    a { text-decoration: none; }
    h2, h3 { break-after: avoid; }
  }
