﻿:root {
  --bg: #f6f7f9;
  --paper: #ffffff;
  --ink: #17202a;
  --muted: #637083;
  --line: #dde3ea;
  --accent: #0f766e;
  --accent-soft: #e6fffb;
  --warm: #f97316;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 227, 234, 0.85);
}

.header-inner,
.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #18c7b7;
  color: #10202f;
  font-weight: 900;
  font-size: 0.78rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.15;
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a,
.site-footer a,
.breadcrumb a {
  text-decoration: none;
}

.top-nav a:hover,
.site-footer a:hover,
.breadcrumb a:hover {
  color: var(--accent);
}

.blog-intro {
  padding: 56px 0 32px;
}

.eyebrow,
.post-card-meta,
.post-meta,
.breadcrumb {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
}

.blog-intro h1 {
  max-width: 780px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.blog-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.posts-section {
  padding: 12px 0 56px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.post-card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #dbeafe;
  overflow: hidden;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 180ms ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.03);
}

.post-card-body {
  padding: 20px;
}

.post-card-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.post-card-meta span,
.post-meta span {
  display: inline-flex;
  align-items: center;
}

.post-card-meta span + span::before,
.post-meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: #a7b2c0;
}

.post-card h2 {
  margin: 12px 0 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
}

.read-link,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.read-link {
  color: var(--accent);
}

.blog-cta,
.post-cta {
  border: 1px solid #b6ede7;
  background: linear-gradient(135deg, #ffffff, var(--accent-soft));
  border-radius: 22px;
}

.blog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
  padding: 28px;
}

.blog-cta span,
.post-cta span {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.blog-cta h2,
.post-cta h2 {
  margin: 6px 0 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.blog-cta p {
  margin: 8px 0 0;
  color: var(--muted);
}

.cta-link {
  flex: 0 0 auto;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
}

.post-shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}

.post-header {
  margin-bottom: 28px;
}

.post-header h1 {
  margin: 14px 0 14px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.post-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.post-hero-media {
  margin: 0 0 30px;
}

.post-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  box-shadow: var(--shadow);
}

.toc {
  margin: 0 0 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

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

.post-body {
  font-size: 1.05rem;
}

.post-body h2 {
  margin: 42px 0 14px;
  font-size: 1.75rem;
  line-height: 1.2;
}

.post-body h3 {
  margin: 30px 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.post-body p,
.post-body ul,
.post-body ol {
  margin: 0 0 18px;
}

.post-body ul,
.post-body ol {
  padding-left: 24px;
}

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

.post-body strong {
  color: #111827;
}

.post-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 42px;
  padding: 26px;
}

.post-cta p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-cta,
  .post-cta {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .shell,
  .post-shell {
    width: min(100% - 24px, 1120px);
  }

  .header-inner,
  .footer-inner,
  .blog-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  .blog-intro {
    padding-top: 34px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card-body {
    padding: 18px;
  }

  .post-shell {
    padding-top: 26px;
  }

  .post-hero-image {
    max-height: 320px;
    border-radius: 18px;
  }
}