:root {
  color: #171717;
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #171717; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #e5e5e5; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.site-header__inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand__name { display: block; color: #171717; font-size: 16px; font-weight: 700; line-height: 1.1; }
.brand__tagline { display: block; margin-top: 3px; color: #737373; font-size: 11px; }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.site-nav a { color: #404040; text-decoration: none; }
.site-nav a:hover { color: #171717; }
.site-nav .button, .button { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #4f46e5; padding: 11px 18px; color: #fff; font-weight: 700; text-decoration: none; }
.site-nav .button:hover, .button:hover { background: #4338ca; color: #fff; }

.article-main { flex: 1; }
.article-wrap { width: min(780px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 72px; }
.breadcrumb { margin-bottom: 28px; color: #737373; font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article-header { padding-bottom: 30px; border-bottom: 1px solid #e5e5e5; }
.eyebrow { color: #4f46e5; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-header h1 { margin: 12px 0 0; color: #171717; font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -.035em; }
.article-excerpt { margin: 20px 0 0; color: #525252; font-size: 19px; line-height: 1.7; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: #737373; font-size: 13px; }
.hero-image { width: 100%; margin-top: 28px; border-radius: 18px; aspect-ratio: 16/9; object-fit: cover; }

.article-body { padding-top: 28px; color: #262626; font-size: 17px; line-height: 1.82; }
.article-body h2 { margin: 48px 0 14px; color: #171717; font-size: 29px; line-height: 1.25; letter-spacing: -.02em; }
.article-body h3 { margin: 34px 0 10px; color: #171717; font-size: 21px; line-height: 1.35; }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 25px; }
.article-body li { margin: 7px 0; padding-left: 3px; }
.article-body blockquote { margin: 28px 0; border-left: 4px solid #4f46e5; background: #f5f5ff; padding: 18px 22px; color: #3730a3; font-weight: 650; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body a { color: #4338ca; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body hr { margin: 42px 0; border: 0; border-top: 1px solid #e5e5e5; }
.article-body table { width: 100%; margin: 28px 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.article-body th, .article-body td { border: 1px solid #d4d4d4; padding: 11px 12px; text-align: left; vertical-align: top; }
.article-body th { background: #f5f5f5; font-weight: 750; }
.article-table-scroll { margin: 28px 0; overflow-x: auto; }
.article-table-scroll table { margin: 0; min-width: 620px; }

.article-cta { margin-top: 46px; border: 1px solid #c7d2fe; border-radius: 20px; background: #eef2ff; padding: 28px; color: #312e81; }
.article-cta h2 { margin: 0 0 12px; color: #1e1b4b; font-size: 26px; }
.article-cta p { margin: 0 0 14px; line-height: 1.7; }
.article-cta p:last-child { margin-bottom: 0; }
.article-cta a { color: #3730a3; font-weight: 800; text-underline-offset: 3px; }
.article-cta em { color: #52525b; font-size: 13px; }

.related { margin-top: 48px; padding-top: 34px; border-top: 1px solid #e5e5e5; }
.related h2 { margin: 0 0 18px; font-size: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card { display: block; border: 1px solid #e5e5e5; border-radius: 16px; padding: 18px; text-decoration: none; }
.related-card:hover { border-color: #a5b4fc; box-shadow: 0 8px 24px rgba(23,23,23,.06); }
.related-card span { color: #4f46e5; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.related-card strong { display: block; margin-top: 8px; line-height: 1.4; }

.articles-hero { border-bottom: 1px solid #e5e5e5; background: linear-gradient(145deg, #312e81, #4f46e5 62%, #1e1b4b); color: #fff; }
.articles-hero__inner { width: min(900px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; text-align: center; }
.articles-hero h1 { margin: 0; font-size: clamp(34px, 6vw, 52px); line-height: 1.1; letter-spacing: -.03em; }
.articles-hero p { max-width: 760px; margin: 18px auto 0; color: rgba(255,255,255,.84); font-size: 18px; line-height: 1.7; }
.articles-index { flex: 1; padding: 56px 0 76px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { display: flex; min-height: 280px; flex-direction: column; overflow: hidden; border: 1px solid #e5e5e5; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(23,23,23,.04); }
.article-card:hover { border-color: #c7d2fe; box-shadow: 0 12px 32px rgba(23,23,23,.08); }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card__content { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.article-card__meta { color: #4f46e5; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.article-card h2 { margin: 10px 0 0; font-size: 21px; line-height: 1.35; letter-spacing: -.015em; }
.article-card p { margin: 12px 0 0; color: #525252; font-size: 14px; line-height: 1.65; }
.article-card__link { margin-top: auto; padding-top: 20px; color: #4338ca; font-size: 14px; font-weight: 750; text-decoration: none; }

.not-found { display: grid; min-height: 70vh; place-items: center; padding: 40px 16px; text-align: center; }
.not-found h1 { margin: 0; font-size: 40px; }
.not-found p { color: #525252; line-height: 1.7; }

.site-footer { margin-top: auto; border-top: 1px solid #e5e5e5; background: #fff; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0; color: #737373; font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #171717; }

@media (max-width: 820px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-container, .article-wrap, .articles-hero__inner { width: min(100% - 24px, 1180px); }
  .site-header__inner { min-height: 58px; }
  .brand__tagline { display: none; }
  .site-nav > a:not(.button) { display: none; }
  .site-nav { gap: 10px; }
  .site-nav .button { padding: 9px 12px; font-size: 13px; }
  .article-wrap { padding-top: 24px; }
  .article-header h1 { font-size: 36px; }
  .article-excerpt { font-size: 17px; }
  .article-body { font-size: 16px; line-height: 1.75; }
  .article-body h2 { margin-top: 40px; font-size: 25px; }
  .article-body h3 { font-size: 20px; }
  .article-cta { padding: 22px; }
  .articles-hero__inner { padding: 54px 0; }
  .article-grid { grid-template-columns: 1fr; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
}

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