:root {
  color-scheme: dark;
  --ink: #101512;
  --ink-soft: #171d19;
  --paper: #f1eee6;
  --paper-muted: #d6d4cc;
  --acid: #d8ff4f;
  --line: rgba(241, 238, 230, 0.18);
  --line-dark: rgba(16, 21, 18, 0.2);
  --sans: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  padding: 0.8rem 1rem;
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-110%);
}

.skip-link:focus {
  transform: translateY(0);
}

.insights-header {
  width: min(100% - 3rem, 1440px);
  min-height: 92px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.5rem;
}

.insights-wordmark {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.insights-wordmark span {
  color: var(--acid);
}

.insights-header nav {
  display: flex;
  gap: 1.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.insights-header nav a {
  text-decoration: none;
}

.insights-header nav a[aria-current="page"] {
  color: var(--acid);
}

.insights-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-decoration: none;
}

.header-cta {
  background: var(--acid);
  color: var(--ink);
  padding: 0.85rem 1rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-shell {
  width: min(100% - 3rem, 1180px);
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 2rem 0 0;
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.article-hero {
  padding: 5rem 0 5.5rem;
  border-bottom: 1px solid var(--line);
}

.article-kicker,
.section-label {
  margin: 0 0 1.3rem;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.article-deck {
  max-width: 780px;
  margin: 2.4rem 0 0;
  color: var(--paper-muted);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2rem;
  color: var(--paper-muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-body {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 5rem 0 6rem;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2 {
  margin: 4.5rem 0 1.3rem;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.article-body h3 {
  margin: 3.2rem 0 1rem;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 1.45rem;
}

.article-body strong {
  color: #fff;
}

.article-body a {
  color: var(--acid);
}

.article-body blockquote {
  margin: 2.7rem 0;
  padding: 1.5rem 0 1.5rem 1.7rem;
  border-left: 3px solid var(--acid);
  font-size: 1.25em;
}

.article-body table {
  display: block;
  width: 100%;
  margin: 2rem 0 2.8rem;
  border-collapse: collapse;
  overflow-x: auto;
  font-size: 0.9rem;
}

.article-body th,
.article-body td {
  min-width: 150px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-body hr {
  margin: 4rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-sources,
.article-author,
.related-insights {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.article-sources {
  width: min(100%, 780px);
  margin: 0 auto;
}

.article-sources h2,
.article-author h2,
.related-insights h2 {
  margin: 0 0 1.7rem;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.article-sources ol {
  padding-left: 1.2rem;
}

.article-sources li {
  margin-bottom: 0.8rem;
  color: var(--paper-muted);
}

.article-sources a {
  color: var(--paper);
}

.article-author {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem 4rem;
  align-items: start;
}

.article-author .section-label {
  grid-column: 1 / -1;
}

.article-author h2,
.article-author p {
  margin-top: 0;
}

.article-author a {
  color: var(--acid);
  font-weight: 700;
}

.insight-grid,
.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.insight-grid article,
.overview-card {
  background: var(--ink);
  padding: 2rem;
}

.insight-grid article > p,
.overview-card > p {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.insight-grid h3,
.overview-card h3 {
  margin: 1rem 0;
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.insight-grid h3 a,
.overview-card h3 a {
  text-decoration: none;
}

.insight-grid article > span,
.overview-card > span {
  color: var(--paper-muted);
}

.overview-hero {
  width: min(100% - 3rem, 1440px);
  margin: 0 auto;
  padding: 7rem 0 8rem;
  border-bottom: 1px solid var(--line);
}

.overview-hero h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.overview-hero div > p:last-child {
  max-width: 720px;
  margin: 2.5rem 0 0;
  color: var(--paper-muted);
  font-size: 1.3rem;
}

.overview-list {
  width: min(100% - 3rem, 1440px);
  margin: 0 auto;
  padding: 5rem 0 8rem;
}

.overview-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 2rem;
}

.overview-heading .section-label {
  grid-column: 1 / -1;
}

.overview-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.05em;
}

.overview-heading > a {
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.overview-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.overview-card:only-child {
  grid-column: 1 / -1;
}

.overview-card h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.overview-card > div {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-top: auto;
  padding-top: 3rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.overview-card > div a {
  color: var(--acid);
  font-weight: 700;
}

.insights-footer {
  padding: 5rem max(1.5rem, calc((100% - 1440px) / 2));
  background: var(--paper);
  color: var(--ink);
}

.insights-footer > div {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.insights-footer > div:first-child {
  align-items: end;
  padding-bottom: 4rem;
}

.insights-footer > div:first-child p {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.insights-footer > div:first-child a {
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.3rem;
  text-decoration: none;
  font-weight: 800;
}

.insights-footer > div:last-child {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
}

@media (max-width: 880px) {
  .insights-header {
    width: min(100% - 2rem, 1440px);
    grid-template-columns: auto 1fr;
    min-height: 76px;
    gap: 1rem;
  }

  .insights-header nav {
    display: none;
  }

  .insights-actions {
    justify-self: end;
  }

  .article-shell,
  .overview-hero,
  .overview-list {
    width: min(100% - 2rem, 1180px);
  }

  .article-hero {
    padding: 3.5rem 0 4rem;
  }

  .article-body {
    padding: 3.5rem 0 4.5rem;
  }

  .article-author,
  .insight-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .overview-card {
    min-height: 320px;
  }

  .insights-footer > div {
    flex-direction: column;
    align-items: flex-start !important;
  }
}

@media (max-width: 540px) {
  .header-cta {
    padding: 0.72rem 0.75rem;
    font-size: 0.68rem;
  }

  .article-hero h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  .overview-hero h1 {
    font-size: clamp(3rem, 16vw, 5.2rem);
  }

  .article-body h2 {
    margin-top: 3.5rem;
  }

  .overview-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
