:root {
  --bg: #120d13;
  --bg-2: #1d1218;
  --ink: #f9ecd7;
  --muted: #c9ad94;
  --line: rgba(249, 236, 215, .18);
  --gold: #f3b84f;
  --red: #c43d42;
  --teal: #5ec4b1;
  --panel: rgba(31, 19, 24, .88);
  --paper: #f7ead2;
  --paper-ink: #21151a;
  --paper-muted: #674b42;
  --paper-line: rgba(84, 49, 52, .24);
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(196, 61, 66, .22), transparent 34rem),
    radial-gradient(circle at 86% 10%, rgba(94, 196, 177, .12), transparent 28rem),
    linear-gradient(180deg, #100b11 0%, #181016 52%, #0d0a0e 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 max(16px, calc((100vw - 1160px) / 2));
  background: rgba(18, 13, 19, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand, .nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #171013;
  background: var(--gold);
  border: 2px solid #ffe0a0;
  box-shadow: inset 0 0 0 2px #8d2d34;
}

.nav {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  transition: color .2s ease;
  white-space: nowrap;
}

.nav a:hover,
.breadcrumbs a:hover,
.article-toc a:hover,
.footer a:hover {
  color: var(--gold);
}

.section-band {
  position: relative;
  overflow: clip;
}

.article-hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: 72px 0 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: .4;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 13, 19, .98), rgba(18, 13, 19, .82) 42%, rgba(18, 13, 19, .4) 72%, rgba(18, 13, 19, .9)),
    linear-gradient(180deg, transparent 0%, #120d13 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.article-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 44px;
  align-items: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #d9bd9b;
  font-size: 13px;
  font-weight: 800;
}

.breadcrumbs span {
  color: rgba(249, 236, 215, .44);
}

.article-category {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 6px 10px;
  color: #21151a;
  background: var(--gold);
  border: 1px solid #ffe0a0;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 6px 0 rgba(0, 0, 0, .35);
}

.article-meta {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 850;
}

.article-summary {
  max-width: 720px;
  margin-bottom: 0;
  color: #ecd6bd;
  font-size: 18px;
}

.article-hero-image {
  margin: 0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(35, 21, 28, .78), rgba(18, 13, 19, .9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 340px;
  object-fit: cover;
  border: 2px solid rgba(243, 184, 79, .32);
}

.article-layout {
  padding: 56px 0 96px;
}

.article-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 820px);
  gap: 34px;
  align-items: start;
  justify-content: center;
}

.article-toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  background: rgba(31, 19, 24, .78);
  border: 1px solid var(--line);
  color: #ead0b1;
}

.article-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
}

.article-toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.article-toc a {
  color: #f3dfc2;
}

.article-content {
  min-width: 0;
  padding: clamp(24px, 4vw, 44px);
  color: var(--paper-ink);
  background: var(--paper);
  border: 3px solid #543134;
  box-shadow: var(--shadow);
}

.article-content > *:last-child {
  margin-bottom: 0;
}

.article-intro {
  color: #3f2829;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.6;
}

.article-content section {
  margin-top: 42px;
}

.article-content h2 {
  margin-bottom: 14px;
  color: #2c1a1f;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
}

.article-content h3 {
  margin: 28px 0 10px;
  color: #3e2528;
  font-size: 21px;
  line-height: 1.25;
}

.article-content p,
.article-content li,
.article-content td,
.article-content th {
  overflow-wrap: anywhere;
}

.article-content p,
.article-content li {
  color: #332123;
}

.article-content a {
  color: #7f272f;
  font-weight: 850;
}

.article-content a:hover {
  color: #4d171d;
}

.article-content ul,
.article-content ol {
  padding-left: 1.35rem;
}

.article-content li {
  margin: 8px 0;
}

.quick-answer-box,
.hub-cta {
  margin: 30px 0;
  padding: 22px;
  background: #fff5df;
  border: 2px solid #b88d5a;
}

.quick-answer-box h2,
.hub-cta h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  border: 1px solid var(--paper-line);
  background: #fff5df;
}

thead {
  background: #2a191d;
  color: var(--gold);
}

th, td {
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid var(--paper-line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
}

.related-guides {
  padding-top: 8px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-item {
  display: block;
  height: 100%;
  padding: 18px;
  color: #2b191d;
  background: #fff5df;
  border: 1px solid #b88d5a;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.article-content .guide-item {
  color: #2b191d;
}

.guide-item:hover {
  transform: translateY(-3px);
  border-color: #7f272f;
  box-shadow: 0 14px 28px rgba(84, 49, 52, .18);
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: #7f272f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.guide-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.guide-item p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #ffe0a0;
  background: var(--gold);
  color: #21151a;
  font-size: 15px;
  font-weight: 950;
  transition: transform .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  color: #21151a;
}

.article-content .button {
  color: #21151a;
}

.quick-answer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-answer-nav a,
.qa-card {
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.quick-answer-nav a {
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(31, 19, 24, .72);
  font-size: 13px;
  font-weight: 850;
}

.quick-answer-nav a:hover {
  color: var(--gold);
  border-color: rgba(243, 184, 79, .55);
}

.qa-index-shell {
  display: grid;
  gap: 34px;
}

.qa-category-section {
  padding: clamp(22px, 4vw, 36px);
  background: rgba(31, 19, 24, .78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.qa-category-heading {
  max-width: 780px;
  margin-bottom: 22px;
}

.qa-category-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.qa-category-heading p:not(.article-category) {
  margin-bottom: 0;
  color: #ecd6bd;
}

.qa-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.qa-card {
  display: block;
  min-width: 0;
  padding: 18px;
  background: #f7ead2;
  color: #21151a;
}

.qa-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 184, 79, .72);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
}

.qa-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #7f272f;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.qa-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.18;
}

.qa-card p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 14px;
  line-height: 1.5;
}

.hub-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.hub-cta p {
  margin: 0;
  color: var(--paper-muted);
}

.footer {
  border-top: 1px solid var(--line);
  background: #0d0a0e;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  font-size: 14px;
}

.footer strong {
  color: var(--ink);
}

.footer p {
  margin: 4px 0 0;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .article-hero {
    min-height: auto;
    padding: 42px 0 44px;
  }

  .article-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-hero-image {
    max-width: 560px;
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-toc {
    display: none;
  }

  .guide-list,
  .qa-card-grid,
  .hub-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .nav {
    font-size: 13px;
  }

  h1 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .article-summary {
    font-size: 16px;
  }

  .article-hero-image {
    padding: 10px;
  }

  .article-hero-image img {
    max-height: 240px;
  }

  .article-layout {
    padding: 28px 0 64px;
  }

  .article-content {
    padding: 22px 18px;
    border-width: 2px;
  }

  .article-intro {
    font-size: 18px;
  }

  .quick-answer-box,
  .hub-cta {
    padding: 18px;
  }
}
