/*
 * Static pages for the App Store / Play Store required URLs.
 *
 * No framework and no build step on purpose: these have to stay reachable
 * forever at a stable URL, and the fewer moving parts between a store reviewer
 * and the text, the better. Plain CSS custom properties carry the same tokens
 * the app uses so the two do not drift apart.
 */

:root {
  color-scheme: light dark;

  --brand: #2e90e8;
  --brand-strong: #1b72c4;

  --bg: #f7fafc;
  --surface: #ffffff;
  --fg: #161b21;
  --fg-muted: #57626d;
  --fg-subtle: #8794a1;
  --border: #e2e8ef;

  --radius: 12px;
  --measure: 42rem;
}

/*
 * Two selectors, not one. The media query is the automatic behaviour; the
 * [data-theme] attribute is the manual override, and it has to be able to win
 * in *both* directions — forcing light on a device set to dark is just as much
 * a choice as the other way round.
 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f1519;
    --surface: #18212a;
    --fg: #e9eef3;
    --fg-muted: #a3b0bc;
    --fg-subtle: #7d8b98;
    --border: #27323d;
    --brand: #5cacf0;
    /* The light-mode link colour is too dark to read on the dark surface. */
    --brand-strong: #8cc6f5;
  }
}

:root[data-theme='dark'] {
  --bg: #0f1519;
  --surface: #18212a;
  --fg: #e9eef3;
  --fg-muted: #a3b0bc;
  --fg-subtle: #7d8b98;
  --border: #27323d;
  --brand: #5cacf0;
  --brand-strong: #8cc6f5;
}

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

body {
  margin: 0;
  padding: 0 1.25rem 4rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

/* Hebrew needs a face with real Hebrew coverage and slightly more leading. */
[lang='he'] {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Noto Sans Hebrew', Arial, sans-serif;
  line-height: 1.8;
}

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.controls {
  display: flex;
  gap: 0.4rem;
}

button.control {
  min-height: 36px;
  padding: 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--fg-muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

button.control:hover {
  color: var(--fg);
  border-color: var(--brand);
}

button.control:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

h1 {
  font-size: 1.7rem;
  line-height: 1.3;
  margin: 0 0 0.4rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.6rem;
}

.updated {
  color: var(--fg-subtle);
  font-size: 0.85rem;
  margin: 0 0 2rem;
}

p,
li {
  color: var(--fg-muted);
}

a {
  color: var(--brand-strong);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
}

.draft {
  border-inline-start: 4px solid var(--brand);
}

.links {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.links a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--fg);
  font-weight: 550;
}

.links a:hover {
  border-color: var(--brand);
}

footer.site {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--fg-subtle);
  font-size: 0.85rem;
}

/* Only one language is shown at a time; both stay in the DOM so the page works
   with JavaScript disabled — the default language is simply visible already. */
[data-lang-block][hidden] {
  display: none;
}
