
:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #5f6b7a;
  --line: #d7dce2;
  --paper: #ffffff;
  --band: #f3f6f8;
  --accent: #0f766e;
  --accent-dark: #134e4a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfcfd;
  line-height: 1.5;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--accent-dark); font-weight: 760; text-decoration: none; }
nav { display: flex; gap: 16px; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-size: 14px; }
main { max-width: 1120px; margin: 0 auto; padding: 32px 24px 56px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 32px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}
h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.02; margin: 0 0 16px; letter-spacing: 0; }
h2 { margin: 34px 0 12px; font-size: 26px; }
h3 { margin: 0; font-size: 20px; }
h4 { margin: 18px 0 8px; font-size: 14px; color: var(--accent-dark); text-transform: uppercase; }
.lead { font-size: 18px; color: var(--muted); max-width: 760px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--band); border: 1px solid var(--line); padding: 14px; border-radius: 8px; }
.stat strong { display: block; font-size: 24px; color: var(--accent-dark); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tile, .lesson {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.tile p, .goal { color: var(--muted); margin-bottom: 0; }
.lesson { margin: 18px 0; }
.lesson-head { display: flex; gap: 12px; align-items: baseline; }
.lesson-head span {
  color: white;
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 14px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #203040; color: white; font-weight: 680; }
tbody tr:nth-child(even) { background: #f8fafb; }
.han { font-size: 20px; font-weight: 720; }
.task { border-left: 4px solid var(--accent); padding-left: 12px; }
.downloads a { display: block; margin: 8px 0; color: var(--accent-dark); font-weight: 700; }
.anchors { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.anchors a {
  min-width: 32px;
  text-align: center;
  text-decoration: none;
  color: var(--accent-dark);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
  background: white;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--accent-dark);
  background: var(--band);
  font-size: 12px;
}
.pack-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.finder-tools {
  position: sticky;
  top: 58px;
  z-index: 5;
  background: rgba(251,252,253,0.97);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 18px 0;
}
.finder-row { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 10px; }
.finder-tools input, .finder-tools select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: white;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.filters button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--ink);
  background: white;
  cursor: pointer;
}
.filters button.active { color: white; background: var(--accent-dark); border-color: var(--accent-dark); }
.finder-count { color: var(--muted); margin: 10px 0 0; font-size: 14px; }
.finder-section { margin: 14px 0; border: 1px solid var(--line); border-radius: 8px; background: white; }
.finder-section summary { cursor: pointer; padding: 13px 16px; font-weight: 760; color: var(--accent-dark); }
.finder-section table { margin: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.char-row.hidden { display: none; }
.examples { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; }
  main { padding: 24px 14px 42px; }
  table { font-size: 13px; }
  th, td { padding: 7px; }
  .finder-tools { top: 104px; }
  .finder-row { grid-template-columns: 1fr; }
}
