/*
 * launcher.css — styling for the course landing page.
 *
 * Deliberately shares the milestone design tokens so the launcher reads as the front
 * panel of the same machine. It is standalone (the milestones must not depend on it,
 * and it must not depend on them) but the palette is copied verbatim from
 * M01-first-beat/css/base.css.
 */

:root {
  --bg: #0e0f13;
  --panel: #171922;
  --panel-2: #1f2230;
  --edge: #2b2f40;
  --text: #e7e9f0;
  --muted: #8a90a6;
  --accent: #ff5a3c;
  --accent-2: #33d1a0;
  --warn: #ffcc44;
  --radius: 10px;
  --font: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, #191c27 0%, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.55;
  min-height: 100vh;
  padding: 48px 24px 80px;
}

.wrap { max-width: 1080px; margin: 0 auto; }

/* ----------------------------------------------------------------- masthead */

.masthead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }

.dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  align-self: center;
}

h1 {
  font-family: var(--font);
  font-size: 26px;
  letter-spacing: 0.22em;
  margin: 0;
  text-transform: uppercase;
}

.masthead .sub { color: var(--muted); font-size: 15px; }

.lede {
  margin: 22px 0 10px;
  max-width: 68ch;
  color: #c6cbdb;
  font-size: 16.5px;
}

.howto {
  margin: 18px 0 38px;
  padding: 14px 16px;
  border: 1px solid var(--edge);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  background: var(--panel);
  max-width: 68ch;
  font-size: 14.5px;
  color: #c6cbdb;
}
.howto code {
  font-family: var(--font);
  background: var(--panel-2);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
}

/* -------------------------------------------------------------------- cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  display: block;
  padding: 18px 18px 16px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  text-decoration: none;
  color: inherit;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.card.ready:hover, .card.ready:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
  outline: none;
}
.card.ready:focus-visible { box-shadow: 0 0 0 3px rgba(255, 90, 60, 0.45); }

.card.pending {
  opacity: 0.5;
  cursor: default;
  border-style: dashed;
}

.card .id {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.card.pending .id { color: var(--muted); }

.card h2 {
  margin: 4px 0 8px;
  font-size: 19px;
  letter-spacing: 0.01em;
}

.card p { margin: 0; color: var(--muted); font-size: 14px; }

.card .status {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-transform: uppercase;
}
.ready  .status { color: var(--accent-2); }
.pending .status { color: var(--muted); }

footer {
  margin-top: 44px;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 68ch;
}
footer code {
  font-family: var(--font);
  background: var(--panel);
  padding: 1px 6px;
  border-radius: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card.ready:hover { transform: none; }
}
