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

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--colour-text);
  background: var(--colour-surface);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--colour-link);
}

a:hover {
  color: var(--colour-link-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 0.1875rem solid var(--colour-accent);
  outline-offset: 0.125rem;
}

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

h1,
h2,
h3,
p,
fieldset,
legend {
  margin: 0;
}

fieldset {
  padding: 0;
  border: 0;
}

h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

label {
  font-weight: 650;
}

input {
  font: inherit;
}

dt,
dd {
  margin: 0;
}

.muted {
  color: var(--colour-muted);
}

details {
  border-top: 1px solid var(--colour-border);
}

summary {
  cursor: pointer;
  font-weight: 650;
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
}

details p {
  margin: 0 0 var(--space-sm);
}

code {
  font-family: var(--font-numbers);
  font-size: 0.95em;
}

@media (min-width: 45rem) {
  h1 {
    font-size: 2.15rem;
  }
}
