/* Books Done Now: shared world. A station departure board for your books: matte black flap faces, white painted
   letters in fixed cells, a steel frame, amber lamps for "needs you", green for done. Light sections are the printed
   timetable on the concourse wall: cool paper, black ink, ruled rows. */
:root {
  --ink: #0b0d10;          /* the board */
  --face: #15191f;         /* flap face, top half */
  --face-2: #1b2028;       /* flap face, bottom half */
  --steel: #2a3039;        /* frame and rules on dark */
  --steel-hi: #9aa4b2;     /* secondary text on dark (6.9:1) */
  --paint: #f3f5f7;        /* flap letters */
  --amber: #ffb81c;        /* lamps, the special, the main action */
  --amber-deep: #e59c00;
  --go: #3ddc84;           /* done */
  --stop: #ff6b5e;         /* problems */
  --paper: #eef1f4;        /* timetable paper */
  --paper-2: #e2e7ed;
  --paper-ink: #0b0d10;
  --paper-muted: #46505e;  /* secondary text on paper (7.6:1) */
  --rule: #c3cbd5;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --r: 6px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--paper-ink); background: var(--paper); font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.005em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--amber); color: var(--ink); padding: 10px 14px; z-index: 99; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }
.dark { background: var(--ink); color: var(--paint); }
.dark ::selection { background: var(--amber); color: var(--ink); }

/* buttons: amber is the one action; the ghost button is everything else */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: var(--r);
  border: 2px solid transparent; font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease); }
.btn:active { transform: translateY(1px); }
.btn.go { background: var(--amber); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(255, 184, 28, 0.7); }
.btn.go:hover { background: #ffc645; box-shadow: 0 10px 26px -10px rgba(255, 184, 28, 0.85); }
.btn.ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn.ghost:hover { background: rgba(127, 140, 155, 0.12); }
.btn[disabled], .btn.busy { opacity: 0.6; cursor: progress; }
.btn svg { width: 18px; height: 18px; }

/* split-flap cells: every character in its own cell, split across the middle like the real hinge */
.flaps { display: inline-flex; gap: 0.09em; font-family: var(--display); font-weight: 700; line-height: 1; }
.cell { position: relative; display: inline-grid; place-items: center; width: 0.74em; height: 1.16em; border-radius: 0.09em;
  background: linear-gradient(to bottom, var(--face) 0 49%, #050608 49% 51%, var(--face-2) 51%); color: var(--paint);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0.06em 0.12em rgba(0, 0, 0, 0.55); }
.cell.blank { color: transparent; }
.cell.flip { animation: flick 110ms var(--ease); }
@keyframes flick { 0% { transform: scaleY(0.35); filter: brightness(1.8); } 100% { transform: none; filter: none; } }
.t-go .cell { color: var(--go); }
.t-amber .cell { color: var(--amber); }
.t-stop .cell { color: var(--stop); }
.t-dim .cell { color: #9aa4b2; }   /* MONTH OPEN, NOT YET: dimmer than the live rows, still 7:1 on the flap face (KJ 11/22: could not read #6d7684) */

/* row lamps */
.lamp { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3a414c; box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.5); flex: none; }
.lamp.go { background: var(--go); box-shadow: 0 0 10px 1px rgba(61, 220, 132, 0.55); }
.lamp.amber { background: var(--amber); box-shadow: 0 0 10px 1px rgba(255, 184, 28, 0.6); }
.lamp.stop { background: var(--stop); box-shadow: 0 0 10px 1px rgba(255, 107, 94, 0.5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
