:root {
  color-scheme: dark;
  --bg: #0b0d0f;
  --panel: #12161a;
  --panel-2: #181e23;
  --line: #29323a;
  --text: #edf2f5;
  --muted: #9caab4;
  --accent: #f0b34b;
  --accent-soft: rgba(240, 179, 75, .12);
  --max: 1040px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
.site-header { min-height: 64px; padding: 14px max(20px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(11,13,15,.92); }
.brand { color: var(--text); font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.brand span { color: var(--accent); font-weight: 650; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: .9rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
main { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 34px 0 72px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: .84rem; margin-bottom: 46px; }
.breadcrumbs a { color: var(--muted); }
.hero, .page-head { max-width: 780px; padding: 24px 0 38px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.35rem, 6vw, 4.8rem); margin: 8px 0 20px; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 44px 0 16px; }
p { max-width: 72ch; }
.eyebrow { margin: 0; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lede { color: #c7d1d7; font-size: clamp(1.08rem, 2.3vw, 1.3rem); line-height: 1.6; }
.official { color: var(--muted); font-size: .9rem; }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mod-card, .guide-callout { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, var(--panel-2), var(--panel)); }
.mod-card h2, .guide-callout h2 { margin: 9px 0 14px; }
.mod-card h2 a, .guide-callout h2 a { color: var(--text); }
.button { display: inline-block; padding: 9px 13px; border: 1px solid rgba(240,179,75,.4); border-radius: 8px; background: var(--accent-soft); text-decoration: none; }
.card-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-grid a { display: block; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-decoration: none; }
.card-grid span { display: block; color: var(--accent); font-size: .73rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.card-grid strong { display: block; margin-top: 6px; font-size: 1.15rem; }
.card-grid p { color: var(--muted); margin-bottom: 0; }
.guide-callout { margin-top: 26px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 1px; border-radius: 12px; background: var(--line); overflow: hidden; }
.facts div { padding: 18px; background: var(--panel); }
.facts dt { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.facts dd { margin: 7px 0 0; font-size: 1.14rem; font-weight: 750; }
.prose { max-width: 760px; }
.related { padding-left: 1.2rem; }
.related li { margin: 7px 0; }
.steps { max-width: 800px; padding: 0; list-style: none; counter-reset: steps; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; margin: 0 0 10px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.steps h2 { margin: 2px 0 8px; font-size: 1.2rem; }
.steps p { margin: 0; color: #c4cdd3; }
.step-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
footer { padding: 28px max(20px, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
footer p { margin: 5px 0; }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .mod-grid, .card-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 2.5rem; }
}
