/* ============================================================
   Halloween: The Game Guide — 1978 Haddonfield theme
   "cold blue moonlight · black negative space · pumpkin orange"
   ============================================================ */

:root {
  --bg: #030405;
  --bg-deep: #050608;
  --bg-secondary: #080B0F;
  --bg-navy: #0B1420;
  --bg-blueblack: #09111C;
  --bg-raised: #0D1218;
  --bg-card: #0B0E12;
  --bg-table-row: #0B0E12;

  --text: #F2F2EF;
  --text-secondary: #B8BDC4;
  --text-muted: #7F8790;
  --blue-gray: #7F91A8;
  --moon: #CBD5E1;
  --brown: #21140D;

  --orange: #F28A19;
  --orange-muted: #C86A12;
  --orange-dark: #78350D;
  --orange-soft: #E69132;
  --orange-hover: #FFAB45;

  --border: rgba(125,145,170,.16);
  --border-strong: rgba(125,145,170,.28);
  --border-card: rgba(130,150,175,.14);
  --border-nav: rgba(120,145,170,.14);
  --border-table: rgba(120,145,170,.15);

  --danger: #7D3028;

  --radius: 3px;
  --content-width: 1240px;
  --article-width: 820px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Avenir Next", -apple-system, "Segoe UI", sans-serif;

  --shadow-cine: 0 18px 50px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  background:
    linear-gradient(180deg, #05080d 0%, #020304 55%, #050505 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* ---- film grain (global, subconscious) ---- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- subtle global vignette ---- */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.5) 100%);
}

img { max-width: 100%; height: auto; }

a { color: var(--orange-soft); text-decoration: none; }
a:hover { color: var(--orange-hover); }

::selection { background: rgba(242,138,25,.28); color: #fff; }

/* ============ HEADER / NAV ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: rgba(3,4,6,.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-nav);
}

.nav-shell {
  max-width: var(--content-width);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 24px;
  position: relative;
}

.brand { display: grid; gap: 1px; line-height: 1; white-space: nowrap; text-decoration: none; }
.brand-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: .01em;
  color: var(--text);
}
.brand-name em { font-style: normal; color: var(--orange); }

.header-nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.header-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #ADB3BB;
  padding: 6px 1px;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}
.header-nav a:hover { color: #FFFFFF; }
.header-nav a.active { color: var(--orange); }
.header-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--orange);
}

.search-toggle, .menu-toggle {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
}
.search-toggle:hover { color: var(--orange); }
.menu-toggle { display: none; font-size: 22px; }

/* ============ SEARCH ============ */

.search-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3,4,5,.96);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  padding: 16vh 24px 24px;
}
.search-panel.open { display: block; }
.search-close {
  position: absolute;
  top: 26px; right: 28px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--font-body);
}
.search-close:hover { border-color: var(--orange); color: #fff; }
.search-panel-inner { max-width: 720px; margin: 0 auto; }
.search-panel label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.search-panel input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(120,145,170,.22);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 17px;
  font-family: var(--font-body);
  padding: 14px 16px;
  outline: none;
}
.search-panel input:focus { border-color: var(--orange); }
.search-panel #searchResults { margin-top: 18px; }
.search-panel #searchResults a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(125,145,170,.14);
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}
.search-panel #searchResults a:hover { color: var(--orange); }
.search-panel #searchResults a span {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  flex-shrink: 0;
  min-width: 44px;
}
.search-empty { color: var(--text-muted); font-size: .92rem; margin: .6rem 0 0; }

/* ============ BREADCRUMB ============ */

