/* Reset + base styles, per docs/05 §7 (typography) and §25 (example base styles) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--color-body);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at 88% 2%, rgba(189, 215, 231, 0.3), transparent 30%), var(--color-body);
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-accent-strong);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  font-weight: 650;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
}

p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
}

small {
  font-size: 13px;
  color: var(--color-text-subtle);
}

button,
input,
select {
  font-family: inherit;
  font-size: 16px;
  color: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  padding-left: 1.2em;
  color: var(--color-text-muted);
}

.accent-text {
  color: var(--color-accent-strong);
}

::selection {
  color: var(--color-text);
  background: rgba(107, 174, 214, 0.35);
}

:focus-visible {
  outline: 3px solid rgba(33, 113, 181, 0.38);
  outline-offset: 3px;
}

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