/* ====================================================================
   ActBook Studio — Boutique Editorial Publishing & Cinema Design Tokens
   Warm paper-and-ink palette. Zero neon gradients, zero AI clichés.
   ==================================================================== */

:root {
  /* Warm Paper & Ivory Surfaces */
  --bg-canvas: #FAF8F5;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F3EFE8;
  --bg-surface-hover: #F7F4EE;

  /* Borders */
  --border-hairline: #E6E0D5;
  --border-strong: #CFC6B8;

  /* Ink Typography Colors */
  --text-primary: #18181B;
  --text-secondary: #44403C;
  --text-muted: #78716C;
  --text-inverse: #FFFFFF;

  /* Warm Terracotta / Brass Editorial Accent */
  --accent-primary: #9A3412;
  --accent-primary-hover: #7C2D12;
  --accent-primary-subtle: #FFF7ED;
  --accent-primary-border: #FDBA74;
  --accent-brass: #B45309;

  /* Semantic States */
  --status-verified: #15803D;
  --status-verified-bg: #F0FDF4;
  --status-verified-border: #BBF7D0;

  --status-gate: #B45309;
  --status-gate-bg: #FFFBEB;
  --status-gate-border: #FDE68A;

  --status-danger: #B91C1C;
  --status-danger-bg: #FEF2F2;
  --status-danger-border: #FECACA;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(24, 24, 27, 0.05);
  --shadow-elevated: 0 12px 32px -6px rgba(24, 24, 27, 0.12), 0 2px 6px -1px rgba(24, 24, 27, 0.04);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Heebo", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", "Frank Ruhl Libre", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;

  /* Touch & Layout */
  --touch-min: 44px;
  --container-max: 1140px;
}

:root[data-theme="dark"] {
  --bg-canvas: #111113;
  --bg-surface: #18181B;
  --bg-surface-subtle: #27272A;
  --bg-surface-hover: #2E2E32;
  --border-hairline: #27272A;
  --border-strong: #3F3F46;
  --text-primary: #FAF8F5;
  --text-secondary: #D4D4D8;
  --text-muted: #A1A1AA;
  --text-inverse: #FFFFFF;
  --accent-primary: #D97706;
  --accent-primary-hover: #B45309;
  --accent-primary-subtle: rgba(217, 119, 6, 0.14);
  --accent-primary-border: rgba(217, 119, 6, 0.42);
  --status-verified: #22C55E;
  --status-verified-bg: rgba(34, 197, 94, 0.14);
  --status-verified-border: rgba(34, 197, 94, 0.35);
  --status-gate: #F59E0B;
  --status-gate-bg: rgba(245, 158, 11, 0.14);
  --status-gate-border: rgba(245, 158, 11, 0.35);
  --status-danger: #EF4444;
  --status-danger-bg: rgba(239, 68, 68, 0.14);
  --status-danger-border: rgba(239, 68, 68, 0.35);
  --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 12px 32px -6px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: clip;
  padding-block-end: 6rem;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
