/* Homelab design base (HQ-0003). Rules and components: /design/DESIGN.md
   Use in any app:  <link rel="stylesheet" href="/design/tokens.css">
   App theme: override only --hl-accent / --hl-accent-soft, e.g.  :root { --hl-accent: #FFB4AB; --hl-accent-soft: #FFB4AB24; } */

@font-face {
  font-family: "Roboto Flex";
  src: url("/design/fonts/RobotoFlex-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  color-scheme: dark;

  /* Surfaces: tonal steps, never pure black */
  --hl-bg: #111318;
  --hl-surface: #1E2026;
  --hl-surface-2: #2B2D33;
  --hl-outline: #44474F;

  /* Text */
  --hl-text: #E3E2E6;
  --hl-text-2: #C4C6D0;
  --hl-text-3: #8E9099; /* chevrons, quiet icons */

  /* Status: colour carries meaning, always paired with an icon or word */
  --hl-ok: #7FD8A4;
  --hl-ok-container: #1A2B22;
  --hl-on-ok: #06331F;
  --hl-problem: #FFB4AB;
  --hl-problem-container: #3B1F1F;
  --hl-on-problem: #410002;

  /* Accent = interaction and app identity (per app overridable) */
  --hl-accent: #A8C7FA;
  --hl-accent-soft: #A8C7FA24;

  /* Shape */
  --hl-radius-outer: 20px;
  --hl-radius-inner: 6px;
  --hl-radius-card: 24px;
  --hl-radius-nested: 18px; /* rows inside a card: card radius minus its 6px padding */
  --hl-radius-icon: 16px;

  /* Spacing scale */
  --hl-space-1: 4px;
  --hl-space-2: 8px;
  --hl-space-3: 12px;
  --hl-space-4: 16px;
  --hl-space-5: 24px;
  --hl-space-6: 32px;

  --hl-touch: 44px;
  --hl-font: "Roboto Flex", system-ui, sans-serif;
  --hl-motion: 180ms;
}

body {
  margin: 0;
  background: var(--hl-bg);
  color: var(--hl-text);
  font-family: var(--hl-font);
}

@media (prefers-reduced-motion: reduce) {
  :root { --hl-motion: 0ms; }
}
