/*
 * Spine Shelf: design tokens
 * A quiet, near-black reading room. Tall condensed serif titles that alternate roman and italic,
 * tiny uppercase mono labels wrapped in [ brackets ], hairline rules, square corners and a faint
 * film grain. The signature object is a shelf of drawn spines, each one a product or issue.
 * One muted celadon accent, used for a single word, a live dot or the main action.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=DM+Mono:wght@400;500&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: near-black, never pure black */
  --ss-night: #0c0c0b;
  --ss-night-2: #141412;
  --ss-night-3: #1c1b19;
  --ss-line: #2e2c28;
  --ss-line-strong: #4a4740;

  /* Text: warm paper tones on the dark */
  --ss-paper: #e6e0d2;
  --ss-soft: #a19b8e;
  --ss-faint: #6b665c;

  /* The one accent: muted celadon. A word, a dot, the main button */
  --ss-celadon: #9fbf9a;
  --ss-celadon-dark: #84a67f;
  --ss-celadon-ink: #10160f;

  /* Spine colors: only on drawn spines and covers, never on page chrome */
  --ss-spine-ochre: #b08a4a;
  --ss-spine-oxblood: #6e2d26;
  --ss-spine-slate: #3d4a52;
  --ss-spine-bone: #d9d0bd;
  --ss-spine-moss: #4b5a3a;

  /* Error */
  --ss-error: #d98a74;

  /* Type */
  --ss-display: "Instrument Serif", "Times New Roman", serif;
  --ss-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ss-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ss-text-hero: clamp(56px, 8.4vw, 128px);
  --ss-text-marquee: clamp(44px, 6.4vw, 92px);
  --ss-text-h2: clamp(38px, 5vw, 68px);
  --ss-text-h3: 28px;
  --ss-text-lead: 21px;
  --ss-text-body: 18px;
  --ss-text-small: 15px;
  --ss-text-label: 12px;
  --ss-tracking-display: -0.02em;
  --ss-tracking-label: 0.08em;

  /* Shape: square corners, hairlines, no shadows */
  --ss-radius: 0;
  --ss-border: 1px solid var(--ss-line);
  --ss-border-strong: 1px solid var(--ss-line-strong);
  --ss-focus: 0 0 0 1px var(--ss-celadon);

  /* Space */
  --ss-gutter: 16px;
  --ss-container: 1320px;
  --ss-narrow: 700px;
  --ss-section: clamp(72px, 10vw, 136px);
  --ss-space-1: 8px;
  --ss-space-2: 16px;
  --ss-space-3: 24px;
  --ss-space-4: 40px;
  --ss-space-5: 64px;

  /* Motion: slow and linear, like a slide projector */
  --ss-ease: cubic-bezier(.2, .7, .2, 1);
  --ss-marquee-speed: 48s;

  /* Film grain, drawn as SVG noise */
  --ss-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
