:root {
  --ink: #2b1d12;
  --ink-soft: #5c4632;
  --paper: #fff4dc;
  --paper-deep: #f3e2bd;
  --gold: #e3a92f;
  --gold-deep: #b97e14;
  --sea: #1f6f8b;
  --card: #fffaf0;
  --line: #e5cf9f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f7ecd6;
    --ink-soft: #d9c7a5;
    --paper: #1d1610;
    --paper-deep: #2a2017;
    --card: #2f241a;
    --line: #4a3a28;
    --sea: #6cc3dd;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 "Fredoka", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--sea); }

header.hero {
  position: relative;
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px 64px;
  background: url("img/bg.webp") center / cover no-repeat, var(--paper-deep);
}

header.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, var(--paper));
}

header.hero > div { position: relative; z-index: 1; max-width: 720px; }

header.hero img.logo { width: min(560px, 90vw); height: auto; filter: drop-shadow(0 8px 18px rgb(0 0 0 / 0.35)); }

header.hero p {
  margin: 8px auto 24px;
  max-width: 34em;
  font-size: 1.15rem;
  color: #fff;
  text-shadow: 0 2px 6px rgb(0 0 0 / 0.6);
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(var(--gold), var(--gold-deep));
  color: #2b1d12;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 #8a5d0f, 0 6px 14px rgb(0 0 0 / 0.25);
}

/* The stores' official badges, one height (Google's artwork carries its own clear space around
   the badge, so it's drawn taller and pulled in by that space). */
.stores { align-items: center; }
.badge { display: inline-flex; line-height: 0; border-radius: 9px; }
.badge img { height: 56px; width: auto; }
.badge.play img { height: 84px; margin: -14px -12px; }
.badge:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
p.soon { font-weight: 600; margin: 14px auto 0; }
@media (max-width: 480px) { .badge img { height: 50px; } .badge.play img { height: 75px; margin: -12.5px -11px; } }

.button.quiet { background: var(--card); color: var(--ink); box-shadow: 0 2px 0 var(--line); }

nav.top {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
}

nav.top a.home { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; }
nav.top img { width: 36px; height: 36px; border-radius: 9px; }
nav.top .links { margin-left: auto; display: flex; align-items: center; gap: 16px; }
nav.top .links a { white-space: nowrap; }
[dir="rtl"] nav.top .links { margin-left: 0; margin-right: auto; }
/* The privacy policy's language menu, and the list of every language at its foot. */
nav.top select { font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px; max-width: 40vw; }
footer .langs { display: inline-block; margin-top: 10px; line-height: 1.8; }

main { max-width: 960px; margin: 0 auto; padding: 8px 16px 48px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 8px 0 32px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}

.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--ink-soft); }

article { max-width: 720px; }
article h1 { line-height: 1.2; }
article h2 { margin-top: 1.8em; }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer a { color: inherit; }

[hidden] { display: none !important; }
