:root {
  --article-ink: #231a17;
  --article-muted: #6d625d;
  --article-orange: #e85d20;
  --article-orange-dark: #b73d0a;
  --article-line: #e8ded8;
  --article-warm: #fff8f3;
  --article-dark: #241915;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--article-ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--article-ink); background: #fff; }
a { color: var(--article-orange-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.article-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; color: #fff; background: #111; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.article-site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--article-line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.article-header-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; min-height: 78px; }
.article-brand { display: inline-flex; align-items: center; }
.article-brand img { width: 164px; }
.article-site-header nav { display: flex; gap: clamp(14px, 1.8vw, 26px); justify-content: center; }
.article-site-header nav a { color: var(--article-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.article-site-header nav a:hover { color: var(--article-orange); }
.article-button { display: inline-flex; min-height: 50px; padding: 0 24px; align-items: center; justify-content: center; border: 1px solid var(--article-orange); border-radius: 4px; color: #fff; background: var(--article-orange); font-weight: 800; text-decoration: none; }
.article-button:hover { color: #fff; background: var(--article-orange-dark); }
.article-button--small { min-height: 42px; padding-inline: 18px; font-size: 14px; }

.article-hero { padding: clamp(62px, 8vw, 104px) 0 clamp(50px, 6vw, 78px); border-bottom: 1px solid var(--article-line); background: linear-gradient(135deg, #fff 0%, var(--article-warm) 100%); }
.article-hero .article-shell { max-width: 980px; }
.article-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; color: var(--article-muted); font-size: 13px; }
.article-breadcrumb a { color: var(--article-muted); }
.article-eyebrow { margin: 0 0 12px; color: var(--article-orange-dark); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.article-hero h1 { max-width: 900px; margin: 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.06; letter-spacing: -.035em; }
.article-hero > .article-shell > p:not(.article-eyebrow) { max-width: 820px; margin: 24px 0 0; color: var(--article-muted); font-size: clamp(18px, 2.2vw, 22px); line-height: 1.65; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; color: var(--article-muted); font-size: 13px; }

.article-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(42px, 7vw, 88px); justify-content: center; padding-block: clamp(58px, 8vw, 96px); }
.article-toc { position: sticky; top: 108px; align-self: start; padding: 23px; border: 1px solid var(--article-line); border-radius: 8px; background: var(--article-warm); }
.article-toc strong { display: block; margin-bottom: 14px; font-size: 14px; }
.article-toc ol { display: grid; gap: 9px; margin: 0 0 18px; padding-left: 20px; color: var(--article-muted); font-size: 13px; line-height: 1.45; }
.article-toc > a { font-size: 13px; font-weight: 800; }
.article-content { min-width: 0; font-size: 17px; line-height: 1.82; }
.article-content .article-lead { margin-top: 0; padding: 25px 28px; border-left: 4px solid var(--article-orange); background: var(--article-warm); color: #473b36; font-size: 19px; }
.article-content h2 { margin: 64px 0 18px; scroll-margin-top: 110px; font-size: clamp(29px, 4vw, 38px); line-height: 1.2; letter-spacing: -.025em; }
.article-content h3 { margin: 36px 0 12px; scroll-margin-top: 110px; font-size: 23px; line-height: 1.3; }
.article-content p { margin: 0 0 22px; }
.article-content ul,
.article-content ol { margin: 0 0 26px; padding-left: 25px; }
.article-content li { margin-bottom: 9px; padding-left: 4px; }
.article-content blockquote { margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--article-orange); background: var(--article-warm); }
.article-table-wrap { overflow-x: auto; margin: 26px 0 34px; border: 1px solid var(--article-line); border-radius: 8px; }
.article-content table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.article-content th,
.article-content td { padding: 15px 17px; border-bottom: 1px solid var(--article-line); text-align: left; vertical-align: top; }
.article-content th { color: #fff; background: var(--article-dark); }
.article-content tr:last-child td { border-bottom: 0; }
.article-content tr:nth-child(even) td { background: #fffaf7; }

.article-related { padding: 0 0 clamp(70px, 9vw, 112px); }
.article-related h2 { margin: 0 0 28px; font-size: clamp(31px, 4vw, 43px); }
.article-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-related-card { display: flex; min-height: 230px; padding: 25px; border: 1px solid var(--article-line); border-radius: 8px; flex-direction: column; color: var(--article-ink); text-decoration: none; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.article-related-card:hover { color: var(--article-ink); border-color: #e8a07e; box-shadow: 0 16px 34px rgba(40,24,17,.08); transform: translateY(-3px); }
.article-related-card > span { margin-bottom: 18px; color: var(--article-orange-dark); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.article-related-card strong { font-size: 20px; line-height: 1.35; }
.article-related-card small { margin-top: 13px; color: var(--article-muted); font-size: 13px; line-height: 1.55; }

.article-cta { padding-block: clamp(55px, 7vw, 82px); color: #fff; background: var(--article-orange); }
.article-cta .article-shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 38px; align-items: center; }
.article-cta .article-eyebrow { color: rgba(255,255,255,.72); }
.article-cta h2 { max-width: 800px; margin: 0; color: #fff; font-size: clamp(31px, 4vw, 46px); line-height: 1.16; }
.article-cta p:not(.article-eyebrow) { max-width: 820px; margin: 15px 0 0; color: rgba(255,255,255,.82); line-height: 1.65; }
.article-cta .article-button { border-color: #fff; color: var(--article-orange-dark); background: #fff; }
.article-site-footer { padding-block: 52px; color: rgba(255,255,255,.72); background: var(--article-dark); }
.article-site-footer > .article-shell { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 52px; }
.article-site-footer .article-brand img { filter: brightness(0) invert(1); }
.article-site-footer p { max-width: 360px; line-height: 1.6; }
.article-site-footer strong { display: block; margin-bottom: 14px; color: #fff; }
.article-site-footer a { display: block; margin-bottom: 9px; color: rgba(255,255,255,.8); font-size: 14px; }
.article-socials { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 16px; }

@media (max-width: 900px) {
  .article-site-header nav { display: none; }
  .article-header-inner { grid-template-columns: 1fr auto; }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; }
  .article-related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .article-shell { width: min(100% - 30px, 1180px); }
  .article-brand img { width: 135px; }
  .article-button--small { min-height: 38px; padding-inline: 13px; }
  .article-hero h1 { font-size: 39px; }
  .article-breadcrumb { margin-bottom: 30px; }
  .article-content { font-size: 16px; }
  .article-content .article-lead { padding: 20px; font-size: 17px; }
  .article-related-grid,
  .article-cta .article-shell,
  .article-site-footer > .article-shell { grid-template-columns: 1fr; }
  .article-cta .article-button { justify-self: start; }
}
