/* WARDOGS Guides — tactical industrial HUD guide chrome */
:root {
  color-scheme: dark;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading: "Segoe UI", "Arial Narrow", "Helvetica Condensed", Impact, Haettenschweiler, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  /* Palette — charcoal / olive / amber */
  --bg: #0b0d0a;
  --bg-elev: #12150f;
  --surface: #161a13;
  --surface-2: #1c2218;
  --text: #e6e9df;
  --muted: #9aa392;
  --border: #2c3426;
  --border-hard: #3d4a34;
  --olive: #6b7c4a;
  --olive-bright: #8fa366;
  --olive-dim: #3a4430;
  --amber: #d4a017;
  --amber-hot: #f0b429;
  --amber-dim: #8a6a12;
  --link: #c9b45a;
  --link-hover: #f0d878;
  --danger-tape: #c9a227;
  --nav-bg: rgba(12, 14, 10, 0.96);
  --th-bg: #1a2016;
  --zebra: #141810;
  --verify-bg: #2a2208;
  --verify-text: #f0d060;
  --callout-bg: #141910;
  --callout-border: #6b7c4a;
  --related-bg: #12150f;
  --shadow: 0 0 0 1px rgba(107, 124, 74, 0.15), 0 8px 24px rgba(0, 0, 0, 0.45);
  --radius: 2px;
  --content: 860px;
  --wide: 1100px;
  --pad: 1.25rem;
  --header-h: 3.35rem;
  --clip: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.12) 3px,
      rgba(0, 0, 0, 0.12) 4px
    ),
    linear-gradient(rgba(107, 124, 74, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 124, 74, 0.035) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-inline: 0;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--amber);
  color: #0b0d0a;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--amber-hot);
}
.skip-link:focus {
  top: 0.75rem;
  color: #0b0d0a;
}

/* —— Single professional header bar —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--border-hard);
  box-shadow: 0 1px 0 rgba(212, 160, 23, 0.28), 0 10px 22px rgba(0, 0, 0, 0.45);
}

.header-inner {
  max-width: calc(var(--wide) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0.55rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  min-height: var(--header-h);
}

.brand-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  flex: 0 0 auto;
  margin-right: auto;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
  image-rendering: auto;
}

.brand-wordmark {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(212, 160, 23, 0.25);
}

.brand-home:hover .brand-wordmark {
  color: var(--amber-hot);
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 2px solid var(--olive);
  padding-left: 0.6rem;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hard);
  background: var(--surface-2);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-btn span,
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--amber);
  position: relative;
}
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-btn span::before { top: -6px; }
.nav-toggle-btn span::after { top: 6px; }

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
}

.primary-nav a {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-left: 2px solid transparent;
}

.primary-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
  border-left-color: var(--amber);
}

.primary-nav a[aria-current="page"],
.primary-nav a.is-active {
  color: var(--amber-hot);
  background: var(--surface);
  border-color: var(--border-hard);
  border-left-color: var(--amber);
  box-shadow: inset 0 -2px 0 var(--amber);
}

.site-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-left: 0.25rem;
  border: 1px solid var(--border-hard);
  background: var(--bg-elev);
  max-width: 14rem;
  flex: 1 1 10rem;
}

.site-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
  font-family: var(--font);
}
.site-search input[type="search"]::placeholder {
  color: var(--muted);
}
.site-search input[type="search"]:focus {
  outline: 2px solid var(--olive);
  outline-offset: -2px;
}
.site-search button {
  border: 0;
  border-left: 1px solid var(--border-hard);
  background: var(--olive-dim);
  color: var(--text);
  font-family: var(--heading);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}
.site-search button:hover {
  background: var(--olive);
  color: #0b0d0a;
}

.cluster-row {
  max-width: calc(var(--wide) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad) 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cluster-chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.cluster-chip:hover {
  color: var(--amber-hot);
  border-color: var(--amber-dim);
}
.cluster-chip.is-active {
  color: var(--amber-hot);
  border-color: var(--amber);
  background: rgba(212, 160, 23, 0.08);
}

@media (max-width: 820px) {
  .nav-toggle-btn {
    display: inline-flex;
  }
  .primary-nav,
  .site-search {
    display: none;
    width: 100%;
    flex: 1 1 100%;
  }
  .nav-toggle:checked ~ .primary-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-toggle:checked ~ .site-search {
    display: flex;
    max-width: none;
  }
  .primary-nav a {
    border-left-width: 3px;
  }
}

/* —— Page shell —— */
main {
  max-width: var(--content);
  width: min(100% - 2 * var(--pad), var(--content));
  margin: 1.15rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border-hard);
  border-left: 3px solid var(--olive);
  clip-path: var(--clip);
  padding: 1.5rem 1.35rem 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 2px;
  background: var(--amber);
}

