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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface-page);
  color: var(--text-primary);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-is-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
.editorial-title {
  color: var(--text-primary);
  font-family: var(--font-editorial);
  font-weight: 500;
  letter-spacing: -0.025em;
}

::selection {
  background: var(--atlas-gold);
  color: var(--atlas-green-deep);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

:where(button, a, input, select, textarea, summary):focus-visible {
  position: relative;
  z-index: 1;
}

:where(input, select, textarea):disabled {
  border-color: var(--border-subtle);
  background: var(--surface-disabled);
  color: var(--text-muted);
  cursor: not-allowed;
}

summary {
  min-height: var(--touch-target);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  min-height: var(--touch-target);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--atlas-green-deep);
  color: var(--atlas-ivory);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform var(--ease);
}

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

.page-container {
  width: min(100%, var(--content-max));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.page-shell {
  width: min(100%, var(--page-max));
  margin-inline: auto;
}

.section-eyebrow {
  margin-bottom: var(--space-3);
  color: var(--atlas-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

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

[hidden] {
  display: none !important;
}

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