:root {
  /* Palette matched to the app:
     bg_primary  = #588157 (olive green, splash + primary bg)
     bg_primary_dark = #37653F (darker forest accent)
  */
  --brand: #588157;
  --brand-dark: #37653F;
  --accent: #E07A3F;

  --bg: #1d2a1f;
  --bg-elev: #253329;
  --fg: #f0ead8;
  --fg-dim: #c7c0ab;
  --rule: rgba(240, 234, 216, 0.12);
  --max-width: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

header.site {
  background: var(--brand);
  color: #ffffff;
  border-bottom: 1px solid var(--brand-dark);
  padding: 1rem 1.5rem;
}

header.site .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

header.site a.brand {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

header.site a.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
}

header.site nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

header.site nav a:hover {
  color: #ffffff;
}

h1, h2, h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.15;
  margin: 0.5rem 0 0.5rem;
  font-weight: 800;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.02rem;
  margin-top: 1.6rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

p, ul, ol { margin: 0.7rem 0; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration: none; }

.tagline {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 1.15rem;
  color: var(--fg-dim);
  margin: 0 0 2rem;
  font-style: italic;
}

.lede {
  font-size: 1.1rem;
  color: var(--fg);
  margin: 0 0 2rem;
}

.features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1.5rem;
}

.features li {
  padding: 1rem 1.25rem;
  background: var(--bg-elev);
  border-left: 3px solid var(--brand);
  border-radius: 2px;
}

.features h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  color: var(--fg);
  text-transform: none;
  letter-spacing: normal;
  font-size: 1rem;
}

.features p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.97rem;
}

.callout {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elev);
  border-radius: 4px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
}

.callout p { margin: 0.35rem 0; }
.callout strong { color: var(--fg); }

.meta {
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

footer.site {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  color: var(--fg-dim);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer.site a {
  color: var(--fg-dim);
  text-decoration: none;
}
footer.site a:hover { color: var(--fg); }

.disclaimer-strong {
  background: rgba(224, 122, 63, 0.08);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.25rem;
  margin: 1.25rem 0;
}

/* Light-mode override for readability on bright displays */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf6ee;
    --bg-elev: #ffffff;
    --fg: #1a2a1b;
    --fg-dim: #5a6555;
    --rule: rgba(26, 42, 27, 0.15);
  }
  /* Header keeps the brand olive in light mode too — that's the app-matching anchor */
  .features li { border-left-color: var(--brand); }
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255,255,255,0.05);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}
