* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  background: var(--paper);
  color: var(--deep-green);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

:focus-visible {
  outline: .2rem solid var(--citrus-orange);
  outline-offset: .2rem;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--deep-green);
  color: var(--ivory);
  font-weight: 600;
  transform: translateY(-180%);
}

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

.page-width {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

section[id] { scroll-margin-top: 1rem; }

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.15rem;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--citrus-orange); color: #fff; }
.button--primary:hover { background: #9f3519; }
.button--light { background: var(--ivory); color: var(--deep-green); }
.button--light:hover { background: var(--warm-gold); }

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