@media (min-width: 640px) {
  main {
    padding: 1.85rem 1.85rem 2.35rem;
  }
}

body.layout-hub main,
body.layout-home main,
body.layout-utility main {
  max-width: var(--wide);
  width: min(100% - 2 * var(--pad), var(--wide));
  clip-path: none;
}

/* Breadcrumbs */
.breadcrumbs {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
}
.breadcrumbs li {
  margin: 0;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--olive);
  opacity: 0.7;
}
.breadcrumbs a {
  text-decoration: none;
  color: var(--link);
}
.breadcrumbs a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* TOC */
.toc {
  margin: 0 0 1.35rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--olive);
}
.toc-label {
  margin: 0 0 0.45rem;
  font-family: var(--heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-bright);
}
.toc ol {
  margin: 0;
  padding-left: 1.15rem;
}
.toc li {
  margin: 0.15rem 0;
  font-size: 0.9rem;
}

/* —— Type —— */
h1, h2, h3 {
  font-family: var(--heading);
  line-height: 1.2;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  margin: 0.35rem 0 1rem;
  letter-spacing: 0.06em;
}

h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 3px;
  margin-top: 0.65rem;
  background: linear-gradient(90deg, var(--amber), transparent);
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.85rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  color: var(--olive-bright);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

h3 {
  font-size: 1.02rem;
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.05em;
  color: var(--text);
  text-transform: none;
  font-weight: 700;
  font-family: var(--font);
}

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.35rem; }
li { margin: 0.28rem 0; }
li > ul, li > ol { margin-bottom: 0.35rem; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.75rem 0;
  background: linear-gradient(90deg, var(--olive-dim), transparent);
  height: 1px;
}

strong {
  font-weight: 700;
  color: #f0f2ea;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--th-bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.08em 0.35em;
  color: var(--amber-hot);
}

pre {
  overflow-x: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--olive);
  border-radius: 0;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
}

pre code {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
}

/* Meta / stamps */
.version-stamp,
.priority {
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.priority {
  margin-bottom: 0.75rem;
  display: inline-block;
  border: 1px solid var(--amber-dim);
  padding: 0.2rem 0.55rem;
  background: rgba(212, 160, 23, 0.08);
  color: var(--amber);
}

/* Hero */
.hero {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.25rem 1.4rem;
  background:
    linear-gradient(135deg, rgba(107, 124, 74, 0.12), transparent 55%),
    var(--bg-elev);
  border: 1px solid var(--border-hard);
  border-left: 4px solid var(--amber);
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0 10px,
    transparent 10px 18px
  );
  opacity: 0.55;
}

.hero .kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-bright);
  margin: 0 0 0.55rem;
}

.hero h1 { margin-top: 0; }

.hero .lede {
  color: var(--muted);
  max-width: 44rem;
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
}

