:root {
  color-scheme: light;
  --ink: #101010;
  --muted: #676767;
  --line: #deded8;
  --paper: #f6f5f0;
  --white: #ffffff;
  --accent: #ff5c35;
  --max: 1160px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--accent);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

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

.site-head,
.site-foot {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

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

.brand img {
  display: block;
  width: 120px;
  height: 28px;
}

.head-link {
  font-size: 15px;
  font-weight: 650;
}

.hero,
.article-layout,
.hub,
.cta,
.related {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.hero {
  padding: clamp(70px, 11vw, 150px) 0 clamp(56px, 8vw, 110px);
}

.eyebrow,
.meta,
.kicker {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(45px, 8vw, 96px);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.dek {
  max-width: 780px;
  margin-bottom: 26px;
  color: #343434;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.35;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
  padding-bottom: 96px;
}

.article {
  max-width: 760px;
}

.article h2 {
  margin: 72px 0 20px;
  font-size: clamp(31px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

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

.article h3 {
  margin: 38px 0 12px;
  font-size: 24px;
  line-height: 1.25;
}

.article p,
.article li {
  max-width: 72ch;
}

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

.note,
.answer {
  margin: 34px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--accent);
  background: var(--white);
}

.answer strong {
  display: block;
  margin-bottom: 8px;
}

.toc {
  position: sticky;
  top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  font-size: 15px;
}

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

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li + li {
  margin-top: 10px;
}

.cta {
  margin-bottom: 72px;
  padding: clamp(34px, 7vw, 78px);
  border-radius: 24px;
  background: var(--ink);
  color: var(--white);
}

.cta h2 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.cta p {
  max-width: 680px;
  color: #d1d1d1;
}

.button {
  display: inline-flex;
  margin-top: 12px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.related {
  padding: 64px 0 86px;
  border-top: 1px solid var(--line);
}

.related h2,
.hub h2 {
  margin-bottom: 30px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: block;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  text-decoration: none;
}

.card:hover {
  border-color: var(--ink);
}

.card h2,
.card h3 {
  margin: 10px 0 12px;
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

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

.hub {
  padding: 88px 0 110px;
}

.hub-intro {
  max-width: 760px;
  margin-bottom: 56px;
  color: #343434;
  font-size: 23px;
}

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  body {
    font-size: 17px;
  }

  .article-layout {
    display: block;
  }

  .toc {
    position: static;
    margin-bottom: 48px;
  }

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

@media (max-width: 520px) {
  .site-head,
  .site-foot,
  .hero,
  .article-layout,
  .hub,
  .cta,
  .related {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-head {
    min-height: 72px;
  }

  .head-link {
    font-size: 13px;
  }

  .hero {
    padding-top: 58px;
  }

  .cta {
    border-radius: 16px;
  }

  .site-foot {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
