main {
  display: block;
}

section {
  padding: 5rem 1.25rem;
}

section > * {
  max-width: var(--wide);
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  margin: 0 auto 0.8rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-align: center;
}

section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  text-align: center;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.lede {
  max-width: 42rem;
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.demo .lede {
  margin-bottom: 2rem;
}

.video-slot {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 9;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background:
    radial-gradient(26rem 16rem at 50% 42%,
      rgba(217, 173, 82, 0.07), transparent 70%),
    var(--deep);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.video-slot > video,
.video-slot > iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-tag {
  margin-left: auto;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.term {
  display: flex;
  flex-direction: column;
  min-height: 0;
  font-family: var(--mono);
  font-size: clamp(0.62rem, 1.9vw, 0.85rem);
  line-height: 1.8;
  text-align: left;
}

.term-prompt {
  margin: 0;
  padding: 0.45rem 1rem 0.3rem;
  border-bottom: 1px solid var(--border);
  color: var(--accent-strong);
}

.term-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  vertical-align: text-bottom;
  background: var(--accent);
}

.term-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  overflow: hidden;
}

.term-list li {
  display: flex;
  gap: 1ch;
  padding: 0 1rem;
  white-space: nowrap;
  color: var(--muted);
}

.term-list .u {
  color: var(--text);
  font-weight: 600;
}

.term-list li::before {
  content: "";
  flex: 0 0 1ch;
  color: var(--accent);
}

.term-list .u::before {
  content: "\25C6";
}

.t-date {
  color: var(--muted);
  font-weight: 400;
}

.t-from {
  flex: 0 0 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

.t-subj {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.term-status {
  margin: 0;
  padding: 0.3rem 1rem 0.45rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85em;
}

@media (max-width: 34rem) {
  .t-date, .video-tag {
    display: none;
  }
  .term {
    font-size: 0.6rem;
    line-height: 1.5;
  }
  .term-list {
    padding: 0.3rem 0;
  }
  .term-list li {
    gap: 0.5ch;
  }
  .term-prompt {
    padding: 0.25rem 1rem 0.2rem;
  }
  .term-status {
    padding: 0.2rem 1rem 0.25rem;
  }
}

.tour, .themes {
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tour h2 {
  margin-bottom: 2.75rem;
}

.tour-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.tour-row:last-child {
  margin-bottom: 0;
}

.tour-copy h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0.2rem 0 0.7rem;
}

.tour-copy p:not(.kicker) {
  color: var(--muted);
  margin: 0;
}

.pillars {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1.6rem;
}

.pillar h3, .card h3 {
  font-size: 1.08rem;
  margin: 0.2rem 0 0.6rem;
  color: var(--text);
}

.pillar p:not(.kicker), .card p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.4rem;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(217, 173, 82, 0.45);
  transform: translateY(-2px);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--deep);
}

table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

thead th {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

thead th:nth-child(2) {
  color: var(--accent-strong);
}

th:nth-child(2), td:nth-child(2) {
  background: rgba(217, 173, 82, 0.05);
}

tbody th {
  color: var(--text);
  font-weight: 600;
}

td.yes::before {
  content: "\2713  ";
  color: var(--teal);
}

td.no::before {
  content: "\2717  ";
  color: var(--red);
}

td.yes, td.no {
  color: var(--text);
}

td.note {
  color: var(--muted);
}

.theme-strip {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1rem;
  scroll-snap-type: x proximity;
}

.theme-strip figure {
  flex: 0 0 auto;
  width: clamp(16rem, 34vw, 23rem);
  margin: 0;
  scroll-snap-align: start;
}

.theme-strip img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  transition: border-color 0.25s;
}

.theme-strip figure:hover img {
  border-color: rgba(217, 173, 82, 0.45);
}

.theme-strip figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: center;
}

.tag {
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  margin-left: 0.3rem;
}

.install .cmd {
  max-width: 32rem;
}

.install > .cmd:first-of-type {
  margin-top: 2rem;
}

.install .lede {
  margin-top: 2rem;
  margin-bottom: 0;
}

.pkgs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.pkg {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
}

.pkg-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.pkg h3 {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.pkg .cmd {
  margin-top: 0.8rem;
  max-width: none;
}

.pkg .cmd pre {
  font-size: 0.8rem;
}

.install .quickstart {
  max-width: 38rem;
  margin-top: 1.75rem;
}

footer {
  padding: 3rem 1.25rem 3.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer img {
  opacity: 0.85;
}

.links {
  list-style: none;
  margin: 1.25rem 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
}

.links a {
  text-decoration: none;
}

.licence {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 46rem) {
  .top-links {
    display: none;
  }
}

@media (min-width: 46rem) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .pkgs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tour-row {
    grid-template-columns: 3fr 2fr;
  }
  .tour-row:nth-child(odd) .frame {
    order: 2;
  }
}

@media (min-width: 64rem) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
