:root {
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --step--1: clamp(0.82rem, 0.78rem + 0.18vw, 0.9rem);
  --step-0: clamp(1rem, 0.95rem + 0.3vw, 1.05rem);
  --step-1: clamp(1.25rem, 1.12rem + 0.75vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 1.4vw, 1.9rem);
  --step-3: clamp(2rem, 1.7rem + 2vw, 2.6rem);
  --step-4: clamp(2.55rem, 2.1rem + 3.1vw, 3.4rem);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  background: var(--surface-900);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  transition:
    background-color var(--transition-base),
    color var(--transition-base);
}

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

a {
  color: var(--accent-400);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover,
a:focus-visible {
  color: var(--accent-500);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

figure {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: var(--step-4);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
}

h4 {
  font-size: var(--step-1);
}

p {
  margin: 0;
}

code,
pre {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

@media print {
  :root {
    --surface-900: #fff;
    --text-primary: #000;
    --text-muted: #333;
  }
  body {
    background: #fff;
    color: #000;
  }
}
