/* ===== GLOBAL BASE ===== */

:root {
  --bg-top: #020617;
  --bg-bottom: #0f172a;

  --text: #e5e7eb;
  --muted: #94a3b8;

  --accent-external: #38bdf8;
  --accent-internal: #6ed2ff;

  --content-width: min(94vw, 78rem);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;

  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: clamp(1.8rem, 4vw, 3rem);
  --font-hero: clamp(2.35rem, 7vw, 5rem);
}

/* ===== RESET ===== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  background: var(--bg-top); /* fixes overscroll flash */
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--font-base);
  line-height: 1.6;

  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 35%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);

  background-color: var(--bg-top);

  color: var(--text);
}

/* ===== GLOBAL ELEMENTS ===== */

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

img {
  max-width: 100%;
  display: block;
}

a:focus-visible,
button:focus-visible {
  outline: 0.14rem solid var(--accent-external);
  outline-offset: 0.16rem;
}