/* ccshelf website. "Shelf and loadouts": plugins are labelled items on a shelf, a profile is the
   loadout lifted off it for one terminal. System fonts only, no external requests. */

:root {
  --bg: #eef0ec;
  --surface: #f9faf7;
  --ink: #17201c;
  --muted: #4a5650;
  --line: #b9c1ba;
  --accent: #0c5a5e;
  --accent-ink: #ffffff;
  --tape: #f4c542;
  --tape-ink: #17201c;
  --board: #a99370;
  --board-ink: #17201c;
  --lift-shadow: none;
  --raise: #17201c;
  --raise-ink: #f9faf7;
  --card-on: #ffffff;
  --card-shadow: 0 10px 14px -8px rgba(23, 32, 28, 0.45);
  --term-bg: #121815;
  --term-ink: #dfe8e1;
  --term-dim: #93a39a;
  --term-line: #2c3832;
  --ok: #0b6b3a;
  --warn: #8a4b00;
  --bad: #9b2226;
  --focus: #0050c8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --gutter: 16px;
  /* radius scale: 3 badges, 6 controls and spines, 10 containers */
  --r-badge: 3px;
  --r-ctl: 6px;
  --r-box: 10px;
  --spine-w: 5rem;
  --spine-h: 13rem;
  --lift: -24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111513;
    --surface: #1a201d;
    --ink: #e6ebe6;
    --muted: #a0aba4;
    --line: #38423c;
    --accent: #6cc8c3;
    --accent-ink: #0d1412;
    --tape: #e8b93a;
    --tape-ink: #17201c;
    --board: #8a7552;
    --board-ink: #000000;
    --lift-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --raise: #e6ebe6;
    --raise-ink: #111513;
    --card-on: #26332e;
    --card-shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.75);
    --term-bg: #0a0d0c;
    --term-ink: #dfe8e1;
    --term-dim: #93a39a;
    --term-line: #26302b;
    --ok: #6fd39a;
    --warn: #f0b266;
    --bad: #ff9a9e;
    --focus: #8ab4ff;
  }
}
:root[data-theme="dark"] {
  --bg: #111513;
  --surface: #1a201d;
  --ink: #e6ebe6;
  --muted: #a0aba4;
  --line: #38423c;
  --accent: #6cc8c3;
  --accent-ink: #0d1412;
  --tape: #e8b93a;
  --tape-ink: #17201c;
  --board: #8a7552;
  --board-ink: #000000;
  --lift-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --raise: #e6ebe6;
  --raise-ink: #111513;
  --card-on: #26332e;
  --card-shadow: 0 12px 18px -6px rgba(0, 0, 0, 0.75);
  --term-bg: #0a0d0c;
  --term-ink: #dfe8e1;
  --term-dim: #93a39a;
  --term-line: #26302b;
  --ok: #6fd39a;
  --warn: #f0b266;
  --bad: #ff9a9e;
  --focus: #8ab4ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.55 var(--sans);
  overflow-x: hidden;
  font-variant-numeric: normal;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-badge); }
