:root {
  --background: #f5f7fb;
  --surface: #ffffff;
  --ink: #162033;
  --muted: #5d6b82;
  --line: #dbe2ec;
  --brand: #1e3a5f;
  --brand-dark: #152c47;
  --accent: #1d4ed8;
  --accent-soft: #e8f0fe;
  --warm-soft: #fff6e8;
  --warm-ink: #8a4b08;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 5%, rgba(29, 78, 216, 0.1), transparent 28rem),
    linear-gradient(180deg, #eff6ff 0, var(--background) 32rem, #ffffff 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--brand-dark);
}

.site-header {
  border-bottom: 1px solid rgba(219, 226, 236, 0.85);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner,
.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 172px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.site-nav a.nav-cta {
  padding: 9px 14px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
}

.site-nav a.nav-cta:hover {
  background: var(--brand-dark);
  color: #fff;
}

.hero {
  padding: 88px 0 56px;
}

.eyebrow,
.card-label {
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 16px 0 20px;
  font-size: clamp(44px, 7vw, 72px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero-copy {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 22px);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

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

.article-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.article-card {
  grid-column: span 6;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(22, 32, 51, 0.055);
}

.article-card.featured {
  grid-column: span 12;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 48px;
  background:
    linear-gradient(135deg, rgba(232, 240, 254, 0.8), rgba(255, 255, 255, 0.96) 56%),
    var(--surface);
}

.card-status {
  align-self: start;
  justify-self: end;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: var(--warm-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.article-card h2,
.article-card h3 {
  margin: 14px 0 14px;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.article-title-link {
  color: var(--ink);
  text-decoration: none;
}

.article-title-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-card h2 {
  max-width: 720px;
  font-size: clamp(30px, 4.4vw, 48px);
}

.article-card h3 {
  font-size: 27px;
}

.article-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.card-meta {
  margin-top: auto;
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.editorial-note {
  margin: 64px 0 80px;
  padding: 30px;
  border-radius: 20px;
  background: var(--brand);
  color: #ffffff;
}

.editorial-note h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.editorial-note p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.contact-page {
  padding: 82px 0 90px;
}

.contact-page h1 {
  max-width: 760px;
  margin: 16px 0 18px;
  font-size: clamp(44px, 7vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.contact-intro {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 21px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  margin-top: 46px;
}

.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(22, 32, 51, 0.055);
}

.contact-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.contact-card p {
  color: var(--muted);
}

.contact-email {
  display: inline-block;
  margin: 12px 0 22px;
  color: var(--brand);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-button {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.contact-button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.contact-button:hover {
  background: var(--accent-soft);
  color: var(--brand-dark);
  text-decoration: none;
}

.contact-button.primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.contact-topics {
  margin: 14px 0 0 20px;
  padding: 0;
  color: var(--muted);
}

.contact-note {
  margin-top: 18px;
  font-size: 14px;
}

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

/* Article template */
.article-header,
.article-body {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.breadcrumbs {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #9aa6b8;
}

.breadcrumbs a {
  color: var(--muted);
}

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

.article-header h1 {
  margin: 14px 0 20px;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.article-dek {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
}

.article-byline {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.article-body {
  padding-bottom: 80px;
  font-size: 18px;
}

.article-body h2 {
  margin: 48px 0 12px;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.article-body h3 {
  margin: 32px 0 10px;
  font-size: 23px;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin-top: 0;
  margin-bottom: 22px;
}

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

.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--accent);
  color: var(--brand);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.45;
}

.article-table-wrap {
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.article-table th,
.article-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  background: var(--accent-soft);
  color: var(--brand-dark);
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-cta a {
  color: #fff;
  font-weight: 700;
}

.article-summary,
.article-cta,
.article-toc,
.author-card,
.methodology-note {
  margin: 30px 0;
  padding: 24px;
  border-radius: 16px;
}

.article-summary {
  border: 1px solid var(--line);
  background: var(--accent-soft);
}

.article-toc {
  border: 1px solid var(--line);
  background: var(--surface);
}

.article-toc strong {
  display: block;
  margin-bottom: 10px;
}

.article-toc ol {
  margin-bottom: 0;
}

.article-toc a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.methodology-note {
  border-left: 4px solid #d69e2e;
  background: var(--warm-soft);
  color: #6c470b;
  font-size: 15px;
}

.faq-list {
  margin-top: 22px;
}

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

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

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

.faq-item p:last-child {
  margin-bottom: 0;
}

.author-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid var(--line);
  background: var(--surface);
}

.author-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brand);
  font-size: 20px;
  font-weight: 800;
}

.author-card strong {
  display: block;
  margin-bottom: 4px;
}

.author-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.article-cta {
  background: var(--brand);
  color: #fff;
}

.article-summary > :last-child,
.article-cta > :last-child,
.methodology-note > :last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding: 16px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 60px;
  }

  .article-card,
  .article-card.featured {
    grid-column: span 12;
  }

  .article-card.featured {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-status {
    justify-self: start;
  }

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

  .author-card {
    grid-template-columns: 1fr;
  }
}
