@font-face {
  font-family: Poppins;
  src: url('/blog-fonts/poppins-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('/blog-fonts/poppins-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('/blog-fonts/poppins-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/blog-fonts/inter-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/blog-fonts/inter-500.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #080808;
  --text: #f7f7f5;
  --body: rgba(247, 247, 245, .78);
  --muted: rgba(247, 247, 245, .58);
  --quiet: rgba(247, 247, 245, .48);
  --rule: rgba(255, 255, 255, .13);
  --rule-soft: rgba(255, 255, 255, .075);
  --accent: #7da0ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 14px/1.7 Poppins, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: #080808; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; padding: 8px 12px; background: var(--text); color: var(--background); }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 1px solid var(--rule-soft); }
.site-header-inner, .site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1500px);
  margin: auto;
  padding: 24px 48px;
}
.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.brand span { font-size: 27px; font-weight: 600; line-height: 1; letter-spacing: -.055em; }
.site-nav { display: flex; align-items: center; gap: 35px; }
.site-nav a { color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a:last-child { padding-bottom: 5px; border-bottom: 1px solid var(--rule); color: var(--text); }
.site-nav a:last-child span { margin-left: 12px; color: var(--accent); }

main { width: min(100%, 1500px); margin: auto; padding: 0 48px 140px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.lede { color: var(--muted); font: 400 18px/1.7 Inter, sans-serif; }

.index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  gap: clamp(50px, 8vw, 130px);
  align-items: end;
  min-height: 415px;
  padding: 72px 0 67px;
  border-bottom: 1px solid var(--rule);
}
.hero-copy h1 { margin: 0 0 30px; font-size: clamp(65px, 8.3vw, 116px); font-weight: 600; line-height: .91; letter-spacing: -.075em; }
.hero-copy .lede { max-width: 600px; margin: 0; }
.hero-aside { align-self: stretch; display: flex; flex-direction: column; padding: 5px 0 0 32px; border-left: 1px solid var(--rule); }
.hero-aside > a { display: block; font-size: 22px; font-weight: 500; line-height: 1.35; letter-spacing: -.03em; text-decoration: none; }
.hero-aside > a span { color: var(--accent); font-size: 17px; white-space: nowrap; }
.hero-aside > a:hover { color: var(--accent); }
.hero-stats { display: flex; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rule-soft); color: var(--quiet); font-size: 11px; font-variant-numeric: tabular-nums; }

.catalog-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(55px, 8vw, 125px); }
.catalog-nav { position: sticky; top: 28px; align-self: start; padding-top: 62px; }
.catalog-nav a { display: grid; grid-template-columns: 32px 1fr; gap: 4px; padding: 14px 0; border-top: 1px solid var(--rule-soft); color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; }
.catalog-nav a span { color: var(--quiet); font-size: 10px; font-variant-numeric: tabular-nums; }
.catalog-nav a:hover { color: var(--accent); }
.catalog-content { min-width: 0; }
.collection { margin-top: 68px; scroll-margin-top: 28px; }
.collection-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 21px; border-bottom: 1px solid var(--rule); }
.collection-head h2 { margin: 0; font-size: clamp(27px, 3vw, 40px); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; }
.collection-head span { color: var(--quiet); font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 70px; gap: 23px; align-items: start; padding: 25px 0 27px; border-bottom: 1px solid var(--rule-soft); text-decoration: none; }
.guide-number { padding-top: 5px; color: var(--quiet); font-size: 10px; font-variant-numeric: tabular-nums; }
.guide-row h3 { margin: 0 0 7px; font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; line-height: 1.4; letter-spacing: -.025em; }
.guide-row p { max-width: 670px; margin: 0; color: var(--muted); font: 400 13px/1.6 Inter, sans-serif; }
.guide-action { justify-self: end; padding-top: 6px; color: var(--quiet); font-size: 10px; white-space: nowrap; }
.guide-action span { margin-left: 8px; color: var(--accent); font-size: 15px; }
.guide-row:hover h3, .guide-row:hover .guide-action { color: var(--accent); }

.breadcrumbs { display: flex; align-items: center; gap: 11px; margin: 43px 0 68px; color: var(--quiet); font-size: 11px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.article-head { display: grid; grid-template-columns: minmax(0, 1fr) 210px; align-items: end; gap: clamp(50px, 8vw, 130px); padding-bottom: 71px; border-bottom: 1px solid var(--rule); }
.article-heading h1 { max-width: 1000px; margin: 0 0 31px; font-size: clamp(52px, 5.6vw, 81px); font-weight: 600; line-height: 1.07; letter-spacing: -.065em; }
.article-heading .lede { max-width: 760px; margin: 0; font-size: 19px; }
.article-meta { display: flex; flex-direction: column; gap: 12px; padding: 5px 0 3px 25px; border-left: 1px solid var(--rule); color: var(--quiet); font-size: 11px; }
.article-meta time { color: var(--body); }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 720px); gap: clamp(55px, 8vw, 125px); padding-top: 70px; }
.article-toc { position: sticky; top: 34px; align-self: start; }
.article-toc a { display: block; padding: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.55; text-decoration: none; }
.article-toc a:hover { color: var(--accent); }
.article-copy { min-width: 0; }
.article-copy section { margin-bottom: 64px; padding-top: 27px; border-top: 1px solid var(--rule); scroll-margin-top: 32px; }
.section-heading { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 4px; align-items: baseline; margin-bottom: 21px; }
.section-heading span { color: var(--accent); font-size: 10px; font-variant-numeric: tabular-nums; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 2.6vw, 31px); font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
.article-copy section p { max-width: 66ch; margin: 0 0 22px 43px; color: var(--body); font: 400 16px/1.84 Inter, sans-serif; }
.takeaway { margin: 83px 0 37px; padding: 28px 0 31px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--rule); }
.takeaway p { max-width: 65ch; margin: 0; font: 400 19px/1.65 Inter, sans-serif; }
.article-cta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; color: var(--muted); font: 400 12px/1.6 Inter, sans-serif; }
.article-cta a { flex: none; border-bottom: 1px solid var(--rule); color: var(--text); font: 500 11px/1.6 Poppins, sans-serif; text-decoration: none; }
.article-cta a span { margin-left: 8px; color: var(--accent); }
.article-cta a:hover { color: var(--accent); }
.related { max-width: 1055px; margin-top: 130px; }
.related h2 { margin: 0; padding-bottom: 24px; border-bottom: 1px solid var(--rule); font-size: 36px; font-weight: 500; letter-spacing: -.04em; }

