/**
 * Design tokens — the single source of truth for color, type, spacing and motion.
 * Values mirror the PaperOS rebrand in landing/src/assets/styles/_brand.scss.
 * Components should only ever reference these variables, never raw hex values,
 * so a future theme is a matter of overriding this block.
 */
:root {
  /* Surfaces */
  --color-bg: #fcf9f6;
  --color-bg-alt: #f6f0e2;
  --color-bg-soft: #faf5ea;
  --color-card: #ffffff;
  --color-rule: #ece2cc;

  /* Ink / text */
  --color-ink: #1a1a1a;
  --color-ink-2: #2a2a2a;
  --color-muted: #6e6a62;
  --color-muted-2: #8c8678;

  /* Primary (Paper yellow) */
  --color-primary: #f9be2f;
  --color-primary-deep: #d49c10;
  --color-primary-soft: #fde29a;
  --color-primary-wash: #fdf6e3;

  /* Accents */
  --color-moss: #699f81;
  --color-sand: #e3c399;
  --color-azure: #1a6bfe;
  --color-pine: #1f4435;
  --color-midnight: #0e2231;

  /* Status */
  --color-success: #2f8a5b;
  --color-success-wash: #e8f4ec;
  --color-error: #c2412d;
  --color-error-wash: #fbece8;

  /* Typography */
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans:
    'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;

  --text-xs: 0.8125rem; /* 13 */
  --text-sm: 0.9375rem; /* 15 */
  --text-md: 1.0625rem; /* 17 */
  --text-lg: 1.25rem; /* 20 */
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --text-3xl: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-body: 1.55;

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

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgb(26 26 26 / 0.04), 0 8px 24px rgb(26 26 26 / 0.05);
  --shadow-lift: 0 2px 4px rgb(26 26 26 / 0.05), 0 14px 32px rgb(26 26 26 / 0.08);
  --shadow-focus: 0 0 0 4px rgb(249 190 47 / 0.35);

  /* Layout */
  --content-width: 560px;
  --wide-width: 880px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Motion — every animation in the app pulls from these. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 560ms;
}
