:root {
  --bg: #f6f7f9;
  --surface: #fff;
  --surface-2: #f1f3f6;
  --text: #111827;
  --muted: #667085;
  --border: #e2e7ee;
  --primary: #101827;
  --blue: #2563eb;
  --radius: 20px;
  --shadow: 0 16px 42px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.blog-site { min-height: 100vh; }
.blog-header, .blog-footer { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.blog-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; border-bottom: 1px solid var(--border); }
.blog-brand { display: flex; align-items: center; gap: 10px; }
.blog-brand img { border-radius: 13px; }
.blog-brand span { display: grid; line-height: 1.15; }
.blog-brand strong { font-size: 15px; }
.blog-brand small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.blog-header nav, .blog-footer nav { display: flex; align-items: center; gap: 8px; }
.blog-header nav a { border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 800; padding: 8px 12px; }
.blog-header nav a:hover, .blog-header nav a.active { background: var(--primary); color: #fff; }

.blog-main, .article-main { width: min(1120px, calc(100% - 28px)); margin: 0 auto; padding: 44px 0 72px; }
.blog-hero { max-width: 780px; padding: 44px 0 34px; }
.blog-eyebrow { color: #475467; font-size: 12px; font-weight: 900; letter-spacing: .12em; margin: 0 0 9px; }
.blog-hero h1 { max-width: 760px; font-size: clamp(38px, 6vw, 68px); letter-spacing: -.045em; line-height: 1.02; margin: 0; }
.blog-hero > p:last-child { max-width: 700px; color: var(--muted); font-size: 18px; margin: 20px 0 0; }

.blog-filter { display: grid; grid-template-columns: minmax(220px, 1fr) 230px auto auto; align-items: end; gap: 10px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.blog-filter label { display: grid; gap: 5px; }
.blog-filter label span { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.blog-filter input, .blog-filter select { width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); padding: 0 12px; }
.blog-filter button, .blog-filter > a { display: inline-grid; place-items: center; min-height: 44px; border: 0; border-radius: 12px; padding: 0 18px; cursor: pointer; font-weight: 850; }
.blog-filter button { background: var(--primary); color: #fff; }
.blog-filter > a { background: var(--surface-2); color: var(--muted); }
.blog-categories { display: flex; gap: 8px; margin: 18px 0 34px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.blog-categories a { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 800; padding: 8px 13px; }
.blog-categories a.active, .blog-categories a:hover { border-color: var(--primary); background: var(--primary); color: #fff; }

.blog-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 32px; align-items: center; padding: 20px; border: 1px solid var(--border); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.blog-featured > a { overflow: hidden; border-radius: 20px; background: var(--surface-2); aspect-ratio: 16 / 10; }
.blog-featured-image { width: 100%; height: 100%; object-fit: cover; }
.blog-featured h2 { font-size: clamp(29px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.08; margin: 0; }
.blog-featured h2 a:hover { color: var(--blue); }
.blog-featured div > p:not(.blog-eyebrow) { color: var(--muted); margin: 14px 0; }
.blog-primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 16px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 850; padding: 0 17px; }

.blog-latest, .blog-related { margin-top: 56px; }
.blog-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.blog-section-head h2 { font-size: 30px; letter-spacing: -.025em; margin: 0; }
.blog-section-head > span { color: var(--muted); font-size: 13px; font-weight: 750; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 28px rgba(15, 23, 42, .05); }
.blog-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.025); }
.blog-card-body { display: grid; align-content: start; padding: 18px; }
.blog-card-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.blog-card-meta a { color: var(--blue); }
.blog-card h2 { font-size: 21px; letter-spacing: -.02em; line-height: 1.22; margin: 10px 0 0; }
.blog-card h2 a:hover { color: var(--blue); }
.blog-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 10px 0 14px; }
.blog-card time { color: var(--muted); font-size: 12px; margin-top: 14px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-tags a, .blog-tags span { border-radius: 999px; background: var(--surface-2); color: #475467; font-size: 11px; font-weight: 750; padding: 5px 9px; }
.blog-tags a:hover { background: #e1e7f0; }
.blog-tag-cloud, .blog-disclaimer { margin-top: 42px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.blog-tag-cloud h2 { font-size: 20px; margin: 0 0 12px; }
.blog-disclaimer { display: flex; gap: 20px; align-items: baseline; background: #eef4ff; border-color: #cbdcff; }
.blog-disclaimer strong { flex: 0 0 auto; }
.blog-disclaimer p { color: #344054; margin: 0; }
.blog-empty { display: grid; place-items: start; min-height: 260px; padding: 48px; border: 1px dashed #cbd5e1; border-radius: var(--radius); background: var(--surface); }
.blog-empty h1, .blog-empty h2 { font-size: 32px; letter-spacing: -.03em; margin: 0; }
.blog-empty p { color: var(--muted); }

.blog-breadcrumb { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 750; margin-bottom: 34px; }
.blog-breadcrumb a:hover { color: var(--blue); }
.blog-article { max-width: 1000px; margin: 0 auto; }
.article-header { max-width: 820px; margin: 0 auto; text-align: center; }
.article-header h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -.045em; line-height: 1.03; margin: 0; }
.article-description { max-width: 720px; color: var(--muted); font-size: 19px; margin: 20px auto; }
.article-header .blog-tags { justify-content: center; }
.article-byline { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 20px; }
.article-image { width: 100%; max-height: 600px; aspect-ratio: 16 / 9; object-fit: cover; margin: 42px 0; border: 1px solid var(--border); border-radius: 26px; background: var(--surface-2); box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 230px; gap: 48px; justify-content: center; align-items: start; }
.article-content { color: #273142; font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; font-size: 18px; line-height: 1.82; }
.article-content h2, .article-content h3 { color: var(--text); font-family: Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.025em; line-height: 1.2; scroll-margin-top: 20px; }
.article-content h2 { font-size: 31px; margin: 42px 0 14px; }
.article-content h3 { font-size: 23px; margin: 32px 0 10px; }
.article-content p { margin: 0 0 22px; }
.article-content ul, .article-content ol { margin: 0 0 24px; padding-left: 26px; }
.article-content li { padding-left: 5px; margin: 7px 0; }
.article-content a { color: #155eef; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content blockquote { margin: 28px 0; border-left: 4px solid var(--primary); background: var(--surface); padding: 18px 22px; font-style: italic; }
.article-content code { border-radius: 5px; background: #e8edf4; font-size: .88em; padding: 2px 5px; }
.article-content hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.article-aside { position: sticky; top: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 18px; }
.article-aside strong { font-size: 14px; }
.article-aside p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.article-aside a { color: var(--blue); font-size: 13px; font-weight: 850; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 58px; border-radius: 24px; background: var(--primary); color: #fff; padding: 30px; }
.article-cta h2 { font-size: 28px; line-height: 1.15; margin: 0; }
.article-cta p:not(.blog-eyebrow) { color: #cbd5e1; margin: 9px 0 0; }
.article-cta .blog-eyebrow { color: #94a3b8; }
.article-cta > div:last-child { display: flex; flex: 0 0 auto; gap: 9px; align-items: center; }
.article-cta .blog-primary-link { background: #fff; color: var(--primary); margin: 0; }
.article-cta > div:last-child > a:last-child { color: #e2e8f0; font-size: 13px; font-weight: 750; padding: 10px; }

.blog-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); padding: 28px 0 42px; }
.blog-footer p { color: var(--muted); font-size: 12px; margin: 3px 0 0; }
.blog-footer a { color: var(--muted); font-size: 13px; font-weight: 750; padding: 6px; }
.blog-footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .blog-filter { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .article-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .blog-header { min-height: 68px; }
  .blog-brand small { display: none; }
  .blog-header nav { gap: 1px; }
  .blog-header nav a { padding: 7px 8px; }
  .blog-main, .article-main { padding-top: 20px; }
  .blog-hero { padding: 28px 0 24px; }
  .blog-hero > p:last-child, .article-description { font-size: 16px; }
  .blog-filter { grid-template-columns: 1fr; }
  .blog-filter button, .blog-filter > a { width: 100%; }
  .blog-featured { padding: 13px; gap: 20px; }
  .blog-featured > div { padding: 0 5px 8px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-disclaimer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .article-header { text-align: left; }
  .article-header .blog-tags, .article-byline { justify-content: flex-start; }
  .article-image { margin: 28px 0; border-radius: 18px; }
  .article-content { font-size: 17px; line-height: 1.75; }
  .article-content h2 { font-size: 27px; }
  .article-cta > div:last-child { align-items: stretch; flex-direction: column; width: 100%; }
  .blog-footer { align-items: flex-start; flex-direction: column; }
  .blog-footer nav { flex-wrap: wrap; }
}

