/* Base: element defaults, type, links, focus and small utility classes. Mobile first. */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  overflow-wrap: break-word; /* only breaks a word that would overflow; never splits labels like 'Equipment' */
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: normal;
}

h1 {
  font-size: var(--fs-hero);
  letter-spacing: -0.015em;
}

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

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

p,
li,
dd {
  text-wrap: pretty;
}

p {
  margin: 0;
  max-width: var(--measure);
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

::selection {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

input,
select {
  caret-color: var(--blue-ink);
  accent-color: var(--blue-ink);
}

ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: var(--sp-1);
}

a {
  color: var(--blue-ink);
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

svg {
  display: block;
}

/* The sprite only holds <symbol>s; it takes no space. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.small {
  font-size: var(--fs-sm);
}

/* Details the family has not confirmed yet: calm, honest, not alarming. */
.soon {
  color: var(--text-soft);
  font-style: italic;
  font-weight: 400;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
