/* The share pages (viewer.md §7): the title and the store link, nothing
   else. Colours are wondermap_design's light and dark scheme roles. */
:root {
  color-scheme: light dark;
  --surface: #f6f6f7;
  --card: #ffffff;
  --on-surface: #1a1b1e;
  --on-surface-variant: #45474c;
  --outline-variant: #c6c7cb;
  --primary: #0164b2;
  --on-primary: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #121316;
    --card: #0d0e10;
    --on-surface: #e3e3e6;
    --on-surface-variant: #c4c6cb;
    --outline-variant: #43454a;
    --primary: #9ccbff;
    --on-primary: #003258;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--surface);
  color: var(--on-surface);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  border: 1px solid var(--outline-variant);
  border-radius: 20px;
  background: var(--card);
  text-align: center;
}
.brand { margin: 0 0 24px; font-weight: 600; color: var(--on-surface-variant); }
h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.25; overflow-wrap: anywhere; }
.lead { margin: 0 0 24px; color: var(--on-surface-variant); }
.store {
  display: inline-block;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
}
.store:focus-visible { outline: 3px solid var(--on-surface); outline-offset: 3px; }

/* The website's own pages (scripts/cloud/web_pages.py): Home and the legal
   documents, read top to bottom rather than centred. */
body:has(main.document) { place-items: start center; }
main.document { max-width: 680px; text-align: start; }
main.document .brand a { color: inherit; text-decoration: none; }
main.document h1 { font-size: 28px; overflow-wrap: break-word; hyphens: auto; }
main.document h2 { margin: 24px 0 4px; font-size: 18px; line-height: 1.35; }
main.document p { margin: 0 0 12px; overflow-wrap: anywhere; }
main.document .updated, main.document footer { color: var(--on-surface-variant); }
main.document footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--outline-variant); }
main.document a { color: var(--primary); }
main.document a.store { color: var(--on-primary); }
main.document a:focus-visible { outline: 3px solid var(--on-surface); outline-offset: 3px; }
