:root {
  color-scheme: light dark;
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --surface: #fffefa;
  --ink: #17191d;
  --body: #2b2e34;
  --muted: #5f6572;
  --faint: #636976;
  --rule: #e1dacd;
  --rule-strong: #cfc6b5;
  --accent: #c7431c;
  --accent-text: #b83a18;
  --accent-soft: #f3dfd5;
  --footer-bg: #17191d;
  --footer-ink: #f6f3ec;
  --footer-muted: #aaa69d;
  --shadow: 0 26px 60px -34px rgba(23, 25, 29, 0.38);
  --sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1115;
    --paper-2: #151820;
    --surface: #171a21;
    --ink: #f1eee7;
    --body: #d7d5cf;
    --muted: #a2a7b2;
    --faint: #8b909b;
    --rule: #2a2e37;
    --rule-strong: #3a3f4a;
    --accent: #ff7a52;
    --accent-text: #ff8a66;
    --accent-soft: #2b1b16;
    --footer-bg: #0b0d11;
    --footer-ink: #f1eee7;
    --footer-muted: #8b909b;
    --shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

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

::selection { background: var(--accent-soft); color: var(--ink); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.wrap { width: min(100% - 48px, 1160px); margin-inline: auto; }

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 2px;
  background: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark { position: relative; display: inline-block; width: 22px; height: 18px; }
.brand-mark i {
  position: absolute;
  top: 0;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
  transform: skewX(-18deg);
}
.brand-mark i:nth-child(1) { left: 1px; }
.brand-mark i:nth-child(2) { left: 8px; opacity: 0.55; }
.brand-mark i:nth-child(3) { left: 15px; opacity: 0.25; }
.brand-lite { color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 650; }
.nav .nav-cta {
  padding: 9px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}
.nav .nav-cta span { margin-left: 4px; color: var(--accent-text); }

.article-hero {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(840px 420px at 88% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    var(--paper);
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(310px, 0.78fr);
  gap: 68px;
  align-items: center;
  padding: 74px 0 68px;
}

.article-hero-answer {
  grid-template-columns: minmax(0, 980px);
  justify-content: start;
  min-height: calc(100svh - 72px);
  align-content: center;
  padding: 82px 0 76px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.eyebrow span { display: inline-block; width: 28px; height: 2px; background: var(--accent); }

h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(46px, 4.9vw, 68px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.deck {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19.5px;
  line-height: 1.58;
}

.article-answer {
  max-width: 54ch;
  margin: 26px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 3.1vw, 38px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.32;
  text-wrap: pretty;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 500;
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--rule-strong); }

.answer-card {
  position: relative;
  padding: 27px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.answer-card::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: var(--accent);
  content: "";
}
.card-label {
  margin: 0 0 16px;
  color: var(--accent-text);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.answer-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.answer-card p:last-child { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.62; }

.article-shell { padding: 66px 0 100px; }
.article-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 680px);
  justify-content: center;
  gap: 58px;
  align-items: start;
}

.toc { position: sticky; top: 108px; }
.toc-title {
  margin: 0 0 14px;
  color: var(--faint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding: 0; border-left: 1px solid var(--rule); list-style: none; }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 8px 0 8px 16px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}
.toc a:hover { color: var(--ink); }
.toc a.active { border-left-color: var(--accent); color: var(--ink); font-weight: 650; }

.article { min-width: 0; counter-reset: section; }
.article-meta { margin: 0 0 30px; }
.article-promise {
  margin: 0 0 1.1em;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}
.article .intro {
  margin: 0 0 2em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: -0.012em;
  line-height: 1.42;
}
.article section + section { margin-top: 64px; }
.article h2 {
  margin: 0 0 22px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.023em;
  line-height: 1.17;
  counter-increment: section;
}
.article section:first-of-type h2 { padding-top: 0; border-top: 0; }
.article h2::before {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-text);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  content: "0" counter(section);
}
.article h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.25;
}
.article p { margin: 0 0 1.2em; color: var(--body); font-size: 18.5px; line-height: 1.69; }
.article strong { color: var(--ink); font-weight: 650; }
.article ul, .article ol { margin: 0 0 1.4em; padding-left: 1.25em; }
.article li { margin-bottom: 0.55em; font-size: 18px; line-height: 1.65; }
.article li::marker { color: var(--accent-text); font-weight: 700; }
.article blockquote {
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.43;
}
.article blockquote p { margin: 0; color: inherit; font: inherit; }

.article-figure { margin: 38px 0 40px; }
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.article-figure figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  margin: 46px auto 50px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 44px -36px rgba(23, 25, 29, 0.5);
}

.ad-label {
  display: block;
  margin: 0 2px 10px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.affiliate-card {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: 100%;
  padding: 20px;
  border-radius: 12px;
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
}

.affiliate-creative img {
  display: block;
  width: 234px;
  max-width: 100%;
  height: auto;
}

.affiliate-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.affiliate-copy strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.affiliate-copy > span:not(.affiliate-cta) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.affiliate-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
}

.affiliate-card:hover .affiliate-cta,
.affiliate-text-card:hover .affiliate-cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.affiliate-text-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: 100%;
  padding: 19px 20px;
  border-radius: 12px;
  background: var(--paper-2);
  color: inherit;
  text-decoration: none;
}

