/**
 * =========================================================
 * Name Style Font - Core Design Tokens
 * Version: 3.2.0
 * =========================================================
 * Main palette: Navy, Royal Blue, Violet accent
 * Clean, modern and trustworthy for English-speaking
 * audiences.
 * Preserves NSF token names and framework structure.
 * Supports light, dark, and system themes.
 * =========================================================
 */

:root {
    /* BRAND */

    --nsf-brand-name: "Name Style Font";

    --nsf-clr-white: #FFFFFF;
    --nsf-clr-black: #000000;
    --nsf-clr-transparent: transparent;

    /* PRIMARY BRAND PALETTE */

    --nsf-clr-primary: #1D4ED8;
    --nsf-clr-primary-hover: #1E40AF;
    --nsf-clr-primary-active: #1E3A8A;
    --nsf-clr-primary-soft: #EAF1FF;
    --nsf-clr-primary-subtle: #F5F8FF;
    --nsf-clr-primary-contrast: #FFFFFF;

    --nsf-clr-accent: #6D28D9;
    --nsf-clr-accent-soft: #F1EAFE;

    /* SECONDARY + GRADIENTS */

    --nsf-clr-secondary: #7C3AED;
    --nsf-clr-secondary-soft: #F1EAFE;
    --nsf-clr-link: var(--nsf-clr-primary);
    --nsf-clr-selection: rgba(29, 78, 216, 0.18);

    --nsf-gradient-primary: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    --nsf-gradient-soft: linear-gradient(135deg, #EAF1FF 0%, #F5F8FF 100%);
    --nsf-gradient-text: linear-gradient(135deg, #1D4ED8 0%, #1D4ED8 100%);

    /* TEXT */

    --nsf-clr-text: #2B3A55;
    --nsf-clr-text-strong: #0B1B3B;
    --nsf-clr-text-muted: #64748B;
    --nsf-clr-text-soft: #94A3B8;
    --nsf-clr-text-inverse: #FFFFFF;

    --nsf-clr-heading: #0B1B3B;

    /* SURFACE */

    --nsf-clr-background: #FFFFFF;
    --nsf-clr-surface: #FFFFFF;
    --nsf-clr-surface-soft: #F5F8FF;
    --nsf-clr-surface-muted: #EAF1FF;
    --nsf-clr-surface-elevated: #FFFFFF;

    /* BORDER */

    --nsf-clr-border: #E2E8F0;
    --nsf-clr-border-soft: #EEF2F7;
    --nsf-clr-border-strong: #CBD5E1;
    --nsf-clr-border-hover: #93C5FD;

    /* STATUS COLORS
       Status colors are functional, not brand colors.
       Danger is a functional red, separate from the brand. */

    --nsf-clr-success: #16A34A;
    --nsf-clr-success-hover: #15803D;
    --nsf-clr-success-contrast: #FFFFFF;
    --nsf-clr-success-soft: #DCFCE7;

    --nsf-clr-warning: #A86408;
    --nsf-clr-warning-hover: #8B5005;
    --nsf-clr-warning-soft: #FFF6DF;

    --nsf-clr-danger: #DC2626;
    --nsf-clr-danger-hover: #B91C1C;
    --nsf-clr-danger-contrast: #FFFFFF;
    --nsf-clr-danger-soft: #FEF2F2;

    --nsf-clr-info: #0284C7;
    --nsf-clr-info-soft: #E0F2FE;

    /* FORM / INTERACTION */

    --nsf-clr-focus-ring: rgba(29, 78, 216, 0.30);
    --nsf-focus-ring: var(--nsf-clr-focus-ring);
    --nsf-focus-border: var(--nsf-clr-primary);

    /* TYPOGRAPHY */

    --nsf-font-family:
        "Plus Jakarta Sans",
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --nsf-font-family-heading:
        "Sora",
        "Plus Jakarta Sans",
        ui-sans-serif,
        system-ui,
        sans-serif;

    --nsf-font-family-mono:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;

    --nsf-font-size-xs: 12px;
    --nsf-font-size-sm: 14px;
    --nsf-font-size-md: 16px;
    --nsf-font-size-lg: 18px;
    --nsf-font-size-xl: 20px;
    --nsf-font-size-2xl: 24px;
    --nsf-font-size-3xl: 30px;
    --nsf-font-size-4xl: 36px;
    --nsf-font-size-5xl: 48px;
    --nsf-font-size-6xl: 60px;

    --nsf-font-weight-normal: 400;
    --nsf-font-weight-medium: 500;
    --nsf-font-weight-semibold: 600;
    --nsf-font-weight-bold: 700;
    --nsf-font-weight-extrabold: 800;

    --nsf-line-height-none: 1;
    --nsf-line-height-tight: 1.2;
    --nsf-line-height-snug: 1.35;
    --nsf-line-height-normal: 1.5;
    --nsf-line-height-relaxed: 1.7;
    --nsf-line-height-loose: 1.9;

    --nsf-heading-letter-spacing: -0.025em;

    --nsf-letter-spacing-tight: -0.04em;
    --nsf-letter-spacing-normal: 0;
    --nsf-letter-spacing-wide: 0.04em;
    --nsf-letter-spacing-wider: 0.08em;

    /* SPACING */

    --nsf-space-0: 0;
    --nsf-space-1: 4px;
    --nsf-space-2: 8px;
    --nsf-space-3: 12px;
    --nsf-space-4: 16px;
    --nsf-space-5: 20px;
    --nsf-space-6: 24px;
    --nsf-space-7: 28px;
    --nsf-space-8: 32px;
    --nsf-space-9: 36px;
    --nsf-space-10: 40px;
    --nsf-space-12: 48px;
    --nsf-space-14: 56px;
    --nsf-space-16: 64px;
    --nsf-space-20: 80px;
    --nsf-space-24: 96px;

    /* CONTAINERS */

    --nsf-container-xs: 480px;
    --nsf-container-sm: 640px;
    --nsf-container-md: 768px;
    --nsf-container-lg: 960px;
    --nsf-container-xl: 1200px;
    --nsf-container-2xl: 1400px;
    --nsf-container-page: 1200px;

    --nsf-container-max-width: var(--nsf-container-page);
    --nsf-container-padding: 16px;
    --nsf-content-width: 760px;

    /* RADIUS */

    --nsf-radius-none: 0;
    --nsf-radius-sm: 8px;
    --nsf-radius-md: 12px;
    --nsf-radius-lg: 16px;
    --nsf-radius-xl: 20px;
    --nsf-radius-2xl: 26px;
    --nsf-radius-3xl: 28px;
    --nsf-radius-full: 9999px;

    /* SHADOWS */

    --nsf-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
    --nsf-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.07);
    --nsf-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
    --nsf-shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.12);

    --nsf-shadow-primary: 0 14px 34px rgba(29, 78, 216, 0.20);

    /* TRANSITIONS */

    --nsf-transition-fast: 120ms ease;
    --nsf-transition-normal: 180ms ease;
    --nsf-transition-slow: 280ms ease;

    /* Z-INDEX */

    --nsf-z-base: 1;
    --nsf-z-dropdown: 100;
    --nsf-z-sticky: 500;
    --nsf-z-overlay: 900;
    --nsf-z-modal: 1000;
    --nsf-z-toast: 1100;

    /* LEGACY COMPATIBILITY */

    --border: var(--nsf-clr-border);
    --bg: var(--nsf-clr-background);
    --surface: var(--nsf-clr-surface);
    --text: var(--nsf-clr-text);
    --text-muted: var(--nsf-clr-text-muted);

    --nsf-primary-color: var(--nsf-clr-primary);
    --nsf-primary-hover: var(--nsf-clr-primary-hover);
    --nsf-button-primary-text: var(--nsf-clr-primary-contrast);

    --nsf-surface: var(--nsf-clr-surface);
    --nsf-surface-hover: var(--nsf-clr-surface-hover);

    --nsf-text-primary: var(--nsf-clr-text);
    --nsf-text-secondary: var(--nsf-clr-text-muted);
    --nsf-clr-text-secondary: var(--nsf-clr-text-muted);

    --nsf-border-color: var(--nsf-clr-border);
    --nsf-border-hover: var(--nsf-clr-border-strong);
    --nsf-border-width: 1px;
    --nsf-border-width-strong: 2px;

    --nsf-focus-color: var(--nsf-clr-primary);

    --nsf-danger-color: var(--nsf-clr-danger);
    --nsf-danger-hover: var(--nsf-clr-danger-hover);
    --nsf-danger-text: var(--nsf-clr-danger-contrast);

    --nsf-success-color: var(--nsf-clr-success);

    --nsf-clr-surface-hover: var(--nsf-clr-surface-soft);

    color-scheme: light;
}

