/* Abounding Mercies — landing page
 * Palette:  ink #1a1814  cream #f7f3ec  muted accent #6b5742  rule #d8cfc0
 * Type:     system-ui stack; serif for body so devotional copy feels printed
 * Layout:   single-column, 64ch max-width, mobile-first
 * Philosophy: no JS, no web fonts, no tracking, no decoration that isn't load-bearing
 */

:root {
  --ink: #1a1814;
  --cream: #f7f3ec;
  --accent: #6b5742;
  --rule: #d8cfc0;
  --muted: #5e564d;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Source Serif Pro", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 64ch;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}

header {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

h1 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.tagline {
  margin: 0.5rem 0 0;
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.005em;
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: none;
}

section {
  margin: 0 0 2.5rem;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  color: var(--ink);
}

strong {
  font-weight: 600;
}

.placeholder {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

footer {
  max-width: 64ch;
  margin: 4rem auto 0;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}

footer p {
  margin: 0 0 1rem;
}

.disclosure-ai,
.disclosure-affiliate {
  font-size: 0.85rem;
}

.copyright {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--muted);
}

/* Narrow screens — looser padding, slightly smaller H1, no edge crowding */
@media (max-width: 480px) {
  body { font-size: 17px; }
  main { padding: 2rem 1.25rem 1rem; }
  footer { padding: 1.5rem 1.25rem 2rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.1rem; }
}

/* Wider screens — keep the max-width tight; reading width matters more than
 * filling the viewport. Devotional copy reads better at 60-65ch. */
@media (min-width: 1024px) {
  main { padding-top: 4rem; }
}

/* Honor reduced-motion preferences (none here yet, but baseline discipline) */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Honor dark-mode preference. The cream-on-ink scheme inverts cleanly;
 * keep accent + rule readable in both modes. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3ece0;
    --cream: #14110e;
    --accent: #c9b08a;
    --rule: #3a342d;
    --muted: #aaa193;
  }
}
