/*
    TCT Networks Corporation
    tokens.css

    Design tokens. :root holds sizing, spacing, and type scale shared by
    every theme. Fonts and radii vary by theme. Colors vary by theme and
    scheme, set as data-theme and data-scheme on the html element.

    Themes:  a = Mission Control    b = Hometown Professional    c = Technical Slate
    Schemes: light / dark
*/

:root {
    --maxw: 1160px;
    --gutter: clamp(1rem, 4vw, 1.75rem);

    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    --fs-label: 0.78rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: clamp(1.2rem, 2vw, 1.4rem);
    --fs-2xl: clamp(1.5rem, 3vw, 2.1rem);
    --fs-3xl: clamp(1.9rem, 4vw, 2.7rem);
    --fs-hero: clamp(2.3rem, 6vw, 4rem);

    --lh-tight: 1.08;
    --lh-snug: 1.25;
    --lh-body: 1.6;

    color-scheme: light dark;
    --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
    --speed: 0.18s;
    --speed-reveal: 3s;
    --ease-reveal: cubic-bezier(0.8, 0, 0.2, 1);

    --c-art-space: #050609;

    --c-art-line: #2A3348;
    --c-art-plug-body: #F7F9FC;
    --c-art-plug-light: #DCE2EC;
    --c-art-plug-mid: #C2C9D8;
    --c-art-plug-dark: #7A8497;
    --c-art-plug-contact: #D9A244;
    --c-art-plug-contact-2: #EACF95;
    --c-art-port-body: #E7EBF3;
    --c-art-port-cavity: #1B2234;
    --c-art-led-off: #AEB6C6;
    --c-art-led-link: #35B063;
    --c-art-led-act: #DE9A2B;
}

/* Declare the active scheme to the browser.

   Without this a browser has no way to know the page handles both schemes,
   and applies its own dark transformation over our light stylesheet -
   which is what Samsung Internet does by default. "only light" forbids the
   override outright when the visitor has chosen light. */

[data-scheme="light"] {
    color-scheme: only light;
}

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

    --c-art-line: #C8CFDC;
    --c-art-plug-body: #3C4453;
    --c-art-plug-light: #4E5768;
    --c-art-plug-mid: #5E687E;
    --c-art-plug-dark: #99A2B4;
    --c-art-port-body: #2E3545;
    --c-art-port-cavity: #05070C;
    --c-art-led-off: #5C6578;
}

/* Theme A - Mission Control */

[data-theme="a"] {
    --f-display: "Barlow Condensed", sans-serif;
    --f-body: "IBM Plex Sans", sans-serif;
    --f-mono: "IBM Plex Mono", monospace;
    --w-display: 700;
    --ls-display: 0.01em;
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
}

[data-theme="a"][data-scheme="light"] {
    --c-paper: #F5F7FB;
    --c-surface: #FFFFFF;
    --c-surface-2: #E9EDF6;
    --c-border: #C9D2E4;
    --c-band: #0B1B4D;
    --c-on-band: #F2F5FC;
    --c-on-band-muted: #AEBBDD;
    --c-band-accent: #9DB9F0;
    --c-head: #0B1B4D;
    --c-ink: #212838;
    --c-muted: #46506A;
    --c-link: #1E4FB8;
    --c-accent: #002683;
    --c-cta: #002683;
    --c-on-cta: #FFFFFF;
    --c-cta-hover: #1E4FB8;
    --c-focus: #002683;
    --shadow-card: 0 8px 24px -18px rgba(11, 27, 77, 0.5);
    --shadow-card-hover: 0 14px 32px -18px rgba(11, 27, 77, 0.6);
}

[data-theme="a"][data-scheme="dark"] {
    --c-paper: #0D0F14;
    --c-surface: #151A24;
    --c-surface-2: #101521;
    --c-border: #2A3348;
    --c-band: #101B3A;
    --c-on-band: #E8ECF7;
    --c-on-band-muted: #A9B4D6;
    --c-band-accent: #9DB9F0;
    --c-head: #EDF0F8;
    --c-ink: #D8DEEA;
    --c-muted: #9CA7C0;
    --c-link: #8FB3F2;
    --c-accent: #9DB9F0;
    --c-cta: #7FA3E8;
    --c-on-cta: #0B1B4D;
    --c-cta-hover: #9DB9F0;
    --c-focus: #9DB9F0;
    --shadow-card: 0 8px 24px -16px rgba(0, 0, 0, 0.8);
    --shadow-card-hover: 0 14px 32px -16px rgba(0, 0, 0, 0.9);
}

