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

:root {
  --font-body: 'Inter', system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-5xl: 3rem;
  --text-primary: #0a0a0a;
  --text-secondary: #3d3d3d;
  --text-muted: #6b6b6b;
  --text-disabled: #a3a3a3;
  --surface-base: #ffffff;
  --border-default: #e2e0db;
  --border-dashed: #d4d1cb;
  --max-width-content: 1120px;
  --max-width-prose: 680px;
}

html, body {
  font-family: var(--font-body);
  background: var(--surface-base);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-default);
  height: 56px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width-content);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-btn {
  background: #317ae2;
  color: #ffffff;
  padding: 8px 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.nav-btn:hover { background: #2563a8; }

/* ─── HERO ─── */
.hero {
  padding: 80px 40px 64px;
}

.hero-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.overline {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: var(--max-width-prose);
}

.hero-subhead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: var(--max-width-prose);
}

.dashed-rule {
  border: none;
  border-top: 1px dashed var(--border-dashed);
  margin: 0 40px;
}

/* ─── FEATURED POST ─── */
.featured-post {
  padding: 64px 40px;
}

.featured-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  display: flex;
  gap: 64px;
}

.featured-meta {
  width: 220px;
  flex-shrink: 0;
}

.meta-category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.meta-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 8px;
}

.featured-content { flex: 1; }

.featured-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-disabled);
  margin-bottom: 12px;
}

.featured-content h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.featured-excerpt {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

.read-link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 20px;
}

/* ─── POST GRID ─── */
.post-grid-section {
  padding: 64px 40px;
}

.post-grid-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.section-overline {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-disabled);
  margin-bottom: 40px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.post-card {
  border: 1px solid var(--border-default);
  padding: 28px;
  display: block;
  transition: background 0.15s;
}

.post-card:hover { background: #f9f8f6; }
.post-card + .post-card { border-left: none; }

.card-category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-date {
  font-size: var(--text-xs);
  color: var(--text-disabled);
  margin-top: 16px;
}

/* ─── BLOG POST ─── */
.post-header {
  padding: 80px 40px 40px;
}

.post-header-inner {
  max-width: var(--max-width-prose);
  margin: 0 auto;
}

.post-header h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 12px;
}

.post-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 16px;
}

.post-body {
  padding: 0 40px 80px;
}

.post-body-inner {
  max-width: var(--max-width-prose);
  margin: 0 auto;
}

.post-body h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
}

.post-body h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-body p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.post-body ul, .post-body ol {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.post-body li { margin-bottom: 8px; }

.post-body strong { color: var(--text-primary); }

.post-body a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-cta {
  background: #f9f8f6;
  border: 1px solid var(--border-default);
  padding: 32px;
  margin-top: 48px;
  text-align: center;
}

.post-cta h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.post-cta p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.post-cta .cta-btn {
  display: inline-block;
  background: var(--text-primary);
  color: #ffffff;
  padding: 10px 24px;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
}

.post-cta .cta-btn:hover { background: #2a2a2a; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border-default);
  padding: 24px 40px;
}

.footer-inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .featured-inner { flex-direction: column; gap: 24px; }
  .featured-meta { width: auto; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card + .post-card { border-left: 1px solid var(--border-default); border-top: none; }
  .nav-inner, .hero, .featured-post, .post-grid-section, .post-header, .post-body, .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .dashed-rule { margin: 0 20px; }
}
