/* runair.app — the language selector at / (index.html, written by
   site/tools/build_home.py from sections/select.html). It is on screen for
   a moment at most: assets/lang.js moves on to /<code>/ before it is
   drawn (and hides it meanwhile, .is-leaving), and without JavaScript its
   <noscript> refresh does. What a crawler, or a browser that refreshes
   nothing, sees: one centred screen like the not-found page's — the logo,
   "Choose a language · Wybierz język" and the sixteen languages, each its
   flag and its own name, in a grid (letters the subsets lack, Greek and
   Cyrillic, come from the system font).
   Standalone (no site.css: the page must stay a few hundred bytes), so the
   tokens it needs are repeated here. Light only, no script of its own. */

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/assets/fonts/barlow-semi-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff9e8;
  --blue: #123bcb;
  --blue-deep: #0d2fa8;
  --vermilion: #f44b32;
  --ink: #07182f;
  --muted: #48576b;
  color-scheme: only light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--cream);
  color: var(--ink);
}

.is-leaving body {
  visibility: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 400 1.0625rem / 1.5 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.select-screen {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(20px, 4vh, 32px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(20px, 5vh, 56px) 16px;
  text-align: center;
}

.select-screen h1 {
  margin: 0;
  line-height: 0;
}

.select-logo {
  width: clamp(168px, 12vw + 96px, 252px);
  height: auto;
}

.select-logo .la {
  fill: var(--blue);
}

.select-logo .lb {
  fill: var(--vermilion);
}

.select-logo .lw {
  fill: var(--ink);
}

.select-screen p {
  margin: 0;
  color: var(--muted);
}

.select-langs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 100%);
}

.select-langs a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  font: 700 1rem / 1.2 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left;
  text-decoration: none;
  background: var(--blue);
  color: var(--cream);
}

.select-langs .flag {
  flex: none;
  width: 26px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 249, 232, 0.5);
}

.select-langs a:hover {
  background: var(--blue-deep);
}

.select-langs a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .select-langs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

svg {
  -webkit-user-drag: none;
  user-select: none;
}