/* =========================================================
   DARK THEME (deep navy, blue and violet accents)
   ========================================================= */

[data-theme="dark"] {
    color-scheme: dark;

    /* BRAND */

    --nsf-clr-primary: #60A5FA;
    --nsf-clr-primary-hover: #93C5FD;
    --nsf-clr-primary-active: #3B82F6;

    --nsf-clr-primary-soft: #15294F;
    --nsf-clr-primary-subtle: #10203F;
    --nsf-clr-primary-contrast: #071126;

    --nsf-clr-accent: #A78BFA;
    --nsf-clr-accent-soft: #15294F;

    --nsf-clr-secondary: #A78BFA;
    --nsf-clr-secondary-soft: #2A2150;
    --nsf-clr-selection: rgba(96, 165, 250, 0.30);
    --nsf-gradient-primary: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    --nsf-gradient-soft: linear-gradient(135deg, #0F1A33 0%, #0A1224 100%);
    --nsf-gradient-text: linear-gradient(135deg, #60A5FA 0%, #60A5FA 100%);

    /* TEXT */

    --nsf-clr-text: #E6ECF8;
    --nsf-clr-text-strong: #FFFFFF;
    --nsf-clr-text-muted: #9FB0CF;
    --nsf-clr-text-soft: #7889AB;
    --nsf-clr-text-inverse: #071126;

    --nsf-clr-heading: #FFFFFF;

    /* SURFACE */

    --nsf-clr-background: #0A1224;
    --nsf-clr-surface: #0F1A33;
    --nsf-clr-surface-soft: #14213F;
    --nsf-clr-surface-muted: #1B2A4D;
    --nsf-clr-surface-elevated: #122044;

    /* BORDER */

    --nsf-clr-border: #22345C;
    --nsf-clr-border-soft: #17264A;
    --nsf-clr-border-strong: #2F4573;
    --nsf-clr-border-hover: #3B6BD6;

    /* STATUS */

    --nsf-clr-success: #4ADE80;
    --nsf-clr-success-hover: #86EFAC;
    --nsf-clr-success-contrast: #052E16;
    --nsf-clr-success-soft: #0F2A1B;

    --nsf-clr-warning: #F2BD65;
    --nsf-clr-warning-hover: #FFD18A;
    --nsf-clr-warning-soft: #302817;

    --nsf-clr-danger: #F87171;
    --nsf-clr-danger-hover: #FCA5A5;
    --nsf-clr-danger-contrast: #FFFFFF;
    --nsf-clr-danger-soft: #3A1519;

    --nsf-clr-info: #38BDF8;
    --nsf-clr-info-soft: #0C2A3D;

    /* FORM / INTERACTION */

    --nsf-clr-focus-ring: rgba(96, 165, 250, 0.40);
    --nsf-focus-ring: var(--nsf-clr-focus-ring);
    --nsf-focus-border: var(--nsf-clr-primary);

    /* SHADOWS */

    --nsf-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
    --nsf-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.38);
    --nsf-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.42);
    --nsf-shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.48);

    --nsf-shadow-primary: 0 14px 34px rgba(96, 165, 250, 0.22);

    /* LEGACY */

    --border: var(--nsf-clr-border);
    --bg: var(--nsf-clr-background);
    --surface: var(--nsf-clr-surface);
    --text: var(--nsf-clr-text);
    --text-muted: var(--nsf-clr-text-muted);
}

