/* One stylesheet for every page. Dark only, like the app (MonoTheme is dark-only). */
:root {
  --bg: #050505;
  --surface: #0f0f0f;
  --raised: #1a1a1a;
  --line: #282828;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --accent: #ea3013; /* AccentColor.Signal in ui/theme/AppStyle.kt */
  --todo: #ffb300;
  --radius: 14px;
  --max: 1080px;
  --prose: 720px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--accent); }
a:hover { color: var(--accent); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

img { max-width: 100%; display: block; }

code { font-family: var(--mono); font-size: 0.9em; background: var(--raised); padding: 1px 6px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--prose); }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; margin-top: 80px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Hero */
.hero { padding: 88px 0 56px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; }
.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--text);
}
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover { color: #fff; filter: brightness(1.1); }
.button:hover { border-color: var(--text); }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.01em; margin: 0 0 16px; }
h3 { font-size: 18px; margin: 0 0 8px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }

.app-card { display: flex; gap: 18px; align-items: flex-start; text-decoration: none; }
.app-card img { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.app-card:hover { border-color: var(--accent); color: var(--text); }

.shots { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.shots img { border-radius: 22px; border: 1px solid var(--line); width: 100%; height: auto; aspect-ratio: 540 / 1200; object-fit: cover; }
@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(2, 1fr); }
}

/* Legal pages */
.legal { padding-top: 56px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 40px; padding-top: 8px; }
.legal p, .legal li { color: #d6d6d6; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 14px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
.note { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 20px 0; }

/* Unresolved decisions. A page that still shows one is not ready to deploy (see site/README.md). */
.todo { color: var(--todo); background: rgba(255, 179, 0, 0.1); border: 1px dashed var(--todo); border-radius: 6px; padding: 0 6px; }

/* 404 */
.center { text-align: center; padding: 120px 0; }
.center .lede { margin: 0 auto 32px; }
.center .actions { justify-content: center; }