.hero-storeline {
  max-width: 44rem;
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: var(--text);
  border-left: 2px solid var(--olive);
  padding-left: 0.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-amber {
  background: var(--amber);
  color: #0b0d0a;
  border-color: var(--amber-hot);
}
.btn-amber:hover {
  background: var(--amber-hot);
  color: #0b0d0a;
}

.btn-olive {
  background: var(--olive-dim);
  color: var(--text);
  border-color: var(--olive);
}
.btn-olive:hover {
  background: var(--olive);
  color: #0b0d0a;
}

.section-label {
  font-family: var(--heading);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-label::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--amber);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  flex-shrink: 0;
}

.section-label.secondary {
  color: var(--olive-bright);
  margin-top: 2rem;
}
.section-label.secondary::before {
  background: var(--olive);
}

/* Guide cards */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 0.5rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .guide-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.05rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--olive);
  text-decoration: none;
  color: inherit;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  border-color: var(--olive-bright);
  border-top-color: var(--amber);
  background: #1f271a;
  color: inherit;
  transform: translateY(-1px);
}

.guide-card .card-title {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
}

.guide-card:hover .card-title { color: var(--amber-hot); }

.guide-card .card-blurb {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.guide-card .card-meta {
  margin-top: auto;
  padding-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-bright);
}

.guide-card.priority-p1 { border-top-color: var(--amber); }
.guide-card.priority-p1 .card-meta { color: var(--amber); }

/* Callouts */
.callout,
.status-callout {
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
  border-left: 4px solid var(--olive);
  border-radius: 0;
  padding: 0.85rem 1rem;
  margin: 0 0 1.15rem;
  box-shadow: inset 0 0 0 1px rgba(107, 124, 74, 0.08);
  position: relative;
}

.callout::before,
.status-callout::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  opacity: 0.7;
}

mark.verify {
  background: repeating-linear-gradient(
    -45deg,
    var(--verify-bg),
    var(--verify-bg) 6px,
    #3a300c 6px,
    #3a300c 12px
  );
  color: var(--verify-text);
  padding: 0.12em 0.45em;
  border: 1px solid var(--amber-dim);
  border-radius: 0;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.88em;
  letter-spacing: 0.03em;
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.2);
}

/* Tables */
.table-wrap {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--border-hard);
  background: var(--bg-elev);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  margin: 0;
}

th, td {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th:last-child, td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }

th {
  background: var(--th-bg);
  font-weight: 700;
  font-family: var(--heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--amber-hot);
  white-space: nowrap;
  border-bottom: 2px solid var(--amber);
}

tbody tr:nth-child(even) td { background: var(--zebra); }
tbody tr:hover td { background: rgba(107, 124, 74, 0.08); }

/* Related reads */
aside.related-reads,
.related-reads {
  max-width: var(--content);
  width: min(100% - 2 * var(--pad), var(--content));
  margin: 1.5rem auto 0;
  padding: 1.15rem 1.25rem 1.3rem;
  background: var(--related-bg);
  border: 1px solid var(--border-hard);
  border-top: 2px solid var(--olive);
  box-shadow: var(--shadow);
}

body.layout-hub aside.related-reads,
body.layout-home aside.related-reads,
body.layout-utility aside.related-reads {
  max-width: var(--wide);
  width: min(100% - 2 * var(--pad), var(--wide));
}

aside.related-reads h2,
.related-reads h2 {
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--olive-bright);
}

aside.related-reads ul,
.related-reads ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

