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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 50;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  content: "";
  transition: border-color 0.4s ease;
}

body.is-leaving::before {
  border-color: var(--cyan);
}

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

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

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

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

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

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.055em;
}

::selection {
  background: var(--cyan);
  color: var(--ink);
}

:focus-visible {
  border-radius: 0.15rem;
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: -5rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-bright);
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(calc(100% - (var(--gutter) * 2)), var(--narrow));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
  box-shadow: 0 0 1.5rem rgba(0, 189, 231, 0.65);
}

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.55;
  letter-spacing: -0.018em;
}

.display-xl {
  max-width: 12ch;
  margin-bottom: 2rem;
  font-size: clamp(4.5rem, 11vw, 10.5rem);
  line-height: 0.82;
}

.display-lg {
  max-width: 13ch;
  margin-bottom: 2rem;
  font-size: clamp(3.5rem, 8vw, 7.6rem);
  line-height: 0.9;
}

.display-md {
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.95;
}

.cyan {
  color: var(--cyan-deep);
}

.on-dark {
  color: var(--paper-bright);
}

.on-dark .eyebrow,
.on-dark .lead {
  color: var(--muted-light);
}

.on-dark .cyan {
  color: var(--cyan-soft);
}

.rule {
  width: 100%;
  height: 1px;
  background: var(--line);
}
