:root {
  --ink: #241a11;
  --paper: #ead7ad;
  --paper-light: #f5e8cb;
  --paper-dark: #c9a96d;
  --charcoal: #17120d;
  --brown: #4a2f1b;
  --brown-dark: #2a190e;
  --felt: #123b2c;
  --felt-dark: #09251b;
  --brass: #d5a94d;
  --cream: #f6e8c7;
  --muted: #cbbd9d;
  --line: rgba(65, 43, 22, 0.22);
  --shadow: 0 22px 55px rgba(7, 5, 3, 0.35);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--charcoal);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}

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

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 0.65rem 1rem;
  color: var(--charcoal);
  background: var(--cream);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
  padding: 0.65rem clamp(1rem, 4vw, 4.5rem);
  color: var(--cream);
  background: rgba(19, 14, 9, 0.94);
  border-bottom: 1px solid rgba(213, 169, 77, 0.35);
  backdrop-filter: blur(12px);
}

.header-brand { width: clamp(150px, 18vw, 230px); }
.header-brand img { width: 100%; height: auto; }

nav { display: flex; align-items: center; gap: clamp(0.8rem, 2.5vw, 2rem); }
nav a { font-size: 0.83rem; font-weight: 750; letter-spacing: 0.08em; text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a:focus-visible { color: var(--brass); }

.nav-play {
  padding: 0.5rem 0.85rem;
  color: var(--charcoal);
  background: var(--brass);
  border-radius: 4px;
}

.nav-play:hover, .nav-play:focus-visible { color: var(--charcoal); background: var(--cream); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  align-items: center;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 17% 22%, rgba(196, 135, 52, 0.18), transparent 28%),
    linear-gradient(115deg, #20150d, #0d0a07 67%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image: repeating-linear-gradient(104deg, transparent 0 17px, rgba(255,255,255,0.035) 17px 18px);
}

.hero-copy { padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7.5rem); }

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.08;
}

h1 { max-width: 850px; margin-bottom: 1.5rem; font-size: clamp(3rem, 6.6vw, 6.8rem); letter-spacing: -0.045em; }
h2 { margin-bottom: 1.25rem; font-size: clamp(2.45rem, 5vw, 5.25rem); letter-spacing: -0.035em; }
h3 { margin-bottom: 1rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }

