/* Общие стили сайта. Правки применяются только с --force на setup-web-site.sh. */
:root {
  color-scheme: light dark;
  --bg: #fcfcfa;
  --ink: #1c1c1e;
  --muted: #6a6a70;
  --line: #dcdcd4;
  --accent: #1f5f8b;
  --fill: #eef3f8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161a;
    --ink: #e9e9ec;
    --muted: #9b9ba4;
    --line: #32333a;
    --accent: #7fb2d9;
    --fill: #1b242e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 Georgia, "Times New Roman", serif;
}
header.site {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  align-items: baseline;
  padding: 1.3rem 1.25rem;
  border-bottom: 1px solid var(--line);
  max-width: 48rem;
  margin: 0 auto;
}
.brand { font-size: 1.05rem; letter-spacing: .02em; text-decoration: none; color: var(--ink); }
nav.site { display: flex; flex-wrap: wrap; gap: .35rem 1rem;
  font: 14px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); }
main { max-width: 48rem; margin: 0 auto; padding: 2rem 1.25rem 3.5rem; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: .2rem 0 1rem; }
h2 { font-size: 1.22rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.04rem; margin: 1.6rem 0 .4rem; }
p { margin: .7rem 0; }
a { color: var(--accent); }
ul, ol { padding-left: 1.3rem; }
li { margin: .35rem 0; }
blockquote {
  margin: 1.2rem 0; padding: .1rem 1rem;
  border-left: 3px solid var(--line); color: var(--muted);
}
.formula { text-align: center; margin: 1.1rem 0; font-size: 1.12rem; }
.figure { margin: 1.6rem 0; text-align: center; }
.figure svg { max-width: 100%; height: auto; }
.figure figcaption {
  font: 13px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--muted); margin-top: .5rem;
}
.fig-edge { stroke: var(--ink); stroke-width: 1.6; fill: none; stroke-linejoin: round; }
.fig-aux { stroke: var(--muted); stroke-width: 1.3; fill: none; stroke-dasharray: 5 4; }
.fig-fill { fill: var(--fill); stroke: none; }
.fig-mark { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.fig-label { fill: var(--ink); font: italic 14px Georgia, serif; }
.fig-label-s { fill: var(--muted); font: 12px -apple-system, "Segoe UI", Roboto, sans-serif; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.15rem; margin: 1rem 0; }
.card h3 { margin-top: 0; }
.meta { color: var(--muted); font: 14px/1.5 -apple-system, "Segoe UI", Roboto, sans-serif; }
.note { border-left: 3px solid var(--accent); padding: .1rem 1rem; margin: 1.3rem 0; }
footer.site {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font: 13px/1.6 -apple-system, "Segoe UI", Roboto, sans-serif;
  max-width: 48rem;
  margin: 0 auto;
}
code { font: .92em ui-monospace, "SF Mono", Menlo, monospace; }
table { border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
th, td { text-align: left; padding: .4rem .7rem; border-bottom: 1px solid var(--line); }
