:root {
  color-scheme: dark;
  --ink: #1c1917;
  --raised: #292524;
  --line: #44403c;
  --paper: #fafaf9;
  --muted: #a8a29e;
  --gold: #d97706;
  --gold-light: #f59e0b;
  --gold-dark: #b45309;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--ink); color: #e7e5e4; font-family: "DM Sans", system-ui, sans-serif; line-height: 1.72; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); text-underline-offset: .2em; }
a:hover { color: #fbbf24; }
.top-rule { height: 4px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)); }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(28,25,23,.92); border-bottom: 1px solid rgba(245,158,11,.18); backdrop-filter: blur(18px); }
.nav { width: min(1180px, calc(100% - 40px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: #fff; text-decoration: none; font-family: "Instrument Serif", Georgia, serif; font-size: 1.55rem; font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #d6d3d1; text-decoration: none; font-size: .92rem; font-weight: 700; }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--gold-light); }
.hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(245,158,11,.15); background: radial-gradient(circle at 78% 12%, rgba(217,119,6,.2), transparent 28%), linear-gradient(145deg, #11100f, #292524); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000, transparent); }
.hero-inner { position: relative; z-index: 1; width: min(980px, calc(100% - 40px)); margin: auto; padding: 88px 0 76px; }
.eyebrow { margin: 0 0 18px; color: var(--gold-light); font: 400 .74rem/1.4 "JetBrains Mono", monospace; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { color: #fff; line-height: 1.12; text-wrap: balance; }
h1 { max-width: 920px; margin: 0; font: 400 clamp(2.75rem, 7vw, 5.7rem)/.98 "Instrument Serif", Georgia, serif; letter-spacing: -.025em; }
.deck { max-width: 760px; margin: 26px 0 0; color: #d6d3d1; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font: 400 .75rem/1.5 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.hero-image { position: relative; z-index: 2; width: min(1180px, calc(100% - 40px)); aspect-ratio: 16/9; object-fit: cover; margin: -28px auto 0; border: 1px solid rgba(245,158,11,.3); border-radius: 2px; box-shadow: 0 34px 80px rgba(0,0,0,.42); }
.content-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 110px; display: grid; grid-template-columns: minmax(0, 760px) 250px; gap: 88px; align-items: start; }
.prose { min-width: 0; }
.prose > p:first-of-type { color: #fff; font-size: 1.25rem; line-height: 1.62; }
.prose p, .prose li { color: #d6d3d1; }
.prose h2 { margin: 3.3rem 0 1rem; padding-top: .5rem; font: 400 clamp(2rem, 4.2vw, 3.05rem)/1.05 "Instrument Serif", Georgia, serif; letter-spacing: -.015em; }
.prose h3 { margin: 2rem 0 .75rem; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .65rem 0; padding-left: .3rem; }
.prose strong { color: #fff; }
.prose blockquote { margin: 2.4rem 0; padding: 1.45rem 1.6rem; border-left: 3px solid var(--gold-light); background: rgba(245,158,11,.08); color: #fff; font: italic 400 1.25rem/1.55 "Instrument Serif", Georgia, serif; }
.tldr { margin: 2.5rem 0; padding: 26px 28px; border: 1px solid rgba(245,158,11,.38); background: linear-gradient(135deg, rgba(217,119,6,.15), rgba(41,37,36,.5)); }
.tldr h2 { margin: 0 0 .75rem; padding: 0; color: var(--gold-light); font: 700 .78rem/1.4 "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.tldr p { margin: 0; color: #fff; }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding: .8rem .85rem .8rem 2.65rem; border-bottom: 1px solid rgba(168,162,158,.18); }
.checklist li::before { content: "✓"; position: absolute; left: .75rem; color: var(--gold-light); font-weight: 700; }
.faq details { margin: .85rem 0; border: 1px solid var(--line); background: var(--raised); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; color: #fff; font-weight: 700; }
.faq details p { margin: 0; padding: 0 1.2rem 1.2rem; }
.aside { position: sticky; top: 102px; border-top: 2px solid var(--gold); padding-top: 20px; }
.aside h2 { margin: 0 0 12px; font: 400 1.65rem/1.1 "Instrument Serif", Georgia, serif; }
.aside p { color: var(--muted); font-size: .92rem; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .72rem 1.1rem; border-radius: 4px; color: white; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); text-decoration: none; font-weight: 700; box-shadow: 0 10px 30px rgba(217,119,6,.16); }
.button:hover { color: white; transform: translateY(-1px); }
.related { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related a { display: block; padding: 20px; border: 1px solid var(--line); background: var(--raised); color: #fff; text-decoration: none; font-weight: 700; }
.related a:hover { border-color: var(--gold); }
.site-footer { padding: 38px 20px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { width: min(1180px, 100%); margin: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }
.index-wrap { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 72px 0 110px; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.article-card { overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #292524, #211e1c); transition: transform .25s ease, border-color .25s ease; }
.article-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-copy { padding: 26px; }
.card-copy h2 { margin: 8px 0 12px; font: 400 clamp(1.7rem, 3vw, 2.2rem)/1.06 "Instrument Serif", Georgia, serif; }
.card-copy h2 a { color: #fff; text-decoration: none; }
.card-copy p { color: #bfbab7; }
.card-meta { color: var(--gold-light); font: 400 .7rem/1.4 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 860px) {
  .content-shell { grid-template-columns: 1fr; gap: 50px; }
  .aside { position: static; }
  .article-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { width: min(100% - 28px, 1180px); min-height: 64px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: .82rem; }
  .hero-inner, .index-wrap, .content-shell, .hero-image { width: calc(100% - 28px); }
  .hero-inner { padding: 62px 0 54px; }
  .content-shell { padding: 58px 0 80px; }
  .related-grid { grid-template-columns: 1fr; }
  .tldr { padding: 21px 19px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
