:root {
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #fff;
  --bg-alt: #f7f7f7;
  --accent: #2a5e3f;
  --accent-light: #e8f0eb;
  --border: #ddd;
  --max-width: 44rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.site-header nav {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.site-header ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.site-header a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-header a:hover {
  color: var(--accent);
}

.site-header a.active {
  color: var(--accent);
  font-weight: 600;
}

.site-header a.nav-cta {
  color: #c0392b;
  font-weight: 700;
}

.site-header a.nav-cta.active {
  color: #c0392b;
  text-decoration: underline;
}

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

/* Anchor links on headings */
h2 .anchor-link {
  opacity: 0;
  font-size: 0.75em;
  margin-left: 0.3em;
  text-decoration: none;
  color: var(--text-light);
  vertical-align: middle;
  transition: opacity 0.15s;
}

h2:hover .anchor-link {
  opacity: 1;
}

.anchor-link:hover {
  color: var(--accent);
}

h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

p { margin-bottom: 1rem; }

ul, ol {
  margin: 0 0 1rem 1.5rem;
}

li { margin-bottom: 0.35rem; }

a { color: var(--accent); }

strong { font-weight: 600; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

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

th {
  background: var(--bg-alt);
  font-weight: 600;
}

/* Callout boxes */
.callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.callout p:last-child { margin-bottom: 0; }

/* Subscribe form */
.subscribe-form {
  background: var(--bg-alt);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 2rem 0;
}

.subscribe-form input[type="email"] {
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 100%;
  max-width: 20rem;
  margin-bottom: 0.75rem;
}

.subscribe-form button {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.subscribe-form button:hover {
  opacity: 0.9;
}

/* Footer */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 1.5rem; }
  .site-header ul { gap: 0.15rem 0.75rem; }
}
