/* Design tokens, reset, typography. Dark is the default theme. */

:root {
  --bg: #0b0c0f;
  --surface: #15171c;
  --surface-2: #1c1f26;
  --text: #f2f3f5;
  --muted: #a3a7b0;
  --line: #262a32;
  --line-2: #343945;
  --accent: #2f7bf5;
  --accent-dark: #1b4fb0;
  --accent-text: #ffffff;
  --accent-soft: rgba(47, 123, 245, 0.14);
  --glow: rgba(47, 123, 245, 0.16);
  --shadow-edge: #050608;

  --radius: 12px;
  --max-width: 1120px;
  --display: "Montserrat", system-ui, sans-serif;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #0e1014;
  --muted: #555b66;
  --line: #e1e4e9;
  --line-2: #cfd3da;
  --accent-soft: rgba(47, 123, 245, 0.1);
  --glow: rgba(47, 123, 245, 0.1);
  --shadow-edge: #c3c8d0;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  position: relative;
  font-family: var(--font);
  font-size: 1.07rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft accent glow behind the top of the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vw 45vh at 85% -10%, var(--glow), transparent 62%),
    radial-gradient(40vw 35vh at 0% 45%, var(--glow), transparent 65%);
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
