:root {
  --article-ink: #18212c;
  --article-muted: #66717f;
  --article-blue: #eaf7ff;
  --article-blue-deep: #005cbf;
  --article-paper: #ffffff;
  --article-line: #dce8ee;
  --article-warm: #f7dc6f;
  color-scheme: light;
}

* { box-sizing: border-box; }

.articles-body {
  margin: 0;
  min-width: 320px;
  padding-top: 39px;
  color: var(--article-ink);
  background: #f8fbfc;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.articles-body a { color: inherit; }

.articles-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid rgb(220 232 238 / 82%);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.articles-nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 39px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.articles-brand {
  grid-column: 2;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .015em;
  white-space: nowrap;
}

.articles-back {
  justify-self: end;
  text-decoration: none;
  color: var(--article-muted);
  font-size: 13px;
}

.articles-shell { width: min(1080px, calc(100% - 48px)); margin: auto; }

.articles-hero {
  padding: clamp(72px, 10vw, 124px) 0 clamp(54px, 8vw, 88px);
  text-align: center;
}

.articles-kicker {
  margin: 0 0 16px;
  color: #52728f;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.articles-hero h1,
.article-title {
  max-width: 920px;
  margin: 0 auto 24px;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.articles-intro {
  max-width: 740px;
  margin: 0 auto;
  color: var(--article-muted);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.52;
  text-wrap: balance;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0 0 88px;
}

.article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--article-line);
  border-radius: 24px;
  background: var(--article-paper);
  box-shadow: 0 16px 42px rgb(32 66 89 / 7%);
  transition: transform .22s ease, box-shadow .22s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgb(32 66 89 / 11%);
}

.article-card__link { display: block; height: 100%; text-decoration: none; }
.article-card__image { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; background: var(--article-blue); }
.article-card__placeholder { display: grid; place-items: center; color: #5f7f9a; font-size: 44px; }
.article-card__body { padding: 28px; }
.article-card__meta { margin: 0 0 12px; color: #6f7c8a; font-size: 14px; }
.article-card h2 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 32px); font-weight: 500; line-height: 1.16; letter-spacing: -.025em; }
.article-card p { margin: 0; color: var(--article-muted); }
.article-card__read { display: inline-block; margin-top: 22px; color: var(--article-blue-deep); font-size: 15px; }

.articles-empty {
  margin: 0 auto 88px;
  padding: 56px 32px;
  max-width: 760px;
  text-align: center;
  border-radius: 24px;
  background: var(--article-blue);
}

.articles-empty h2 { margin: 0 0 12px; font-size: 28px; font-weight: 500; }
.articles-empty p { margin: 0; color: var(--article-muted); }

.article-hero { padding: clamp(66px, 9vw, 112px) 0 38px; text-align: center; }
.article-hero .article-title { font-size: clamp(36px, 6.4vw, 68px); }
.article-deck { max-width: 780px; margin: 0 auto 22px; color: var(--article-muted); font-size: clamp(19px, 2.3vw, 25px); line-height: 1.48; text-wrap: balance; }
.article-meta { color: #74808c; font-size: 14px; }
.article-cover { display: block; width: min(1160px, calc(100% - 32px)); max-height: 680px; margin: 24px auto 0; object-fit: cover; border-radius: 28px; background: var(--article-blue); }

.article-layout {
  width: min(760px, calc(100% - 48px));
  margin: auto;
  padding: 64px 0 84px;
}

.article-content { font-size: 19px; line-height: 1.72; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 { margin: 2.6em 0 .7em; font-size: clamp(28px, 4vw, 40px); font-weight: 500; line-height: 1.16; letter-spacing: -.025em; }
.article-content h3 { margin: 2.2em 0 .65em; font-size: clamp(23px, 3vw, 30px); font-weight: 500; line-height: 1.22; }
.article-content p { margin: 0 0 1.35em; }
.article-content ul, .article-content ol { margin: 0 0 1.45em; padding-left: 1.35em; }
.article-content li { margin: .42em 0; padding-left: .2em; }
.article-content blockquote { margin: 2em 0; padding: 22px 26px; border-left: 3px solid var(--article-warm); border-radius: 0 14px 14px 0; background: #fff9e7; }
.article-content blockquote p { margin: 0; }
.article-content a { color: var(--article-blue-deep); text-underline-offset: 3px; }
.article-content code { padding: .12em .35em; border-radius: 5px; background: #edf2f5; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; }
.article-content hr { margin: 3em 0; border: 0; border-top: 1px solid var(--article-line); }

.article-author {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 62px;
  padding: 26px;
  border: 1px solid var(--article-line);
  border-radius: 22px;
  background: var(--article-paper);
}

.article-author img { display: block; width: 112px; height: 112px; object-fit: cover; border-radius: 50%; }
.article-author__label { margin: 0 0 4px; color: #52728f; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.article-author h2 { margin: 0 0 8px; font-size: 25px; font-weight: 500; }
.article-author p:last-child { margin: 0; color: var(--article-muted); font-size: 16px; }

.article-cta { margin-top: 64px; padding: 34px; border-radius: 22px; background: var(--article-blue); text-align: center; }
.article-cta h2 { margin: 0 0 12px; font-size: 28px; }
.article-cta p { margin: 0 0 22px; color: var(--article-muted); }
.article-cta a { display: flex; min-height: 52px; justify-content: center; align-items: center; padding: 12px 20px; border-radius: 10px; background: var(--article-blue-deep); color: #fff; text-decoration: none; font-size: 15px; }

.articles-footer { padding: 28px 0; border-top: 1px solid var(--article-line); color: var(--article-muted); font-size: 14px; }
.articles-footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.article-not-found { padding: 120px 0; text-align: center; }
.article-not-found h1 { font-size: clamp(38px, 7vw, 64px); font-weight: 500; letter-spacing: -.04em; }
.article-not-found a { color: var(--article-blue-deep); }

@media (max-width: 720px) {
  .articles-body { font-size: 16px; }
  .articles-nav { width: calc(100% - 24px); }
  .articles-back { display: none; }
  .articles-shell, .article-layout { width: calc(100% - 36px); }
  .articles-hero { padding-top: 62px; }
  .articles-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 58px; }
  .article-card { border-radius: 20px; }
  .article-card__body { padding: 22px; }
  .article-cover { width: calc(100% - 24px); border-radius: 20px; }
  .article-layout { padding: 44px 0 62px; }
  .article-content { font-size: 18px; }
  .article-cta { margin-top: 48px; padding: 26px 20px; }
  .article-author { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .article-author img { width: 72px; height: 72px; }
  .article-author h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .article-card { transition: none; }
}
