:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #141413;
  --muted: #52525b;
  --border: #e4e4e7;
  --accent: #0f766e;
  --accent-soft: #f0fdfa;
  --max-prose: 720px;
  --max-wide: 980px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

.header-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

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

.hero {
  max-width: var(--max-prose);
  margin-bottom: 3.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

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

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 20, 19, 0.06);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.post-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
}

.post-card h2 a {
  color: var(--ink);
}

.post-card h2 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.post-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0 0 1.25rem;
  flex: 1;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* Article page */
.article-header {
  max-width: var(--max-prose);
  margin: 0 auto 2.25rem;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 0.85rem;
}

.article-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.article-hero-img {
  max-width: var(--max-wide);
  margin: 0 auto 2.5rem;
}

.article-hero-img img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}

.caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.55rem;
  text-align: center;
}

.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  font-size: 1.07rem;
}

.prose h2 {
  font-size: 1.65rem;
  margin: 2.4rem 0 0.85rem;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.6rem;
}

.prose p {
  margin: 0 0 1.35rem;
}

.prose ul, .prose ol {
  margin: 0 0 1.5rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 1.2rem 1.35rem;
  margin: 2rem 0;
}

.callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.wide-block {
  max-width: var(--max-wide);
  margin: 2.25rem auto;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  text-align: left;
}

th, td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: #f4f4f0;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: none;
}

.inline-figure {
  margin: 2rem 0;
}

.inline-figure img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
}

.stat-value {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
