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

html {
  min-width: 0;
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

body.intro-active {
  overflow: hidden;
}

main,
section,
article,
header,
footer,
nav,
aside {
  display: block;
}

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

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

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
dl,
dd,
ol,
ul {
  margin: 0;
}

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

::selection {
  background: rgba(238, 242, 244, 0.92);
  color: var(--ink);
}

:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.94);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 500;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bone);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  transform: translateY(-180%);
  transition: transform 240ms ease;
}

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

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

.micro-label,
.chapter-index,
.chapter-kicker {
  font-family: var(--font-tech);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  line-height: 1.65;
  text-transform: uppercase;
}

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.line-mask > span {
  display: block;
  will-change: transform, opacity, filter;
}

.no-js .intro,
.no-js .site-header,
.no-js .chapter-rail,
.no-js .chapter-hud,
.no-js .progress-track,
.no-js .scene-layer,
.no-js .prototype-flag {
  display: none;
}

.no-js .chapter {
  min-height: auto;
  padding: 5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.noscript-note {
  position: fixed;
  z-index: 490;
  right: 1rem;
  bottom: 1rem;
  max-width: 26rem;
  border: 1px solid var(--hairline);
  background: rgba(4, 5, 6, 0.94);
  padding: 1rem 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
}

::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  border: 2px solid var(--ink);
  background: rgba(212, 216, 219, 0.3);
}
