:root {
  --background: #d3efe6;
  --surface: #ffffff;
  --text: #1d2b22;
  --muted: #5b6b60;
  --accent: #2f6fb3;
  --accent-strong: #24578d;
  --green: #3f8f4f;
  --border: rgba(47, 111, 179, 0.18);
  --band: rgba(255, 255, 255, 0.42);
  --glass: rgba(255, 255, 255, 0.72);
  --tint: linear-gradient(180deg, rgba(214, 236, 251, 0.50), rgba(207, 236, 214, 0.62));
  --landscape: url("landscape-sunrise.webp");
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e2c2c;
    --surface: #1a251e;
    --text: #eef2ec;
    --muted: #a9b8ad;
    --accent: #7fb3ec;
    --accent-strong: #a9cdf4;
    --green: #8fc79c;
    --border: rgba(143, 199, 156, 0.20);
    --band: rgba(8, 20, 16, 0.40);
    --glass: rgba(16, 32, 26, 0.78);
    --tint: linear-gradient(180deg, rgba(8, 24, 36, 0.70), rgba(10, 30, 20, 0.78));
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--background);
  background-image: var(--tint), var(--landscape);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.draft { background: var(--accent); color: #ffffff; text-align: center; font-size: 14px; padding: 4px 16px; }
@media (prefers-color-scheme: dark) { .draft { color: #121a15; } }

header.site { border-bottom: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(8px); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 36px; border-radius: 3px; }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 18px; }
nav.main a { color: var(--text); text-decoration: none; font-weight: 500; }
nav.main a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); }
nav.languages { display: flex; gap: 6px; }
nav.languages a { font-size: 14px; font-weight: 700; text-decoration: none; padding: 2px 8px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); }
nav.languages a[aria-current="true"] { color: var(--text); border-color: var(--text); }

.hero { padding: 48px 0; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; margin: 0 0 16px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 24px; }
.hero img { border-radius: 12px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; padding: 10px 18px; border-radius: 6px; background: var(--accent); color: #ffffff; text-decoration: none; font-weight: 600; }
.button:hover { color: #ffffff; background: var(--accent-strong); }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
@media (prefers-color-scheme: dark) { .button, .button:hover { color: #121a15; } }

section.band { background: var(--band); padding: 48px 0; }
section.plain { padding: 48px 0; }
h2 { font-size: 28px; line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.card { background: var(--glass); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.card p { margin: 0; color: var(--muted); }

.map { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.map figure { margin: 0; background: var(--glass); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.map figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
ol.legend { padding-left: 22px; margin: 12px 0; }
.key { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); margin-top: 16px; }
.key span::before { content: ""; display: inline-block; width: 22px; height: 0; vertical-align: middle; margin-right: 8px; border-top: 3px solid; }
.key .river::before { border-color: #2f6fb3; }
.key .ural::before { border-color: #8a5a34; }
.key .sudr::before, .key .republic::before, .key .ukraine::before, .key .outside::before { height: 12px; border: 1px solid; border-radius: 2px; }
.key .sudr::before { background: #bfe0b8; border-color: #2f7a44; }
.key .republic::before { background: #f6d5c6; border-color: #c0785a; }
.key .ukraine::before { background: #fbeea6; border-color: #1f4f8f; border-width: 2px; }
.key .outside::before { background: #e2e0d9; border-color: #a7a49b; border-style: dashed; }

article.page { padding: 40px 0 56px; }
article.page .wrap { max-width: 760px; background: var(--glass); border: 1px solid var(--border); border-radius: 14px; padding: 32px 28px; }
@media (max-width: 760px) { article.page .wrap { margin: 0 12px; padding: 24px 16px; } }
article.page h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.2; margin: 0 0 12px; }
article.page p.lead { font-size: 20px; color: var(--muted); }
article.page h2 { margin-top: 36px; font-size: 24px; }
article.page ul, article.page ol { padding-left: 22px; }
article.page li { margin-bottom: 6px; }
.columns { columns: 2; column-gap: 32px; }
.flag-large { width: 180px; border-radius: 4px; margin: 8px 0 16px; }
blockquote { margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--green); background: var(--band); font-size: 19px; }

footer.site { background: var(--glass); border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: 14px; }

.chooser { min-height: 100vh; display: flex; align-items: center; padding: 40px 0; }
.chooser .wrap { text-align: center; max-width: 640px; }
.chooser img.people { border-radius: 12px; margin: 0 auto 24px; }
.chooser h1 { font-size: 30px; margin: 0 0 8px; }
.chooser p { color: var(--muted); margin: 4px 0; }
.chooser .buttons { justify-content: center; margin-top: 24px; }

@media (max-width: 760px) {
  .hero .wrap, .map, .cards { grid-template-columns: 1fr; }
  .columns { columns: 1; }
  .hero { padding: 28px 0; }
}

/* state symbols */
article.page.wide .wrap { max-width: 1040px; }
.symbol { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin: 8px 0 12px; }
.symbol > p, .symbol > div { flex: 1 1 280px; margin: 0; }
.symbol > div p { margin: 0 0 10px; }
.symbol-flag { width: 240px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); }
.symbol-coat { width: 220px; }
.anthem-audio { margin: 16px 0 20px; padding: 14px 16px; background: var(--band); border: 1px dashed var(--border); border-radius: 10px; }
.anthem-audio audio { width: 100%; }
.anthem-audio figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.anthem { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.anthem.single { grid-template-columns: 1fr; }
.anthem-text h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 6px; }
.anthem-title { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.stanza { margin: 0 0 16px; line-height: 1.55; }
.stanza.chorus { font-style: italic; padding-left: 14px; border-left: 3px solid var(--green); }
.chorus-label { display: block; font-style: normal; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); }
.anthem-credits { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .anthem { grid-template-columns: 1fr; }
  .symbol-flag, .symbol-coat { width: 180px; }
}

/* landscape photo per page, chosen by the current menu entry */
body:has(nav.main a[aria-current="page"][href="about.html"]),
body:has(nav.main a[aria-current="page"][href="domain.html"]) { --landscape: url("landscape-birch.webp"); }
body:has(nav.main a[aria-current="page"][href="mission.html"]),
body:has(nav.main a[aria-current="page"][href="name.html"]) { --landscape: url("landscape-chapel.webp"); }
