/* ==========================================================================
   Curiosity OS — Design Tokens
   Design system: "Newsprint." Stark geometry (zero radius), high-contrast
   ink-on-paper with a single editorial red used sparingly, structural borders,
   and hard offset shadows. Light mode only. Craft rules from
   make-interfaces-feel-better still apply where they don't fight the system
   (tabular numbers, text-wrap, font smoothing, hit areas, reduced motion).
   ========================================================================== */

:root {
  /* — Type families — */
  --font-display: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* — Type scale: extreme hierarchy, viewport-dominating display — */
  --t-display: clamp(2.75rem, 1.6rem + 5vw, 5.5rem);
  --t-h1: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --t-h2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --t-h3: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-tiny: 0.8125rem;
  --t-micro: 0.6875rem;

  /* — Spacing (8px grid) — */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;

  /* — Radius: zero everywhere. Sharp 90° corners, no exceptions. — */
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;
  --r-xl: 0;
  --r-2xl: 0;
  --r-pill: 0;

  /* — Layout — */
  --measure: 46rem;
  --measure-read: 42rem;
  --measure-wide: 64rem;
  --measure-page: 75rem;
  --appbar-h: 3.75rem;
  --sidenav-w: 16rem;
  --bottombar-h: 4.25rem;
  --idea-bar-h: 3rem;
  --mobile-topbar-h: 3.25rem;

  /* — Motion: fast, snappy, mechanical — */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;

  /* — Colors: newsprint paper, ink black, one editorial red — */
  --bg: #f9f9f7;
  --bg-tint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23111111' fill-opacity='0.045' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'/%3E%3C/svg%3E");
  --surface: #f9f9f7;
  --surface-2: #f0f0ee;
  --surface-3: #e5e5e0;
  --ink: #111111;
  --ink-soft: #525252;
  --ink-faint: #737373;
  --accent: #cc0000;
  --accent-soft: #a30000;
  --accent-bg: #f0f0ee;
  --accent-ink: #f9f9f7;
  --line: #e5e5e0;
  --line-strong: #111111;
  --img-outline: rgba(0, 0, 0, 0.2);

  --shadow-border: 0 0 0 1px var(--ink);
  --shadow-border-hover: 0 0 0 1px var(--ink), 4px 4px 0 0 var(--ink);
  --shadow-pop: 0 0 0 1px var(--ink), 8px 8px 0 0 var(--ink);
}
