/* Natro — one stylesheet for every page. No web fonts on purpose: loading them
   from a CDN would send each visitor's address to a third party, and the privacy
   policy says this site sends nothing anywhere. System fonts cover Georgian. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5d5d66;
  --line: #e4e1da;
  --accent: #b5452b;
  --accent-soft: #f6e7e2;
  --radius: 10px;
  --measure: 46rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141416;
    --surface: #1c1c1f;
    --text: #ececef;
    --muted: #a3a3ad;
    --line: #2e2e33;
    --accent: #e57d63;
    --accent-soft: #2c1f1b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, "Segoe UI", "Noto Sans Georgian", "Noto Sans", "Sylfaen",
    -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1rem; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; }
nav.site { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.95rem; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }
nav.site .lang { color: var(--accent); font-weight: 600; }

main { padding: 2.5rem 0 3rem; }

/* Georgian words run long ("კონფიდენციალურობის"): a smaller floor on phones, and
   wrapping inside a word as the last resort rather than running off the screen. */
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.4rem, 6vw, 2.3rem); line-height: 1.2; margin: 0 0 0.6rem; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.3rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: 0.3rem; }

.lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.6rem; }
.updated { color: var(--muted); font-size: 0.95rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.2rem 0;
}
.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
}
.note p:last-child, .card p:last-child { margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}
.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }

.table-scroll { overflow-x: auto; margin: 1rem 0 1.4rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; background: var(--surface); }

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.05em 0.35em;
  overflow-wrap: anywhere;
}

.toc { font-size: 0.97rem; }
.toc ol { margin: 0.4rem 0 0; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.93rem; }
footer.site .wrap { padding-top: 1.4rem; padding-bottom: 2rem; }
footer.site a { color: var(--muted); }
footer.site p { margin: 0.3rem 0; }

@media (max-width: 34rem) {
  header.site .wrap { flex-direction: column; align-items: flex-start; }
  main { padding-top: 1.8rem; }
}
