/* Reset and document defaults. Values come from tokens.css only. */

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

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

body {
  margin: 0;
  background: var(--surface-frame);
  color: var(--text-primary);
  font-family: var(--font-family-brand);
  font-size: var(--font-size-body-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote {
  margin: 0;
}

/* Low specificity, so a component's own padding always wins (the plan card's
   list lost its 24 above the first item to this reset; DESIGN-NOTES 54). */
:where(ul[class], ol[class]) {
  padding: 0;
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

hr {
  border: 0;
  margin: 0;
}

:focus-visible {
  outline: var(--stroke-focus) solid var(--border-focus);
  outline-offset: var(--stroke-focus);
}

/* Any element that switches colour mode paints its own canvas and text. */
[data-surface] {
  color: var(--text-primary);
}

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

.skip-link {
  position: fixed;
  top: var(--layout-frame);
  left: var(--layout-frame);
  z-index: 100;
  padding: var(--space-12) var(--space-16);
  background: var(--color-base-white);
  color: var(--color-base-black);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: var(--space-24);
  height: var(--space-24);
  flex: none;
}

.wordmark {
  display: block;
  aspect-ratio: 448 / 80; /* RACOOB wordmark artwork */
  height: auto;
  color: var(--text-primary);
}

/* The menu is see-through, so the page under it must not move. */
html.is-menu-open,
body.is-menu-open {
  overflow: hidden;
}

/* The menu has its own top bar; the header must not ghost through it. */
body.is-menu-open .site-header {
  visibility: hidden;
}

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