/* SalemX site. No web fonts, no scripts: the language switch is :target on #kk and #en, Russian otherwise. */

:root {
  color-scheme: dark;
  --bg: #050c1f;
  --bg-top: #0f2149;
  --card: rgba(16, 34, 74, .72);
  --line: #22396b;
  --text: #eef1f8;
  --muted: #a7b2c9;
  --gold: #e2b65a;
  --gold-light: #f3d78f;
  --on-gold: #1c1406;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 70% at 50% 0%, var(--bg-top) 0%, var(--bg) 65%) no-repeat, var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
           max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

a { color: var(--gold-light); text-underline-offset: 2px; }

/* Language: Russian unless #kk or #en is the target. Russian comes last in the page for the ~ below. */
.lang { display: none; }
#ru, .lang:target { display: block; }
.lang:target ~ #ru { display: none; }

.bar { display: flex; align-items: center; gap: 12px; padding-top: 8px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.brand img { border-radius: 8px; }

.switch {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.switch a {
  min-width: 48px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.switch a[aria-current] { background: var(--gold); color: var(--on-gold); }

.hero { padding: 36px 0 4px; text-align: center; }
.hero img { border-radius: 26px; box-shadow: 0 12px 40px rgba(226, 182, 90, .16); }
h1 { margin: 18px 0 8px; font-size: 40px; line-height: 1.15; letter-spacing: -.01em; }
.lead { max-width: 30em; margin: 0 auto 10px; font-size: 19px; }
.hero p:not(.lead) { max-width: 32em; margin: 0 auto; color: var(--muted); }

.button {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 26px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  text-decoration: none;
}

.card {
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.card h2 { margin: 0 0 6px; font-size: 20px; }
.card p { margin: 0 0 8px; }
.card p:last-child { margin-bottom: 0; }
.small { color: var(--muted); font-size: 15px; }

.links { margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; color: var(--text); text-decoration: none; }
.links a::after { content: "›"; color: var(--muted); }

footer { margin-top: 28px; color: var(--muted); font-size: 14px; text-align: center; }
footer a { color: var(--muted); }

/* Help pages */
.doc h1 { margin: 28px 0 14px; font-size: 30px; line-height: 1.2; }
.doc h2 { margin: 28px 0 8px; font-size: 20px; }
.doc p, .doc li { color: #d9deec; }
.doc ol, .doc ul:not(.links) { padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.note { padding: 12px 16px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; background: rgba(226, 182, 90, .08); }
.more { margin-top: 28px; color: var(--muted); font-size: 15px; }
.missing p { color: var(--text); }

@media (min-width: 700px) {
  main { padding-top: 28px; }
  h1 { font-size: 48px; }
  .doc h1 { font-size: 34px; }
}

/* Documents (/privacy/, /acceptable-use/, /legal/, /support/): their published text in the help pages' look. Russian
   comes first in a document, so a chosen other language hides it through :has (where :has isn't supported, both show). */
.document:has(.lang:target) #ru:not(:target) { display: none; }
.document article { overflow-wrap: break-word; }
.document small { color: var(--muted); font-size: 14px; }
.document h3 { margin: 22px 0 6px; font-size: 17px; }
.document b, .document strong { color: var(--text); }
.document footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.document footer p { margin: 12px 0 0; color: var(--muted); }
.doc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.doc-links [aria-current] { color: var(--text); }
