/* Globaro site, Field Atlas look: warm paper, ink, one violet accent. Copied as is by scripts/build-site.py.
   System fonts only, no scripts. Always light, like the app's paper (owner, 2026-11-21: "просто и светлый"). */
:root {
  --paper: #F6F3EC;
  --ink: #1D1B18;
  --muted: #5C574E;
  --rule: #DCD6C9;
  --accent: #4C3BC9;
  --on-accent: #FFFFFF;
  --card: #FBF9F4;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 6px 10px; z-index: 1; }

/* Header: brand left, language switch right. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.langs { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.langs a { display: inline-block; min-width: 44px; padding: 10px 8px; text-align: center; color: var(--muted);
  text-decoration: none; border-radius: 8px; }
.langs a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.langs a:hover { color: var(--ink); }

main { padding-top: 40px; padding-bottom: 56px; }

/* Landing */
.hero { text-align: left; }
.hero .icon { display: block; width: 112px; height: 112px; border-radius: 25px; margin-bottom: 22px;
  box-shadow: 0 1px 0 var(--rule), 0 6px 24px rgba(29, 27, 24, 0.12); }
.hero h1 { margin: 0; font-size: clamp(40px, 9vw, 56px); line-height: 1.05; letter-spacing: -0.025em; }
.pitch { margin: 14px 0 0; font-size: clamp(20px, 4.4vw, 24px); line-height: 1.35; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 28px 0 0; }
.store { display: inline-block; padding: 13px 22px; border-radius: 12px; background: var(--accent);
  color: var(--on-accent); font-weight: 650; text-decoration: none; }
.store:hover { filter: brightness(1.08); }
.store:focus-visible { outline-offset: 3px; }
.platforms { color: var(--muted); font-size: 15px; }
.store.soon { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* Three phone screens from the game, side by side; a sideways scroller on narrow screens. */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 44px 0 0; padding: 0;
  list-style: none; }
.shots img { display: block; width: 100%; height: auto; border-radius: 26px; background: var(--card);
  box-shadow: 0 0 0 1px var(--rule), 0 10px 30px rgba(29, 27, 24, 0.12); }
@media (max-width: 640px) {
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -16px; margin-right: -16px;
    padding: 4px 16px 16px; gap: 14px; }
  .shots li { flex: 0 0 62%; scroll-snap-align: center; }
  .shots img { border-radius: 22px; }
}

.inside { margin-top: 52px; border-top: 1px solid var(--rule); padding-top: 28px; }
.inside h2, .plain h2 { margin: 0 0 18px; font-size: 15px; font-weight: 650; color: var(--muted);
  letter-spacing: 0.02em; }
.features { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px 32px; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features li { padding-left: 18px; border-left: 3px solid var(--accent); }
.features h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; }
.features p { margin: 0; color: var(--muted); }

.plain { margin-top: 44px; border-top: 1px solid var(--rule); padding-top: 28px; }
.plain p { margin: 0 0 10px; }
.plain .muted { color: var(--muted); }

/* Documents: privacy, terms, support */
.doc { max-width: 680px; }
.doc h1 { margin: 0 0 6px; font-size: clamp(30px, 6.5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; }
.doc h1 + p { color: var(--muted); margin-top: 0; }
.doc h2 { margin: 36px 0 10px; font-size: 21px; line-height: 1.3; }
.doc h3 { margin: 26px 0 6px; font-size: 18px; line-height: 1.35; }
.doc p, .doc li { max-width: 40em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.mail { font-size: 20px; font-weight: 650; }

/* 404 */
.lost h1 { margin: 0 0 10px; font-size: clamp(30px, 6.5vw, 40px); }
.lost p { margin: 0 0 8px; }
.lost section + section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }

footer { border-top: 1px solid var(--rule); padding-top: 20px; padding-bottom: 36px; color: var(--muted);
  font-size: 15px; }
footer p { margin: 0; }
footer .sep { padding: 0 6px; }
footer a { color: var(--muted); white-space: nowrap; }
footer a:hover { color: var(--ink); }

@media (max-width: 420px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  main { padding-top: 28px; }
}
