/*
 * LINC brand tokens.
 * Source: linclearning.com theme (2024 "linc-24" palette), read from Wayback
 * snapshots (Jun 2023, May/Jul/Dec 2024) and the live site's stylesheets
 * (Nov 2026). Values marked INFERRED were not on the site; see BRAND.md.
 */

/* Rubik for titles and headers, Roboto for all other text (confirmed by the
   owner). Rubik was named in the site CSS but never loaded. Both are on
   Google Fonts under the SIL OFL. */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400&family=Rubik:ital,wght@0,400;0,500;0,700;0,900;1,400&display=swap");

:root {
  /* ---- Primary (2024 rebrand) ---- */
  --linc-blue: #4260e6;          /* primary: buttons, links, logo (logo file uses #4664e7) */
  --linc-blue-text: #1834b4;     /* blue text on light backgrounds */
  --linc-blue-dark: #12317c;     /* navy sections, footer, headings on light */
  --linc-blue-light: #e8ecfc;    /* tinted panels */
  --linc-lavender: #9c61da;      /* secondary accent */
  --linc-orange: #f8901a;        /* emphasis word, highlights */
  --linc-orange-marker: #ef8f3e; /* hand-drawn underline under key words */

  /* ---- Legacy spectrum (2023 logo "spark" colors, still in the theme) ---- */
  --linc-magenta: #ea008d;
  --linc-yellow: #f4c122;
  --linc-green: #93c43f;
  --linc-sky: #178bf5;           /* 2023 primary button blue */
  --linc-purple: #623290;        /* 2023 primary brand purple */
  --linc-purple-md: #7e48b2;
  --linc-purple-lt: #9d72c7;

  /* ---- Neutrals ---- */
  --linc-ink: #111111;           /* body text */
  --linc-muted: #7e8fa4;         /* secondary text */
  --linc-charcoal: #36343e;      /* dark bands */
  --linc-slate: #3a4652;         /* footer */
  --linc-gray-bg: #f1f2f4;       /* page section background */
  --linc-gray: #ededee;
  --linc-gray-light: #fbfbfb;
  --linc-border: #e2e8f0;
  --linc-white: #ffffff;

  /* ---- Status (from theme variables) ---- */
  --linc-success: #13c0bc;
  --linc-warning: #f9c020;
  --linc-error: #f25151;

  /* ---- Semantic roles ---- */
  --color-bg: var(--linc-white);
  --color-surface: var(--linc-gray-bg);
  --color-text: var(--linc-ink);
  --color-text-muted: var(--linc-muted);
  --color-primary: var(--linc-blue);
  --color-primary-hover: var(--linc-blue-text); /* INFERRED */
  --color-on-primary: var(--linc-white);
  --color-link: var(--linc-blue-text);
  --color-accent: var(--linc-orange);
  --color-border: var(--linc-border);

  /* ---- Type ---- */
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Rubik", "Roboto", system-ui, sans-serif;
  --text-h1: 2.5rem;   /* site: 40px / 700 */
  --text-h2: 2.4rem;   /* site: 38.4px / 400 */
  --text-h3: 1.5rem;   /* site: 24px / 700 */
  --text-lead: 1.2rem; /* site: 19.2px */
  --text-body: 1rem;
  --leading-heading: 1.25; /* INFERRED (site used 1.4, loose for Rubik) */
  --leading-body: 1.6;     /* INFERRED */

  /* ---- Shape ---- */
  --radius-button: 6px;
  --radius-card: 12px;     /* INFERRED */
  --shadow-card: 0 2px 12px rgb(18 49 124 / 0.08); /* INFERRED, navy-tinted */
}

/* Dark mode: the site had none. INFERRED from the navy/charcoal bands. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0d1630;
    --color-surface: #16224a;
    --color-text: #eceeef;      /* site's text-on-dark color */
    --color-text-muted: #9aa8bd;
    --color-primary: #5b76ee;
    --color-primary-hover: #7b91f2;
    --color-link: #9fb0f5;
    --color-border: #26345f;
  }
}
:root[data-theme="dark"] {
  --color-bg: #0d1630;
  --color-surface: #16224a;
  --color-text: #eceeef;
  --color-text-muted: #9aa8bd;
  --color-primary: #5b76ee;
  --color-primary-hover: #7b91f2;
  --color-link: #9fb0f5;
  --color-border: #26345f;
}