.breadcrumb-wrap { border-bottom: 1px solid rgba(125,145,170,.1); background: rgba(5,6,8,.5); }
.breadcrumb {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { padding: 0 8px; color: rgba(125,145,170,.5); }
.breadcrumb .cur { color: var(--text-secondary); }

/* ============ BUTTONS ============ */

.btn, .button {
  display: inline-block;
  background: var(--orange);
  color: #070707;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 13px 22px;
  text-decoration: none;
  border: 1px solid var(--orange);
  transition: background .22s, border-color .22s, color .22s;
}
.btn:hover, .button:hover { background: #E98317; border-color: #E98317; color: #070707; }
.btn.secondary, .button.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}
.btn.secondary:hover, .button.secondary:hover {
  background: transparent;
  border-color: var(--orange);
  color: var(--orange);
}

/* ============ HERO (home) ============ */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #04050a;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(.82) contrast(1.08) saturate(.85);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 36%, rgba(0,0,0,.18) 72%),
    linear-gradient(0deg, #030405 0%, rgba(3,4,5,0) 46%),
    rgba(9,20,35,.16);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 24px 64px;
}
.hero .overline { display: block; margin-bottom: 18px; }
.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .92;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--text);
  max-width: 12ch;
}
.hero h1 .accent { color: var(--orange); }
.hero-lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ============ QUICK INFO STRIP ============ */

.quick-info {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.quick-info > div {
  padding: 16px 26px 16px 0;
  margin-right: 34px;
  display: grid;
  gap: 3px;
}
.quick-info span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.quick-info strong { font-size: 15px; font-weight: 600; color: var(--text); }

/* ============ SECTIONS ============ */

.section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 110px 24px;
}
.section--tight { padding: 70px 24px; }
.section-head { margin-bottom: 44px; }
.section-head .overline { display: block; margin-bottom: 14px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: .96;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 20px;
}
.section-lead { font-size: 17.5px; line-height: 1.7; color: var(--text-secondary); max-width: 760px; margin: 0; }
.section-rule {
  width: 48px;
  height: 2px;
  background: var(--orange);
  margin: 26px 0 0;
}

/* ============ CARD GRIDS (cinematic stills, not SaaS) ============ */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.cat-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .24s, transform .24s;
}
.cat-card:hover { border-color: rgba(242,138,25,.42); transform: translateY(-2px); }
.cat-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  filter: brightness(.86) contrast(1.05) saturate(.85);
  transition: filter .24s, transform .24s;
}
.cat-card:hover .cat-thumb { filter: brightness(.96) contrast(1.06) saturate(.92); transform: scale(1.02); }
.cat-body { padding: 18px 20px 22px; }
.cat-label, .tag-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.cat-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 8px;
}
.cat-body p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ============ FULL-BLEED CINEMATIC STRIP ============ */

.cinematic {
  position: relative;
  overflow: hidden;
  color: var(--text);
}
.cinematic-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.72) contrast(1.08) saturate(.82);
}
.cinematic-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #030405 0%, rgba(3,4,5,.25) 55%, rgba(3,4,5,.35) 100%),
    linear-gradient(90deg, rgba(3,4,5,.55) 0%, rgba(3,4,5,.1) 100%);
}
.cinematic-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 150px 24px;
}
.cinematic h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 16px 0 0;
}
.cinematic p.lede {
  color: var(--moon);
  font-size: 17px;
  max-width: 560px;
  margin: 18px 0 26px;
}

/* ============ EDITORIAL SPLIT FEATURES ============ */

.feature {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 0;
  align-items: stretch;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.feature.reverse { grid-template-columns: 1.25fr 1fr; }
.feature + .feature { margin-top: 0; }
.feature-media { position: relative; min-height: 420px; overflow: hidden; }
.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.8) contrast(1.06) saturate(.85);
}
.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
}
.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  background: transparent;
}
.feature-copy .overline { margin-bottom: 12px; }
.feature-copy h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: -.015em;
  color: var(--text);
  margin: 0 0 16px;
}
.feature-copy p { font-size: 16.5px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 14px; }
.feature-copy .btn { align-self: flex-start; margin-top: 10px; }

.feature-row { padding: 90px 0; }

/* ============ ARTICLE LAYOUT ============ */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 280px;
  gap: 64px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 54px 24px 90px;
}
.article { min-width: 0; max-width: var(--article-width); }

