:root {
  color-scheme: light;
  --bg: #fcfaf9;
  --surface: #ffffff;
  --ink: #12131a;
  --muted: #667085;
  --pink: #d9396b;
  --pink-dark: #a82d53;
  --violet: #6d68d9;
  --warm: #fff1f5;
  --line: rgba(18, 19, 26, 0.1);
  --shadow: 0 20px 58px rgba(54, 45, 72, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fffafa;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(18, 19, 26, 0.08);
  background: rgba(252, 250, 249, 0.92);
  backdrop-filter: blur(18px);
}

.nav,
.wrap,
.footer-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(18, 19, 26, 0.14);
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--pink);
}

.blog-hero {
  padding: 74px 0 48px;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}

h2 {
  margin: 42px 0 14px;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 28px 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.lead {
  max-width: 710px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  font-weight: 500;
}

.hero-card,
.post-card,
.article-shell,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
}

.hero-card img {
  width: 100%;
  border-radius: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 22px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(18, 19, 26, 0.14);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

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

.post-card {
  min-height: 100%;
  padding: 24px;
}

.post-image {
  display: block;
  overflow: hidden;
  margin: -8px -8px 18px;
  border-radius: 12px;
  background: var(--warm);
}

.post-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card .date {
  margin-bottom: 12px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.post-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.post-card a {
  color: var(--pink-dark);
  font-weight: 900;
}

.post-tags,
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-tags {
  margin: 0 0 14px;
}

.post-tags span,
.article-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(217, 57, 107, 0.16);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff7fa;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 800;
}

.article-shell {
  max-width: 880px;
  margin: 48px auto 72px;
  padding: clamp(26px, 5vw, 58px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article-tags {
  margin: -8px 0 24px;
}

.article-hero-image {
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.article-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero-image figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.article-shell p,
.article-shell li {
  color: #3f4654;
  font-size: 18px;
  line-height: 1.72;
}

.article-shell ul,
.article-shell ol {
  padding-left: 24px;
}

.article-shell li + li {
  margin-top: 8px;
}

.article-shell a {
  color: var(--pink-dark);
  font-weight: 800;
}

.article-source {
  border: 1px solid rgba(217, 57, 107, 0.14);
  border-radius: 14px;
  padding: 18px 20px;
  background: #fff7fa;
}

.article-source p:last-child {
  margin-bottom: 0;
}

.faq {
  margin-top: 40px;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq-item h3 {
  margin-top: 0;
}

.cta-panel {
  margin-top: 42px;
  padding: 28px;
  background: #fff;
}

.cta-panel p {
  margin-bottom: 20px;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 860px) {
  .blog-hero-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav,
  .wrap,
  .footer-inner {
    width: min(100% - 28px, 1080px);
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .blog-hero {
    padding: 46px 0 28px;
  }

  .article-shell {
    margin: 22px auto 48px;
  }
}
