/*
 * Base layer: a light reset, document defaults and typography. Verdana carries
 * the personality through size, weight and colour rather than a second family.
 */

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

* {
  margin: 0;
}

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

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

body {
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-strong);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--t-h1);
}
h2 {
  font-size: var(--t-h2);
}
h3 {
  font-size: var(--t-h3);
}

p {
  max-width: 66ch;
}

a {
  color: var(--ink-strong);
  text-decoration: none;
}

a:hover {
  color: var(--yellow-strong);
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

/* A clear, warm focus ring for keyboard users everywhere. */
:focus-visible {
  outline: 3px solid var(--yellow-strong);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* Skip link, revealed on focus. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-2);
  background: var(--ink);
  color: var(--white);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  z-index: 100;
}
.skip-link:focus {
  left: var(--s-2);
}

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