.hero-lede { max-width: 780px; color: #ded0b1; font-size: clamp(1.05rem, 1.5vw, 1.3rem); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin: 2rem 0 2.5rem; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--brass);
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: #171009; background: var(--brass); box-shadow: 0 8px 28px rgba(213, 169, 77, 0.18); }
.button-primary:hover, .button-primary:focus-visible { background: var(--cream); }
.button-large { padding: 1rem 1.8rem; }

.text-link { color: var(--cream); font-weight: 750; text-underline-offset: 0.3em; }
.text-link:hover, .text-link:focus-visible { color: var(--brass); }

.hero-facts { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 0; padding: 0; color: var(--muted); list-style: none; font-size: 0.9rem; }
.hero-facts strong { display: block; color: var(--cream); font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }

.hero-art { align-self: stretch; min-height: 620px; margin: 0; box-shadow: -35px 0 90px rgba(0,0,0,0.5); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

.section { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 7vw, 7.5rem); }
.paper-section, .people-section, .faq-section { background: var(--paper-light); }
.paper-section, .people-section, .faq-section {
  background-image:
    linear-gradient(rgba(255,255,255,0.08), rgba(80,45,12,0.035)),
    repeating-linear-gradient(2deg, transparent 0 8px, rgba(65,43,22,0.017) 8px 9px);
}

.section-heading { max-width: 850px; margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.section-heading > p:last-child { max-width: 760px; margin-bottom: 0; font-size: clamp(1.05rem, 1.5vw, 1.23rem); }
.section-heading-light { color: var(--cream); }
.section-heading-light > p:last-child { color: var(--muted); }

.feature-layout, .people-layout, .duel-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.58fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.media-shadow { box-shadow: var(--shadow); }

.phone-frame {
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 9px;
  background: #20170f;
  border: 1px solid #705536;
  border-radius: 20px;
}

.phone-frame img { width: 100%; height: auto; border-radius: 12px; }
.feature-copy { max-width: 720px; }

.trail-steps { margin: 2rem 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.trail-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.trail-steps li > span { color: #9a6b26; font-family: var(--serif); font-size: 1.25rem; font-weight: 800; }
.trail-steps strong { display: block; margin-bottom: 0.2rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; }
.trail-steps p { margin: 0; }

.frontier-section {
  color: var(--cream);
  background: linear-gradient(rgba(10,30,22,0.96), rgba(5,21,15,0.98));
}

.progression-callout {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(220px, 0.7fr) minmax(300px, 1.4fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin: 0 0 clamp(2.5rem, 5vw, 4.5rem);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(213, 169, 77, 0.32);
  border-left: 5px solid var(--brass);
}

.progression-callout p,
.progression-callout h3 { margin: 0; }

.progression-callout .progression-kicker {
  color: var(--brass);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.progression-callout h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.progression-callout > p:last-child { color: var(--muted); }

.map-frame { margin: 0; overflow: hidden; background: #0c1d16; border: 1px solid rgba(213,169,77,0.38); border-radius: 8px; }
.map-frame img { width: 100%; height: auto; }
.map-frame figcaption { padding: 1.2rem clamp(1.2rem, 3vw, 2.4rem); color: var(--muted); font-family: var(--serif); font-size: clamp(1rem, 1.5vw, 1.2rem); }

.people-layout { grid-template-columns: minmax(270px, 0.52fr) minmax(0, 1fr); }
.bio-frame { width: min(100%, 430px); }
.people-copy > p { max-width: 720px; font-size: 1.08rem; }

.portrait-grid { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.portrait-grid figure { margin: 0; padding: 0.7rem; text-align: center; background: rgba(86,55,24,0.08); border: 1px solid var(--line); border-radius: 6px; }
.portrait-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; filter: sepia(0.22); }
.portrait-grid figcaption { margin-top: 0.65rem; font-family: var(--serif); font-size: 0.92rem; font-weight: 700; line-height: 1.2; }

.duel-section {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  color: var(--cream);
  background: linear-gradient(115deg, #29180e, #100c09 72%);
}

.duel-copy p { color: var(--muted); }
.duel-copy .eyebrow { color: var(--brass); }
.duel-copy .duel-line { color: var(--cream); font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.85rem); font-weight: 700; }

.duel-scene { position: relative; isolation: isolate; min-height: clamp(330px, 47vw, 650px); margin: 0; overflow: hidden; border: 1px solid rgba(213,169,77,0.35); border-radius: 6px; }
.duel-scene::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(30,16,7,0.18), transparent 35%), linear-gradient(0deg, rgba(20,11,6,0.24), transparent 45%); }
.duel-town { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(0.18) saturate(0.86); }
.duel-gunfighter { position: absolute; z-index: 1; left: 50%; bottom: -7%; width: 31%; height: 84%; object-fit: contain; object-position: bottom; transform: translateX(-50%); filter: drop-shadow(0 12px 9px rgba(0,0,0,0.5)); }

.history-section { color: var(--cream); background: var(--felt-dark); }
.history-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.history-grid li { padding: clamp(1.4rem, 3vw, 2.25rem); background: rgba(255,255,255,0.045); border: 1px solid rgba(213,169,77,0.22); }
.history-grid span { display: block; margin-bottom: 1rem; color: var(--brass); }
.history-grid strong { display: block; margin-bottom: 0.7rem; font-family: var(--serif); font-size: 1.25rem; }
.history-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.faq-section .section-heading { margin-bottom: 2rem; }
.faq-list { max-width: 940px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 1.35rem 2.75rem 1.35rem 0; cursor: pointer; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 750; }
.faq-list summary::marker { color: #966a2f; }
.faq-list details p { max-width: 800px; padding: 0 2rem 1.4rem 0; }

.final-cta { padding: clamp(5rem, 11vw, 10rem) 1.25rem; color: var(--cream); text-align: center; background: radial-gradient(circle at 50% 0, #3d2917, #120d09 66%); }
.final-cta h2 { max-width: 900px; margin-right: auto; margin-left: auto; }
.final-cta > p:not(.eyebrow) { margin-bottom: 2rem; color: var(--muted); font-size: 1.1rem; }

footer { padding: 3.5rem 1.25rem; color: #a99d85; text-align: center; background: #080604; border-top: 1px solid rgba(213,169,77,0.2); }
footer img { width: 190px; height: auto; margin: 0 auto 1rem; opacity: 0.78; }
footer p { margin: 0.3rem 0; font-size: 0.86rem; }

:focus-visible { outline: 3px solid #f0c66c; outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header nav a:not(.nav-play) { display: none; }
  .hero { grid-template-columns: 1fr 39%; }
  .hero-copy { padding-right: 2rem; }
  .feature-layout, .people-layout, .duel-section { gap: 3.5rem; }
  .portrait-grid, .history-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  .site-header { min-height: 68px; }
  .header-brand { width: 155px; }
  .hero { display: flex; min-height: auto; flex-direction: column; }
  .hero-copy { order: 2; padding: 3.5rem 1.25rem 4rem; }
  .hero-art { order: 1; width: 100%; min-height: 370px; max-height: 58vh; }
  .hero-art img { object-position: center 34%; }
  .hero-facts { justify-content: space-between; gap: 1rem; }
  .section { padding: 4.5rem 1.25rem; }
  .feature-layout, .people-layout, .duel-section { grid-template-columns: 1fr; }
  .feature-copy, .people-copy { order: 1; }
  .phone-frame { order: 2; width: min(100%, 410px); }
  .duel-copy { order: 1; }
  .duel-scene { order: 2; min-height: 390px; }
  .duel-gunfighter { width: 38%; height: 83%; }
  .progression-callout { grid-template-columns: 1fr; gap: 0.65rem; }
}

@media (max-width: 460px) {
  h1 { font-size: clamp(2.65rem, 13.5vw, 4rem); }
  .nav-play { padding: 0.45rem 0.65rem; font-size: 0.75rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-link { text-align: center; }
  .hero-facts { font-size: 0.78rem; }
  .portrait-grid, .history-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .portrait-grid figcaption { font-size: 0.8rem; }
  .duel-scene { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
