:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #171717;
  --ink: #f4f1ea;
  --muted: #a39e95;
  --faint: #6d6962;
  --accent: #ff5b2e;
  --signal: #d4ff3a;
  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.24);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection {
  background: var(--accent);
  color: #000000;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--bg);
  font: 500 12px var(--mono);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 56px;
  height: 17px;
  margin-left: 37px;
  color: var(--accent);
}

.brand-word {
  font: 400 24px/1 var(--serif);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font: 400 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 7px;
}

.header-cta,
.article-cta-primary,
.article-cta-secondary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 400 11px/1 var(--mono);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-cta:hover,
.article-cta-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  cursor: pointer;
  list-style: none;
  font: 400 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu nav {
  position: absolute;
  top: 34px;
  right: 0;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.mobile-menu nav a {
  display: block;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: 400 12px var(--mono);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mobile-menu nav a:last-child {
  border-bottom: 0;
}

.articles-hero,
.article-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.articles-hero {
  min-height: 410px;
  padding: 94px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  align-items: end;
  gap: 80px;
}

.eyebrow,
.article-kicker,
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 400 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow::before,
.article-kicker::before,
.section-label::before {
  width: 28px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.articles-hero h1,
.article-hero h1 {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0;
}

.articles-hero h1 {
  max-width: 760px;
  font-size: 76px;
}

.articles-hero h1 em,
.article-hero h1 em {
  color: var(--accent);
  font-weight: inherit;
}

.hero-intro {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-intro strong {
  color: var(--ink);
  font-weight: 500;
}

.articles-main {
  border-top: 1px solid var(--line);
}

.article-list {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.article-row {
  display: grid;
  grid-template-columns: 40px 160px minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background 180ms ease, padding 180ms ease;
}

.article-row:hover {
  padding-right: 18px;
  padding-left: 18px;
  background: var(--surface);
}

.article-number {
  color: var(--accent);
  font: 400 12px var(--mono);
}

.article-thumb {
  display: block;
  width: 160px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-row h2 {
  margin: 0 0 12px;
  font: 300 32px/1.14 var(--serif);
  letter-spacing: 0;
}

.article-row p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.article-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--faint);
  font: 400 10px/1.4 var(--mono);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.article-row-meta span:first-child {
  color: var(--signal);
}

.articles-note {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.articles-note h2 {
  margin: 0;
  max-width: 520px;
  font: 300 42px/1.12 var(--serif);
  letter-spacing: 0;
}

.articles-note p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}

.article-hero {
  min-height: 470px;
  padding: 80px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  margin-bottom: 54px;
  color: var(--faint);
  font: 400 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.article-hero h1 {
  max-width: 940px;
  font-size: 64px;
}

.article-dek {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
  color: var(--faint);
  font: 400 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.article-inline-visual {
  width: min(630px, 93%);
  aspect-ratio: 16 / 9;
  margin: 38px 0 56px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.article-inline-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-layout {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 100px;
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  gap: 80px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 112px;
}

.article-toc h2 {
  margin: 0 0 18px;
  color: var(--faint);
  font: 400 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.article-toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

.article-toc a::before {
  content: "0" counter(toc);
  color: var(--accent);
  font: 400 9px var(--mono);
}

.article-toc a:hover {
  color: var(--ink);
}

.article-body {
  min-width: 0;
}

.answer-box {
  margin: 0 0 58px;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.answer-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--signal);
  font: 400 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.answer-box p {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.65;
}

.article-body section {
  margin-top: 62px;
  scroll-margin-top: 110px;
}

.article-body section:first-of-type {
  margin-top: 0;
}

.article-body h2 {
  margin: 0 0 22px;
  font: 400 36px/1.2 var(--serif);
  letter-spacing: 0;
}

.article-body h3 {
  margin: 34px 0 12px;
  font: 500 21px/1.35 var(--sans);
  letter-spacing: 0;
}

.article-body p,
.article-body li {
  color: #cbc6bd;
  font-size: 18px;
  line-height: 1.78;
}

.article-body p {
  margin: 0 0 22px;
}

.article-body strong {
  color: var(--ink);
  font-weight: 500;
}

.article-body ul,
.article-body ol {
  margin: 20px 0 26px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 12px;
  padding-left: 7px;
}

.article-body li::marker {
  color: var(--accent);
}

.article-body a:not(.article-cta-primary):not(.article-cta-secondary) {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

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

.pull-quote {
  margin: 42px 0;
  padding: 0 0 0 28px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink);
  font: 300 29px/1.45 var(--serif);
}

.table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  border-top: 1px solid var(--line-strong);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font: 400 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td {
  color: #cbc6bd;
  font-size: 15px;
  line-height: 1.55;
}

td strong {
  color: var(--ink);
}

.source-block {
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.source-block h2 {
  margin-bottom: 14px;
  font: 400 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.source-block p {
  color: var(--faint);
  font-size: 14px;
}

.source-block ul {
  padding-left: 18px;
}

.source-block li {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.article-cta {
  margin-top: 70px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.article-cta h2 {
  max-width: 560px;
  margin-bottom: 14px;
  font-size: 32px;
}

.article-cta p {
  max-width: 610px;
  color: var(--muted);
  font-size: 16px;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.article-cta-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}

.article-cta-primary:hover {
  border-color: var(--ink);
  background: var(--ink);
}

.related {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 100px;
}

.related h2 {
  margin: 18px 0 26px;
  font: 300 36px var(--serif);
  letter-spacing: 0;
}

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

.related-link {
  min-height: 160px;
  padding: 26px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
}

.related-link:hover {
  background: var(--surface);
}

.related-link span {
  color: var(--accent);
  font: 400 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.related-link strong {
  display: block;
  margin-top: 28px;
  font: 300 24px/1.25 var(--serif);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.footer-brand {
  max-width: 520px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 10px;
  font: 300 30px var(--serif);
}

.footer-brand p,
.footer-note {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  margin-bottom: 12px;
  font: 400 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-note {
  text-align: right;
}

@media (max-width: 900px) {
  .site-nav,
  .header-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .articles-hero,
  .articles-note,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .articles-hero {
    min-height: 0;
    padding: 76px 0 58px;
    gap: 30px;
  }

  .articles-hero h1 {
    font-size: 58px;
  }

  .hero-intro {
    max-width: 620px;
  }

  .article-row {
    grid-template-columns: 36px 140px minmax(0, 1fr);
    gap: 18px;
  }

  .article-thumb {
    width: 140px;
  }

  .article-row-meta {
    grid-column: 3;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .article-layout {
    gap: 44px;
  }

  .article-toc {
    position: static;
  }

  .article-toc ol {
    columns: 2;
    column-gap: 30px;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .articles-hero,
  .article-hero,
  .article-list,
  .articles-note,
  .article-layout,
  .related,
  .footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-word {
    font-size: 21px;
  }

  .brand-mark {
    width: 48px;
    height: 15px;
    margin-left: 31px;
  }

  .articles-hero {
    padding: 58px 0 48px;
  }

  .articles-hero h1 {
    font-size: 44px;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 0;
  }

  .article-row:hover {
    padding-right: 10px;
    padding-left: 10px;
  }

  .article-row h2 {
    font-size: 30px;
  }

  .article-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .article-inline-visual {
    width: 100%;
    margin: 30px 0 48px;
  }

  .article-row-meta {
    grid-column: 1;
    flex-wrap: wrap;
  }

  .articles-note {
    padding: 56px 0 70px;
    gap: 24px;
  }

  .articles-note h2 {
    font-size: 34px;
  }

  .article-hero {
    min-height: 0;
    padding: 54px 0 48px;
  }

  .breadcrumbs {
    margin-bottom: 42px;
  }

  .article-hero h1 {
    font-size: 42px;
  }

  .article-dek {
    font-size: 18px;
  }

  .article-layout {
    padding: 46px 0 74px;
  }

  .article-toc ol {
    columns: 1;
  }

  .answer-box {
    padding: 20px;
  }

  .answer-box p,
  .article-body p,
  .article-body li {
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 31px;
  }

  .pull-quote {
    font-size: 25px;
  }

  .article-cta {
    padding: 24px 20px;
  }

  .related-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-note {
    text-align: left;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  body::before,
  .site-header,
  .article-toc,
  .article-cta,
  .related,
  .site-footer {
    display: none;
  }

  .article-layout {
    display: block;
    width: 100%;
    padding: 30px 0;
  }

  .article-body p,
  .article-body li,
  .source-block p,
  .source-block li {
    color: #222222;
  }
}
