/* Design tokens, reset and page-wide defaults. */

:root {
  color-scheme: light;

  --color-bg: #e8eaed;
  --color-text: #0f1114;
  --color-muted: #5c636c;
  --color-border: rgba(15, 17, 20, 0.1);
  --color-accent: #ff5b1f;
  --color-on-text: #fff;
  --color-surface: #fff;
  --color-chip: #f1f2f4;
  --color-card: rgba(255, 255, 255, 0.86);
  --color-glass: rgba(255, 255, 255, 0.75);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --page-gutter: max(4vw, 18px);
}

html.night {
  color-scheme: dark;

  --color-bg: #0d0f11;
  --color-text: #eceef0;
  --color-muted: #9aa2ab;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-on-text: #0f1114;
  --color-surface: #1d2024;
  --color-chip: #262a2f;
  --color-card: rgba(20, 22, 26, 0.84);
  --color-glass: rgba(20, 22, 26, 0.78);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  background: var(--color-bg);
}

/* Lenis (smooth scrolling) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  background: radial-gradient(90% 70% at 62% 40%, #f6f7f8 0%, #e8eaed 55%, #dcdfe3 100%) fixed;
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

html.night body {
  background: radial-gradient(90% 70% at 62% 40%, #262a30 0%, #121417 55%, #08090a 100%) fixed;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon-sprite {
  display: none;
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
