/* worldatlasoffline.com: system fonts only, no external resources. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf7;
  --fg: #1c1f24;
  --muted: #5b6470;
  --accent: #1b6fb5;
  --rule: #dcd8cf;
  --mark-bg: #ffe28a;
  --mark-fg: #3a2c00;
  --badge-bg: #000;
  --badge-fg: #fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --fg: #e7e9ec;
    --muted: #9aa3ad;
    --accent: #6cb4f5;
    --rule: #2c323a;
    --mark-bg: #6b5300;
    --mark-fg: #fff3c4;
    --badge-bg: #fff;
    --badge-fg: #000;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main, .site-header, .site-footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { flex: 1; padding-bottom: 2rem; }

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

.site-header { padding-top: 1.25rem; padding-bottom: 1.25rem; }

.wordmark {
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

h1 { font-size: 2rem; line-height: 1.2; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 1.5rem 0 0.25rem; }

.hero h1 { font-size: 2.6rem; margin-top: 2.5rem; }

.subtitle {
  color: var(--muted);
  font-size: 1.3rem;
  margin-top: 0;
}

.store { margin: 2rem 0; }

.badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 10rem;
  padding: 0.45rem 1.1rem;
  border-radius: 0.6rem;
  background: var(--badge-bg);
  color: var(--badge-fg);
  text-decoration: none;
  line-height: 1.15;
}

.badge-pending { opacity: 0.6; cursor: default; }
.badge-small { font-size: 0.7rem; }
.badge-large { font-size: 1.35rem; font-weight: 600; }

.prose ul { padding-left: 1.25rem; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

mark.placeholder {
  background: var(--mark-bg);
  color: var(--mark-fg);
  padding: 0 0.2em;
  border-radius: 0.2em;
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer p { margin: 0.5rem 0 0; }

@media (max-width: 30rem) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 2.1rem; }
  .subtitle { font-size: 1.15rem; }
}
