:root {
  --bg: #0f172a;
  --fg: #f8fafc;
  --muted-fg: #cbd5e1;
  --card: #1b2336;
  --border: #475569;
  --accent: #22c55e;
  --on-accent: #0f172a;
  --work: #f59e0b;
  --on-work: #0f172a;
  --ring: #ffffff;
  --danger: #ef4444;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --display: "Pixelify Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --radius: 0;
  --header-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 220ms;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-padding-top: calc(var(--header-h) + var(--space-2));
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  touch-action: manipulation;
}

a {
  color: inherit;
}

a[href],
button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
.card:focus-within {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: max(var(--space-2), env(safe-area-inset-left));
  top: max(var(--space-2), env(safe-area-inset-top));
  z-index: 20;
  background: var(--card);
  border: 2px solid var(--ring);
  padding: 12px 16px;
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.icon.fill {
  fill: currentColor;
  stroke: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
