/* =========================================
   opentrash course site — theme
   GitHub-dark palette, restrained cyan accent.
   Clean structured layout (not a homepage clone).
   ========================================= */

:root {
  /* GitHub dark palette */
  --bg: #0d1117;              /* canvas */
  --surface: #161b22;         /* cards, raised surfaces */
  --surface-2: #1c2128;       /* secondary surface */
  --header: #010409;          /* header/footer, deepest */
  --border: #30363d;          /* default border */
  --border-muted: #21262d;    /* subtle border */
  --text: #e6edf3;            /* primary text */
  --text-muted: #8b949e;      /* secondary text */
  --text-dim: #6e7681;        /* tertiary text */

  /* Single accent, used sparingly */
  --accent: #2dd4ee;          /* cyan — links, highlights, active */
  --accent-dim: rgba(45,212,238,0.12);
  --accent-border: rgba(45,212,238,0.35);

  --good: #3fb950;            /* green for "good" pills */
  --good-dim: rgba(63,185,80,0.12);

  --radius: 8px;
  --radius-lg: 12px;
  --max: 940px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* =========================================
   HEADER — simple bar, not sticky glass
   ========================================= */
.site-header {
  background: var(--header);
  border-bottom: 1px solid var(--border);
}

.site-header .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .logo { height: 30px; width: auto; }

.site-header .brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.site-header .brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.site-header .brand-sub {
  font-size: 12px;
  color: var(--text-dim);
}

.site-header nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a.active { color: var(--accent); }

/* =========================================
   HERO — distinct, restrained, not a clone
   ========================================= */
.hero {
  border-bottom: 1px solid var(--border-muted);
  padding: 56px 0 48px;
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 28px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-chip strong { color: var(--text); font-weight: 600; }

/* =========================================
   BUTTONS — distinct from AIRC's gold pills
   ========================================= */
.btn {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #04222a;
  border-color: var(--accent);
}

.btn-primary:hover { background: #5ce0f5; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover { border-color: var(--accent-border); color: var(--accent); }

/* =========================================
   SECTIONS
   ========================================= */
main section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-muted);
}

main section:last-child { border-bottom: none; }

h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sec-num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
}

h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }

p { margin: 0 0 14px; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
.intro { max-width: 720px; }

a.inline { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
a.inline:hover { border-bottom-color: var(--accent); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border-muted);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--text);
}

em { color: var(--text); font-style: italic; }
strong { color: var(--text); }

/* =========================================
   CARDS
   ========================================= */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 0;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 16px 0 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.card h3 { margin-top: 4px; }
.card p { font-size: 15px; }
.card ul { margin: 8px 0 0; padding-left: 20px; }
.card ul li { margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.card ul li:last-child { margin-bottom: 0; }
.card-meta { font-size: 13px; color: var(--text-dim); }

.card-badge {
  position: absolute;
  top: -10px;
  left: 18px;
  background: var(--accent);
  color: #04222a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Roadmap variant — muted, dashed */
.card-roadmap {
  background: var(--bg);
  border-style: dashed;
  border-color: var(--border-muted);
}

.card-badge.future {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* =========================================
   PROCEDURE (step cards)
   ========================================= */
.procedure {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.procedure > li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.procedure h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.procedure .time { font-size: 12px; font-weight: 500; color: var(--accent); }
.procedure p { margin: 0; font-size: 15px; }

/* =========================================
   CALLOUT
   ========================================= */
.callout {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 15px;
  color: var(--text);
}

/* =========================================
   LESSON TABLE
   ========================================= */
.table-scroll { overflow-x: auto; margin-top: 16px; }

.lessons {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 700px;
}

.lessons thead { background: var(--surface-2); }

.lessons th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.lessons td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-muted);
  vertical-align: top;
  color: var(--text-muted);
}

.lessons tr:last-child td { border-bottom: none; }
.lessons tbody tr:hover { background: var(--surface-2); }
.lessons td:first-child { font-weight: 700; color: var(--accent); width: 28px; }
.lessons td:nth-child(2) { color: var(--text); font-weight: 500; }

/* =========================================
   PILLS
   ========================================= */
.pill {
  display: inline-block;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.pill-next {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent-border);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }

.pill-good {
  display: inline-block;
  background: var(--good-dim);
  color: var(--good);
  border: 1px solid rgba(63,185,80,0.4);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}

/* =========================================
   RESOURCE TIERS
   ========================================= */
.tier-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 26px 0 4px;
  padding-left: 12px;
  border-left: 3px solid var(--border);
}
.tier-heading:first-of-type { margin-top: 8px; }
.tier-a { border-left-color: var(--accent); color: var(--accent); }
.tier-b { border-left-color: var(--text-muted); color: var(--text); }
.tier-c { border-left-color: var(--border); color: var(--text-muted); }

.full-courses { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.full-courses li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-muted);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.full-courses li strong { color: var(--text); }

/* =========================================
   PLAIN LISTS
   ========================================= */
.plain-list { padding-left: 20px; margin: 0; }
.plain-list li { margin-bottom: 8px; color: var(--text-muted); }
.plain-list li:last-child { margin-bottom: 0; }

/* =========================================
   CODE BLOCKS / WALKTHROUGH (setup page)
   ========================================= */
pre {
  background: var(--header);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 10px 0;
}
pre code { background: none; border: none; color: var(--text); padding: 0; font-size: 13px; line-height: 1.7; }

.platform-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 16px 0 4px;
}

.tree {
  background: var(--header);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  overflow-x: auto;
  margin: 14px 0;
  white-space: pre;
}
.tree .comment { color: var(--text-dim); }
.tree .dir { color: var(--accent); }

.step-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.step-block > h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; font-size: 16px; }
.step-block .step-pill {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 999px;
}
.step-block ul { padding-left: 20px; }
.step-block ul li { margin-bottom: 6px; font-size: 15px; }

.note {
  font-size: 14px;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 12px;
  margin: 10px 0;
}
.note strong { color: var(--accent); }

.checklist { list-style: none; padding: 0; margin: 14px 0 0; }
.checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-muted);
  font-size: 14px;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 14px; height: 14px;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--header);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  padding: 24px;
}
.site-footer a { color: var(--accent); text-decoration: none; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .site-header .bar { flex-direction: column; align-items: flex-start; }
  .procedure > li { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
}
