/* Shared styles for the static pages (/ and /books/).
   Palettes mirror the app: nord for light, habamax for dark.
   The topbar duplicates the map's toolbar geometry (App.css), so the header
   keeps its place and size when navigating between pages. */
:root {
  color-scheme: light dark;
  --surface-1: #eceff4;
  --text-primary: #2e3440;
  --text-secondary: #4c566a;
  --border: rgba(46, 52, 64, 0.16);
  --accent: #5e81ac;
  --accent-ink: #eceff4;
  --link: #5e81ac;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-1: #1c1c1c;
    --text-primary: #c7c7c7;
    --text-secondary: #9e9e9e;
    --border: rgba(199, 199, 199, 0.22);
    --accent: #d75f87;
    --accent-ink: #1c1c1c;
    --link: #5f87af;
  }
}
/* Cross-fade between pages instead of a repaint flash (where supported). */
@view-transition {
  navigation: auto;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--surface-1);
  color: var(--text-primary);
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
.topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  view-transition-name: topbar;
}
.topbar h1 {
  font-size: 18px;
  margin: 0;
}
.tabs {
  display: flex;
  gap: 4px;
  align-self: stretch;
  margin: -10px 0;
}
.tabs a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.tabs a:hover {
  color: var(--text-primary);
}
.tabs a[aria-current="page"] {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
main h3:first-child {
  margin-top: 0;
}
.tagline {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}
p {
  margin: 0 0 12px;
}
/* Links share one color with the map sidebar; --accent is reserved for
   where-you-are marks (active tab, CTA), matching the map's selection. */
a {
  color: var(--link);
}
.cta {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.cta:hover {
  filter: brightness(1.08);
}
h3 {
  font-size: 13px;
  margin: 28px 0 4px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.readings {
  list-style: none;
  padding: 0;
  margin: 0;
}
.readings li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.readings .work {
  font-weight: 600;
}
.readings .meta {
  color: var(--text-secondary);
}
.readings .note {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
}
footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
