:root {
  --ink: #090704;
  --coal: #120e09;
  --seam: #1c150d;
  --timber: #4a3018;
  --timber-lit: #6b4522;
  --gold: #f2c33a;
  --gold-deep: #c48a12;
  --lamp: #ffe58a;
  --paper: #f4e4bc;
  --paper-dark: #d8c089;
  --ginger: #c96b28;
  --ink-line: #090704;
  --halo: rgba(242, 195, 58, 0.22);
  --font-display: "Bangers", "Impact", system-ui, sans-serif;
  --font-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --font-body: "Comic Neue", "Trebuchet MS", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  font-family: var(--font-body);
  background: var(--ink);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.btn {
  font-family: inherit;
}

.cave-wash {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(242, 195, 58, 0.16), transparent 55%),
    radial-gradient(circle at 12% 80%, rgba(201, 107, 40, 0.12), transparent 35%),
    radial-gradient(circle at 88% 30%, rgba(255, 229, 138, 0.08), transparent 30%),
    linear-gradient(180deg, #0d0a06 0%, #151009 40%, #0a0805 100%);
}

.cave-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 229, 138, 0.55) 0.6px, transparent 0.8px);
  background-size: 140px 140px;
  opacity: 0.18;
  pointer-events: none;
}

.shaft-rails {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 7, 4, 0.88) 0%, transparent 18%, transparent 82%, rgba(9, 7, 4, 0.88) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0 46%,
      rgba(74, 48, 24, 0.18) 46% 46.35%,
      transparent 46.35% 53.65%,
      rgba(74, 48, 24, 0.18) 53.65% 54%,
      transparent 54% 100%
    );
}

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

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background:
    linear-gradient(180deg, #2a1b0d 0%, #1a1109 100%);
  border-bottom: 6px solid #090704;
  box-shadow: 0 8px 0 rgba(242, 195, 58, 0.16), 0 16px 32px rgba(0, 0, 0, 0.45);
}

.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 3px solid var(--ink-line);
  background: #1a140c;
  box-shadow: 4px 4px 0 #090704;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.brand-copy span {
  font-family: var(--font-marker);
  font-size: 0.72rem;
  color: var(--paper-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  color: var(--paper);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  display: flex;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink-line);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 3px 3px 0 #090704;
  cursor: pointer;
}

.nav-drawer {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid var(--ink-line);
  box-shadow: 4px 4px 0 #090704;
  padding: 10px 14px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #090704;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-ink {
  background: #111;
  color: var(--gold);
}

.btn-paper {
  background: var(--paper);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
}

.scene {
  perspective: 1480px;
  perspective-origin: 50% 18%;
}

.hero {
  padding: 48px 0 28px;
}

.hero-stage {
  position: relative;
  transform: rotateX(7deg) rotateZ(-0.6deg);
  transform-style: preserve-3d;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 229, 138, 0.28), transparent 36%),
    linear-gradient(160deg, #2a1d0c 0%, #120e09 55%, #1b1208 100%);
  border: 7px solid #090704;
  box-shadow:
    0 0 0 4px #c48a12,
    14px 18px 0 #090704,
    0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: visible;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(242, 195, 58, 0.28);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px 28px;
  align-items: center;
  padding: 28px 28px 32px;
}

.logo-plate {
  background: #0f0c08;
  border: 5px solid #090704;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.65), inset 0 0 0 6px rgba(242, 195, 58, 0.12);
  padding: 10px;
}

.logo-plate img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.speech {
  position: relative;
  margin: 16px 8px 0;
  background: var(--paper);
  color: var(--ink);
  border: 4px solid #090704;
  padding: 12px 16px;
  font-family: var(--font-marker);
  font-size: 1.02rem;
  box-shadow: 5px 5px 0 #090704;
}

.speech::after {
  content: "";
  position: absolute;
  left: 28px;
  top: -16px;
  border: 10px solid transparent;
  border-bottom-color: var(--paper);
  filter: drop-shadow(0 -3px 0 #090704);
}

.hero-copy h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 10vw, 7.4rem);
  line-height: 0.82;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 5px 6px 0 #090704, 0 0 24px rgba(242, 195, 58, 0.35);
}

.ticker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: var(--ginger);
  color: #fff8e8;
  border: 3px solid #090704;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  box-shadow: 3px 3px 0 #090704;
}

.lead {
  margin: 0 0 18px;
  font-size: 1.2rem;
  line-height: 1.45;
  max-width: 38ch;
}

.ca-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  padding: 8px;
  background: rgba(9, 7, 4, 0.55);
  border: 3px solid #090704;
}

