:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #1a4d3e;
  --accent-dim: #0f3329;
  --border: #d8d2c4;
  --rule: #1a1a1a;
  --max: 42rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dim); text-decoration-thickness: 2px; }

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--rule);
  background: var(--surface);
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo span {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.1rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

nav a:hover,
nav a[aria-current="page"] { color: var(--text); }

main {
  width: min(100% - 2rem, 44rem);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  flex: 1;
}

.hero { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

h1, h2, h3, .card h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: var(--max);
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.05rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover { background: var(--accent-dim); color: #fff; }

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.cards h2, .modules h2, .post-list h2 {
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.card time, .meta {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.12rem;
}

.card h3 a {
  color: var(--text);
  text-decoration: none;
}

.card h3 a:hover { color: var(--accent); }

.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.modules ul, .post-list ul { padding-left: 1.2rem; color: var(--muted); }

.post-list li { margin-bottom: 0.65rem; }

.prose h1 { margin-top: 0; font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.prose h2 { margin-top: 1.85rem; font-size: 1.25rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose .byline {
  color: var(--muted);
  font-size: 0.85rem;
  margin: -0.35rem 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.affiliate-box {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: #f0ebe3;
  border-left: 3px solid var(--accent);
  font-size: 0.92rem;
}

.affiliate-box p { margin: 0.35rem 0; color: var(--text); }
.affiliate-box .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.subscribe-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 2px;
}

.placeholder-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.fake-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 22rem;
  margin-top: 1rem;
}

.fake-form label { font-size: 0.85rem; color: var(--text); }

.fake-form input {
  padding: 0.55rem 0.65rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
}

.fake-form button {
  margin-top: 0.35rem;
  padding: 0.55rem;
  border: none;
  border-radius: 3px;
  background: var(--accent-dim);
  color: #fff;
  opacity: 0.65;
  cursor: not-allowed;
}

.fineprint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}

.site-footer {
  border-top: 2px solid var(--rule);
  padding: 1.1rem 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
}

.site-footer p { margin: 0.25rem 0; }

@media (max-width: 520px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  nav { gap: 0.75rem; }
}
