/* ------------------------------------------------------------------------- */
/* Zenith Burn: the home page only (index.html), loaded after style.css.     */
/* Uses the colour tokens from style.css; docs/ui_design.md explains them.   */
/* ------------------------------------------------------------------------- */

/* ---- Headline numbers --------------------------------------------------- */

/* The two big numbers are the page's orange: the things to look at. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  max-width: 640px;
  margin-block: 40px 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.stat-value {
  color: var(--color-accent);
  font-size: clamp(2.75rem, 10vw, 4.5rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-label {
  max-width: 24ch;
  color: var(--color-text-muted);
}

/* ---- Latest launch ------------------------------------------------------ */

/* Green marks the latest, short-lived item, like a terminal cursor. */
.latest {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
}

.latest-label {
  color: var(--color-text-muted);
}

.latest-value {
  color: var(--color-accent-live);
  font-variant-numeric: tabular-nums;
}

.latest-value::after {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 4px;
  background: var(--color-accent-live);
  vertical-align: -0.15em;
  animation: cursor-blink 1.2s steps(1) infinite;
  content: "";
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

/* No blinking for visitors who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  .latest-value::after {
    animation: none;
  }
}

/* ---- Sections of the site ----------------------------------------------- */

/* A plain listing, like a terminal menu: quiet until pointed at. */
.section-list {
  max-width: 640px;
  margin: 40px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--color-border);
  list-style: none;
}

.section-list a {
  display: grid;
  grid-template-columns: 1.25em 1fr;
  gap: 2px 8px;
  padding-block: 14px;
  border-top: 1px solid var(--color-border);
  text-decoration: none;
}

.section-list a::before {
  grid-row: 1;
  color: var(--color-text-muted);
  content: "\203A";
}

.section-name {
  grid-column: 2;
  color: var(--color-text-strong);
  font-weight: 500;
}

.section-text {
  grid-column: 2;
  color: var(--color-text-muted);
}

.section-list a:hover .section-name,
.section-list a:hover::before {
  color: var(--color-accent);
}
