*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg-wash), var(--bg-wash)),
    url("../img/hero-orbit.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.logo,
.eyebrow,
.kicker,
.ip-label,
.ip-value,
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

h1,
.type-2xl {
  font-size: var(--text-2xl);
}

h2,
.type-xl {
  font-size: var(--text-xl);
}

h3,
.rank-card h2,
.type-lg {
  font-size: var(--text-lg);
}

.type-sm {
  font-size: var(--text-sm);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(70rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.stack > * + * {
  margin-top: var(--space-3);
}

.page-stack {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-6) var(--space-8);
}

.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;
}

#content:focus {
  outline: none;
}

#content:focus-visible {
  outline: 3px solid var(--focus-yellow);
  outline-offset: 3px;
}

::selection {
  background: #f3d27a;
  color: #1a1408;
}

@media (prefers-reduced-motion: reduce) {
  body {
    background-attachment: scroll;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid CanvasText;
  }
}
