:root{--bg:#0F132C;--bg2:#191C39;--text:#ECEAF7;--soft:#C3C6D8;--muted:#9A98B8;--accent:#E2D6BE;--accent-line:rgba(226,214,190,0.6);--accent-soft:rgba(226,214,190,0.14);--hairline:rgba(255,255,255,0.14);--card:rgba(6,8,24,0.55);color-scheme:dark}@media (prefers-color-scheme: light){:root{--bg:#F5F1E9;--bg2:#FCFAF5;--text:#20233B;--soft:#464963;--muted:#65657B;--accent:#2F3570;--accent-line:rgba(47,53,112,0.45);--accent-soft:rgba(47,53,112,0.09);--hairline:rgba(32,35,59,0.14);--card:rgba(255,255,255,0.72);color-scheme:light}}
/* The site's look: the app's night sky with moonlight, and by day the same atlas on paper. The colours are put in
   front of this file by build.py from the app's theme; the fonts are the app's own (SIL OFL), cut to Latin and
   Cyrillic. */
@font-face{font-family:"Onest";font-weight:400;font-display:swap;src:url(/fonts/Onest_400Regular.woff2) format("woff2")}
@font-face{font-family:"Onest";font-weight:600;font-display:swap;src:url(/fonts/Onest_600SemiBold.woff2) format("woff2")}
@font-face{font-family:"Source Serif 4";font-weight:400;font-display:swap;src:url(/fonts/SourceSerif4_400Regular.woff2) format("woff2")}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0;min-height:100vh;display:flex;flex-direction:column;
  background:radial-gradient(120% 80% at 50% 0%,var(--bg2) 0%,var(--bg) 60%) fixed,var(--bg);
  color:var(--text);font:400 17px/1.6 "Onest",system-ui,-apple-system,sans-serif;
}
a{color:var(--accent);text-decoration-color:var(--accent-line);text-underline-offset:.18em}
a:hover{text-decoration-color:var(--accent)}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

.top{display:flex;align-items:center;justify-content:space-between;gap:16px;
  width:100%;max-width:760px;margin:0 auto;padding:28px 24px 8px}
/* The wordmark is the app's engraved «Sinoite», tinted with the accent so it reads by night and by day. */
.mark{display:block;width:148px;aspect-ratio:1400/398;background:var(--accent);
  -webkit-mask:url(/logo.webp) left center/contain no-repeat;mask:url(/logo.webp) left center/contain no-repeat}
.langs{display:flex;gap:4px}
.langs a{font-size:14px;font-weight:600;letter-spacing:.04em;text-decoration:none;color:var(--muted);
  padding:6px 10px;border-radius:999px}
.langs a[aria-current]{color:var(--accent);background:var(--accent-soft)}

main{flex:1;width:100%;max-width:760px;margin:0 auto;padding:8px 24px 48px}

.doc h1,.home h1{font:400 34px/1.2 "Source Serif 4",Georgia,serif;margin:32px 0 8px;letter-spacing:-.005em}
.doc h1+p{color:var(--muted);font-size:15px;margin-top:0}
.doc h2{font:400 24px/1.3 "Source Serif 4",Georgia,serif;margin:40px 0 10px;padding-top:24px;border-top:1px solid var(--hairline)}
.doc h3{font-size:17px;font-weight:600;margin:28px 0 6px;color:var(--text)}
.doc p,.doc li{color:var(--soft)}
.doc p{margin:0 0 14px}
.doc ul{margin:0 0 16px;padding-left:1.2em}
.doc li{margin:0 0 6px}
.doc li::marker{color:var(--accent)}
.doc a{overflow-wrap:anywhere}

.home{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:9vh}
.home .icon{border-radius:22px;box-shadow:0 10px 40px rgba(0,0,0,.35)}
.tagline{font:400 22px/1.4 "Source Serif 4",Georgia,serif;color:var(--soft);max-width:30ch;margin:28px 0 32px}
.links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;width:100%;max-width:340px}
.links a{display:block;padding:14px 20px;border-radius:999px;border:1px solid var(--accent-line);
  text-decoration:none;font-weight:600;background:var(--accent-soft)}
.links a:hover{border-color:var(--accent)}

.foot{width:100%;max-width:760px;margin:0 auto;padding:24px 24px 40px;border-top:1px solid var(--hairline);
  font-size:14px;color:var(--muted);display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px}
.foot nav{display:flex;flex-wrap:wrap;gap:6px 20px}
.foot a{color:var(--muted);text-decoration:none}
.foot a:hover{color:var(--accent)}
.foot p{margin:0}

@media (max-width:520px){
  body{font-size:16px}
  .doc h1{font-size:28px}
  .doc h2{font-size:21px}
  .tagline{font-size:20px}
}
