/* ==========================================================================
   Base — reset, document defaults, primitives
   Depends on: fonts.css, tokens.css
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--c-page-base);
  background-image: var(--bg-page);
  background-attachment: fixed;
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 100%;
  font-weight: var(--fw-book);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--fw-semi);
  line-height: var(--lh-heading);
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a {
  color: var(--c-cyan);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover { text-decoration: underline; }

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

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

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

address { font-style: normal; }

/* --------------------------------------------------------------------------
   Focus — visible for keyboard users only
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) { outline: none; }

/* --------------------------------------------------------------------------
   Icon primitive
   --------------------------------------------------------------------------
   The Figma design fills its icons with gradients, which an <img> cannot do.
   Each icon is therefore used as an alpha mask over a background, so the
   exported geometry is preserved exactly while the fill stays controllable.
   Set --icon to the asset URL and `background` to the desired paint.
   -------------------------------------------------------------------------- */
.icon {
  display: block;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask-image: var(--icon);
          mask-image: var(--icon);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: var(--z-overlay);
  padding: 0.75rem 1.25rem;
  background: var(--c-cyan);
  color: var(--c-navy-950);
  border-radius: var(--r-cta);
  font-weight: var(--fw-bold);
  transform: translateY(-200%);
  transition: transform var(--dur-base) var(--ease-out);
}

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

/* Gradient text — used for "Closers" in the headline. */
.u-grad-text {
  background: var(--grad-headline);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.u-cyan { color: var(--c-cyan); }
