:root { color-scheme: light dark; }
* { box-sizing: border-box; }
body {
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  color: #222;
  background: #fafafa;
}
@media (prefers-color-scheme: dark) {
  body { color: #e8e8e8; background: #111; }
  a { color: #6cb6ff; }
  .card { background: #1c1c1e; border-color: #2a2a2c; }
  .crumb-sep { color: #555; }
  .theme-blurb { background: #1c1c1e; border-color: #2a2a2c; }
  .star-table th, .star-table td { border-color: #2a2a2c; }
  footer { color: #888; border-color: #2a2a2c; }
}
h1 { font-size: 2rem; margin: .5rem 0 .25rem; }
h2 { font-size: 1.3rem; margin-top: 2.25rem; }
a { color: #0a66c2; text-decoration: none; }
a:hover { text-decoration: underline; }

.crumbs { font-size: .9rem; color: #666; margin-bottom: 1rem; }
.crumb-sep { margin: 0 .35rem; color: #bbb; }

.hero {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 1rem auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.cta-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.cta {
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
}
.cta-primary { background: #0a66c2; color: #fff; }
.cta-secondary { background: transparent; color: inherit; border: 1px solid currentColor; }

.theme-blurb {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.star-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.star-table th, .star-table td {
  text-align: left;
  padding: .5rem .75rem;
  border-bottom: 1px solid #e6e6e6;
}
.star-table th { font-weight: 600; }

.level-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0 1rem;
  gap: 1rem;
}
.level-nav .nav-link { flex: 1 1 0; }
.level-nav .nav-link.prev { text-align: left; }
.level-nav .nav-link.next { text-align: right; }
.level-nav .nav-link.spacer { visibility: hidden; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.card {
  display: block;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: .75rem;
  color: inherit;
  text-decoration: none;
  transition: transform .12s ease;
}
.card:hover { transform: translateY(-2px); text-decoration: none; }
.card img { width: 100%; border-radius: 6px; display: block; }
.card .label { display: block; margin-top: .5rem; font-weight: 600; }
.card .meta { display: block; font-size: .85rem; color: #888; }

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e6e6e6;
  font-size: .85rem;
  color: #666;
}
