:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #0f172a;
  --sub: #475569;
  --soft: #eff6ff;
  --border: #dbeafe;
  --warm: #fff8eb;
  --warm-border: #f6d999;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(30, 64, 175, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f0f7ff 0, #ffffff 460px);
  font-family: "Nunito", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--blue-dark);
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(219, 234, 254, 0.92);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.35px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--sub);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--blue-dark);
}

.nav-links .nav-cta {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.brand:focus-visible {
  color: var(--blue-dark);
  outline: none;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  color: var(--white);
  background: var(--blue-dark);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 56px;
  padding: 78px 0 58px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.7px;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 900;
}

.hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--sub);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  margin-top: 30px;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px solid var(--blue);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--blue);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.button:hover,
.button:focus-visible {
  color: var(--white);
  background: var(--blue-dark);
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--border);
  color: var(--blue-dark);
  background: var(--white);
  box-shadow: none;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--soft);
}

.hero-brand-card {
  overflow: hidden;
  padding: 22px;
  border: 2px solid var(--border);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

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

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

.section-heading h2 {
  margin-bottom: 6px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
}

.section-heading p {
  max-width: 640px;
  margin: 0;
  color: var(--sub);
}

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

.post-card {
  display: flex;
  min-height: 100%;
  padding: 28px;
  border: 2px solid var(--border);
  border-radius: 24px;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.06);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card.featured {
  grid-column: 1 / -1;
  min-height: 350px;
  padding: 38px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.post-card:hover,
.post-card:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 18px 45px rgba(30, 64, 175, 0.1);
  transform: translateY(-3px);
}

.post-card .number {
  display: inline-grid;
  width: 50px;
  height: 50px;
  margin-bottom: 34px;
  border-radius: 16px;
  place-items: center;
  color: var(--blue-dark);
  background: var(--soft);
  font-size: 18px;
  font-weight: 900;
}

.post-card.featured .number {
  color: var(--white);
  background: var(--blue);
}

.post-meta {
  display: flex;
  margin-bottom: 12px;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.post-card h2,
.post-card h3 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
}

.post-card h3 {
  font-size: 26px;
}

.post-card p {
  margin: 0 0 24px;
  color: var(--sub);
}

.read-link {
  margin-top: auto;
  font-weight: 900;
  text-decoration: none;
}

.read-link::after {
  content: " \2192";
}

.read-link:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 3px;
}

.cta-panel {
  display: grid;
  margin: 72px 0 80px;
  padding: 40px;
  border: 2px solid var(--warm-border);
  border-radius: 28px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  background: var(--warm);
}

.cta-panel h2 {
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 900;
}

.cta-panel p {
  margin: 0;
  color: var(--sub);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-inner {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 100px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #64748b;
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  font-weight: 800;
  text-decoration: none;
}

/* Article pages */
.article-main {
  width: min(860px, calc(100% - 32px));
}

.breadcrumbs {
  padding-top: 34px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumbs a {
  text-decoration: none;
}

.article-header {
  padding: 64px 0 44px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  max-width: 840px;
  margin-bottom: 20px;
  font-size: clamp(40px, 7vw, 64px);
}

.article-dek {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--sub);
  font-size: 21px;
  line-height: 1.55;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.article-body {
  padding: 46px 0 64px;
}

.article-body > p,
.article-body > ul,
.article-body > ol,
.article-body > h2,
.article-body > h3,
.article-body > blockquote,
.article-body > .callout,
.article-body > .checklist,
.article-body > .inline-cta {
  width: min(720px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.article-body p {
  margin-top: 0;
  margin-bottom: 24px;
}

.article-body h2 {
  margin-top: 54px;
  margin-bottom: 16px;
  font-size: 34px;
  font-weight: 900;
}

.article-body h3 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.article-body ul,
.article-body ol {
  margin-top: 0;
  margin-bottom: 28px;
  padding-left: 25px;
}

.article-body li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.article-body strong {
  color: var(--ink);
}

.callout,
.checklist {
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 24px 26px;
  border: 2px solid var(--border);
  border-radius: 20px;
  background: var(--soft);
}

.callout.warm {
  border-color: var(--warm-border);
  background: var(--warm);
}

.callout h3,
.checklist h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.callout p,
.checklist p {
  margin-bottom: 0;
}

.checklist ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 29px;
}

.checklist li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--blue);
  content: "\2713";
  font-weight: 900;
}

.inline-cta {
  margin-top: 52px;
  padding: 30px;
  border-radius: 24px;
  color: var(--white);
  background: var(--ink);
}

.inline-cta h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 28px;
}

.inline-cta p {
  margin: 0 0 20px;
  color: #cbd5e1;
}

.inline-cta .button {
  box-shadow: none;
}

.article-nav {
  display: flex;
  width: min(720px, 100%);
  margin: 0 auto 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  justify-content: space-between;
  gap: 18px;
}

.article-nav a {
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-inner {
    min-height: 62px;
  }

  .brand {
    font-size: 15px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links .home-link {
    display: none;
  }

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

  .cta-wide {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 52px 0 44px;
  }

  .hero-copy > p,
  .article-dek {
    font-size: 18px;
  }

  .hero-brand-card {
    width: min(360px, 100%);
    margin: 0 auto;
    transform: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .post-card,
  .post-card.featured {
    grid-column: auto;
    min-height: 0;
    padding: 24px;
  }

  .post-card .number {
    margin-bottom: 24px;
  }

  .cta-panel {
    margin: 52px 0 60px;
    padding: 28px;
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  .article-header {
    padding: 44px 0 34px;
  }

  .article-body {
    padding-top: 34px;
  }

  .article-body h2 {
    margin-top: 44px;
    font-size: 29px;
  }

  .article-nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
