:root {
  color-scheme: dark;
  --ink: #e7dfcf;
  --muted: #b5a993;
  --paper: #171513;
  --panel: #24201c;
  --line: #6f624f;
  --gold: #d2b573;
  --gold-soft: #ddca9e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(126, 84, 58, 0.2), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(74, 98, 90, 0.18), transparent 24%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #141514 0%, #221d1a 46%, #121819 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

a {
  color: var(--gold);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.guide-header {
  align-items: center;
  background: linear-gradient(180deg, rgba(47, 42, 36, 0.99), rgba(27, 26, 23, 0.99));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
  display: flex;
  justify-content: space-between;
  min-height: 58px;
  padding: 6px max(18px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}

.guide-brand {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 9px;
  text-decoration: none;
}

.guide-brand span {
  display: grid;
  gap: 1px;
}

.guide-brand small,
.guide-kicker {
  color: #aa9878;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.guide-brand strong {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1;
}

.guide-logo {
  height: 42px;
  width: 42px;
}

.logo-shadow {
  fill: #090807;
}

.logo-shell {
  fill: #2a2925;
  stroke: #b39762;
  stroke-width: 3;
}

.logo-top {
  fill: #48453d;
}

.logo-left {
  fill: #312c29;
}

.logo-right {
  fill: #251d20;
}

.logo-low {
  fill: #512d37;
}

.logo-edge {
  fill: none;
  opacity: 0.68;
  stroke: #7f704f;
  stroke-width: 1.7;
}

.logo-zero-shadow {
  fill: #0e0c0b;
}

.logo-zero {
  fill: #d2b573;
  stroke: #f0dab0;
  stroke-width: 1;
}

.header-builder-link,
.primary-link {
  background: linear-gradient(180deg, #6e5a35, #44371f);
  border: 1px solid #b49761;
  color: #fff0cd;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 10px 13px;
  text-decoration: none;
  text-transform: uppercase;
}

.guide-shell,
.guide-footer {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 18px;
  padding-right: 18px;
}

.breadcrumbs {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 7px;
  padding: 18px 0 10px;
}

.guide-article {
  display: grid;
  gap: 14px;
}

.guide-hero,
.answer-card {
  background:
    linear-gradient(145deg, rgba(43, 38, 33, 0.98), rgba(24, 27, 25, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 9px);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: 520px;
  overflow: hidden;
}

.guide-hero-copy {
  align-content: center;
  display: grid;
  gap: 15px;
  padding: clamp(28px, 5vw, 62px);
}

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

h1,
h2 {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.93;
  margin-bottom: 0;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.06;
  margin-bottom: 12px;
}

p,
li {
  color: #c9c0b1;
  line-height: 1.65;
}

.guide-hero-copy p {
  font-size: 1.02rem;
  max-width: 64ch;
}

.primary-link {
  justify-self: start;
}

.guide-hero-characters {
  align-items: end;
  background:
    linear-gradient(180deg, rgba(15, 21, 22, 0.1), rgba(14, 13, 12, 0.8)),
    url("/assets/backgrounds/human.jpg") center / cover;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  padding: 32px 8px 0;
}

.guide-hero-characters img {
  align-self: end;
  display: block;
  height: auto;
  margin-left: -16%;
  object-fit: contain;
  width: 132%;
}

.answer-card {
  padding: clamp(22px, 3.5vw, 40px);
}

.answer-card > :last-child {
  margin-bottom: 0;
}

.answer-card p {
  max-width: 82ch;
}

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

.build-steps {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 22px 0;
  padding: 0;
}

.build-steps {
  counter-reset: build-step;
}

.build-steps li {
  background: rgba(14, 16, 15, 0.48);
  border-left: 3px solid #8f7648;
  counter-increment: build-step;
  padding: 12px 14px 12px 52px;
  position: relative;
}

.build-steps li::before {
  color: var(--gold);
  content: counter(build-step, decimal-leading-zero);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  left: 14px;
  position: absolute;
  top: 12px;
}

.build-steps strong {
  color: #e8dcc2;
}

.source-link {
  display: inline-flex;
  font-weight: 800;
  margin-top: 4px;
}

.source-link::after {
  content: " →";
  margin-left: 4px;
}

.official-sources {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.official-sources ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.official-sources a {
  font-weight: 750;
}

.guide-footer {
  border-top: 1px solid rgba(111, 98, 79, 0.6);
  margin-top: 22px;
  padding-bottom: 34px;
  padding-top: 22px;
}

.guide-footer > a {
  font-weight: 850;
}

.guide-footer p {
  font-size: 0.76rem;
  margin: 8px 0 0;
  max-width: 90ch;
}

@media (max-width: 850px) {
  .guide-hero,
  .answer-grid,
  .official-sources {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-hero {
    min-height: 0;
  }

  .guide-hero-characters {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .guide-header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .guide-brand small {
    display: none;
  }

  .guide-logo {
    height: 36px;
    width: 36px;
  }

  .guide-brand strong {
    font-size: 1.08rem;
  }

  .header-builder-link {
    font-size: 0.62rem;
    padding: 8px;
  }

  .guide-shell,
  .guide-footer {
    padding-left: 10px;
    padding-right: 10px;
  }

  .guide-hero-copy,
  .answer-card {
    padding: 22px 18px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.7rem);
  }

  .guide-hero-characters {
    min-height: 240px;
    padding-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
