.tour {
  background: var(--bg);
}

.prose,
.head {
  --prose: 40rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.prose > section > *:not(.demo) {
  max-width: var(--prose);
}

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 0;
}

.topbar-mark {
  font-size: var(--f-1);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.topbar-link,
.footer-link {
  font-size: var(--f--1);
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.topbar-mark:hover { color: #fff; }
.topbar-link:hover,
.footer-link:hover { color: var(--ink); border-color: var(--ink-faint); }

.head {
  padding-top: 5.5rem;
  padding-bottom: 1rem;
}

.head h1 {
  font-size: clamp(var(--f-5), 6vw, var(--f-9));
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.head-lede {
  font-size: var(--f-1);
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 40rem;
}

.head-note {
  font-size: var(--f--1);
  color: var(--ink-faint);
  line-height: 1.7;
  max-width: 40rem;
  margin-top: 1.4rem;
  padding-left: 0.9rem;
  border-left: 1px solid var(--hairline);
}

.prose > section {
  padding: 3.6rem 0 0;
}

.prose > section + section > h2 {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 3.4rem;
}

.prose h2 {
  font-size: var(--f-5);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 1.1rem;
}

.prose h3 {
  font-size: var(--f-1);
  font-weight: 500;
  color: #fff;
  margin: 1.9rem 0 0.7rem;
}

.prose p {
  font-size: var(--f-0);
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 1.05rem;
}

.prose p em {
  font-style: normal;
  font-weight: 500;
  color: #fff;
}

.prose strong { font-weight: 500; color: #fff; }

.prose a {
  color: var(--accent);
  text-decoration-color: hsla(211, 100%, 62.5%, 0.4);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--accent); }

.prose code {
  font-family: inherit;
  font-weight: 400;
  font-size: 0.95em;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: hsla(0, 0%, 100%, 0.055);
  border-radius: 4px;
  padding: 0.08em 0.34em;
}

.hw {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hw-todo { color: var(--warn); }
.hw-done { color: var(--good); opacity: 0.75; }

.sample {
  font-family: inherit;
  font-size: var(--f--1);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-raised);
  border: 1px solid var(--hairline-soft);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.3rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.plain {
  list-style: none;
  margin: 0 0 1.3rem;
  font-size: var(--f-0);
  line-height: 1.7;
  color: var(--ink);
}
.plain li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.6rem;
}
.plain li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.spec {
  margin: 0;
  font-size: var(--f-0);
  line-height: 1.7;
  border-top: 1px solid var(--hairline-soft);
}
.spec dt {
  font-weight: 500;
  color: #fff;
  padding-top: 0.85rem;
}
.spec dd {
  color: var(--ink-muted);
  margin: 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--hairline-soft);
}

@media (min-width: 40rem) {
  .spec {
    display: grid;
    grid-template-columns: 10rem 1fr;
    column-gap: 1.5rem;
  }
  .spec dt,
  .spec dd {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--hairline-soft);
  }
}

.demo {
  margin: 1.9rem 0 0.4rem;
}

.demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 18px 50px hsla(0, 0%, 0%, 0.45);
}

.demo figcaption {
  font-size: var(--f--1);
  color: var(--ink-faint);
  margin-top: 0.8rem;
}

.tour .closer {
  margin-top: 5rem;
  padding: 0 1.5rem;
}
.tour .cta-note { margin-top: 1.4rem; }

@media (max-width: 640px) {
  .head { padding-top: 3.5rem; }
  .prose > section { padding-top: 2.6rem; }
  .prose > section + section > h2 { padding-top: 2.4rem; }
  .demo-video { border-radius: 12px; }
}