.ca-bar code {
  flex: 1 1 220px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  color: var(--lamp);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.caption-tag {
  position: absolute;
  left: 18px;
  top: -16px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid #090704;
  padding: 3px 10px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 #090704;
}

.title-plate {
  margin: 10px 0 8px;
  position: relative;
  background: #0c0906;
  border: 7px solid #090704;
  box-shadow: 0 0 0 4px #6b4522, 10px 12px 0 #090704;
}

.title-plate img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0c0906;
}

.plate-caption {
  margin: 0;
  padding: 8px 14px 12px;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  color: var(--gold);
  text-align: center;
  background: #120e09;
  border-top: 4px solid #090704;
}

.section {
  padding: 54px 0;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  color: var(--gold);
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  color: var(--paper);
  text-shadow: 3px 4px 0 #090704;
}

.about {
  position: relative;
}

.about-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.panel {
  background: #16110b;
  border: 6px solid #090704;
  box-shadow: 10px 12px 0 #090704;
  transform-style: preserve-3d;
}

.about-art {
  transform: rotateY(11deg) rotateX(3deg);
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(242, 195, 58, 0.08), transparent 30%),
    #120e09;
}

.about-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-copy {
  transform: rotateY(-8deg) rotateX(2deg);
  padding: 26px 24px 22px;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(243, 228, 188, 0.03) 0 2px,
      transparent 2px 28px
    ),
    #1b140c;
}

.about-copy p {
  margin: 0 0 14px;
  font-size: 1.12rem;
  line-height: 1.5;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stat {
  padding: 12px;
  background: #0f0c08;
  border: 3px solid #090704;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--gold);
  font-size: 1.3rem;
}

.howto {
  padding-top: 20px;
}

.howto-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  align-items: center;
}

.howto-art {
  transform: rotateY(-12deg) rotateX(4deg) translateY(10px);
  padding: 12px;
}

.howto-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #18120c;
  border: 5px solid #090704;
  box-shadow: 7px 7px 0 #090704;
  transform-origin: left center;
}

.step:nth-child(1) {
  transform: rotate(-1.2deg) translateX(0);
}

.step:nth-child(2) {
  transform: rotate(0.8deg) translateX(18px);
}

.step:nth-child(3) {
  transform: rotate(-0.6deg) translateX(36px);
}

.burst {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  border: 4px solid #090704;
  clip-path: polygon(
    50% 0%,
    63% 18%,
    84% 12%,
    78% 34%,
    100% 50%,
    78% 66%,
    84% 88%,
    63% 82%,
    50% 100%,
    37% 82%,
    16% 88%,
    22% 66%,
    0% 50%,
    22% 34%,
    16% 12%,
    37% 18%
  );
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.step h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 1.45rem;
}

.step p {
  margin: 0;
  color: var(--paper-dark);
}

.community {
  padding-bottom: 72px;
}

.community-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.community-art {
  transform: rotateY(9deg) rotateX(-2deg);
  padding: 12px;
  background: #10160f;
}

.community-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.community-copy {
  transform: rotateY(-6deg);
  padding: 28px 26px;
  background:
    linear-gradient(135deg, #3d2814 0%, #1a120b 55%, #24180e 100%);
}

.community-copy p {
  font-size: 1.14rem;
  line-height: 1.5;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.site-foot {
  border-top: 6px solid #090704;
  background: #100c08;
  padding: 22px 0 28px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--gold);
}

.foot-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 3px solid #090704;
}

.disclaimer {
  width: 100%;
  margin: 10px 0 0;
  color: #9d8b68;
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 16px;
    max-height: 0;
    overflow: hidden;
  }

  .nav-drawer.is-open {
    max-height: 360px;
    padding-bottom: 18px;
  }

  .nav-drawer a {
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    font-size: 1.2rem;
  }

  .hero-stage,
  .about-art,
  .about-copy,
  .howto-art,
  .step,
  .community-art,
  .community-copy {
    transform: none;
  }

  .hero-grid,
  .about-spread,
  .howto-layout,
  .community-board {
    grid-template-columns: 1fr;
  }

  .step:nth-child(1),
  .step:nth-child(2),
  .step:nth-child(3) {
    transform: none;
  }

  .hero-copy h1 {
    font-size: 4.2rem;
  }
}

@media (max-width: 560px) {
  .site {
    width: min(100% - 20px, 1180px);
  }

  .hero-grid,
  .about-copy,
  .community-copy {
    padding: 16px;
  }

  .stat-row,
  .step {
    grid-template-columns: 1fr;
  }

  .burst {
    width: 58px;
    height: 58px;
    font-size: 1.4rem;
  }
}
