/*
  Light Fight design tokens and base styles. The only global stylesheet: every component keeps its own
  styles in a scoped .razor.css file and uses these variables. Mobile first; system fonts only, so there is
  nothing to download before the first paint.
*/
:root {
  color-scheme: dark;

  --lf-bg: #04060d;
  --lf-bg-glow: radial-gradient(1200px 600px at 70% -10%, rgba(40, 120, 255, 0.18), transparent 60%),
                radial-gradient(900px 500px at -10% 110%, rgba(255, 60, 200, 0.10), transparent 60%);
  --lf-surface: rgba(12, 20, 40, 0.72);
  --lf-surface-strong: #0b1430;
  --lf-border: rgba(120, 200, 255, 0.16);
  --lf-border-strong: rgba(120, 200, 255, 0.32);

  --lf-text: #e8f1ff;
  --lf-muted: #9db1cf;
  --lf-accent: #46cdff;
  --lf-accent-strong: #8ae3ff;
  --lf-accent-contrast: #031019;
  --lf-hot: #ff4fd8;
  --lf-warm: #ffb43c;
  --lf-danger: #ff6b7a;
  --lf-success: #5dfa9b;

  --lf-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --lf-font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  --lf-text-xs: 0.78rem;
  --lf-text-s: 0.9rem;
  --lf-text-m: 1rem;
  --lf-text-l: 1.25rem;
  --lf-text-xl: clamp(1.6rem, 4vw, 2.2rem);
  --lf-text-hero: clamp(2.8rem, 12vw, 6rem);

  --lf-space-1: 0.25rem;
  --lf-space-2: 0.5rem;
  --lf-space-3: 0.75rem;
  --lf-space-4: 1rem;
  --lf-space-5: 1.5rem;
  --lf-space-6: 2.25rem;
  --lf-space-7: 3.5rem;

  --lf-radius-s: 10px;
  --lf-radius-m: 14px;
  --lf-radius-l: 22px;
  --lf-radius-pill: 999px;

  --lf-glow: 0 0 22px rgba(70, 205, 255, 0.35);
  --lf-focus-ring: 0 0 0 3px rgba(70, 205, 255, 0.5);
  --lf-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);

  --lf-content-width: 72rem;
  --lf-gutter: 16px;
  --lf-tap: 44px;
  --lf-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--lf-bg-glow), var(--lf-bg);
  background-attachment: fixed;
  color: var(--lf-text);
  font-family: var(--lf-font);
  font-size: var(--lf-text-m);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 var(--lf-space-3);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--lf-space-4);
}

a {
  color: var(--lf-accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--lf-accent-strong);
}

:focus-visible {
  outline: none;
  box-shadow: var(--lf-focus-ring);
  border-radius: var(--lf-radius-s);
}

::selection {
  background: rgba(70, 205, 255, 0.35);
}

.lf-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
