/* gridspotter.app: three hand-written pages. Colours are the app's (packages/mobile/src/ui/palette.ts).
   No web fonts, no images from elsewhere, no scripts. */
:root {
  color-scheme: light dark;
  --background: #f3f6f2;
  --surface: #ffffff;
  --text: #0f1a14;
  --muted: #4b5a51;
  --accent: #0b7d43;
  --rule: #d5ddd5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #08130c;
    --surface: #0f1f15;
    --text: #e8f2ea;
    --muted: #a3b5a8;
    --accent: #5be08a;
    --rule: #22382a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

header,
main,
footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: auto;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 22%;
}

nav {
  display: flex;
  gap: 1.25rem;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: 1.875rem;
  line-height: 1.2;
  text-wrap: balance;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

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

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.lead {
  font-size: 1.1875rem;
}

.note {
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
}

.updated,
footer {
  color: var(--muted);
  font-size: 0.9375rem;
}

footer {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
}

footer p {
  margin: 0 0 0.25rem;
}
