/* Jörgflix – shared tokens. Dark is the "salong" (auditorium), light is the lobby. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/plex-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/plex-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/assets/fonts/plex-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --line: #d6dce8;
  --text: #18213a;
  --muted: #5a6480;
  --ok: #1d8f61;
  --warn: #a86f00;
  --crit: #c9352a;
  --unknown: #8a92a8;
  --brand: #b3203d;
  --flow: #3d6fd6;

  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 36px;
  --s7: 56px;

  --t-xs: 0.8125rem;
  --t-sm: 0.875rem;
  --t-md: 1rem;
  --t-lg: 1.25rem;
  --t-xl: 1.75rem;
  --t-2xl: 2.5rem;

  --radius-lg: 14px;
  --radius-sm: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #121a2b;
    --surface: #19223a;
    --surface-2: #212c48;
    --line: #2d3958;
    --text: #ece7dd;
    --muted: #98a1b8;
    --ok: #5ccf9c;
    --warn: #f0b440;
    --crit: #ff6b5d;
    --unknown: #6f7892;
    --brand: #e0425f;
    --flow: #8db6ff;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #121a2b;
  --surface: #19223a;
  --surface-2: #212c48;
  --line: #2d3958;
  --text: #ece7dd;
  --muted: #98a1b8;
  --ok: #5ccf9c;
  --warn: #f0b440;
  --crit: #ff6b5d;
  --unknown: #6f7892;
  --brand: #e0425f;
  --flow: #8db6ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--t-md);
  line-height: 1.5;
}
button,
input {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--flow);
  outline-offset: 2px;
  border-radius: 4px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--muted);
}
.lamp {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--unknown);
  flex: none;
}
.lamp[data-state='ok'] { background: var(--ok); }
.lamp[data-state='warn'] { background: var(--warn); }
.lamp[data-state='crit'] { background: var(--crit); }
.lamp[data-state='info'] { background: var(--flow); }
.lamp[data-state='off'] { background: transparent; box-shadow: inset 0 0 0 2px var(--unknown); }

.wordmark {
  font-family: var(--display);
  font-weight: 760;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
