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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2,
h3 {
  color: var(--color-brand-navy);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

h3 {
  font-size: var(--font-size-xl);
}

.font-display,
.hero-title,
.editorial-title {
  font-family: var(--font-display);
}

.hero-title,
.editorial-title {
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.05;
}

a {
  color: var(--color-brand-navy);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-brand-blue);
}

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

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.75rem;
  padding: var(--space-2) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--color-brand-navy);
  color: var(--color-surface);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease-in-out, color 160ms ease-in-out;
}

button:hover,
.button:hover {
  background: var(--color-brand-blue);
  color: var(--color-surface);
}

:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

img,
svg,
video {
  display: block;
  max-inline-size: 100%;
}

code {
  font-family: var(--font-family-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.container {
  inline-size: min(100% - 3rem, var(--content-max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  z-index: 20;
  padding: var(--space-2) var(--space-3);
  transform: translateY(-200%);
  border-radius: var(--radius-md);
  background: var(--color-brand-navy);
  color: var(--color-surface);
  font-weight: 600;
  text-decoration: none;
}

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

.eyebrow {
  margin-block-end: var(--space-2);
  color: var(--color-brand-blue);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.error-page {
  inline-size: min(100% - 3rem, 42rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 12vh, 9rem);
}

.error-page__reference {
  margin-block: var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.sr-only,
.members-sr-only {
  position: absolute;
  inline-size: 0.0625rem;
  block-size: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 32rem) {
  .container,
  .error-page {
    inline-size: min(100% - 2rem, var(--content-max-width));
  }
}

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

  button,
  .button {
    transition: none;
  }
}
