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

html {
  min-width: 320px;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-ui);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--color-surface) 68%, transparent), transparent 30rem),
    linear-gradient(180deg, var(--color-canvas-raised), var(--color-canvas));
  color: var(--color-text);
  font-size: var(--text-body);
}

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

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

a {
  color: var(--color-blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  color: var(--color-text);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  margin-block-end: var(--space-4);
  font-size: var(--text-title);
}

h2 {
  margin-block-end: var(--space-4);
  font-size: var(--text-section);
}

h3 {
  margin-block-end: var(--space-2);
  font-size: var(--text-card-title);
}

p {
  max-width: 65ch;
  margin-block-end: var(--space-4);
  color: var(--color-text-soft);
}

svg {
  display: block;
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2;
}

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

::selection {
  background: color-mix(in srgb, var(--color-blue), transparent 72%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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