code, pre { font-family: var(--mono); }
code { font-size: 0.9em; background: color-mix(in srgb, var(--ink) 8%, transparent); padding: 0.08em 0.3em; border-radius: var(--r-badge); overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.015em; font-weight: 700; }
h3 { font-family: var(--sans); font-size: 1.05rem; line-height: 1.3; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol, dl { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 20; }
.skip:focus { top: 8px; }

/* header */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 97%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 56px; padding-block: 6px; }
.mark { display: inline-flex; align-items: center; gap: 8px; font: 700 1.2rem/1 var(--serif); color: var(--ink); text-decoration: none; margin-right: auto; }
.mark-ico .m-a { fill: var(--accent); }
.mark-ico .m-b { fill: var(--tape); stroke: var(--ink); stroke-width: 1.2; }
.mark-ico .m-board { fill: var(--board); }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 4px; list-style: none; }
.nav a { display: inline-block; padding: 8px 8px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { text-decoration: underline; }
.theme { font: inherit; font-size: 0.9rem; white-space: nowrap; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: var(--r-ctl); padding: 7px 10px; cursor: pointer; }
.theme:hover { border-color: var(--ink); }

/* hero: the bookcase. Picker, one row of upright spines on a plank, the terminal sitting on the plank. */
.hero { padding-block: 20px 16px; display: grid; gap: 16px; }
.hero-copy { display: grid; gap: 10px 48px; align-items: end; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); max-width: 20ch; }
.lede { font-size: 1.08rem; line-height: 1.5; margin: 0 0 12px; max-width: 40rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin: 0; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 11px 18px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 600; }
.btn:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.demo { min-width: 0; }
.picker { border: 0; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.picker legend { float: left; margin-right: 12px; padding: 0; font-weight: 600; font-size: 0.95rem; line-height: 44px; }
.picker label { display: inline-block; }
.picker input, .cat-status input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.picker span, .cat-status span { display: inline-block; padding: 8px 16px; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-ctl); font: 600 0.95rem/1.7 var(--mono); cursor: pointer; background: var(--surface); }
.picker input:checked + span, .cat-status input:checked + span { background: var(--tape); color: var(--tape-ink); border-color: var(--ink); }
.picker input:focus-visible + span, .cat-status input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The shelf. Yellow tape means loaded, nothing else on the page. */
.bookcase { background: color-mix(in srgb, var(--ink) 4%, var(--bg)); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-box) var(--r-box) 0 0; overflow: hidden; }
.row { display: flex; overflow-x: auto; overscroll-behavior-x: contain; padding-top: 6px; }
.plank { flex: none; display: flex; flex-direction: column; }
.plank-mcp { flex: 1 0 auto; border-left: 2px solid var(--ink); }
.items { list-style: none; display: flex; gap: 6px; padding: 12px 14px 0; margin: 0 0 0; flex: 1; align-items: flex-end; }
.plank-plugins .items { padding-top: calc(12px - var(--lift)); }
.plank-mcp .items { padding-top: calc(12px - var(--lift)); }
.plank-board { margin: 0; background: var(--board); color: var(--board-ink); font: 700 0.78rem/1.2 var(--sans); padding: 5px 14px; min-height: 22px; border-top: 1px solid rgba(0, 0, 0, 0.25); }
.item { flex: none; width: var(--spine-w); }
.spine { display: flex; flex-direction: column; height: var(--spine-h); border: 1.5px solid var(--line); border-bottom: 0; border-radius: var(--r-ctl) var(--r-ctl) 0 0; overflow: hidden; background: var(--surface); color: var(--muted); position: relative; }
.tape { display: block; flex: none; height: 12px; background: var(--line); position: relative; }
.tag { font: 700 0.7rem/1.2 var(--sans); padding: 6px 6px 0; }
.label { writing-mode: vertical-rl; align-self: center; flex: 1 1 auto; min-height: 0; padding: 8px 4px 10px; display: block; overflow-wrap: anywhere; }
.name { display: block; font: 600 0.82rem/1.3 var(--mono); margin-inline-start: 6px; }
.meta { display: block; font-size: 0.74rem; line-height: 1.3; }
/* On: lifted off the plank, tape lit. Protected: bolted down, never moves. */
.is-on .spine { transform: translateY(var(--lift)); background: var(--card-on); color: var(--ink); border-color: var(--accent); box-shadow: var(--lift-shadow); }
.is-on .tape { background: var(--tape); }
.is-on .meta { color: var(--muted); }
.is-protected .spine { background: var(--card-on); color: var(--ink); border-color: var(--ink); }
.is-protected .tape { background: var(--ink); }
.is-protected .tape::before, .is-protected .tape::after { content: ""; position: absolute; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--muted); }
.is-protected .tape::before { left: 8px; }
.is-protected .tape::after { right: 8px; }
.is-protected .meta { color: var(--muted); }
/* Before the first play, lifted spines wait on the plank; the script removes the class. */
.will-play .is-on .spine { transform: none; }
.will-play .is-on .tape { background: var(--line); }