/* =========================================================
   SYSTEM DARK MODE
   Used when the visitor prefers dark mode and has not
   explicitly selected the light theme.
   ========================================================= */

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        --nsf-clr-primary: #60A5FA;
        --nsf-clr-primary-hover: #93C5FD;
        --nsf-clr-primary-active: #3B82F6;

        --nsf-clr-primary-soft: #15294F;
        --nsf-clr-primary-subtle: #10203F;
        --nsf-clr-primary-contrast: #071126;

        --nsf-clr-accent: #A78BFA;
        --nsf-clr-accent-soft: #15294F;

        --nsf-clr-secondary: #A78BFA;
        --nsf-clr-secondary-soft: #2A2150;
        --nsf-clr-selection: rgba(96, 165, 250, 0.30);
        --nsf-gradient-primary: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
        --nsf-gradient-soft: linear-gradient(135deg, #0F1A33 0%, #0A1224 100%);
        --nsf-gradient-text: linear-gradient(135deg, #60A5FA 0%, #60A5FA 100%);

        --nsf-clr-text: #E6ECF8;
        --nsf-clr-text-strong: #FFFFFF;
        --nsf-clr-text-muted: #9FB0CF;
        --nsf-clr-text-soft: #7889AB;
        --nsf-clr-text-inverse: #071126;

        --nsf-clr-heading: #FFFFFF;

        --nsf-clr-background: #0A1224;
        --nsf-clr-surface: #0F1A33;
        --nsf-clr-surface-soft: #14213F;
        --nsf-clr-surface-muted: #1B2A4D;
        --nsf-clr-surface-elevated: #122044;

        --nsf-clr-border: #22345C;
        --nsf-clr-border-soft: #17264A;
        --nsf-clr-border-strong: #2F4573;
        --nsf-clr-border-hover: #3B6BD6;

        --nsf-clr-success: #4ADE80;
        --nsf-clr-success-hover: #86EFAC;
        --nsf-clr-success-contrast: #052E16;
        --nsf-clr-success-soft: #0F2A1B;

        --nsf-clr-warning: #F2BD65;
        --nsf-clr-warning-hover: #FFD18A;
        --nsf-clr-warning-soft: #302817;

        --nsf-clr-danger: #F87171;
        --nsf-clr-danger-hover: #FCA5A5;
        --nsf-clr-danger-contrast: #FFFFFF;
        --nsf-clr-danger-soft: #3A1519;

        --nsf-clr-info: #38BDF8;
        --nsf-clr-info-soft: #0C2A3D;

        --nsf-clr-focus-ring: rgba(96, 165, 250, 0.40);
        --nsf-focus-ring: var(--nsf-clr-focus-ring);
        --nsf-focus-border: var(--nsf-clr-primary);

        --nsf-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
        --nsf-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.38);
        --nsf-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.42);
        --nsf-shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.48);

        --nsf-shadow-primary: 0 14px 34px rgba(96, 165, 250, 0.22);

        --border: var(--nsf-clr-border);
        --bg: var(--nsf-clr-background);
        --surface: var(--nsf-clr-surface);
        --text: var(--nsf-clr-text);
        --text-muted: var(--nsf-clr-text-muted);
    }
}