@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-latin.b65daadded74.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.938c6e8019b6.woff2") format("woff2");
}

:root {
  --brand-primary: #2d3e98;
  --brand-primary-hover: #24327a;
  --brand-accent: #f0a000;
  --brand-accent-hover: #d99100;
  --on-primary: #ffffff;
  --on-accent: #1f1f1f;
  --brand-accent-text: #9a6500;
  --ink: #333333;
  --ink-body: #444444;
  --ink-muted: #666666;
  --surface: #ffffff;
  --surface-tint: #eef2f6;
  --surface-soft: #f8fafc;
  --line: #dde3ea;
  --danger: #b42318;
  --danger-soft: #fde8e7;
  --font-sans: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Manrope", var(--font-sans);
  --radius-pill: 999px;
  --radius-card: 8px;
  --shadow-card: 0 12px 32px rgb(45 62 152 / 10%);

  --status-met-fg: #1e7a46;
  --status-met-bg: #e3f4ea;
  --status-short-fg: #8a5a00;
  --status-short-bg: #fff1cc;
  --status-absent-fg: #b42318;
  --status-absent-bg: #fde8e7;
  --status-leave-fg: #0369a1;
  --status-leave-bg: #e0f2fe;
  --status-ph-fg: #6b4fa0;
  --status-ph-bg: #eee8f7;
  --status-rest-fg: #5b6470;
  --status-rest-bg: #eef0f3;
  --status-working-fg: #0f766e;
  --status-working-bg: #ddf3f0;
  --status-not-yet-fg: #4a5568;
  --status-not-yet-bg: #f1f4f8;
  --status-worked-fg: #1f6f8b;
  --status-worked-bg: #e2f1f6;
  --status-future-fg: #7b828c;
  --status-future-bg: #f4f6f8;
}

/* Dark theme.
   Hues stay Maxbond's: the brand blue is lifted for contrast on dark surfaces
   and the accent orange is warmed slightly, rather than adopting a new palette.
   Applied on the system preference unless the viewer has chosen light, and
   always when the viewer has chosen dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-primary: #8da2e8;
    --brand-primary-hover: #a6b7f0;
    --brand-accent: #f5b53d;
    --brand-accent-hover: #ffc75c;
    --on-primary: #10151f;
    --on-accent: #10151f;
    --brand-accent-text: #f5b53d;
    --ink: #e7ebf3;
    --ink-body: #d3d9e4;
    --ink-muted: #98a3b5;
    --surface: #19202b;
    --surface-tint: #222b39;
    --surface-soft: #1f2733;
    --line: #2d3848;
    --danger: #ef6f66;
    --danger-soft: #3a1f1d;
    --shadow-card: 0 12px 32px rgb(0 0 0 / 35%);

    --status-met-fg: #6cc08f;
    --status-met-bg: #1c3326;
    --status-short-fg: #e0a94f;
    --status-short-bg: #3a2e17;
    --status-absent-fg: #ef6f66;
    --status-absent-bg: #3e1f1c;
    --status-leave-fg: #7aa9dc;
    --status-leave-bg: #1b2b3f;
    --status-ph-fg: #a98adb;
    --status-ph-bg: #2a2240;
    --status-rest-fg: #94a0b1;
    --status-rest-bg: #232c37;
    --status-working-fg: #5cc4c4;
    --status-working-bg: #173434;
    --status-not-yet-fg: #94a0b1;
    --status-not-yet-bg: #222b39;
    --status-worked-fg: #6fb6cc;
    --status-worked-bg: #16303a;
    --status-future-fg: #7b8697;
    --status-future-bg: #1f2733;
  }
}

:root[data-theme="dark"] {
  --brand-primary: #8da2e8;
  --brand-primary-hover: #a6b7f0;
  --brand-accent: #f5b53d;
  --brand-accent-hover: #ffc75c;
  --on-primary: #10151f;
  --on-accent: #10151f;
  --brand-accent-text: #f5b53d;
  --ink: #e7ebf3;
  --ink-body: #d3d9e4;
  --ink-muted: #98a3b5;
  --surface: #19202b;
  --surface-tint: #222b39;
  --surface-soft: #1f2733;
  --line: #2d3848;
  --danger: #ef6f66;
  --danger-soft: #3a1f1d;
  --shadow-card: 0 12px 32px rgb(0 0 0 / 35%);

  --status-met-fg: #6cc08f;
  --status-met-bg: #1c3326;
  --status-short-fg: #e0a94f;
  --status-short-bg: #3a2e17;
  --status-absent-fg: #ef6f66;
  --status-absent-bg: #3e1f1c;
  --status-leave-fg: #7aa9dc;
  --status-leave-bg: #1b2b3f;
  --status-ph-fg: #a98adb;
  --status-ph-bg: #2a2240;
  --status-rest-fg: #94a0b1;
  --status-rest-bg: #232c37;
  --status-working-fg: #5cc4c4;
  --status-working-bg: #173434;
  --status-not-yet-fg: #94a0b1;
  --status-not-yet-bg: #222b39;
  --status-worked-fg: #6fb6cc;
  --status-worked-bg: #16303a;
  --status-future-fg: #7b8697;
  --status-future-bg: #1f2733;
}
