:root {
  --bg: #fafaf7;
  --text: #1a1a18;
  --muted: #6b6b62;
  --soft: #a8a89e;
  --border: #e4e4dc;
  --surface: #f2f2ec;
  --accent: #2a6b3c;
  --accent-light: #ebf4ee;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2 {
  font-family: 'Lora', serif;
  margin: 0 0 16px;
  color: var(--text);
}

h1 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(3px);
  z-index: 10;
}

.wide-wrap {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.content-wrap {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  font-family: 'Lora', serif;
  color: var(--text);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
}

.site-nav {
  display: flex;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-block;
  font-weight: 500;
  line-height: 1.2;
}

.button-dark {
  background: var(--text);
  color: #fff;
}

.button-dark:hover {
  text-decoration: none;
  opacity: 0.92;
}

.section-space {
  padding: 48px 0;
}

.hero {
  padding: 64px 0 36px;
}

.section-border {
  border-bottom: 1px solid var(--border);
}

.kicker {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: '';
  width: 24px;
  border-top: 2px solid var(--accent);
}

.lead {
  font-size: 33px;
  line-height: 1.85;
  color: #3f3f39;
}

.author-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a6b3c, #4d9a64);
  color: #fff;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.author-name {
  margin-bottom: 2px;
  font-weight: 600;
}

.author-bio {
  margin: 0;
  color: #4f4f49;
  font-size: 14px;
  line-height: 1.6;
}

.honest-note {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 18px 20px;
  border-radius: 0 8px 8px 0;
}

.honest-note p {
  font-style: italic;
  margin: 0;
}

.section-label {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--soft);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.post-list {
  border-top: 1px solid var(--border);
}

.post-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.post-date {
  font-size: 13px;
  color: var(--soft);
  margin: 0 0 6px;
}

.post-tag {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.post-tag-link {
  color: var(--accent);
}

.post-title {
  margin: 0 0 8px;
  font-family: 'Lora', serif;
  font-size: 26px;
  line-height: 1.25;
}

.post-title a {
  color: var(--text);
}

.post-excerpt {
  color: #4d4d47;
  margin: 0 0 6px;
}

.post-meta {
  margin: 0;
  font-size: 13px;
  color: var(--soft);
}

.post-channel-note {
  margin-left: 8px;
  color: var(--accent);
}

.empty-state {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
}

.newsletter-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
}

.newsletter-box h2 {
  margin-bottom: 6px;
}

.newsletter-form {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter-form input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.newsletter-form input:focus {
  outline: 2px solid rgba(42, 107, 60, 0.3);
  border-color: var(--accent);
}

.newsletter-meta {
  margin-top: 10px;
  color: var(--soft);
  font-size: 13px;
}

.newsletter-message {
  margin: 10px 0 0;
  font-size: 14px;
  min-height: 22px;
}

.newsletter-message.success {
  color: var(--accent);
}

.newsletter-message.error {
  color: #8c2a2a;
}

.topics-row,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topics-row a,
.filter-row a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  color: #50504b;
  background: transparent;
  font-size: 15px;
}

.filter-row {
  margin: 18px 0 26px;
}

.filter-row a.is-active {
  background: var(--accent-light);
  border-color: #b8d8c0;
  color: var(--accent);
  font-weight: 500;
}

.about-page section + section {
  margin-top: 30px;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

.footer-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--soft);
  font-size: 13px;
}

.footer-wrap p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }

  .logo {
    font-size: 29px;
  }

  .nav-wrap {
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .hero {
    padding-top: 34px;
  }

  .lead {
    font-size: 19px;
  }

  .post-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .newsletter-box {
    padding: 20px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    min-height: unset;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
