:root {
  --ink: #f7f7f2;
  --ink-soft: #c6cbc6;
  --paper: #202b22;
  --card: #18211a;
  --line: #465448;
  --accent: #ffd85f;
  --accent-soft: rgba(255,216,95,.14);
  --ready: #86d6a7;
  --shadow: 0 22px 70px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Satoshi, Geist, Inter, ui-sans-serif, system-ui, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(32,43,34,.94); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 5; }
.header-inner, .shell, .site-footer { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.header-inner { min-height: 0; padding-top: 14px; padding-bottom: 14px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; }
.brand { width: fit-content; display: block; color: var(--ink); text-decoration: none; }
.brand-mark { width: 54px; height: 54px; display: block; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.header-title { max-width: 190px; justify-self: end; color: var(--ink); font-size: 17px; line-height: 1.05; letter-spacing: -.025em; text-align: right; }

.shell { padding-top: 66px; padding-bottom: 80px; background: radial-gradient(circle at 82% 5%, rgba(255,216,95,.14), transparent 24%), linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: auto, 56px 56px, 56px 56px; }
.hero { max-width: 760px; }
.eyebrow { color: var(--accent); font-family: "JetBrains Mono", Consolas, monospace; text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 850; margin: 0 0 15px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; font-size: clamp(38px, 6vw, 72px); line-height: .98; letter-spacing: -.055em; margin-bottom: 22px; }
.hero-copy { max-width: 610px; color: var(--ink-soft); font-size: 18px; line-height: 1.55; margin-bottom: 30px; }
.search-box { max-width: 680px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 14px; }
.search-box span { font-size: 28px; color: var(--accent); line-height: 1; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 10px 0; font-size: 16px; }
kbd { border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; color: var(--ink-soft); font-size: 11px; }

.toolbar { margin-top: 66px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 17px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); padding: 9px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.filter-button:hover, .filter-button.is-active { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.status-filter { color: var(--ink-soft); display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-filter select { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; padding: 8px 10px; }
.summary { display: flex; justify-content: space-between; color: var(--ink-soft); padding: 19px 0; font-size: 13px; }
.legend { display: flex; gap: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; }
.dot-ready { background: var(--ready); }.dot-pending { background: #b4c0c2; }

.course-list { display: grid; gap: 18px; }
.course-block { border-top: 2px solid var(--ink); padding-top: 18px; }
.course-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.course-heading h2 { font-size: 24px; letter-spacing: -.035em; margin-bottom: 0; }
.course-heading span { color: var(--ink-soft); font-size: 13px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.theme-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 17px; min-height: 174px; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.theme-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #9cb1b1; }
.theme-card.is-ready { border-top: 4px solid var(--ready); }
.theme-number { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.theme-card h3 { font-size: 16px; line-height: 1.15; letter-spacing: -.02em; margin: 9px 0 8px; }
.theme-card p { color: var(--ink-soft); font-size: 12px; line-height: 1.4; margin-bottom: 10px; }
.theme-status { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-soft); }
.status-label { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.theme-actions { display: flex; gap: 7px; }
.action { text-decoration: none; border-radius: 7px; padding: 7px 9px; font-size: 11px; font-weight: 800; }
.action-primary { color: var(--paper); background: var(--accent); }.action-secondary { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.action[aria-disabled="true"] { pointer-events: none; opacity: .42; }
.subtopic-list { display: none; }
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state h2 { font-size: 30px; letter-spacing: -.04em; }
.empty-state p:not(.eyebrow) { color: var(--ink-soft); }
.site-footer { border-top: 1px solid var(--line); color: var(--ink-soft); display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 28px; font-size: 12px; }

@media (max-width: 850px) { .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .header-inner, .shell, .site-footer { padding-left: 18px; padding-right: 18px; } .header-inner { padding-top: 14px; padding-bottom: 14px; } .brand-mark { width: 52px; height: 52px; } .header-title { max-width: 150px; font-size: 16px; } .shell { padding-top: 42px; } .hero-copy { font-size: 16px; } .toolbar, .summary, .site-footer { align-items: flex-start; flex-direction: column; } .toolbar { margin-top: 44px; } .theme-grid { grid-template-columns: 1fr; } }
