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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-display);
}

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

h1,
h2,
h3 {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--color-button);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--button-radius);
  background: var(--color-white);
  color: var(--color-green-dark);
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform var(--transition-standard);
}

.skip-link:focus {
  transform: translateY(0);
}

::selection {
  background: var(--color-gold);
  color: var(--color-white);
}
