/* Mirrors lib/design/tokens.dart so the pages and the app look related.
   Light and dark both defined here: the pages follow the reader's system
   setting, and a policy page that blazes white at night gets closed. */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #15161a;
  --ink-muted: #6b6c74;
  --line: #e5e3de;
  --x: #e1533a;
  --o: #2c74d6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13;
    --surface: #171922;
    --ink: #f4f4f6;
    --ink-muted: #9a9ba5;
    --line: #272a34;
    --x: #ff7a5c;
    --o: #5ea3ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.hero { text-align: center; margin-bottom: 3.5rem; }
.mark { width: 88px; margin: 0 auto 1.5rem; }
.mark svg { width: 100%; height: auto; }

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

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

h3 { font-size: 1rem; margin: 1.75rem 0 0.5rem; }

.lead { color: var(--ink-muted); font-size: 1.0625rem; margin: 0 auto; max-width: 34rem; }
p { margin: 0 0 1rem; }
a { color: var(--o); }

ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }

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

.links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 3rem 0 0;
}

.updated { color: var(--ink-muted); font-size: 0.875rem; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }

/* Wide tables scroll inside themselves rather than pushing the page sideways. */
.scroll { overflow-x: auto; }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
  text-align: center;
}

.back { display: inline-block; margin-bottom: 2rem; color: var(--ink-muted); text-decoration: none; }
.back:hover { color: var(--ink); }
