:root {
  --ink: #24183d;
  --muted: #6b6378;
  --paper: #fbf7ef;
  --white: #fffdfa;
  --wash: #f0eafa;
  --wash-2: #fee9df;
  --line: #ddd3e7;
  --accent: #d9482f;
  --accent-dark: #ad321f;
  font-family: Inter, "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 16px 0;
  background: var(--paper);
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.brand-lockup img {
  width: 36px;
  height: 36px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 650;
}
.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 750;
}
.button:hover {
  border-color: var(--accent);
  background: var(--accent);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 60px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.blog-shell,
.article-document {
  width: min(1180px, calc(100% - 40px));
  margin: 48px auto;
}
.blog-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 56px;
  background: var(--wash);
  border-radius: 28px;
}
.blog-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.93;
  letter-spacing: -0.06em;
}
.blog-hero h1 em {
  color: var(--accent);
  font-style: normal;
}
.blog-hero p,
.article-dek {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.blog-tools {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
}
.blog-tools input,
.blog-tools select {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}
.article-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.article-card:hover {
  background: var(--wash);
  transform: translateY(-2px);
}
.article-card[hidden] {
  display: none;
}
.article-card h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.06;
}
.article-card p {
  color: var(--muted);
  line-height: 1.45;
}
.article-card span:last-child {
  margin-top: auto;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}
.article-document {
  max-width: 900px;
}
.article-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.article-document h1 {
  margin: 18px 0;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 0.93;
  letter-spacing: -0.06em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.article-meta span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
}
.article-content {
  margin-top: 46px;
}
.article-content h2,
.article-faq h2,
.article-sources h2,
.related h2 {
  margin: 48px 0 14px;
  font-size: 31px;
  line-height: 1.05;
}
.article-content h3,
.article-faq h3 {
  margin: 30px 0 10px;
  font-size: 21px;
}
.article-content p,
.article-faq p {
  margin: 0 0 18px;
  color: #514866;
  font-size: 18px;
  line-height: 1.75;
}
.article-callout,
.article-sources {
  margin-top: 42px;
  padding: 26px;
  border-radius: 18px;
  background: var(--wash-2);
}
.article-callout p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}
.article-sources {
  border: 1px solid var(--line);
  background: var(--white);
}
.article-sources h2 {
  margin-top: 0;
}
.article-sources li {
  margin: 9px 0;
  line-height: 1.5;
}
.article-sources a {
  text-decoration: underline;
}
.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 28px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
}
.article-cta h2 {
  margin: 0;
  font-size: 27px;
}
.article-cta p {
  color: #d3c8df;
}
.article-cta .button {
  flex: none;
  background: var(--paper);
  color: var(--ink);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related a {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font-weight: 700;
}

:where(a, button, input, select, [tabindex="0"]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 850px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links:not(.is-open) {
    display: none;
  }
  .nav-links.is-open {
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 18px 50px rgb(36 24 61 / 18%);
  }
  .nav-links.is-open a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
  }
  .blog-hero {
    grid-template-columns: 1fr;
    padding: 40px 26px;
  }
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .blog-shell,
  .article-document,
  .site-nav {
    width: calc(100% - 24px);
  }
  .blog-tools,
  .article-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero {
    padding: 32px 20px;
  }
  .article-content p,
  .article-faq p {
    font-size: 17px;
  }
  footer {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .article-card {
    transition: none;
  }
}
