/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--surface);
  background-image:
    radial-gradient(circle at 10% -20%, rgba(15, 25, 35, 0.03), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-100);
  line-height: var(--lh-base);
}

main {
  display: block;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
  transition: color var(--transition-base);
}

a:hover,
a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--serif);
  line-height: var(--lh-heading);
  text-wrap: balance;
}

h1 {
  font-size: clamp(var(--fs-200), 5vw, 3rem);
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--fs-165);
}

h3 {
  font-size: var(--fs-100);
}

p,
li,
label,
input,
select,
textarea,
button {
  font-size: var(--fs-100);
}

ul,
ol {
  padding-left: 1.25rem;
}

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