.article .overline { display: block; margin-bottom: 14px; }
.article h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 5vw, 60px);
  line-height: .96;
  letter-spacing: -.022em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 18px;
}
.article .page-intro { font-size: 19px; line-height: 1.62; color: var(--text-secondary); margin: 0 0 14px; }
.article-meta {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.article-meta span { color: var(--orange); }
.last-updated {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.article figure { margin: 36px 0; }
.article figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
  filter: brightness(.88) contrast(1.05) saturate(.88);
}
.article figcaption {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 9px;
}
.article figure.cine { position: relative; }
.article figure.cine::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius);
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.45) 100%);
}

.article h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: #fff;
  margin: 52px 0 16px;
  scroll-margin-top: 90px;
}
.article h2:first-of-type { margin-top: 38px; }
.article h2 .num {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--orange);
  margin-bottom: 8px;
}
.article h2 .rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--orange);
  margin-top: 14px;
}
.article h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.12;
  color: #fff;
  margin: 34px 0 12px;
  scroll-margin-top: 90px;
}
.article p { margin: 0 0 1.15em; font-size: 17px; line-height: 1.78; color: #C4C8CD; }
.article p a, .article li a { color: var(--orange-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242,138,25,.35); }
.article p a:hover, .article li a:hover { color: var(--orange-hover); }
.article ul, .article ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.article li { margin-bottom: .5em; }
.article strong { color: #E8E9E6; font-weight: 700; }
.article blockquote {
  margin: 28px 0;
  padding: 6px 0 6px 22px;
  border-left: 2px solid var(--orange-dark);
  color: var(--text-muted);
  font-style: italic;
}

/* ============ CALLOUTS ============ */

.tip, .danger {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
}
.tip { border-left: 3px solid #E5811D; }
.danger { border-left: 3px solid var(--danger); }
.tip strong, .danger strong {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tip strong { color: var(--orange); }
.danger strong { color: #C96A61; }
.tip p, .danger p { margin: 0; font-size: 15.5px; line-height: 1.7; color: #C0C5CB; }

/* ============ TABLES ============ */

.article table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  margin: 26px 0;
  border: 1px solid var(--border-table);
}
.article th {
  background: #0E1319;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  padding: 11px 14px;
}
.article td {
  padding: 11px 14px;
  border-top: 1px solid var(--border-table);
  vertical-align: top;
  line-height: 1.55;
}
.article tbody tr:nth-child(odd) td { background: #080A0D; }
.article tbody tr:nth-child(even) td { background: var(--bg-table-row); }

/* ============ TAGS ============ */

.tag {
  display: inline-block;
  border: 1px solid rgba(242,138,25,.35);
  border-radius: 2px;
  color: #E68A27;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin: 0 6px 6px 0;
}
.tag-wrap { margin: 6px 0 4px; }

/* ============ TOC SIDEBAR ============ */

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 14px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.toc details { display: block; }
.toc summary { list-style: none; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 12px;
}
.toc-links { display: grid; gap: 2px; padding-bottom: 6px; }
.toc-links a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 2px solid transparent;
  color: #818A94;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.4;
}
.toc-links a:hover { color: #fff; border-left-color: rgba(242,138,25,.5); }
.toc-links a.active { color: var(--text); border-left-color: var(--orange); }
.toc-related {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 16px;
}
.toc-related .toc-title { margin-bottom: 8px; }
.toc-related a {
  display: block;
  color: var(--text-muted);
  font-size: 13.5px;
  text-decoration: none;
  padding: 3px 0;
}
.toc-related a:hover { color: var(--orange); }

/* ============ RELATED GUIDES (in-article) ============ */

.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 14px;
  margin: 22px 0 10px;
}
.rel-card {
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.rel-card h3 { font-size: 15px; margin: 0 0 6px; font-family: var(--font-body); font-weight: 700; }
.rel-card h3 a { color: var(--text); }
.rel-card h3 a:hover { color: var(--orange); }
.rel-card p { font-size: 13px; line-height: 1.55; color: var(--text-muted); margin: 0 0 10px; }
.rel-card .card-link, .card-link {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
}
.rel-card .card-link:hover { color: var(--orange-hover); }

/* ============ FAQ ============ */

.faq-list { margin: 18px 0 6px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 2px;
  font-weight: 700;
  font-size: 16px;
  color: #E8E9E6;
  position: relative;
  padding-right: 26px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  color: var(--orange);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--orange); }
.faq-body { padding: 0 2px 16px; }

/* ============ META / SPEC BOXES ============ */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 24px 0;
  overflow: hidden;
}
.spec-grid > div { padding: 14px 18px; border-right: 1px solid var(--border); }
.spec-grid > div:last-child { border-right: 0; }
.spec-grid span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-gray);
  margin-bottom: 5px;
}
.spec-grid strong { color: var(--text); font-size: 15px; font-weight: 600; display: block; }

/* ============ ANCHOR LINK ============ */

.anchor-link {
  opacity: 0;
  margin-left: 8px;
  font-size: .7em;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
}
h2:hover .anchor-link, h3:hover .anchor-link { opacity: .7; }

/* ============ FOOTER ============ */

.site-footer {
  background: #020304;
  border-top: 1px solid rgba(100,120,145,.15);
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 34px;
}
.footer-brand .eyebrow { font-size: 10px; }
.footer-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--text);
  margin: 12px 0 0;
  max-width: 260px;
}
.footer-col strong {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 3px 0;
}
.footer-col a:hover { color: var(--orange); }
.footer-copy {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px 44px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid rgba(100,120,145,.08);
  padding-top: 24px;
}

