* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--nebula-night);
  color: var(--nebula-moon);
  font:
    400 17px/1.7 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--nebula-lamp);
  outline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
.intro {
  font-family: var(--nebula-display);
  font-weight: 400;
}
h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -0.045em;
  margin: 16px 0 24px;
}
h2 {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
h3 {
  font-size: 1.5rem;
}
p {
  max-width: 66ch;
  margin: 0 0 20px;
}
figure {
  margin: 0;
}
figcaption {
  font-size: 13px;
  line-height: 1.55;
  max-width: 78ch;
  color: inherit;
  opacity: 0.85;
  margin-top: 12px;
}
button,
input {
  font: inherit;
}
.skip {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 20px;
  transform: translateY(-150%);
  background: var(--nebula-paper);
  color: var(--nebula-ink);
  padding: 12px;
}
.skip:focus {
  transform: none;
}
.wrap {
  max-width: 1376px;
  margin: auto;
  padding-inline: 40px;
}
.hero {
  position: relative;
  min-height: min(810px, 88svh);
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  z-index: -2;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(26, 18, 46, 0.95),
      rgba(26, 18, 46, 0.72) 32%,
      rgba(26, 18, 46, 0.08) 70%
    ),
    linear-gradient(0deg, var(--nebula-night), transparent 30%);
}
.hero-copy {
  width: 100%;
  padding-block: 80px 120px;
}
.hero-copy h1 {
  max-width: 8ch;
}
.hero-copy p {
  max-width: 34ch;
  font-size: 20px;
}
.development {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.development:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nebula-lamp);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 2px solid var(--nebula-ink);
  border-radius: 8px;
  background: var(--nebula-lamp);
  color: var(--nebula-ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.4;
}
.hero-credit {
  position: absolute;
  bottom: 22px;
  right: 40px;
  max-width: 370px;
  text-align: right;
  font-size: 12px;
  line-height: 1.5;
}
.hero-credit a {
  display: inline-block;
  padding-block: 8px;
}
.opening {
  padding-block: 70px 100px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 10%;
}
.opening .intro {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.55;
}
.opening p {
  margin-bottom: 0;
}
.paper {
  background: var(--nebula-paper);
  color: var(--nebula-ink);
}
.spread {
  padding-block: 100px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8%;
  align-items: center;
}
.spread.reverse {
  grid-template-columns: 1fr 1.2fr;
}
.spread img {
  width: 100%;
  border-radius: 46% 46% 8px 8px / 14% 14% 8px 8px;
  border: 2px solid var(--nebula-ink);
}
.spread.reverse img {
  border-radius: 8px;
}
.spread .scene-caption {
  margin-top: 14px;
  color: var(--nebula-blue);
}
.night-spread .scene-caption {
  color: var(--nebula-moon);
}
.spread .text p:last-child {
  margin-bottom: 0;
}
.section-tag {
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--nebula-blue);
}
.night-spread .section-tag {
  color: var(--nebula-lamp);
}
.prototype {
  border-top: 1px solid #65567e;
  padding-block: 96px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 7%;
  align-items: center;
}
.prototype img {
  border-radius: 6px;
}
.development-note {
  padding-block: 80px;
  text-align: center;
}
.development-note h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}
.development-note p {
  margin-inline: auto;
}
.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
}
.text-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.development-note .text-links {
  justify-content: center;
}
.site-footer {
  padding-block: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}
