/* Hearth — public site. Minimal, privacy-first brand styling.
 * Newsreader (serif) for headings, Geist (sans) for body — matches the
 * in-app brand. Generous line-height + narrow measure for a calm read.
 * Dark/light via prefers-color-scheme. No JS, no analytics. */

:root {
  --bg: #fbf8f4;
  --fg: #1a1814;
  --fg-muted: #5a564c;
  --line: #e6dfd0;
  --accent: #b4541d;
  --code-bg: #f1ece0;
  --table-stripe: #f4efe2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110d;
    --fg: #ece6d6;
    --fg-muted: #9a9484;
    --line: #2b2620;
    --accent: #d57a45;
    --code-bg: #1c1813;
    --table-stripe: #1a1612;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 40px 20px 64px; }
}

h1, h2, h3 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin: 3rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
}

p, ul, ol, table { margin: 0 0 1rem; }

ul, ol { padding-left: 1.5rem; }

li { margin-bottom: 0.4rem; }

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

a:hover { text-decoration-thickness: 2px; }

code {
  font-family: "Geist Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

strong { font-weight: 600; }

.eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

.meta {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 600;
  background: var(--table-stripe);
  font-family: "Geist", sans-serif;
}

tbody tr:nth-child(even) { background: var(--table-stripe); }

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 0.9rem;
}

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