/* Shared styling for the static pages (about, privacy, terms).
 *
 * These are plain HTML on purpose. The app is a fixed, non-scrolling map with
 * no router, so there is nowhere inside it to put a long document, and a
 * privacy notice needs a real linkable URL that works without JavaScript.
 *
 * System fonts rather than the app's faces: these pages are served straight
 * from public/ and cannot reach the hashed @fontsource files. The colours are
 * copied from the design tokens in src/index.css, which is a duplication worth
 * naming. If the palette changes, change it here too.
 */
:root {
  --ground: #ffffff;
  --ink: #1b1813;
  --ink-mute: #5d5749;
  --line: #e8e0d0;
  --accent: #fc5200;
  --accent-text: #b03900;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.wordmark {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-decoration: none;
}

nav a {
  color: var(--ink-mute);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
}

nav a:hover,
a:hover {
  text-decoration: underline;
}

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

h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.6rem;
  letter-spacing: -0.005em;
}

.updated {
  color: var(--ink-mute);
  font-size: 0.875rem;
  margin: 0 0 2rem;
}

p,
li {
  color: var(--ink-mute);
}

p {
  margin: 0 0 1rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  color: var(--ink);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-mute);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #16140f;
    --ink: #f5f1e8;
    --ink-mute: #b8b1a2;
    --line: #322d24;
    --accent: #ff6f29;
    --accent-text: #ff6f29;
  }
}