.site-footer p {
  margin: 0;
}
.guide-cover {
  padding-block: 68px 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 7%;
  align-items: center;
}
.guide-cover h1 {
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  max-width: 12ch;
}
.guide-cover p {
  font-size: 18px;
  max-width: 52ch;
}
.guide-cover img {
  border-radius: 8px 80px 8px 8px;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.guide-tabs {
  display: flex;
  gap: 10px 28px;
  flex-wrap: wrap;
  padding-block: 12px;
  border-bottom: 1px solid #baad96;
}
.guide-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.guide-tabs a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 68px;
  padding-block: 56px 100px;
}
.chapters {
  font-size: 14px;
  align-self: start;
  position: sticky;
  top: 24px;
}
.chapters summary {
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0;
}
.chapters a {
  display: block;
  padding: 10px 0;
  line-height: 1.45;
  text-decoration: none;
}
.chapters a:hover {
  text-decoration: underline;
}
.chapters nav {
  border-top: 1px solid #baad96;
}
.prose {
  max-width: 800px;
  min-width: 0;
}
.prose h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  margin: 0 0 24px;
}
.prose #start {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.prose h2 {
  font-size: 2rem;
  border-top: 1px solid #baad96;
  margin-top: 64px;
  padding-top: 28px;
}
.prose h3 {
  font-size: 1.4rem;
  margin-top: 36px;
}
.prose p {
  max-width: 70ch;
}
.prose li {
  margin: 12px 0;
  max-width: 70ch;
}
.prose ul {
  padding-left: 24px;
}
.prose input[type="checkbox"] {
  accent-color: var(--nebula-ink);
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
.prose .task-list-item {
  list-style: none;
  margin-left: -24px;
  padding: 12px 0 12px 30px;
  position: relative;
  border-bottom: 1px solid #d4c6a9;
}
.task-list-item input {
  position: absolute;
  left: 0;
  top: 18px;
}
.prose img {
  width: 100%;
  margin-block: 30px;
  background: #fff;
  border-radius: 6px;
}
.prose blockquote {
  margin: 24px 0;
  padding: 4px 24px;
  border-left: 3px solid var(--nebula-blue);
}
.prose table {
  border-collapse: collapse;
  font-size: 15px;
  width: 100%;
  display: block;
  overflow: auto;
}
.prose th,
.prose td {
  padding: 12px;
  border-bottom: 1px solid #baad96;
  text-align: left;
  vertical-align: top;
}
.prose code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.source-note {
  font-size: 13px;
  color: var(--nebula-blue);
  margin-top: 60px;
}
.next-assignment {
  padding: 30px 36px;
  background: #e4d5b7;
  border: 2px solid var(--nebula-ink);
  border-radius: 7px;
  margin-bottom: 36px;
}
.next-assignment h2 {
  font-size: 1.7rem;
  border: 0;
  padding: 0;
  margin: 0 0 14px;
}
.next-assignment p {
  margin: 0;
}
.guide-body .site-footer {
  border-top: 1px solid #baad96;
}
.guide-body a:focus-visible {
  outline-color: var(--nebula-blue);
}
.guide-body .nebula-nav a:focus-visible {
  outline-color: var(--nebula-lamp);
}
@media (max-width: 900px) {
  .wrap {
    padding-inline: 28px;
  }
  .hero {
    min-height: 720px;
  }
  .hero-copy h1 {
    font-size: 4.5rem;
  }
  .opening {
    gap: 7%;
  }
  .spread,
  .prototype {
    gap: 6%;
    padding-block: 64px;
  }
  .guide-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
  }
  .guide-cover {
    gap: 5%;
  }
  .guide-cover h1 {
    font-size: 3.2rem;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding-inline: 22px;
  }
  .hero {
    min-height: 780px;
    align-items: flex-end;
  }
  .hero .scene {
    height: 500px;
    object-position: 65% 50%;
  }
  .hero:after {
    background: linear-gradient(
      0deg,
      var(--nebula-night) 22%,
      rgba(33, 25, 54, 0.72) 48%,
      transparent 90%
    );
  }
  .hero-copy {
    padding-block: 300px 90px;
  }
  .hero-copy h1 {
    font-size: 3.8rem;
    max-width: 9ch;
  }
  .hero-copy p {
    font-size: 18px;
    max-width: 32ch;
  }
  .hero-credit {
    right: 22px;
    left: 22px;
    bottom: 16px;
    max-width: none;
    text-align: left;
  }
  .opening,
  .spread,
  .spread.reverse,
  .prototype,
  .guide-cover,
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .opening {
    padding-block: 50px 64px;
  }
  .spread,
  .prototype {
    padding-block: 56px;
  }
  .spread.reverse .text {
    order: 2;
  }
  .spread.reverse figure {
    order: 1;
  }
  .prototype .text {
    order: 2;
  }
  .prototype figure {
    order: 1;
  }
  .development-note {
    padding-block: 60px;
  }
  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
  .guide-cover {
    padding-block: 32px 42px;
  }
  .guide-cover h1 {
    font-size: 3rem;
  }
  .guide-cover img {
    aspect-ratio: 16/9;
    max-height: 220px;
  }
  .guide-tabs {
    gap: 4px 20px;
  }
  .guide-layout {
    padding-top: 24px;
    gap: 24px;
  }
  .chapters {
    position: static;
  }
  .chapters nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .prose h2 {
    font-size: 1.7rem;
    margin-top: 44px;
  }
  .next-assignment {
    padding: 24px;
  }
  .prose li,
  .prose p {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .nebula-nav,
  .chapters,
  .guide-cover,
  .guide-tabs,
  .site-footer,
  .skip {
    display: none;
  }
  .guide-layout {
    display: block;
    padding: 0;
  }
  .prose {
    max-width: none;
  }
  body,
  .paper {
    background: white;
    color: black;
  }
  a {
    color: inherit;
  }
  .prose h2 {
    break-after: avoid;
  }
  img {
    max-height: 400px;
    object-fit: contain;
  }
}
