/* Shared base for both pages: self-hosted fonts, reset, focus ring and the live site's
   reduced-motion rule (MOTION-001 layer 2), vendored because nothing on Webflow's CDN
   can be relied on during the outage these pages exist for. */
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/shared/fonts/CabinetGrotesk-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/shared/fonts/Outfit-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  color-scheme: dark;
  background: var(--surface--dark-primary);
  color: var(--text--on-dark-primary);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-weight: 300;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: var(--text--link-on-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

/* Focus: the live design system's --interactive--focus-ring (#53b7ea). The offset keeps
   the ring on the dark ground next to orange buttons, where #53b7ea alone would be 1.16:1. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--interactive--focus-ring);
  outline-offset: 3px;
}

/* MOTION-001 / layer 2 (verbatim from the live site's custom code): non-essential transitions
   and animations resolve immediately. 0.01ms rather than `none` so transitionend / animationend
   still fire and every interaction reaches the same final state. Opt an element out with
   data-motion="essential". No element on these pages opts out. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *:not([data-motion="essential"], [data-motion="essential"] *),
  *:not([data-motion="essential"], [data-motion="essential"] *)::before,
  *:not([data-motion="essential"], [data-motion="essential"] *)::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
