:root {
  --ink: #080504;
  --ink-2: #130c09;
  --panel: #1b100b;
  --panel-2: #24150c;
  --rice: #fff4d4;
  --paper: #f6e3b8;
  --gold: #f5bf47;
  --gold-2: #ffdd73;
  --ember: #d83d1f;
  --muted: #c8ad7b;
  --copy: rgba(255, 244, 212, .78);
  --line: rgba(245, 191, 71, .24);
  --font-display: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; scrollbar-color: var(--gold) var(--ink-2); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--rice);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 6%, rgba(245, 191, 71, .15), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(216, 61, 31, .14), transparent 34rem),
    linear-gradient(155deg, #050303, #140906 55%, #060303);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(245,191,71,.5); text-underline-offset: .2em; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 4px; }
::selection { color: #180c06; background: var(--gold-2); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: #100704;
  background: var(--gold-2);
  border-radius: 999px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 0;
  background: linear-gradient(to bottom, rgba(5,3,3,.92), rgba(5,3,3,.66), transparent);
  backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
  padding: 9px 13px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 8, 5, .9);
  box-shadow: 0 12px 35px rgba(0,0,0,.3);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; min-width: max-content; }
.brand img { width: 48px; height: 48px; border: 1px solid rgba(245,191,71,.4); border-radius: 50%; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font: 700 1.15rem var(--font-display); letter-spacing: .04em; }
.brand-copy span { margin-top: .3rem; color: var(--muted); font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; flex-wrap: wrap; }
.nav-links a { padding: .62rem .78rem; border-radius: 999px; color: rgba(255,244,212,.78); font-size: .86rem; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-2); background: rgba(245,191,71,.1); }
.nav-links .nav-cta { color: #120805; background: linear-gradient(135deg, var(--gold-2), var(--gold)); font-weight: 850; }
.nav-links .nav-cta:hover { color: #120805; background: var(--gold-2); }

.breadcrumbs { padding-top: 2rem; color: rgba(255,244,212,.56); font-size: .84rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .45rem; color: rgba(245,191,71,.5); }
.breadcrumbs a { text-decoration: none; }

.guide-hero { padding: clamp(3.5rem, 8vw, 7rem) 0 3.5rem; }
.eyebrow {
  display: inline-flex;
  padding: .46rem .74rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(245,191,71,.07);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 960px;
  margin: 1rem 0 0;
  color: var(--rice);
  font: 700 clamp(2.7rem, 7vw, 5.8rem)/.95 var(--font-display);
  letter-spacing: -.05em;
  text-wrap: balance;
}
.lede { max-width: 820px; margin: 1.35rem 0 0; color: var(--copy); font-size: clamp(1.06rem, 2vw, 1.25rem); line-height: 1.75; }
.byline { display: flex; flex-wrap: wrap; gap: .7rem 1rem; margin-top: 1.25rem; color: rgba(255,244,212,.52); font-size: .82rem; }

.quick-answer {
  margin-top: 2rem;
  max-width: 900px;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(245,191,71,.35);
  border-left: 5px solid var(--gold);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245,191,71,.11), rgba(216,61,31,.05));
  color: var(--copy);
  line-height: 1.7;
}
.quick-answer strong { color: var(--gold-2); }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: 6rem; }
.guide-content { min-width: 0; }
.guide-content section { scroll-margin-top: 115px; padding-top: 1rem; }
.guide-content h2 { margin: 3.2rem 0 1rem; color: var(--rice); font: 700 clamp(2rem, 4vw, 3.2rem)/1 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.guide-content h3 { margin: 2rem 0 .75rem; color: var(--gold-2); font: 700 1.45rem/1.15 var(--font-display); }
.guide-content p, .guide-content li { color: var(--copy); line-height: 1.75; }
.guide-content strong { color: var(--paper); }
.guide-content ul, .guide-content ol { padding-left: 1.3rem; }
.guide-content li + li { margin-top: .45rem; }
.guide-content code { padding: .12rem .32rem; border-radius: .35rem; color: var(--gold-2); background: rgba(245,191,71,.08); font-family: var(--font-mono); font-size: .92em; }
pre { overflow-x: auto; margin: 1.25rem 0; padding: 1.1rem; border: 1px solid var(--line); border-radius: 18px; background: #050303; color: rgba(255,244,212,.88); font: 500 .84rem/1.65 var(--font-mono); }
pre code { padding: 0; color: inherit; background: transparent; }

.toc { position: sticky; top: 110px; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(14,7,5,.82); }
.toc strong { display: block; color: var(--gold-2); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.toc ol { margin: .8rem 0 0; padding: 0; list-style: none; }
.toc li + li { margin-top: .5rem; }
.toc a { color: rgba(255,244,212,.65); font-size: .84rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--gold-2); }

.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 660px; background: rgba(9,5,4,.64); }
th, td { padding: .85rem .9rem; border-bottom: 1px solid rgba(245,191,71,.14); text-align: left; vertical-align: top; line-height: 1.5; }
th { color: var(--gold-2); background: rgba(245,191,71,.08); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
td { color: rgba(255,244,212,.72); font-size: .9rem; }
tr:last-child td { border-bottom: 0; }

.note { margin: 1.4rem 0; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 16px; color: var(--copy); background: rgba(255,244,212,.04); line-height: 1.7; }
.note.warning { border-color: rgba(216,61,31,.5); background: rgba(216,61,31,.08); }
.note strong { color: var(--gold-2); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1.4rem; }
.card { padding: 1.15rem; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, rgba(255,244,212,.055), rgba(30,14,8,.68)); }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.card-link:hover { transform: translateY(-3px); border-color: rgba(245,191,71,.55); }
.card-link .card-kicker { color: var(--gold-2); font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.card-link h2 { margin: .65rem 0 .5rem; color: var(--rice); font: 700 1.55rem/1.05 var(--font-display); }
.card-link p { color: rgba(255,244,212,.64); line-height: 1.55; }

.tool-paths { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin: 3.5rem 0 1rem; }
.tool-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(245,191,71,.1), rgba(12,6,4,.9)); }
.tool-card .label { color: var(--gold-2); font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.tool-card h2, .tool-card h3 { margin: .6rem 0; color: var(--rice); font: 700 1.8rem/1 var(--font-display); }
.tool-card p { color: rgba(255,244,212,.67); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .72rem .92rem; border: 1px solid rgba(245,191,71,.35); border-radius: 999px; color: #120805; background: linear-gradient(135deg, var(--gold-2), var(--gold)); font-weight: 850; text-decoration: none; }
.button:hover { color: #120805; transform: translateY(-2px); }
.button.secondary { color: var(--rice); background: rgba(5,3,3,.6); }
.button.secondary:hover { color: var(--gold-2); }

.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.sources h2 { margin-top: 0; font-size: 1.7rem; }
.sources li { overflow-wrap: anywhere; font-size: .88rem; }
.related { margin-top: 3.5rem; }
.related h2 { margin-top: 0; }

.site-footer { padding: 2rem 0 2.8rem; border-top: 1px solid var(--line); background: rgba(0,0,0,.2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: rgba(255,244,212,.55); font-size: .85rem; line-height: 1.6; }
.footer-links { display: flex; gap: .8rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,244,212,.78); }

@media (max-width: 820px) {
  .nav-inner { align-items: flex-start; border-radius: 26px; flex-direction: column; }
  .nav-links { justify-content: flex-start; }
  .guide-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .card-grid, .tool-paths { grid-template-columns: 1fr; }
  .guide-content section { scroll-margin-top: 235px; }
}
@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 1120px); }
  .nav-links a { padding: .58rem .65rem; font-size: .8rem; }
  .guide-hero { padding-top: 2.5rem; }
  h1 { font-size: clamp(2.55rem, 14vw, 4.2rem); }
  .quick-answer { padding: 1rem; }
  .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .site-nav, .toc, .tool-paths, .site-footer { display: none; }
  body { color: #111; background: white; }
  .guide-layout { display: block; }
  .guide-content p, .guide-content li, td { color: #222; }
  h1, .guide-content h2, .guide-content h3 { color: #000; }
}
