:root {
  --ink: #17202a;
  --muted: #5f6f7c;
  --panel: #ffffff;
  --soft: #f4f7f6;
  --line: #d9e1df;
  --blue: #1c6ea4;
  --green: #28785f;
  --gold: #b47b18;
  --red: #a23f32;
  --shadow: 0 18px 45px rgba(23, 32, 42, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 225, 223, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max-width));
  min-height: 72px;
  margin: 0 auto;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: #edf3f1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--ink);
  content: "";
}

.menu-icon::before {
  transform: translateY(-7px);
}

.menu-icon::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: auto;
  overflow: hidden;
  color: #ffffff;
  background: #17202a;
}

.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 20, 28, 0.88), rgba(13, 20, 28, 0.45) 54%, rgba(13, 20, 28, 0.18)),
    linear-gradient(0deg, rgba(13, 20, 28, 0.46), rgba(13, 20, 28, 0.05));
  content: "";
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 4rem 0;
}

.hero-content h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.35rem, 5.4vw, 4.25rem);
  line-height: 1.04;
}

.hero-content p {
  max-width: 620px;
  font-size: 1.08rem;
}

.eyebrow,
.section-label {
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd87a;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: #ffffff;
  color: var(--ink);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #ffffff;
}

.button-solid {
  border: 0;
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
}

.section {
  padding: 4.5rem 0;
}

.section-inner {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.intro-section {
  background: #ffffff;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
}

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

.guide-card,
.tool-list article,
.article-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 1.35rem;
}

.guide-card h3,
.tool-list h3,
.article-card h3 {
  margin: 0.8rem 0 0.45rem;
  line-height: 1.25;
}

.guide-card p,
.tool-list p,
.article-card p {
  color: var(--muted);
}

.guide-link-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 1.1rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.guide-link-list a {
  font-weight: 700;
}

.guide-card .text-link {
  margin-top: auto;
}

.section-action {
  margin-top: 1.25rem;
}

.game-tag {
  width: fit-content;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.guide-card .game-tag,
.article-hero .game-tag {
  color: #ffffff;
}

.winter {
  background: var(--blue);
}

.modern {
  background: var(--red);
}

.frontier {
  background: var(--green);
}

.text-link {
  color: var(--green);
  font-weight: 800;
}

.tools-section {
  background: #ffffff;
}

.tool-list {
  display: grid;
  gap: 0.8rem;
}

.tool-list article {
  padding: 1rem;
  box-shadow: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem max(1rem, calc((100% - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #dbe6e3;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  color: #ffffff;
  font-weight: 700;
}

.article-hero {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.article-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: center;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 4rem 0;
}

.article-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
}

.article-hero p {
  color: var(--muted);
}

.article-card {
  padding: 1rem;
}

.article-shell {
  width: min(100% - 2rem, 860px);
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.article-body {
  border-radius: 8px;
  background: #ffffff;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}

.article-body h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.2rem;
}

.article-body li + li {
  margin-top: 0.6rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.article-nav a {
  color: var(--green);
  font-weight: 800;
}

.guide-hero {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.guide-hero-inner {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 4rem 0 3rem;
}

.guide-hero-copy {
  max-width: 860px;
}

.guide-hero h1 {
  margin: 0.65rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.08;
}

.guide-summary {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.guide-category {
  margin: 0.85rem 0 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2.5rem;
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 3rem 0 4.5rem;
}

.guide-sidebar {
  min-width: 0;
}

.toc-box {
  position: sticky;
  top: 96px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.toc-box h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.toc-box ol {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
}

.toc-box a {
  color: var(--green);
  font-weight: 800;
}

.guide-main {
  min-width: 0;
  border-radius: 8px;
  background: #ffffff;
  padding: clamp(1.25rem, 4vw, 2.35rem);
}

.guide-section {
  scroll-margin-top: 96px;
  padding-top: 0.35rem;
}

.guide-section + .guide-section,
.guide-section + .info-box,
.info-box + .guide-section,
.info-box + .related-guides,
.faq-section + .related-guides {
  margin-top: 2rem;
}

.guide-section h2,
.info-box h2,
.related-guides h2 {
  margin: 0 0 0.8rem;
  font-size: 1.55rem;
  line-height: 1.2;
}

.guide-section p,
.guide-section li,
.info-box li,
.faq-section p,
.related-guides a {
  color: var(--muted);
}

.guide-section ul,
.guide-section ol,
.info-box ul {
  padding-left: 1.2rem;
}

.guide-section li + li,
.info-box li + li {
  margin-top: 0.55rem;
}

.info-box {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 1.2rem;
}

.quick-tips {
  border-left-color: var(--gold);
}

.pros-cons {
  border-left-color: var(--blue);
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pros-cons-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.faq-section p {
  margin-bottom: 0;
}

.related-guides {
  scroll-margin-top: 96px;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.related-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.related-guide-grid a {
  display: block;
  min-height: 128px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.related-guide-grid a:hover,
.related-guide-grid a:focus {
  border-color: var(--green);
}

.related-guide-grid span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--green);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.calculator-shell {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
  padding: 3rem 0 4.5rem;
}

.calculator-panel {
  border-radius: 8px;
  background: #ffffff;
  padding: clamp(1.25rem, 4vw, 2.35rem);
  box-shadow: var(--shadow);
}

.resource-calculator {
  display: grid;
  gap: 1.25rem;
}

.calculator-grid {
  display: grid;
  gap: 0.75rem;
}

.calculator-row {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 1fr) minmax(140px, 1fr) minmax(120px, 0.8fr);
  gap: 0.75rem;
  align-items: center;
}

.calculator-row-heading {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.calculator-row label {
  font-weight: 800;
}

.calculator-row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  font: inherit;
}

.calculator-row input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(40, 120, 95, 0.16);
}

.calculator-row output {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border-radius: 6px;
  background: #edf3f1;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  font-weight: 800;
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.calculator-message {
  margin: 0;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.calculator-message.is-success {
  background: #e7f4ed;
  color: var(--green);
}

.calculator-message.is-warning {
  background: #fff4dc;
  color: #8a5a00;
}

.calculator-guide {
  margin-top: 1.5rem;
  box-shadow: none;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .split-layout,
  .article-hero-inner {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    display: none;
  }

  .guide-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .toc-box {
    position: static;
  }

  .related-guide-grid,
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }

  .calculator-row,
  .calculator-row-heading {
    grid-template-columns: 1fr;
  }

  .calculator-row {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }

  .calculator-row-heading {
    display: none;
  }

  .calculator-row input,
  .calculator-row output {
    min-height: 44px;
  }

  .calculator-row output {
    justify-content: space-between;
  }

  .calculator-row output::before {
    content: attr(data-label);
    color: var(--muted);
    font-weight: 800;
  }

}

@media (max-width: 520px) {
  .section {
    padding: 3rem 0;
  }

  .hero-content {
    padding: 4rem 0;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    display: block;
  }

  .guide-hero-inner {
    padding: 3rem 0 2rem;
  }

  .guide-main {
    padding: 1.1rem;
  }
}