/* ============ ERROR PAGE ============ */

.error-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 130px 24px 160px;
  text-align: left;
}
.error-code {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 110px;
  line-height: 1;
  color: var(--bg-raised);
  -webkit-text-stroke: 1px rgba(242,138,25,.5);
  margin-bottom: 10px;
}
.error-page h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px,5vw,52px); text-transform: uppercase; color: var(--text); margin: 0 0 14px; letter-spacing: -.02em; }
.error-page p { color: var(--text-muted); }

/* ============ CHANGELOG / ABOUT MISC ============ */

.changelog-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.changelog-item .date { color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.changelog-item h2 { font-size: 18px; margin: 4px 0 6px; color: var(--text); }
.changelog-item ul { margin: 4px 0 0; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .toc { position: static; order: 0; max-height: none; padding-bottom: 10px; }
  .toc-related { display: none; }
  .article-layout .article { order: 1; }
}

@media (max-width: 900px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature-media { min-height: 260px; }
  .feature-copy { padding: 40px 4px; }
  .feature-row { padding: 30px 0; }
  .section { padding: 80px 20px; }
  .cinematic-inner { padding: 100px 20px; }
  .hero { min-height: 540px; }
  .hero-copy { padding: 0 20px 44px; }
  .hero h1 { font-size: clamp(44px, 12vw, 64px); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 860px) {
  /* nav: hide links, show hamburger */
  .header-nav {
    position: fixed;
    inset: 0;
    z-index: 80;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: #030405;
    display: none;
  }
  .header-nav.open { display: flex; }
  .header-nav a {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    padding: 10px 20px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: -.01em;
    text-align: center;
  }
  .header-nav a.active { color: var(--orange); }
  .header-nav a.active::after { display: none; }
  .menu-toggle { display: inline-block; }
  .brand-name { font-size: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .article-layout { padding: 40px 20px 70px; }
  .article h1 { font-size: clamp(38px, 11vw, 52px); }
  .article p { font-size: 16px; }
  .quick-info > div { margin-right: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: minmax(0,1fr); }
  .rel-grid { grid-template-columns: minmax(0,1fr); }
}
