.guide-page { min-height: 100svh; }

.guide-page main {
  width: min(100% - clamp(2rem, 8vw, 8rem), 64rem);
  margin-inline: auto;
  padding-block: clamp(1.5rem, 4vw, 3rem) clamp(4rem, 9vw, 8rem);
}

.guide-nav {
  margin-bottom: clamp(4rem, 10vw, 8rem);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
}

.guide-nav a { text-decoration: none; }

.guide-page h1 {
  max-width: 18ch;
  font-size: clamp(3rem, 7vw, 5.7rem);
  font-weight: 520;
  letter-spacing: -.055em;
  line-height: .94;
  text-wrap: balance;
}

.lede {
  max-width: 58ch;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  line-height: 1.62;
}

.guide-byline {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.65;
}

.guide-page h2 {
  max-width: 25ch;
  margin-top: clamp(3.8rem, 8vw, 6rem);
  margin-bottom: 1.25rem;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 520;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.guide-page h3 { margin-top: 2rem; font-size: 1.05rem; font-weight: 550; }

.guide-page p,
.guide-page li {
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.72;
}

.guide-page main > p + p,
.guide-page main > p + ul,
.guide-page main > p + ol,
.guide-page main > ol + p,
.guide-page main > ul + p { margin-top: 1.15rem; }

.guide-page ul,
.guide-page ol { max-width: 68ch; padding-left: 1.25rem; }
.guide-page li + li { margin-top: .65rem; }
.guide-page li::marker { color: var(--stain); }

.source-note {
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem !important;
  line-height: 1.65 !important;
}

.quiet { color: var(--muted); font-size: .7rem !important; line-height: 1.65 !important; }

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}

.quiz-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--raised);
  box-shadow: 0 18px 45px -38px rgb(16 39 45 / .45);
}

.quiz-card h3 {
  margin-top: 0;
  padding: .9rem 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .04em;
}

.quiz-card img { display: block; width: 100%; height: auto; background: #fff; }

.quiz-card figcaption {
  padding: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  line-height: 1.55;
}

.quiz-card details { padding: 0 1rem 1rem; }

.guide-page summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--stain);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .04em;
  list-style: none;
  cursor: pointer;
}

.guide-page summary::-webkit-details-marker { display: none; }
.guide-page summary::after { content: "+"; }
.guide-page details[open] summary::after { content: "−"; }
.guide-page details p { margin-top: .8rem; font-size: .9rem; }

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.plan-card {
  padding: 1.35rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.plan-card h3 { margin: 0 0 .45rem; }
.plan-card p { color: var(--muted); font-size: .88rem; line-height: 1.62; }

.guide-footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 620px) {
  .guide-page main { width: min(100% - 2rem, 64rem); }
  .guide-nav { margin-bottom: 3.5rem; }
  .resource-list { grid-template-columns: 1fr; }
}
