:root {
  color-scheme: dark;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --color-ink: #f0eff5;
  --color-muted: #8b8a96;
  --color-hint: #55545f;
  --color-soft: #0e0e11;
  --color-surface: #16161a;
  --color-surface-soft: #1e1e24;
  --color-panel: #16161a;
  --color-line: rgba(255, 255, 255, 0.08);
  --color-line-strong: rgba(255, 255, 255, 0.13);
  --color-green: #8b7cf8;
  --color-green-dark: #b39dfc;
  --color-coral: #e8704a;
  --color-gold: #e5a84a;
  --color-blue: #4ea8e8;
  --color-plum: #b06ee8;
  --color-pink: #e8709c;
  --color-teal: #3dc9a0;
  --color-mint-soft: rgba(139, 124, 248, 0.12);
  --color-blue-soft: rgba(78, 168, 232, 0.12);
  --color-gold-soft: rgba(229, 168, 74, 0.12);
  --color-coral-soft: rgba(232, 112, 74, 0.12);
  --color-plum-soft: rgba(176, 110, 232, 0.12);
  --color-pink-soft: rgba(232, 112, 156, 0.12);
  --shadow-soft: none;
  --shadow-card: none;
  --shadow-hover: none;
  --radius-sm: 6px;
  --radius-md: 10px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --content-width: 1100px;
  --measure: 68ch;
  --c-bg: #0e0e11;
  --c-surface: #16161a;
  --c-surface2: #1e1e24;
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border2: rgba(255, 255, 255, 0.13);
  --c-text: #f0eff5;
  --c-muted: #8b8a96;
  --c-hint: #55545f;
  --c-accent: #8b7cf8;
  --c-accent2: #b39dfc;
  --c-gold: #e5a84a;
  --c-teal: #3dc9a0;
  --c-coral: #e8704a;
  --c-blue: #4ea8e8;
  --c-plum: #b06ee8;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--c-text);
}

:focus-visible {
  outline: 2px solid rgba(139, 124, 248, 0.72);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

ul,
ol {
  margin-top: 0;
}

strong {
  font-weight: 720;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 1000;
  transform: translateY(-140%);
  border: 0.5px solid var(--c-border2);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: var(--space-2) var(--space-3);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.u-measure {
  max-width: var(--measure);
}

.u-kicker {
  color: var(--c-accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.12rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 1.86rem;
  }

  h3 {
    font-size: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
