/* SparkBasin LLC — site styles */

:root {
  --bg: #ffffff;
  --text: #1a1d21;
  --muted: #5c6470;
  --accent: #0b6bcb;
  --rule: #e3e6ea;
  --max: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --text: #e8eaed;
    --muted: #9aa3ad;
    --accent: #6cb2f5;
    --rule: #2a2e34;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

header.site, main, footer.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

header.site .brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}

header.site nav {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1rem;
}

header.site nav a:hover,
header.site nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  min-height: 55vh;
}

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

p { margin: 0.75rem 0; }

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

ul { padding-left: 1.25rem; }

.muted { color: var(--muted); }

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

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

footer.site p { margin: 0.25rem 0; }

footer.site a { color: var(--muted); }