.sitemap-head { padding: 105px 0 65px; border-bottom: 1px solid var(--rule); }
.sitemap-head h1 { margin: 0 0 25px; font-size: clamp(68px, 8vw, 112px); font-weight: 600; line-height: .96; letter-spacing: -.075em; }
.sitemap-head .lede { margin: 0; }
.sitemap-section { max-width: 900px; margin-top: 70px; }
.sitemap-section h2 { margin: 0 0 22px; font-size: 32px; font-weight: 500; letter-spacing: -.035em; }
.sitemap-section ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.sitemap-section li { border-bottom: 1px solid var(--rule-soft); }
.sitemap-section a { display: block; padding: 15px 0; color: var(--body); font-size: 13px; text-decoration: none; }
.sitemap-section a:hover { color: var(--accent); }

.site-footer { border-top: 1px solid var(--rule-soft); }
.site-footer-inner { color: var(--quiet); font-size: 11px; }
.site-footer nav { display: flex; gap: 26px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .index-hero { gap: 45px; }
  .catalog-layout, .article-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 55px; }
  .article-head { grid-template-columns: minmax(0, 1fr) 170px; gap: 45px; }
}

@media (max-width: 760px) {
  .site-header-inner, .site-footer-inner { padding: 21px 24px; }
  main { padding: 0 24px 90px; }
  .index-hero { display: block; min-height: 0; padding: 78px 0 45px; }
  .hero-copy h1 { font-size: clamp(57px, 11vw, 78px); }
  .hero-aside { display: block; margin-top: 51px; padding: 22px 0 0; border-top: 1px solid var(--rule); border-left: 0; }
  .hero-aside > a { margin: 0 0 29px; font-size: 20px; }
  .hero-stats { justify-content: flex-start; gap: 28px; margin: 0; }
  .catalog-layout, .article-layout { display: block; }
  .catalog-nav { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding: 39px 0 0; }
  .catalog-nav a { grid-template-columns: 27px 1fr; }
  .collection { margin-top: 61px; }
  .breadcrumbs { margin: 35px 0 55px; }
  .article-head { display: block; padding-bottom: 48px; }
  .article-heading h1 { font-size: clamp(48px, 8vw, 68px); }
  .article-meta { flex-direction: row; flex-wrap: wrap; gap: 18px; margin-top: 35px; padding: 18px 0 0; border-top: 1px solid var(--rule-soft); border-left: 0; }
  .article-layout { padding-top: 51px; }
  .article-toc { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; padding-bottom: 18px; margin-bottom: 62px; border-bottom: 1px solid var(--rule-soft); }
  .article-toc nav { display: contents; }
  .related { margin-top: 95px; }
  .sitemap-head { padding: 78px 0 49px; }
}

@media (max-width: 520px) {
  .site-header-inner, .site-footer-inner { padding: 19px 21px; }
  .brand { gap: 10px; }
  .brand span { font-size: 24px; }
  .site-nav { gap: 19px; }
  .site-nav a { font-size: 10px; }
  .site-nav a:last-child span { margin-left: 4px; }
  main { padding: 0 21px 75px; }
  .index-hero { padding-top: 68px; }
  .hero-copy h1 { font-size: clamp(48px, 13vw, 63px); }
  .lede { font-size: 16px; }
  .guide-row { grid-template-columns: 25px minmax(0, 1fr) 23px; gap: 10px; padding: 22px 0 25px; }
  .guide-row h3 { font-size: 17px; }
  .guide-action { font-size: 0; }
  .guide-action span { font-size: 17px; }
  .collection-head h2 { font-size: 27px; }
  .article-heading h1 { font-size: clamp(43px, 11vw, 55px); }
  .article-heading .lede { font-size: 17px; }
  .article-toc { column-gap: 15px; }
  .section-heading { grid-template-columns: 31px minmax(0, 1fr); }
  .article-copy section p { margin-left: 0; font-size: 15.5px; }
  .article-cta { align-items: start; flex-direction: column; }
  .related h2 { font-size: 30px; }
  .sitemap-head h1 { font-size: 65px; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
}

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