/* Artisano design tokens. Brand navy #153969 and blue #2E62B2 (Brand Guidelines v1.0). See docs/COMPONENTS.md.
   Light by default; dark follows the OS unless <html data-theme="light|dark"> forces one.
   Breakpoints (cannot be variables): 1000px (menu collapses, grids stack) and 640px (single column), max-width. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/ibm-plex-sans-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/ibm-plex-sans-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;

  /* Type */
  --f-disp: "Source Serif 4", Georgia, serif;
  --f-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-logo: 700 18px "IBM Plex Sans", system-ui, sans-serif;
  --h1p: clamp(38px, 4.9vw, 68px);
  --h1-lh: 1.05;
  --h2: clamp(30px, 3.2vw, 44px);
  --h2-lh: 1.1;
  --h3: 20px;
  --cta-h: clamp(32px, 4vw, 56px);

  /* Brand */
  --navy: #153969;
  --blue: #2e62b2;
  --navy-deep: #0a1730;   /* hero, page hero, CTA band */
  --navy-night: #071022;  /* footer */
  --amber: #f2b33d;       /* accent square on the home page */
  --green: #18735d;
  --on-navy-2: #b9c6dc;   /* secondary text on navy */

  /* Surfaces and text */
  --bg: #ffffff;
  --bg-2: #f3f5f9;
  --panel: #f7f9fc;
  --card: #ffffff;        /* raised card on the page background (admin sign-in) */
  --fog: #e8edf5;         /* How an engagement runs (home) */
  --field: #ffffff;
  --ink: #121a2b;
  --ink-2: #4d586c;
  --line: #dde2ea;
  --line-strong: #aeb9c9;

  /* Accent and actions */
  --accent: #4a86e8;
  --accent-ink: #2e62b2;
  --focus: #4a86e8;
  --link: #2e62b2;
  --btn-bg: #153969;
  --btn-fg: #ffffff;
  --btn-hover: #2e62b2;
  --nav-btn-bg: #0b0f17;
  --nav-btn-fg: #ffffff;

  /* Regions */
  --hdr-bg: #ffffff;
  --hdr-fg: #121a2b;
  --hdr-fg-2: #4d586c;
  --hdr-line: #dde2ea;
  --mega-bg: #ffffff;
  --add-bg: #0a1730;
  --add-fg: #ffffff;
  --add-fg-2: #b9c6dc;
  --mk-bg: #ffffff;
  --pic: linear-gradient(160deg, #c9d6ea, #9fb4d4);
  --ftr-bg: #071022;
  --ftr-fg: #ffffff;
  --ftr-fg-2: #9fb0cb;
  --ftr-line: rgb(255 255 255 / .12);
  --next-line: rgb(255 255 255 / .14);

  /* Status chips in mock-ups */
  --chip-due-bg: #fff1d6;
  --chip-due-fg: #7a4a00;
  --chip-ok-bg: #e3f3ee;
  --chip-ok-fg: #18735d;
  --chat-bg: #d9f2e6;
  --chat-fg: #12372d;
  --error: #b8362f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1222; --bg-2: #111a2d; --panel: #0e1627; --card: #18243e; --field: #0e1627; --fog: #121c30;
    --ink: #e9eef7; --ink-2: #a3b0c6; --line: #24324c; --line-strong: #3b4f71;
    --accent: #8fb8ff; --accent-ink: #8fb8ff; --focus: #8fb8ff; --link: #8fb8ff;
    --btn-bg: #8fb8ff; --btn-fg: #0a1730; --btn-hover: #b5d0ff;
    --nav-btn-bg: #ffffff; --nav-btn-fg: #0b0f17;
    --hdr-bg: #070f20; --hdr-fg: #ffffff; --hdr-fg-2: #b9c6dc; --hdr-line: #18284a;
    --mega-bg: #111a2d; --mk-bg: #111a2d;
    --pic: linear-gradient(160deg, #1b2b47, #12305a);
    --error: #ff8a80;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1222; --bg-2: #111a2d; --panel: #0e1627; --card: #18243e; --field: #0e1627; --fog: #121c30;
  --ink: #e9eef7; --ink-2: #a3b0c6; --line: #24324c; --line-strong: #3b4f71;
  --accent: #8fb8ff; --accent-ink: #8fb8ff; --focus: #8fb8ff; --link: #8fb8ff;
  --btn-bg: #8fb8ff; --btn-fg: #0a1730; --btn-hover: #b5d0ff;
  --nav-btn-bg: #ffffff; --nav-btn-fg: #0b0f17;
  --hdr-bg: #070f20; --hdr-fg: #ffffff; --hdr-fg-2: #b9c6dc; --hdr-line: #18284a;
  --mega-bg: #111a2d; --mk-bg: #111a2d;
  --pic: linear-gradient(160deg, #1b2b47, #12305a);
  --error: #ff8a80;
}