.affiliate-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.affiliate-text-card strong {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.affiliate-text-card .affiliate-cta {
  margin: 0;
  white-space: nowrap;
}

.test-grid, .rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 34px;
}
.test-grid article, .rule-grid article, .index-card {
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
}
.test-grid article > span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-text);
  font-family: var(--serif);
  font-size: 24px;
}
.test-grid h3 { margin-bottom: 6px; font-family: var(--sans); font-size: 16px; }
.test-grid p, .rule-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.58; }
.rule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rule-label {
  margin-bottom: 7px !important;
  color: var(--accent-text) !important;
  font-size: 10.5px !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.table-wrap { margin: 28px 0 34px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 16px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
th { color: var(--ink); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
td { color: var(--muted); font-size: 15px; line-height: 1.55; }
tr:last-child td { border-bottom: 0; }

.article pre {
  max-width: 100%;
  margin: 28px 0 34px;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  font: 14px/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.article pre code { font: inherit; white-space: pre; }

.passport-list {
  margin: 26px 0 34px !important;
  padding: 0 !important;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.passport-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) 1fr;
  gap: 16px;
  margin: 0 !important;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}
.passport-list strong { display: block; font-family: var(--sans); font-size: 14px; }

.timeline { margin: 28px 0 34px !important; padding: 0 !important; border-top: 1px solid var(--rule); list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  margin: 0 !important;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.timeline strong { color: var(--accent-text); font-size: 14px; }

.topic-columns { display: grid; gap: 28px; margin-top: 28px; }
.topic-columns section { padding: 22px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); }
.topic-columns h3 { margin-bottom: 14px; }
.topic-columns ol { margin: 0 !important; padding-left: 1.4em !important; }
.topic-columns li { font-size: 16px; line-height: 1.52; }

.source-list { margin: 20px 0 0; padding-left: 1.4em; }
.source-list li { margin-bottom: 1em; }
.source-list a { color: var(--ink); font-weight: 600; }
.source-list span { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.article-cta {
  margin-top: 64px;
  padding: 28px;
  border-radius: 18px;
  background: var(--ink);
}
.article-cta .card-label { color: var(--accent); }
.article-cta h2 { margin: 0 0 12px; padding: 0; border: 0; color: var(--paper); font-size: 30px; }
.article-cta h2::before { display: none; }
.article-cta p:not(.card-label) { color: var(--footer-muted); }
.article-cta a { color: var(--paper); font-weight: 650; }

.index-hero {
  padding: 82px 0 68px;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(800px 400px at 90% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 68%),
    var(--paper);
}
.index-hero h1 { max-width: 860px; }
.index-hero .deck { max-width: 650px; }
.index-shell { padding: 54px 0 90px; }
.index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.index-ad { padding: 0 0 78px; }
.index-card { display: flex; flex-direction: column; min-height: 280px; padding: 26px; }
.card-kicker {
  margin: 0 0 20px !important;
  color: var(--accent-text) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.index-card h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 29px; line-height: 1.18; }
.index-card h2 a { color: var(--ink); text-decoration: none; }
.index-card h2 a:hover { color: var(--accent-text); }
.index-card > p { flex: 1; margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.card-meta { display: flex; justify-content: space-between; color: var(--faint); font-size: 12px; }

.site-footer { padding: 40px 0; background: var(--footer-bg); color: var(--footer-ink); }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-footer .brand { color: var(--footer-ink); }
.site-footer .brand-lite { color: var(--footer-muted); }
.footer-copy { margin: 12px 0 0; color: var(--footer-muted); font-size: 13px; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--footer-muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--footer-ink); }

@media (max-width: 980px) {
  .wrap { width: min(100% - 48px, 760px); }
  .article-hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 56px 0 50px; }
  .article-hero-answer { min-height: calc(100svh - 72px); padding: 58px 0 52px; }
  .answer-card { max-width: 680px; }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .rule-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 76px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 60px; }
  .nav { gap: 0; }
  .nav a { display: none; }
  .nav a[aria-current="page"], .nav .nav-cta { display: inline-flex; }
  .nav .nav-cta { padding: 8px 13px; }
  .article-hero-grid { padding: 38px 0 36px; }
  .article-hero-answer { min-height: calc(100svh - 60px); padding: 40px 0 38px; }
  h1 { font-size: clamp(36px, 10.2vw, 44px); line-height: 1.06; }
  .deck { font-size: 17px; }
  .article-answer { margin-top: 20px; font-size: clamp(23px, 6.5vw, 29px); line-height: 1.36; }
  .meta { font-size: 11.5px; }
  .answer-card { padding: 21px; border-radius: 16px; }
  .answer-card h2 { font-size: 24px; }
  .answer-card p:last-child { font-size: 16px; }
  .article-shell { padding: 38px 0 68px; }
  .article-meta { margin-bottom: 24px; }
  .article-promise { font-size: 17px; }
  .article .intro { font-size: 21px; }
  .article section + section { margin-top: 44px; }
  .article h2 { margin-bottom: 18px; padding-top: 22px; font-size: 27px; }
  .article p, .article li { font-size: 17px; line-height: 1.66; }
  .article blockquote { padding: 18px; font-size: 22px; }
  .article-figure { margin: 30px 0; }
  .article-figure img { border-radius: 13px; }
  .ad-slot { padding: 11px; }
  .affiliate-card { grid-template-columns: 1fr; gap: 16px; padding: 18px; text-align: center; }
  .affiliate-creative img { margin-inline: auto; }
  .affiliate-copy { align-items: center; }
  .affiliate-text-card { grid-template-columns: 1fr; gap: 8px; padding: 18px; text-align: center; }
  .affiliate-text-card .affiliate-cta { justify-self: center; }
  .test-grid { grid-template-columns: 1fr; }
  .passport-list li, .timeline li { grid-template-columns: 1fr; gap: 5px; }
  .index-hero { padding: 44px 0 40px; }
  .index-grid { grid-template-columns: 1fr; }
  .index-card { min-height: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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