:root {
  --paper: #f5f3ec;
  --ink: #171724;
  --cobalt: #5664f5;
  --apricot: #ff8a5b;
  --lime: #c8ee63;
  --mist: #e8e6f2;
  --slate: #55566a;
  --white: #ffffff;

  --edge: #dcdad0;
  --edge-strong: #c4c2b6;

  --danger: #c02626;

  --font-body: "Inclusive Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --step-0: clamp(1rem, 0.95rem + 0.28vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.28rem + 0.85vw, 1.95rem);
  --step-3: clamp(1.85rem, 1.55rem + 1.5vw, 2.85rem);
  --step-4: clamp(2.35rem, 1.9rem + 2.4vw, 3.9rem);

  --gap-2xs: 0.35rem;
  --gap-xs: 0.6rem;
  --gap-s: 0.9rem;
  --gap-m: 1.4rem;
  --gap-l: 2.2rem;
  --gap-xl: 3.4rem;
  --gap-2xl: 5rem;

  --shell: 76rem;
  --rail: 3.5rem;

  --radius-0: 0;
  --radius-1: 6px;
  --radius-2: 10px;
  --radius-3: 14px;

  --cut: 14px;

  --line: 1px solid var(--edge);
  --line-ink: 1.5px solid var(--ink);
  --focus: 3px solid var(--cobalt);
}

html[data-theme="dark"] {
  --paper: #0f0f18;
  --ink: #f0f0f6;
  --cobalt: #7c88ff;
  --apricot: #ffa883;
  --lime: #d6fa7c;
  --mist: #1c1c28;
  --slate: #9495ad;
  --white: #171724;
  --edge: #2e2e42;
  --edge-strong: #46465f;
  color-scheme: dark;
}


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

* {
  margin: 0;
}

html {
  background: var(--paper);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  font-weight: 700;
  text-wrap: balance;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
}
h4 {
  font-size: var(--step-1);
}

p {
  text-wrap: pretty;
}

a {
  color: var(--cobalt);
  text-underline-offset: 0.18em;
}

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

ul,
ol {
  padding-left: 1.2rem;
}

li {
  margin-block: 0.3rem;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: var(--gap-s);
  top: var(--gap-s);
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-1);
  transform: translateY(-160%);
  transition: transform 0.18s ease;
  text-decoration: none;
  font-weight: 700;
}

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

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

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