:root {
  --ink: #162033;
  --muted: #647084;
  --line: #d9e0ea;
  --soft: #f3f6f9;
  --panel: #ffffff;
  --navy: #102a43;
  --steel: #415066;
  --blue: #1f6feb;
  --green: #0f9d58;
  --orange: #f97316;
  --shadow: 0 20px 60px rgba(16, 42, 67, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, .button:focus-visible { outline: 3px solid rgba(31, 111, 235, .35); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 230px; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(145deg, var(--navy), var(--blue)); font-weight: 800; font-size: 22px; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); color: var(--steel); font-size: 14px; font-weight: 700; }
.site-nav a:hover, .text-link:hover { color: var(--blue); }
.header-cta { padding: 10px 16px; border-radius: 8px; background: #e9f8ef; color: #08723f; font-weight: 800; white-space: nowrap; }

.shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }
.blog-hero { padding: clamp(64px, 10vw, 112px) 0 58px; background: radial-gradient(circle at 82% 22%, rgba(31,111,235,.16), transparent 26%), linear-gradient(180deg, #f7faff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 14px; color: var(--orange); font-size: 13px; font-weight: 850; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.12; overflow-wrap: anywhere; }
h1 { max-width: 860px; font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }
.lead { max-width: 760px; margin: 24px 0 0; color: var(--steel); font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 8px; font-weight: 800; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: #1759bd; }
.button-secondary { border-color: var(--line); background: #fff; }
.button-secondary:hover { border-color: var(--blue); color: var(--blue); }

.section { padding: 72px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading p { max-width: 600px; margin: 0; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { display: flex; min-height: 100%; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 34px rgba(16,42,67,.07); }
.card-visual { min-height: 190px; padding: 28px; display: flex; align-items: end; color: #fff; background: linear-gradient(145deg, var(--navy), #1f6feb); }
.card-visual span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 800; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.post-meta { margin: 0 0 10px; color: var(--orange); font-size: 13px; font-weight: 800; }
.card-body p { color: var(--muted); }
.text-link { margin-top: auto; color: var(--blue); font-weight: 800; }
.coming-soon { background: var(--soft); box-shadow: none; }
.coming-soon .card-visual { background: linear-gradient(145deg, #526177, #93a0b2); }

.topic-strip { padding: 34px 0; background: var(--navy); color: #fff; }
.topic-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.topic-list li { padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #dce8f5; }

.article-hero { padding: 72px 0 42px; background: linear-gradient(180deg, #f7faff, #fff); border-bottom: 1px solid var(--line); }
.article-hero h1 { max-width: 960px; font-size: clamp(38px, 6vw, 68px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; align-items: start; gap: 56px; padding: 58px 0 80px; }
.article-content { font-size: 18px; }
.article-content > p:first-child { color: var(--steel); font-size: 22px; }
.article-content h2 { margin: 46px 0 16px; font-size: 32px; }
.article-content h3 { margin: 30px 0 10px; }
.article-content p, .article-content ul, .article-content ol { margin: 0 0 20px; }
.article-content li + li { margin-top: 8px; }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.callout { margin: 34px 0; padding: 24px; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; background: #fff7ed; }
.sidebar { position: sticky; top: 96px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.sidebar h2 { font-size: 22px; }
.sidebar ul { margin: 18px 0 24px; padding-left: 20px; }
.sidebar li + li { margin-top: 8px; }
.sidebar a:hover { color: var(--blue); }
.article-cta { margin-top: 48px; padding: 34px; border-radius: 16px; color: #fff; background: var(--navy); }
.article-cta h2 { margin-top: 0; color: #fff; }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); background: var(--soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  .brand { min-width: auto; }
  .brand small { display: none; }
  .header-cta { padding: 9px 12px; font-size: 13px; }
  .post-grid { grid-template-columns: 1fr; }
  .section-heading, .footer-inner { align-items: flex-start; flex-direction: column; }
  .article-content { font-size: 17px; }
}
