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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(201, 164, 92, 0.14), transparent 30%),
    linear-gradient(180deg, #fbf8f1 0%, var(--color-bg) 100%);
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

button {
  cursor: pointer;
}

input,
select,
textarea {
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}

textarea {
  resize: vertical;
}

:focus-visible {
  outline: 0.1875rem solid rgba(107, 122, 69, 0.45);
  outline-offset: 0.1875rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-900);
}

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

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

p,
ul,
ol,
dl,
blockquote {
  margin: 0;
  overflow-wrap: anywhere;
}

ul[role="list"],
ol[role="list"] {
  padding: 0;
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: var(--fs-300);
  color: var(--color-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
