:root {
  /* exact app palette (Color+Extensions.swift) */
  --bg: #F5F1E8;
  --surface: #FAF6EB;
  --text: #2B2A24;
  --muted: #5C584A;
  --olive: #6B7150;
  --olive-deep: #4D5238;
  --border: #D8CFB5;
  --max: 46rem;
}

* { box-sizing: border-box; }

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

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

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

header.site {
  text-align: center;
  padding: 2.5rem 1.25rem 1rem;
}

header.site .logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--olive-deep);
  letter-spacing: 0.5px;
  text-decoration: none;
}

header.site .tagline {
  color: var(--muted);
  margin-top: 0.35rem;
  font-size: 1rem;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--olive-deep);
  line-height: 1.25;
}

h1 { font-size: 1.9rem; margin: 0 0 0.35rem; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; color: var(--text); }

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

a { color: var(--olive); }
a:hover { color: var(--olive-deep); }

.langnav {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0 0.5rem;
  flex-wrap: wrap;
}

.langnav a {
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  color: var(--olive-deep);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 0.5rem;
  margin-bottom: 1.5rem;
}

hr.section {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

ul { padding-left: 1.2rem; }
li { margin: 0.3rem 0; }

.buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  text-decoration: none;
  background: var(--olive-deep);
  color: var(--surface);
  border-radius: 12px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
}

.button.secondary {
  background: transparent;
  color: var(--olive-deep);
  border: 1px solid var(--olive-deep);
}

footer.site {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
}

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

code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.1rem 0.35rem; font-size: 0.9em; }
