/* site.css: the curriculum page. Quiet on purpose: a title, the one module
   to take next, and each program as a numbered list. Dark and set in Geist,
   like the app and the courses, so moving between them feels like one site. */
:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #0b0b0c;
  --panel: #151517;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #ededed;
  --muted: #a1a1a1;
  --faint: #808080;
  --accent: #B42025;
  --accent-text: #ff8a8e;
  --ok: #34D399;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans); font-size: 15px; line-height: 1.6;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { height: 22px; display: block; }
.brand-sep { width: 1px; height: 18px; background: var(--line-strong); }
.brand-word { font-weight: 500; font-size: 15px; color: var(--muted); }
.top-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.top-nav a:hover, .linkish:hover { color: var(--text); }
.who { display: inline-flex; align-items: center; gap: 10px; }
.who-name::after { content: "·"; margin-left: 10px; color: var(--faint); }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* -------------------------------------------------------------------- page */
.page { padding-top: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.standing { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.standing b { color: var(--text); font-weight: 600; }
.standing.is-done b { color: var(--ok); }
.standing a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* thin progress line, shared */
.bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }

/* ----------------------------------------------------------------- up next */
/* The one module to take now: the one last left part-way, else the first
   required one not yet passed. */
.next { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin: 0 0 64px; }
.next-label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0; }
.next h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; margin: 6px 0 0; }
.next-meta { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.next .bar { margin: 16px 0 0; }
.next-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 20px; }
.next-why { font-size: 14px; color: var(--muted); margin: 0; flex: 1 1 260px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 8px; background: var(--accent); color: #fff; font-weight: 500; font-size: 14px; white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); }

/* ---------------------------------------------------------------- programs */
.program { margin: 0 0 64px; }
.program-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.program-head h2 { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.program-count { font-size: 13px; color: var(--faint); white-space: nowrap; }
.program-summary { font-size: 14px; color: var(--faint); max-width: 600px; margin: 6px 0 0; }

.modules { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.module { border-bottom: 1px solid var(--line); }
.module-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 16px; padding: 22px 0; }
a.module-row:hover .module-title { color: #fff; }
a.module-row:hover .module-go { color: var(--text); }
a.module-row:hover .arrow { transform: translateX(3px); }
.module-num { font-family: var(--mono); font-size: 13px; color: var(--faint); padding-top: 3px; }
.module.is-done .module-num { color: var(--ok); }
.module-title { display: block; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--text); transition: color .15s; }
/* Two lines of the summary are enough to choose by; the module has the rest. */
.module-summary {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-size: 14px; color: var(--muted); margin-top: 4px; max-width: 540px;
}
.module-meta { display: block; font-size: 13px; color: var(--faint); margin-top: 10px; }
.module-meta .req { color: var(--accent-text); }
.module-meta .ok { color: var(--ok); }
.module-meta .bar { display: block; margin-top: 10px; max-width: 220px; }
.module-go { font-size: 14px; color: var(--muted); white-space: nowrap; padding-top: 2px; transition: color .15s; }
.arrow { display: inline-block; margin-left: 4px; transition: transform .15s; }
.module.is-planned .module-title { color: var(--faint); }
.module.is-planned .module-go { color: var(--faint); }

.empty { color: var(--faint); font-size: 14px; padding: 20px 0; margin: 0; }

/* ------------------------------------------------------------------ footer */
.foot { padding-top: 8px; padding-bottom: 48px; }
.foot p { color: var(--faint); font-size: 13px; margin: 0; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top { height: 64px; }
  .brand { gap: 10px; }
  .brand-logo { height: 18px; }
  .top-nav { gap: 14px; }
  .who-name { display: none; }
  .page { padding-top: 32px; }
  .next { padding: 20px; margin-bottom: 48px; }
  .next .btn { width: 100%; justify-content: center; }
  .program { margin-bottom: 48px; }
  .module-row { grid-template-columns: 28px 1fr; }
  .module-go { grid-column: 2; padding-top: 6px; }
}
