:root {
  --ink: #202122;
  --quiet: #575a5e;
  --line: #dcddde;
  --link: #065ba1;
}
html {
  scroll-padding-top: 5.25rem;
}
body {
  margin: 0;
}
.lib-wrap {
  width: min(74rem, calc(100% - clamp(2.4rem, 9vw, 9rem)));
  margin-inline: auto;
}
.nav .nav-links {
  gap: clamp(0.8rem, 2.4vw, 2rem);
}
.nav .primary {
  padding: 0.55rem 1rem;
  min-height: 2.25rem;
}
.breadcrumbs {
  padding-block: 1.45rem 0;
  color: var(--quiet);
  font-size: 0.8rem;
}
.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li + li::before {
  content: '›';
  margin-right: 0.55rem;
  color: #808287;
}
.breadcrumbs a:hover,
.lib-foot a:hover,
.resources a:hover,
.toc a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 6vw, 6.25rem);
  align-items: center;
  padding-block: clamp(1.6rem, 3.4vw, 3.2rem) clamp(2.5rem, 5.2vw, 5rem);
}
.lead-copy h1 {
  margin: 0;
  font-size: clamp(3.05rem, 5.5vw, 5.5rem);
  font-weight: 620;
  line-height: 0.999;
  text-wrap: balance;
  letter-spacing: -0.061em;
}
.lead-copy > p {
  margin: 1.25rem 0 0;
  max-width: 35rem;
  font-size: clamp(1.04rem, 1.65vw, 1.36rem);
  line-height: 1.48;
  letter-spacing: -0.021em;
  color: var(--quiet);
  text-wrap: pretty;
}
.read {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.7rem;
  margin-top: 1.05rem;
  font-size: 0.94rem;
  font-weight: 580;
}
.read span {
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #c8cace;
  font-size: 0.85rem;
}
.read:hover {
  color: var(--link);
}
.scene {
  min-width: 0;
  margin: 0;
  padding: 1.15rem 1.25rem 1rem;
  overflow: hidden;
  border-radius: clamp(1.4rem, 2.4vw, 2.2rem);
  background: #f5f4f2;
}
.scene-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 1.8rem;
  color: #424449;
  font-size: 0.87rem;
  font-weight: 575;
}
.stage {
  height: clamp(12.5rem, 22vw, 18rem);
}
.stage video {
  display: block;
  width: min(100%, 28rem);
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
}
.scene figcaption {
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
}
.demo-controls button,
.demo-controls select {
  min-height: 2.4rem;
  min-width: 2.6rem;
  background: #fff;
  border: 1px solid rgb(50 51 54 / 12%);
  color: var(--ink);
  border-radius: 1.8rem;
  font:
    555 0.82rem/1.2 -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  padding: 0.5rem 0.8rem;
}
.demo-controls button[data-play] {
  color: #fff;
  background: #242526;
  border-color: transparent;
}
.demo-controls button:hover {
  box-shadow: 0 1px 4px rgb(0 0 0 / 16%);
}
.demo-controls label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 560;
}
.demo-controls input[type="range"] {
  width: 6rem;
  accent-color: var(--ink);
}
.demo-controls select {
  max-width: 12rem;
}
.demo-controls[hidden], .demo-controls label[hidden], .demo-note:empty {
  display: none;
}
.demo-note {
  font-size: 0.76rem;
  text-align: center;
  color: #484a4d;
}
.directory,
.chapters,
.reading {
  border-top: 1px solid var(--line);
  padding-top: clamp(1.8rem, 3.7vw, 3.5rem);
}
.directory > h2,
.directory-heading h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.05rem);
  font-weight: 610;
  line-height: 1.08;
  letter-spacing: -0.051em;
}
.collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3.8vw, 3.6rem);
  margin-top: clamp(1.65rem, 3.6vw, 3.4rem);
}
.collection h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.12;
  font-weight: 610;
  letter-spacing: -0.04em;
}
.collection h3 a:hover {
  color: var(--link);
}
.collection > p,
.directory-heading p {
  color: var(--quiet);
  margin: 0.8rem 0 1.2rem;
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.lesson-link,
.chapter-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--line);
  font-weight: 530;
  font-size: 0.97rem;
}
.go {
  flex: none;
  font-weight: 400;
  color: #6e7379;
}
.lesson-link:hover,
.chapter-row:hover,
.chapter-row:hover .go,
.lesson-link:hover .go {
  color: var(--link);
}
.chapters,
.reading {
  display: grid;
  grid-template-columns: minmax(10rem, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(2rem, 7vw, 6.6rem);
}
.chapter-row {
  align-items: center;
  padding: 1rem 0;
}
.chapter-row:first-child,
.more .lesson-link:nth-child(2) {
  border-top-color: transparent;
}
.chapter-row img {
  width: clamp(3.9rem, 6.5vw, 5.5rem);
  height: auto;
  border-radius: 0.8rem;
}
.chapter-row > span:nth-child(2) {
  flex: 1;
}
.chapter-row strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.023em;
  font-weight: 590;
}
.chapter-row small {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.92rem;
  color: var(--quiet);
  line-height: 1.42;
}
.reading {
  grid-template-columns: minmax(11rem, 0.55fr) minmax(0, 1.45fr);
}
.toc {
  align-self: start;
  position: sticky;
  top: 5.3rem;
}
.toc h2 {
  font:
    620 0.86rem/1.35 -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  letter-spacing: 0;
}
.toc ul,
.resources ul {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}
.toc a {
  display: block;
  padding: 0.36rem 0;
  color: var(--quiet);
  font-size: 0.9rem;
}
.prose {
  max-width: 46rem;
  width: 100%;
}
.prose > section + section {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.prose h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.32rem);
  letter-spacing: -0.045em;
  font-weight: 620;
  line-height: 1.15;
  text-wrap: balance;
}
.prose p,
.prose ol {
  margin: 0.85rem 0 0;
  font-size: 1.04rem;
  line-height: 1.7;
  letter-spacing: -0.009em;
  overflow-wrap: break-word;
}
.prose ol {
  padding-left: 1.4rem;
}
.prose li + li {
  margin-top: 0.42rem;
}
.code {
  margin: 1.15rem 0 0;
  border: 1px solid #e2e3e5;
  border-radius: 0.9rem;
  background: #f6f6f7;
  overflow: hidden;
}
.code figcaption {
  font-size: 0.81rem;
  padding: 0.5rem 1rem;
  min-height: 2.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dfe0e3;
  font-weight: 600;
}
.code button {
  color: var(--link);
  font-size: 0.82rem;
  min-height: 1.8rem;
}
.code pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  font:
    0.82rem/1.65 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.resources a {
  color: var(--link);
  font-size: 0.96rem;
}
.lib-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  margin-top: clamp(3rem, 7vw, 6rem);
}
.lib-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.84rem;
}
.lib-foot a {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
}
@media (max-width: 54rem) {
  .lead {
    gap: 1.3rem;
  }
  .lead-copy h1 {
    font-size: clamp(2.65rem, 6.1vw, 4rem);
  }
  .reading,
  .chapters {
    gap: 1.6rem;
    grid-template-columns: minmax(9rem, 0.55fr) minmax(0, 1.45fr);
  }
  .collections {
    gap: 1.25rem;
  }
  .stage {
    height: clamp(12rem, 24vw, 15rem);
  }
}
@media (max-width: 43rem) {
  .lib-wrap {
    width: calc(100% - 2.3rem);
  }
  .nav .nav-links {
    gap: 0.85rem;
  }
  .nav .nav-links a {
    font-size: 0.79rem;
  }
  .nav .nav-links .button {
    padding-inline: 0.7rem;
  }
  .breadcrumbs {
    padding-top: 1rem;
    font-size: 0.73rem;
  }
  .lead {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding-block: 1.5rem 2rem;
  }
  .lead-copy h1 {
    font-size: clamp(2.65rem, 8.8vw, 3.7rem);
  }
  .lead-copy > p {
    margin-top: 0.75rem;
  }
  .read {
    margin-top: 0.35rem;
  }
  .stage {
    height: clamp(11rem, 45vw, 16rem);
  }
  .scene {
    padding: 0.8rem 0.9rem 0.6rem;
  }
  .collections,
  .reading,
  .chapters {
    grid-template-columns: minmax(0, 1fr);
  }
  .collections {
    gap: 2.4rem;
  }
  .toc {
    position: static;
  }
  .lib-foot {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 23rem) {
  .lib-wrap {
    width: calc(100% - 1.7rem);
  }
  .nav .nav-links {
    gap: 0.5rem;
  }
  .nav .brand {
    font-size: 1.05rem;
  }
}
.nav .nav-links a {
  white-space: nowrap;
}
.nav .button.primary {
  gap: 0;
  white-space: pre;
}
@media (max-width: 32rem) {
  .nav-long {
    display: none;
  }
  .nav .nav-links {
    margin-left: auto;
  }
}
