/*
  One stylesheet for the whole site. No web fonts, no external requests, and no JavaScript on the
  policy pages: a privacy policy that phones home while explaining what it does not collect is a
  bad joke, and the CSP in firebase.json blocks it anyway (it admits same-origin scripts only,
  for /app/redirect.js). This should still render in ten years.
*/

:root {
  --bg: #fdfcfa;
  --surface: #ffffff;
  --text: #1c1a17;
  --muted: #5c554c;
  --rule: #e4ded4;
  --accent: #7a5c2e;
  --note-bg: #f5f1e8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16150f;
    --surface: #1e1c16;
    --text: #eae5db;
    --muted: #a89f91;
    --rule: #322e25;
    --accent: #d9b978;
    --note-bg: #221f18;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.lang {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.lang a { color: var(--accent); }
.lang span { color: var(--text); font-weight: 600; }

h1 {
  font-size: 1.875rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.subtitle { color: var(--muted); margin: 0; }

h2 {
  font-size: 1.25rem;
  margin: 2.75rem 0 0.75rem;
  padding-top: 0.25rem;
  letter-spacing: -0.005em;
}

h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  margin: 1.75rem 0 0.5rem;
  letter-spacing: 0.01em;
}

p, li { margin: 0.75rem 0; }
ul { padding-left: 1.25rem; }
li { margin: 0.4rem 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

strong { font-weight: 650; }

.note {
  background: var(--note-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 0.875rem 1.125rem;
  margin: 1.5rem 0;
}

.note p { margin: 0.35rem 0; }

.contact {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem 1.375rem;
  margin: 1.5rem 0;
}

.contact p { margin: 0.3rem 0; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.875rem;
}

@media (max-width: 30rem) {
  .wrap { padding: 1.75rem 1rem 4rem; }
  h1 { font-size: 1.5rem; }
}

/*
  /app/ — the store landing page the printed QR code points to. Phones rarely see it (redirect.js
  forwards them to their store); it is what a desktop or an unrecognised device lands on.
*/

.store { text-align: center; padding-top: 4rem; }

.app-icon {
  display: block;
  margin: 0 auto 1.25rem;
  border-radius: 22%;
}

.stores-hint {
  margin-top: 2.25rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
}

.stores {
  display: grid;
  gap: 0.75rem;
  max-width: 18rem;
  margin: 1rem auto 0;
}

.store-link {
  display: flex;
  flex-direction: column;
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.3;
}

.store-name { font-size: 1.125rem; font-weight: 600; }
.store-os { font-size: 0.8125rem; opacity: 0.75; }

.store footer { margin-top: 3rem; }
