:root {
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-muted: #edf2eb;
  --ink: #13211d;
  --ink-soft: #465852;
  --line: rgba(19, 33, 29, 0.1);
  --accent: #0f766e;
  --accent-deep: #0a4f4a;
  --accent-warm: #f2994a;
  --dark: #102a27;
  --shadow: 0 18px 40px rgba(16, 42, 39, 0.08);
  --radius: 22px;
  --container: 1180px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%), linear-gradient(180deg, #fafcf9 0%, var(--bg) 100%);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(250, 252, 249, 0.82);
  border-bottom: 1px solid var(--line);
}
.nav-wrap, .footer-wrap, .post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-wrap { min-height: 78px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
}
.main-nav, .footer-links { display: flex; align-items: center; gap: 1.25rem; }
.main-nav a, .footer-links a, .mobile-menu a { color: var(--ink-soft); font-weight: 700; }
.main-nav a:hover, .footer-links a:hover, .mobile-menu a:hover, .text-link:hover, .post-card h3 a:hover { color: var(--accent); }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}
.mobile-menu { display: none; padding: 0 1rem 1rem; }
.mobile-menu.open { display: grid; gap: 0.75rem; }
.hero, .section { padding: 5rem 0; }
.hero-grid, .feature-grid, .about-grid { display: grid; gap: 2rem; align-items: center; }
.hero-grid { grid-template-columns: 1.1fr 0.9fr; min-height: calc(100vh - 78px); }
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}
h1, h2, h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); max-width: 12ch; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.hero-text, .section-heading, .feature-copy p, .footer-copy, .article-intro { color: var(--ink-soft); }
.hero-text { margin-top: 1.2rem; max-width: 58ch; font-size: 1.07rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #fff; }
.button-secondary { background: var(--surface); border: 1px solid var(--line); }
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-stats li, .topic-card, .feature-card, .post-card, .checklist div, .article-shell, .author-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.hero-stats li { min-width: 150px; padding: 1rem 1.2rem; }
.hero-stats strong { display: block; font-size: 1.6rem; font-family: "Space Grotesk", sans-serif; }
.hero-stats span { color: var(--ink-soft); }
.hero-visual img { width: 100%; filter: drop-shadow(0 25px 40px rgba(15, 118, 110, 0.15)); }
.section-heading { max-width: 60ch; margin-bottom: 2rem; }
.topic-grid, .post-grid { display: grid; gap: 1.5rem; }
.topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic-card { padding: 1.5rem; }
.topic-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 1rem;
}
.section-accent { background: linear-gradient(180deg, rgba(15, 118, 110, 0.08), rgba(242, 153, 74, 0.04)); }
.feature-grid { grid-template-columns: 1fr 1fr; }
.feature-copy { max-width: 56ch; }
.feature-copy p { margin-top: 1rem; margin-bottom: 1rem; }
.text-link { color: var(--accent-deep); font-weight: 800; }
.feature-card, .post-card { overflow: hidden; }
.feature-card img, .post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.feature-meta, .post-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.feature-meta { padding: 1rem 1.25rem 1.25rem; }
.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post-body { padding: 1.4rem; }
.pill {
  display: inline-block;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 0.84rem;
  margin-bottom: 0.9rem;
}
.post-card h3 { margin-bottom: 0.7rem; }
.section-dark {
  background: radial-gradient(circle at top right, rgba(242, 153, 74, 0.14), transparent 22%), linear-gradient(180deg, var(--dark), #081716);
  color: #edf6f4;
}
.section-dark .eyebrow { color: #8dd9d2; }
.section-dark p, .section-dark .checklist div { color: rgba(237, 246, 244, 0.86); }
.about-grid { grid-template-columns: 1.1fr 0.9fr; }
.checklist { display: grid; gap: 1rem; }
.checklist div { padding: 1rem 1.2rem; background: rgba(255, 255, 255, 0.06); }
.site-footer { padding: 2rem 0 3rem; }
.brand-footer { margin-bottom: 0.8rem; }
.article-header { padding: 3rem 0 2rem; }
.article-shell { padding: 2rem; }
.post-hero-image {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
.article-content { min-width: 0; }
.article-content h2 { font-size: 1.8rem; margin: 2rem 0 1rem; }
.article-content p, .article-content li { color: var(--ink-soft); }
.article-content ul { padding-left: 1.25rem; }
.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--surface-muted);
  border-radius: 0 18px 18px 0;
  color: var(--ink);
  font-weight: 700;
}
.author-card { padding: 1.4rem; align-self: start; position: sticky; top: 100px; }
.author-card h3 { margin-bottom: 0.8rem; }
.author-card p { color: var(--ink-soft); margin-bottom: 1rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1rem 0 0; color: var(--ink-soft); }
.related-posts { padding: 0 0 5rem; }
@media (max-width: 980px) {
  .hero-grid, .feature-grid, .about-grid, .article-layout { grid-template-columns: 1fr; }
  .topic-grid, .post-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-top: 3rem; }
  .hero-grid { min-height: auto; }
  .author-card { position: static; }
}
@media (max-width: 640px) {
  .hero, .section, .related-posts { padding: 4rem 0; }
  .article-shell { padding: 1.25rem; }
  h1 { font-size: 2.8rem; }
  .nav-wrap, .footer-wrap, .post-nav { flex-direction: column; align-items: flex-start; }
}
