:root {
  --bg: #ffffff;
  --text: #1c2330;
  --muted: #5d6676;
  --line: #e3e7ee;
  --accent: #2459d6;
  --soft: #f3f6fb;
  --todo-bg: #fff1c2;
  --todo-text: #6b4a00;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d;
    --text: #e4e8ef;
    --muted: #9aa3b4;
    --line: #2c3340;
    --accent: #6e9bff;
    --soft: #1b2029;
    --todo-bg: #4a3b10;
    --todo-text: #ffe08a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Georgian", sans-serif;
}

a { color: var(--accent); }

header.site, footer.site {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
header.site { border-bottom: 1px solid var(--line); }
header.site .brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
header.site nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
header.site nav a { text-decoration: none; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; margin-top: 3rem; }

main { max-width: 760px; margin: 0 auto; padding: 1.5rem 1rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: .5rem 0 .25rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 .5rem; padding-top: .5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 .25rem; }
p, ul, ol { margin: .5rem 0 1rem; }
li { margin: .25rem 0; }

.lead { font-size: 1.15rem; color: var(--muted); }
.meta { color: var(--muted); font-size: .95rem; }

.box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.box h2, .box h3 { margin-top: .25rem; padding-top: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.cards a { display: block; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; text-decoration: none; color: var(--text); }
.cards a strong { display: block; color: var(--accent); margin-bottom: .25rem; }
.cards a:hover { border-color: var(--accent); }

table { width: 100%; border-collapse: collapse; margin: .75rem 0 1.25rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

nav.toc ol { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
@media (max-width: 600px) { nav.toc ol { columns: 1; } h1 { font-size: 1.6rem; } }

/* Text the operator still has to fill in before publishing */
.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 .3rem; border-radius: 4px; font-weight: 600; }