.term { min-width: 0; background: var(--term-bg); color: var(--term-ink); border-radius: 0 0 var(--r-box) var(--r-box); overflow: hidden; border: 1px solid var(--term-line); border-top: 0; }
.term-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 14px; background: var(--term-line); font: 0.8rem/1.4 var(--mono); }
.term-sub { color: var(--term-dim); overflow-wrap: anywhere; }
.term-body { margin: 0; padding: 12px 14px; font-size: 0.82rem; line-height: 1.5; white-space: pre; overflow-x: auto; }
.term-type { padding-bottom: 4px; }
.term-warn { padding-block: 0 4px; color: #f0b266; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-warn[hidden] { display: none; }
#term-out.is-pending { visibility: hidden; }
.term-line { padding-top: 4px; padding-bottom: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-json { padding-top: 12px; }
.term .p { color: var(--tape); }
.caret { display: inline-block; width: 0.55em; height: 1.05em; vertical-align: text-bottom; background: var(--term-ink); margin-left: 1px; }
.caret.done { opacity: 0.4; }
.demo-note { color: var(--muted); font-size: 0.9rem; margin: 10px 0 8px; }
.status { max-width: 62ch; color: var(--muted); font-size: 0.92rem; border-left: 3px solid var(--line); padding-left: 12px; margin: 0; }
.status strong { color: var(--ink); }

/* sections */
.sec { padding-block: 56px 8px; display: grid; gap: 20px; border-top: 1px solid var(--line); margin-top: 40px; }
.sec-head h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
.sec-head p { margin: 12px 0 0; color: var(--muted); max-width: 32rem; }
.sec-body { min-width: 0; }
.prose p, .sec-body > p { max-width: 62ch; }
.prose h3, .sub { margin: 0 0 8px; }
.sub { margin-top: 28px; font-size: 1.1rem; }
.fine, .credit { color: var(--muted); font-size: 0.92rem; max-width: 62ch; }
.evidence { border-left: 3px solid var(--line); padding-left: 12px; font-size: 0.98rem; }
.two { display: grid; gap: 20px; margin-top: 28px; }
.more { margin-top: 20px; }

/* flow diagram */
.flow { display: grid; gap: 8px; align-items: stretch; }
.node { border: 1.5px solid var(--ink); border-radius: var(--r-box); background: var(--surface); padding: 14px; min-width: 0; }
.node h3 { margin-bottom: 6px; }
.node ul { list-style: none; font-size: 0.95rem; }
.node li { padding: 2px 0; }
.node-foot { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.node-tool { border: 2px solid var(--accent); }
.node-pair { display: grid; gap: 8px; }
.node-term { background: var(--term-bg); color: var(--term-ink); border-color: var(--term-bg); }
.node-term p { margin: 0 0 4px; font-size: 0.85rem; }
.node-term .node-foot { color: var(--term-dim); }
.node-term code { background: transparent; padding: 0; }
.arrow { position: relative; display: block; height: 28px; width: 2px; margin: 0 auto; background: var(--ink); }
.arrow::after { content: ""; position: absolute; left: -5px; bottom: -1px; border: 6px solid transparent; border-top: 9px solid var(--ink); border-bottom: 0; }

.steps { margin: 28px 0 0 1.4rem; max-width: 66ch; }
.steps li { margin-bottom: 0.8em; padding-left: 4px; }
.steps li::marker { font-weight: 700; color: var(--accent); }

/* one status vocabulary: a badge */
.badge, .chip, .stamp { display: inline-block; font: 700 0.78rem/1.3 var(--sans); padding: 1px 8px; border: 1.5px solid currentColor; border-radius: var(--r-badge); }
.s-active, .c-ok { color: var(--ok); }
.s-exp, .c-warn { color: var(--warn); }
.s-dep { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 1px; }

/* catalog: each entry echoes a spine, with a tape strip coloured by status */
.cat { margin: 24px 0; padding: 0; }
.cat figcaption { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; max-width: 62ch; }
.cat-tools { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; margin-bottom: 12px; }
.cat-tools[hidden] { display: none; }
.cat-search { display: grid; gap: 4px; font-weight: 600; font-size: 0.9rem; }
.cat-search input { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-ctl); padding: 8px 10px; min-height: 44px; min-width: min(100%, 260px); }
.cat-status { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cat-status legend { padding: 0; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; width: 100%; }
.cat-status label { display: inline-block; }
.cat-status span { padding: 5px 12px; min-height: 36px; font-size: 0.85rem; }
.entries { list-style: none; display: grid; gap: 12px; }
.entry { padding: 12px var(--gutter) 14px; background: var(--surface); border: 1.5px solid var(--line); border-top: 6px solid var(--line); border-radius: var(--r-ctl); }
.entry[data-status="active"] { border-top-color: var(--ok); }
.entry[data-status="experimental"] { border-top-color: var(--warn); }
.entry[data-status="deprecated"] { border-top-color: var(--bad); }
.entry[hidden] { display: none; }
.e-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.e-head h3 { font-family: var(--mono); font-size: 1rem; overflow-wrap: anywhere; }
.e-use { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-top: 10px; font-size: 0.95rem; }
.e-use dt, .e-meta dt { color: var(--muted); font-size: 0.85rem; }
.e-use dd, .e-meta dd { margin: 0; }
.e-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.e-meta div { display: flex; gap: 6px; }
.e-meta dd { font-variant-numeric: tabular-nums; }
.e-note { margin: 8px 0 0; font-size: 0.88rem; color: var(--muted); }
.cat-count { margin: 0 0 8px; font-size: 0.92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-count[hidden] { display: none; }
.cat-count.zero { color: var(--ink); font-weight: 600; padding: 10px var(--gutter); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-ctl); }

/* trust */
.rules { border-top: 2px solid var(--ink); }
.rules > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.rules dt { font-weight: 700; font-family: var(--serif); font-size: 1.15rem; }
.rules dd { margin: 0; max-width: 66ch; }
.protects { display: block; margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
.rules .badge { margin-left: 8px; vertical-align: 2px; }

/* platforms */
.targets { width: 100%; max-width: 34rem; border-collapse: collapse; margin-top: 8px; }
.targets caption { text-align: left; padding: 8px 0; color: var(--muted); font-size: 0.9rem; caption-side: top; }
.targets th, .targets td { text-align: left; padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: baseline; }
.targets thead th { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.targets tbody th { font-weight: 600; }

/* folded detail: command reference, platform table */
.fold { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: 16px; padding-bottom: 8px; max-width: 52rem; }
.fold > summary { cursor: pointer; padding: 12px 0; font-weight: 600; min-height: 44px; }
.fold[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* install */
.cmd { position: relative; max-width: 46rem; margin: 6px 0 12px; }
.cmd pre { margin: 0; background: var(--term-bg); color: var(--term-ink); border-radius: var(--r-ctl); padding: 14px; font-size: 0.88rem; line-height: 1.6; overflow-x: auto; }
/* with a copy button the box is a row: the code scrolls on the left, the button never covers it */
.cmd.has-copy { display: flex; align-items: flex-start; gap: 6px; background: var(--term-bg); border-radius: var(--r-ctl); }
.cmd.has-copy pre { flex: 1 1 auto; min-width: 0; background: transparent; padding-right: 6px; }
.cmd pre code { background: transparent; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
.copy { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 6px 6px 0 0; padding: 0; background: transparent; color: var(--term-dim); border: 1.5px solid var(--term-dim); border-radius: var(--r-ctl); cursor: pointer; }
.copy[hidden] { display: none; }
.copy:hover { color: var(--term-ink); border-color: var(--term-ink); }
.copy-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy .ico-done, .copy.copied .ico-copy { display: none; }
.copy.copied .ico-done { display: block; }
.copy.copied { color: var(--term-ink); border-color: var(--term-ink); }
.copy:focus-visible { outline-color: #8ab4ff; }

/* commands */
.cmds, .codes { max-width: 52rem; border-top: 2px solid var(--ink); }
.fold .cmds, .fold .codes { border-top: 1px solid var(--line); }
.cmds > div, .codes > div { display: grid; gap: 2px 20px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cmds dt, .codes dt { font-weight: 600; }
.cmds dd, .codes dd { margin: 0; }
.codes dt { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* faq */
.faq { max-width: 52rem; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; margin-left: 1.2rem; }
.faq details p { margin: 0 0 14px 1.2rem; max-width: 62ch; }

/* footer */
.foot { margin-top: 64px; padding-block: 28px 40px; border-top: 2px solid var(--ink); background: var(--surface); }
.foot p { max-width: 62ch; margin-bottom: 0.7em; }

/* wider screens */
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .two { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cmds > div { grid-template-columns: 15rem 1fr; }
  .codes > div { grid-template-columns: 5rem 1fr; }
  .flow { grid-template-columns: 1fr 36px 1fr 36px 1fr; }
  .arrow { width: 100%; height: 2px; margin: auto 0; }
  .arrow::after { left: auto; right: -1px; bottom: -5px; border: 6px solid transparent; border-left: 9px solid var(--ink); border-right: 0; border-top-color: transparent; }
}
@media (min-width: 900px) {
  .hero-copy { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .term-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .term-col2 { border-left: 1px solid var(--term-line); }
}
@media (min-width: 1000px) {
  .hero { padding-block: 24px 16px; }
  .sec { grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 48px; }
  .sec-head { position: sticky; top: 80px; align-self: start; }
}
@media (max-width: 600px) {
  :root { --spine-w: 4.4rem; --spine-h: 12.75rem; }
  .bar { position: static; }
  .bar-in { gap: 0 8px; }
  .nav { order: 3; width: 100%; }
  .nav ul { gap: 0 2px; }
  .nav a { padding: 10px; min-height: 44px; }
  .nav .opt { display: none; }
  .picker legend { float: none; width: 100%; line-height: 1.4; margin-bottom: 8px; }
  .e-use { grid-template-columns: 1fr; }
  .items { padding-inline: 10px; }
}
@media (max-width: 399px) {
  .nav .opt2 { display: none; }
  .nav { order: 0; width: auto; flex: 1 1 auto; }
  .nav a { padding-inline: 6px; }
  .nav ul { justify-content: flex-end; }
  .theme { font-size: 0.8rem; padding: 6px 8px; }
}
@media (max-width: 359px) {
  .nav .opt3 { display: none; }
}

/* Motion is opt-in: nothing moves when the visitor asks for reduced motion. One orchestrated
   moment: picked spines rise off the plank and their tape lights up; masked spines settle down. */
@media (prefers-reduced-motion: no-preference) {
  .spine { transition: transform 0.3s ease-out, background-color 0.3s ease, border-color 0.3s ease; }
  .tape { transition: background-color 0.3s ease; }
  .items .item:nth-child(2) .spine { transition-delay: 0.04s; }
  .items .item:nth-child(3) .spine { transition-delay: 0.08s; }
  .items .item:nth-child(4) .spine { transition-delay: 0.12s; }
  .items .item:nth-child(5) .spine { transition-delay: 0.16s; }
  .items .item:nth-child(6) .spine { transition-delay: 0.2s; }
  .items .item:nth-child(7) .spine { transition-delay: 0.24s; }
  .caret { animation: blink 1.1s steps(2, start) infinite; }
  .caret.done { animation: none; }
}
@keyframes blink { to { visibility: hidden; } }
@media print {
  .bar, .theme, .copy { display: none; }
  body { background: #fff; color: #000; }
}

/* 404 page: the shelf mark and one empty spine on a plank */
.lost { padding-block: 72px; max-width: 40rem; }
.lost h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); margin-bottom: 16px; }
.lost-shelf { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.lost-shelf .plank { flex: none; }
.lost-shelf .items { padding: 0 12px; flex: none; }
.lost-shelf .spine { height: 7rem; }
.lost-shelf .plank-board { min-height: 12px; padding: 0; width: 100%; }
