/* Shared styling for the public pages at teamtalk.click.
 *
 * Same-origin and nothing else: no CDN, no web font, no analytics tag. A
 * privacy policy that phones a third party to render itself is both a bad look
 * and something the policy would then have to disclose.
 *
 * Colours mirror the app's palette (mobile/src/assets/tailwind.css): amber
 * #f5c518 on near-black in dark mode, which is what the app actually looks
 * like. Light mode is the default because that is what a store reviewer's
 * desktop browser is usually in. */

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --border: #e2e5eb;
  --text: #1a1d24;
  --muted: #5c6474;
  --accent: #9a6f00;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --surface: #161a23;
    --border: #2a3040;
    --text: #e8eaf0;
    --muted: #8b93a5;
    --accent: #f5c518;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

main {
  max-width: 46rem;
  margin: 0 auto;
}

header.masthead {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

header.masthead a {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

header.masthead span {
  color: var(--muted);
  font-size: 0.9rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.2rem;
  margin: 2.5rem 0 0.6rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1rem;
  margin: 1.6rem 0 0.4rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.4rem;
}

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

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
}

/* Used for the handful of statements a reader most needs to not miss — the
 * push-notification payload, the unauthenticated media URLs, the absence of
 * end-to-end encryption. */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  margin-right: 1rem;
}

.cards {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.cards li {
  margin-bottom: 0.75rem;
}

.cards a {
  display: block;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.cards a:hover {
  border-color: var(--accent);
}

.cards span {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
