/* ===== TOKENS ===== */
:root {
  --bg: #f8f7f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --accent: #4a7c59;
  --accent-hover: #3a6347;
  --accent-light: #eaf2ec;
  --border: #e5e2dc;
  --quote-border: #b6d0bc;
  --max: 700px;
  --font: "Heebo", system-ui, -apple-system, sans-serif;
  --radius: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, picture, video { max-width: 100%; display: block; }

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== LAYOUT ===== */
.site-header,
.site-main,
.site-footer {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}
.site-logo:hover { color: var(--accent); text-decoration: none; }

.site-nav a {
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-nav a:hover { color: var(--accent); }

/* ===== MAIN ===== */
.site-main {
  padding-block: 3rem;
  min-height: 60vh;
}

/* ===== HOME ===== */
.home-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.home-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.home-tagline {
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ===== ARTICLE CARD ===== */
.article-list { display: flex; flex-direction: column; gap: 1.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border-color: var(--accent);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.375rem;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }

.card-date {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.card-excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== POST ===== */
.post { max-width: var(--max); }

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.625rem;
}

.post-date {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ===== POST BODY ===== */
.post-body { font-size: 1.0625rem; line-height: 1.8; }

.post-body p { margin-bottom: 1.25rem; }

.post-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
  color: var(--accent);
}

.post-body blockquote {
  border-inline-start: 3px solid var(--quote-border);
  margin-inline-start: 0;
  padding-inline-start: 1.25rem;
  padding-block: 0.25rem;
  margin-block: 1.5rem;
  color: #444;
  font-style: italic;
}

.post-body ul {
  padding-inline-start: 1.5rem;
  margin-bottom: 1.25rem;
}
.post-body li { margin-bottom: 0.5rem; }

.post-body strong { font-weight: 600; }

/* ===== POST SOURCE ===== */
.post-source {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}
.back-link:hover { color: var(--accent); text-decoration: none; }

/* ===== FOOTER ===== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 500px) {
  .post-title { font-size: 1.375rem; }
  .home-title { font-size: 1.5rem; }
  .site-main { padding-block: 2rem; }
}

.site-logo img { display: block; width: 56px; height: 56px; }
