/* Общее для всех страниц Riposte: шрифты, цвета, подвал, страницы с текстом (поддержка, политика) */

/* Шрифты лежат у нас, а не на Google Fonts: быстрее, и IP посетителей не уходят в Google.
   Grenze без кириллицы: русские буквы в заголовках берутся из Alegreya Sans. */
@font-face { font-family:'Grenze'; font-weight:500 700; font-display:swap; src:url(fonts/grenze-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Alegreya Sans'; font-weight:400; font-display:swap; src:url(fonts/alegreya-sans-400-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Alegreya Sans'; font-weight:500; font-display:swap; src:url(fonts/alegreya-sans-500-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Alegreya Sans'; font-weight:700; font-display:swap; src:url(fonts/alegreya-sans-700-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family:'Alegreya Sans'; font-weight:400; font-display:swap; src:url(fonts/alegreya-sans-400-cyrillic.woff2) format('woff2');
  unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:'Alegreya Sans'; font-weight:500; font-display:swap; src:url(fonts/alegreya-sans-500-cyrillic.woff2) format('woff2');
  unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family:'Alegreya Sans'; font-weight:700; font-display:swap; src:url(fonts/alegreya-sans-700-cyrillic.woff2) format('woff2');
  unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root { --sand:#efe4cf; --sand2:#e6d6b8; --line:#e2d1b1; --card:#f7efdf; --ink:#21180f; --muted:#6f604c; --bronze:#80571f; --gold:#d9a656;
  --night:#17110b; --night2:#221a12; --cream:#f6ecd9; --mist:#c9b99f; --blood:#b4462f;
  --display:Grenze, "Alegreya Sans", serif; --text:"Alegreya Sans", system-ui, sans-serif; }
* { box-sizing:border-box; }
body { margin:0; background:var(--sand); color:var(--ink); font:18px/1.6 var(--text); }
a { color:inherit; }
:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* Подвал */
.foot { background:var(--night); color:#cdbfa8; text-align:center; padding:44px 16px; font-size:16px; }
.foot b { font:700 28px var(--display); color:var(--cream); display:block; margin-bottom:10px; letter-spacing:.06em; }
.foot nav { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 22px; }
.foot a { color:var(--gold); }
.foot p { margin:10px 0 0; }

/* Страницы с текстом */
.doc { line-height:1.65; }
/* Шапка: путь «студия / игра» и переключатель языка */
.topbar { background:var(--night); padding:14px 16px; }
.topbar-in { max-width:688px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.crumbs { display:flex; align-items:center; gap:12px; min-width:0; font:500 17px/1.2 var(--text); color:var(--mist); }
.crumbs a { color:var(--cream); text-decoration:none; }
.crumbs a:first-child { opacity:.85; white-space:nowrap; }
.crumbs a:hover { opacity:1; }
.crumbs .brand { font:700 24px var(--display); letter-spacing:.08em; }
@media (max-width:420px) { .crumbs { gap:8px; font-size:15px; } .crumbs .brand { font-size:20px; } }

/* Переключатель языка */
nav.langs { display:inline-flex; flex:none; gap:2px; padding:3px; border-radius:999px; background:rgba(0,0,0,.3);
  box-shadow:inset 0 0 0 1px rgba(217,166,86,.4); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
nav.langs a { padding:6px 10px; border-radius:999px; font:700 13px/1 var(--text); letter-spacing:.08em; color:var(--cream);
  text-decoration:none; opacity:1; text-shadow:none; }
nav.langs a[aria-current] { background:var(--gold); color:var(--night); }
.doc main { max-width:720px; margin:0 auto; padding:48px 16px 72px; }
.doc main a { color:var(--bronze); }
.doc h1 { font:700 clamp(34px, 6vw, 48px)/1.05 var(--display); margin:0 0 6px; }
.doc h2 { font:700 24px/1.2 var(--display); margin:36px 0 8px; }
.doc h3 { font:700 19px/1.3 var(--text); margin:28px 0 4px; }
.doc p, .doc li { margin:8px 0; }
.doc ul, .doc ol { padding-left:22px; }
.doc hr { border:0; border-top:1px solid var(--line); margin:64px 0; }
.meta { color:var(--muted); margin:0 0 6px; }
.box { background:var(--card); border-radius:14px; padding:18px 22px; margin:24px 0 8px; box-shadow:0 1px 0 rgba(120,90,50,.12), 0 14px 32px rgba(90,60,25,.07); }
.box p { margin:4px 0; }
