/* Avenir Next ships with macOS/iOS, so it's referenced as a system font
   stack rather than self-hosted (it isn't freely licensable to embed as a
   font file). Browsers without it fall back to the next name in the stack. */

@font-face {
  font-family: 'Brother Home';
  src: url('../fonts/brother-home.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
}

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

button {
  font-family: inherit;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

.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;
}

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