/* ------------------------------------------------------------------
   RedTop Daily - design tokens
   ------------------------------------------------------------------ */

:root {
    color-scheme: light;

    --red: #c8102e;
    --red-dark: #9c0c23;
    --red-soft: #fdecef;

    /* Brand red - fixed, does NOT flip with the theme.
       Used for the wordmark and the "Breaking" badge so they stay identical in dark mode. */
    --red-brand: #c8102e;

    --ink: #111114;
    --ink-soft: #3f3f47;
    --muted: #6f6f79;
    --paper: #fdfcf9;
    --surface: #ffffff;
    --surface-alt: #f3f1ec;
    --border: #e2dfd7;
    --border-strong: #cfcabf;
    --overlay: rgba(17, 17, 20, 0.55);

    /* Always-dark surfaces - these do NOT flip with the theme */
    --ink-fixed: #111114;
    --on-ink: #ffffff;
    --on-ink-muted: rgba(255, 255, 255, 0.7);
    --on-ink-faint: rgba(255, 255, 255, 0.5);
    --on-ink-border: rgba(255, 255, 255, 0.25);
    --on-ink-surface: rgba(255, 255, 255, 0.08);

    --games: #7c4dff;
    --anime: #ff4d94;
    --comics: #f0a500;
    --gadgets: #00c2d1;
    --tech: #5b6c8f;
    --ai: #12b76a;
    --computing: #ff6a00;

    --success: #12805c;
    --warning: #b25c00;
    --danger: #b3122b;

    --font-display: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-body: Georgia, "Iowan Old Style", "Times New Roman", serif;
    --font-ui: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --font-mono: "Cascadia Mono", Consolas, "Courier New", monospace;

    --step--1: clamp(0.78rem, 0.75rem + 0.15vw, 0.86rem);
    --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.03rem);
    --step-1: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
    --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
    --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
    --step-4: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);

    --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;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --container: 1240px;
    --container-narrow: 760px;

    --shadow-1: 0 1px 2px rgba(17, 17, 20, 0.06), 0 2px 8px rgba(17, 17, 20, 0.04);
    --shadow-2: 0 10px 30px rgba(17, 17, 20, 0.1);
    --shadow-3: 0 24px 60px rgba(17, 17, 20, 0.16);

    --dur: 180ms;
    --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

    --header-height: 64px;
}

[data-theme="dark"] {
    color-scheme: dark;

    --red: #ff3b52;
    --red-dark: #d3122f;
    --red-soft: #2a1116;

    --ink: #f4f2ec;
    --ink-soft: #cfccc3;
    --muted: #9d9a91;
    --paper: #0e0e11;
    --surface: #17171b;
    --surface-alt: #1f1f25;
    --border: #2b2b32;
    --border-strong: #3a3a43;
    --overlay: rgba(0, 0, 0, 0.65);

    /* Still dark, just lifted enough to read as a distinct band on --paper */
    --ink-fixed: #1f1f25;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-2: 0 12px 34px rgba(0, 0, 0, 0.55);
    --shadow-3: 0 28px 70px rgba(0, 0, 0, 0.65);
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --dur: 0ms;
    }
}
