:root {
  --bg: #0f1412;
  --panel: #18201c;
  --ink: #e8eee6;
  --muted: #9aa89a;
  --accent: #d4b36a;
  --green: #7dba74;
  --line: #2a3830;
  font-family: "Segoe UI", "David", "Arial Hebrew", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); direction: rtl; line-height: 1.7; }
a { color: var(--accent); }
.wrap { width: min(920px, calc(100% - 2rem)); margin: 0 auto; }
header {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  background: #101714;
  position: sticky; top: 0;
}
header .wrap { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; }
main { padding: 2.2rem 0 4rem; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; }
h2 { margin-top: 2rem; }
.card, .lab, pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.card, .lab { padding: 1rem 1.1rem; margin: .8rem 0; }
.grid { display: grid; gap: .8rem; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.kicker { color: var(--green); font-weight: 700; letter-spacing: .04em; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { padding: 1rem; overflow: auto; font-size: .88rem; direction: ltr; text-align: left; }
.muted { color: var(--muted); }
ol.lessons { padding: 0; list-style: none; }
ol.lessons li { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #161410;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: .55rem 1rem;
}
footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); }
