*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--color-bg);
  background-image: radial-gradient(#dce5ef 1px, transparent 1px);
  background-size: 24px 24px;
  overflow-x: hidden;
}

.ambient-lights {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-light {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.ambient-light-left {
  top: -12rem;
  left: -12rem;
  width: 24rem;
  height: 24rem;
  background: #5eead4;
  opacity: 0.78;
  animation: ambient-drift-left 20s ease-in-out infinite alternate;
}

.ambient-light-right {
  top: 10rem;
  right: -10rem;
  width: 30rem;
  height: 30rem;
  background: #60a5fa;
  opacity: 0.2;
  animation: ambient-drift-right 24s ease-in-out infinite alternate;
}

.ambient-light-bottom {
  bottom: -13rem;
  left: 22%;
  width: 20rem;
  height: 20rem;
  background: #2dd4bf;
  opacity: 0.24;
  animation: ambient-drift-bottom 26s ease-in-out infinite alternate;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  width: 1.25em;
  height: 1.25em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.page-main {
  min-height: calc(100vh - 12rem);
  padding-top: 8.25rem;
  padding-bottom: var(--space-16);
}

.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;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

@keyframes ambient-drift-left {
  to { transform: translate3d(2rem, 1.2rem, 0) scale(1.04); }
}

@keyframes ambient-drift-right {
  to { transform: translate3d(-2rem, 1.5rem, 0) scale(0.97); }
}

@keyframes ambient-drift-bottom {
  to { transform: translate3d(3rem, -1.4rem, 0) scale(1.03); }
}

@media (max-width: 720px) {
  .page-main {
    padding-top: 6.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ambient-light {
    will-change: auto;
  }
}
