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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 90% 52% at 50% -12%, rgba(148, 80, 191, 0.26), transparent 72%),
    radial-gradient(ellipse 42% 32% at 100% 8%, rgba(91, 51, 139, 0.2), transparent 72%),
    radial-gradient(circle at 15% 20%, rgba(220, 180, 232, 0.42) 0 1px, transparent 1.6px),
    radial-gradient(circle at 72% 38%, rgba(220, 180, 232, 0.32) 0 1px, transparent 1.6px),
    radial-gradient(circle at 36% 74%, rgba(180, 121, 215, 0.25) 0 1px, transparent 1.6px);
  background-size: auto, auto, 11rem 11rem, 15rem 15rem, 19rem 19rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

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

a {
  color: var(--color-highlight);
  text-decoration: none;
}

a:hover {
  color: var(--color-white);
}

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

img {
  height: auto;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--color-button);
  color: var(--color-white);
}

:focus-visible {
  outline: 2px solid var(--color-highlight);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

::-webkit-scrollbar {
  width: 0.65rem;
  height: 0.65rem;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-deep);
  border: 2px solid var(--color-bg);
  border-radius: var(--radius-pill);
}

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

.site-main {
  min-height: 58vh;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon--success {
  color: var(--color-success);
}

.icon--filled {
  fill: currentColor;
  stroke: none;
}

.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;
  top: 0.75rem;
  left: 50%;
  z-index: 200;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  color: var(--color-white);
  font-weight: 650;
  transform: translate(-50%, -160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.text-gradient {
  background: linear-gradient(120deg, var(--color-highlight) 0%, var(--color-white) 55%, var(--color-button) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--color-highlight);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0.25rem rgba(34, 197, 94, 0.12);
}

.muted {
  color: var(--color-muted);
}

.section {
  padding-block: clamp(2.25rem, 5vw, 4rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-head__copy {
  min-width: 0;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  font-size: var(--text-xl);
}

.section-title .icon {
  color: var(--color-highlight);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.4rem 0.2rem;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 650;
}

.section-link:hover {
  color: var(--color-white);
}

.section-link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform var(--transition);
}

.section-link:hover .icon {
  transform: translateX(2px);
}

.surface {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  box-shadow: var(--shadow-card);
}

.page--error .site-main {
  display: grid;
  place-items: center;
  min-height: 62vh;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