@media (min-width: 560px) {
  aside.related-reads ul,
  .related-reads ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

aside.related-reads li a,
.related-reads li a {
  display: block;
  padding: 0.55rem 0.7rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--olive);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

aside.related-reads li a:hover,
.related-reads li a:hover {
  border-left-color: var(--amber);
  color: var(--amber-hot);
  border-color: var(--border-hard);
}

/* Footer — multi-column */
.site-footer {
  max-width: calc(var(--wide) + 2 * var(--pad));
  margin: 2rem auto 0;
  padding: 1.75rem var(--pad) 2.5rem;
  color: #6e7668;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 560px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-heading {
  font-family: var(--heading);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-bright);
  margin: 0 0 0.55rem;
  padding: 0;
  border: 0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin: 0.28rem 0; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.footer-col a:hover { color: var(--link-hover); }

.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.footer-disclaimer {
  max-width: 52rem;
  margin: 0 0 0.55rem;
  color: #7a8274;
  line-height: 1.5;
}
.footer-stamp {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #5c6456;
}

/* Mobile comfort */
@media (max-width: 480px) {
  :root { --pad: 1rem; }
  body { font-size: 1rem; }
  main { padding: 1.15rem 1rem 1.5rem; }
  .brand-wordmark { letter-spacing: 0.12em; font-size: 1.05rem; }
  .brand-tag { font-size: 0.62rem; }
  .hero { padding: 1.1rem 1rem 1.2rem; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-card, .btn { transition: none; }
}

/* Screenshot TODO placeholders */
figure.shot-todo {
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  border: 1px dashed var(--amber-dim);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.shot-todo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(212, 160, 23, 0.06) 8px,
      rgba(212, 160, 23, 0.06) 16px
    ),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.shot-todo-label {
  font-family: var(--heading);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  padding: 0.45rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
}
figure.shot-todo figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-family: var(--mono);
}

/* Captured public-page / Steam store shots */
figure.shot {
  margin: 1.25rem 0;
  padding: 0;
  border: 1px solid #2a3324;
  background: #12150f;
  border-radius: 6px;
  overflow: hidden;
}
figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  background: #0b0d0a;
}
figure.shot figcaption {
  font-size: 0.85rem;
  color: #a8b39a;
  padding: 0.55rem 0.75rem 0.75rem;
  line-height: 1.4;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #2a3324;
}


/* Home denser chrome — no gameplay shots / video */
body.layout-home .hero-home {
  padding: 1.7rem 1.4rem 1.55rem;
  background:
    radial-gradient(ellipse at 88% 12%, rgba(212, 160, 23, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(107, 124, 74, 0.18), transparent 52%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(107, 124, 74, 0.04) 12px,
      rgba(107, 124, 74, 0.04) 13px
    ),
    var(--bg-elev);
  overflow: hidden;
}
body.layout-home .hero-home::before {
  content: "";
  position: absolute;
  right: -1.2rem;
  top: -1.4rem;
  width: 220px;
  height: 220px;
  background: url("logo.png") no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none;
}
body.layout-home .hero-home h1 {
  max-width: 18ch;
  font-size: clamp(1.7rem, 4vw, 2.45rem);
}
.stat-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  padding: 0;
}
.stat-strip li {
  margin: 0;
  padding: 0.45rem 0.7rem;
  background: rgba(11, 13, 10, 0.55);
  border: 1px solid var(--border-hard);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-strip strong {
  display: block;
  font-family: var(--heading);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  font-weight: 800;
}
.start-path {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 0 0 0.4rem;
  padding: 0;
}
@media (min-width: 800px) {
  .start-path { grid-template-columns: repeat(3, 1fr); }
}
.start-path > li { margin: 0; }
.start-path a {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 7.5rem;
  padding: 1rem 1.05rem 1.1rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--amber);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.start-path a:hover {
  background: #1f271a;
  border-color: var(--olive-bright);
  transform: translateY(-2px);
  color: inherit;
}
.start-num {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--amber);
  line-height: 1;
}
.start-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.start-copy strong {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}
.start-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.map-strip {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  padding: 0;
}
@media (min-width: 700px) {
  .map-strip { grid-template-columns: repeat(3, 1fr); }
}
.map-strip > li { margin: 0; }
.map-strip a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.05rem 1.2rem;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(107, 124, 74, 0.16), transparent 55%),
    var(--surface-2);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--olive);
  min-height: 5.5rem;
}
.map-strip a:hover {
  border-color: var(--olive-bright);
  color: inherit;
}
.map-strip strong {
  font-family: var(--heading);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.map-strip span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive-bright);
}
.home-maps-note {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
