:root {
  --ink: #20233c;
  --forest: #282956;
  --green: #464592;
  --muted: #5e6378;
  --paper: #f4f5fb;
  --line: #dfe1ed;
  font-size: 100%;
}

p,
.plain-list {
  color: #575d75;
}

.page-heading p,
.option-text,
.prose p {
  font-size: 1rem;
}
.sidebar nav a,
.topbar,
.btn,
.route p,
.stat p {
  font-size: 0.875rem;
}
.stat > span,
.date-chip,
.library-grid a {
  font-size: 0.875rem;
}
.sidebar nav a {
  white-space: nowrap;
}
.sidebar nav a.active {
  background: #ece9f9;
}
.brand-mark {
  background: #353569;
}

.hero-card {
  background: linear-gradient(135deg, #292851, #393887 110%);
  min-height: 19rem;
}
.hero-card h2 {
  margin-top: 0;
  font-size: 1.75rem;
}
.hero-card p {
  color: #e4e3fa;
  font-size: 0.9375rem;
}
.hero-card .paper-illustration {
  background: #ede9ff;
  box-shadow: -12px 5px 0 #5c59a4;
}
.cream {
  background: #ebe6ff;
}
.cream:hover {
  background: #f7f4ff;
}
.primary:hover {
  background: #3b3b75;
}
.route:last-child {
  border-bottom: 0;
}

.option.answer,
.feedback.correct {
  color: #164b36;
  background: #edf8f0;
  border-color: #8dbb9f;
}
.option.answer .letter,
.diagnostic-demo .good {
  color: #164b36;
  background: #d9f0e2;
}
.option[disabled] {
  opacity: 1;
}
.figures > div {
  display: grid;
  gap: 0.6rem;
}
.figures img,
.original-layout img {
  width: auto;
  max-width: 100%;
  max-height: none;
  height: auto;
}
.figures .subtle,
.original-layout summary {
  font-size: 0.875rem;
}
.question-card,
.question-row,
.result-row {
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .topbar {
    gap: 0.75rem;
  }
  .topbar > div {
    flex-shrink: 0;
  }
  .topbar > span {
    font-size: 0.75rem;
  }
  .top-separator {
    margin-inline: 0.2rem;
  }
  .sidebar nav a {
    padding-inline: 0.65rem;
  }
  .hero-card {
    min-height: 16rem;
  }
  .hero-card h2 {
    font-size: 1.5rem;
  }
  .hero-card .paper-illustration {
    right: 0.5rem;
    bottom: -2rem;
    width: 108px;
    height: 148px;
    opacity: 0.75;
  }
  .stat p {
    font-size: 0.75rem;
  }
  .question-nav {
    grid-template-columns: repeat(8, 1fr);
  }
  .question-actions .btn {
    font-size: 0.875rem;
  }
}

@media (max-width: 380px) {
  .top-separator {
    display: none;
  }
  .topbar > span a {
    display: block;
  }
  .hero-card .paper-illustration {
    right: -0.5rem;
  }
}
