:root {
  --switcher-bg: rgba(255, 255, 255, 0.92);
  --switcher-fg: #16191f;
  --switcher-muted: #727986;
  --switcher-active-bg: #16191f;
  --switcher-active-fg: #ffffff;
  --focus: #2f6ff7;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  min-height: 44px;
  padding: 11px 16px;
  color: #ffffff;
  background: #111318;
  transform: translateY(-160%);
  transition-property: transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

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

.concept-switcher {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px;
  color: var(--switcher-fg);
  background: var(--switcher-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  backdrop-filter: blur(16px);
}

.concept-switcher > span {
  padding: 0 10px;
  color: var(--switcher-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.concept-switcher a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--switcher-muted);
  text-decoration: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition-property: color, background-color, transform;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.concept-switcher a:hover {
  color: var(--switcher-fg);
  background: rgba(127, 127, 127, 0.12);
}

.concept-switcher a:active {
  transform: scale(0.96);
}

.concept-switcher a[aria-current="page"] {
  color: var(--switcher-active-fg);
  background: var(--switcher-active-bg);
}

.reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition-property: opacity, transform;
  transition-duration: 620ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .concept-switcher > span {
    display: none;
  }
}

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

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

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
