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

:root {
  --bg: #f8f6f1;
  --bg-card: #ffffff;
  --text: #2a2420;
  --text-muted: #6b5f58;
  --border: #e8dfd5;
  --accent: #5c7a5c;
  --accent-dark: #466046;
  --link: #3d6b8e;
  --link-hover: #2c5270;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --max: 720px;
  --max-wide: 1100px;
  --radius: 8px;
}

html {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

img { max-width: 100%; }

/* ── Nav ── */
.site-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--accent-dark); text-decoration: none; }
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-dark);
  text-decoration: none;
}

/* ── Main ── */
main { flex: 1; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding: 3rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-section h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-links a {
  color: var(--text);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--accent-dark); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Hero ── */
.hero {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
}
.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}
.hero-bio {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); color: white; text-decoration: none; }
.btn-secondary { border: 1px solid var(--border); color: var(--text); background: var(--bg-card); }
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); text-decoration: none; }

/* ── Sections ── */
.section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.section-link { font-size: 0.85rem; color: var(--accent); }
.section-link:hover { color: var(--accent-dark); }

/* ── Post card ── */
.post-grid { display: grid; gap: 1.25rem; }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.post-card:hover {
  border-color: #c8bfb5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.post-date { font-size: 0.8rem; color: var(--text-muted); }
.post-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: #eef4ee;
  color: var(--accent-dark);
}
.post-tag.talk { background: #f0ede8; color: #7a5a3a; }
.post-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-serif);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--link); text-decoration: none; }
.post-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ── Projects grid ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.project-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.project-card:hover {
  border-color: #c8bfb5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-decoration: none;
}
.project-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.project-name { font-weight: 600; color: var(--text); margin-bottom: 0.2rem; font-size: 0.95rem; }
.project-url { font-size: 0.8rem; color: var(--text-muted); }
.project-card:hover .project-name { color: var(--link); }

/* ── List pages ── */
.page-header {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}
.page-header p { color: var(--text-muted); margin-top: 0.5rem; }
.page-header .page-nav-hint { font-size: 0.85rem; margin-top: 0.75rem; }

.posts-list {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  gap: 1.25rem;
}
.empty-state { color: var(--text-muted); padding: 2rem 0; }

/* ── Post page ── */
.post-page-header {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.back-link:hover { color: var(--accent-dark); text-decoration: none; }
.post-eyebrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.post-page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.post-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
}
.post-scripture {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--accent);
  background: #f0f5f0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--accent-dark);
}
.post-divider {
  max-width: var(--max);
  margin: 2rem auto;
  padding: 0 1.5rem;
  border: none;
  border-top: 1px solid var(--border);
}
.post-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.post-body p { margin-bottom: 1.25rem; }
.post-body ul,
.post-body ol { margin: 0.75rem 0 1.25rem 1.5rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.post-body a { color: var(--link); text-decoration: underline; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-inner { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .section, .posts-list { padding-left: 1rem; padding-right: 1rem; }
  .page-header { padding: 2rem 1rem 1.5rem; }
  .post-page-header, .post-body { padding-left: 1rem; padding-right: 1rem; }
}
