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

:root {
  --accent: #1e8449;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --max-w: 1100px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
}
.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 4rem 0 2rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Articles */
.articles { padding: 2rem 0 4rem; }
.articles h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.article-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
  display: block;
}
.article-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.article-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.article-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.article-card p { font-size: 0.875rem; color: var(--muted); }
.article-card .date { font-size: 0.75rem; color: var(--muted); margin-top: 1rem; }

/* Footer */
.site-footer {
  background: #f9fafb;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer nav a { color: var(--muted); text-decoration: none; margin-left: 1rem; }
.site-footer nav a:hover { color: var(--text); }

/* Inner pages */
.page-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.page-content h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.page-content h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.page-content p { margin-bottom: 1rem; color: var(--muted); }
.page-content a { color: var(--accent); }

/* Contact form */
form .field { margin-bottom: 1.25rem; }
form label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; }
form input, form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
}
form textarea { min-height: 140px; resize: vertical; }
form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
form button:hover { opacity: 0.9; }
