/* Gospel Economics — reading layout for gospel.finance */

:root {
  --bg: #faf9f7;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --accent: #2c5282;
  --rule: #e2ddd4;
  --max: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --text: #e8e6e3;
    --muted: #9a9690;
    --accent: #7eb8ff;
    --rule: #33302c;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Literata", "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.site-header {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.site-title {
  font-family: "Literata", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
}

.site-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

nav.chapters {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

nav.chapters ol {
  margin: 0;
  padding-left: 1.25rem;
}

nav.chapters li {
  margin: 0.35rem 0;
}

nav.chapters .current {
  font-weight: 600;
  color: var(--text);
}

article h1 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

article h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

article h2:first-of-type {
  margin-top: 0;
}

article p {
  margin: 0 0 1.15rem;
  text-align: left;
  hyphens: auto;
}

article footer.footnote {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.landing-lead {
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.landing-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.landing-links li {
  margin: 0.85rem 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.landing-links li:last-child {
  border-bottom: none;
}

.landing-links a {
  font-weight: 600;
  font-size: 1.05rem;
}

.landing-links .sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
