:root {
  --ink: #0b0b0b;
  --paper: #fff5d7;
  --paper-deep: #edddb4;
  --gold: #f4b942;
  --gold-dark: #9a6215;
  --red: #c4291e;
  --red-dark: #77140e;
  --blue: #159bea;
  --green: #3c9b45;
  --white: #fffdf5;
  --pixel: "Press Start 2P", "Courier New", monospace;
  --mono: "Roboto Mono", "Courier New", monospace;
  --wrap: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.sr-only {
  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 {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(24px, calc((100% - 1180px) / 2));
  color: var(--ink);
  background: rgba(255, 245, 215, 0.96);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 var(--gold);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-family: var(--pixel);
  font-size: clamp(0.78rem, 1.5vw, 1rem);
  line-height: 1.4;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 38px;
  flex: 0 0 auto;
}

.brand-mark span {
  position: absolute;
  left: 0;
  height: 7px;
  background: var(--gold-dark);
  box-shadow: 3px 3px 0 var(--ink);
  transform: skewX(-28deg);
}

.brand-mark span:nth-child(1) { top: 4px; width: 44px; }
.brand-mark span:nth-child(2) { top: 15px; left: 8px; width: 35px; }
.brand-mark span:nth-child(3) { top: 26px; left: 17px; width: 25px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.site-nav a,
.site-footer nav a {
  position: relative;
  font-family: var(--pixel);
  font-size: 0.67rem;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after,
.site-footer nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms steps(3, end);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-footer nav a:hover::after,
.site-footer nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 42px;
  padding: 8px;
  background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 4px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 78px));
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 5px solid var(--ink);
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: -3;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 15, 18, 0.88) 0%, rgba(9, 15, 18, 0.7) 38%, rgba(9, 15, 18, 0.06) 70%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent 45%);
}

.hero-content {
  padding-block: 82px;
}

.eyebrow,
.section-kicker,
.product-number {
  margin: 0 0 18px;
  color: var(--red);
  font-family: var(--pixel);
  font-size: 0.7rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero .eyebrow {
  width: fit-content;
  padding: 7px 10px;
  color: var(--paper);
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 25px;
  font-family: var(--pixel);
  font-size: clamp(2.15rem, 5.2vw, 4.65rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink);
}

h1 span,
h1 strong {
  display: block;
}

h1 span { color: var(--white); }
h1 strong { color: var(--gold); }

.hero-copy {
  max-width: 580px;
  margin: 0 0 34px;
  color: var(--white);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 2px 2px 0 var(--ink);
}

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

.pixel-button {
  position: relative;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 16px 22px;
  border: 4px solid var(--ink);
  font-family: var(--pixel);
  font-size: 0.68rem;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 100ms steps(2, end), box-shadow 100ms steps(2, end);
}

.pixel-button:hover,
.pixel-button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.pixel-button--red { color: var(--white); background: var(--red); }
.pixel-button--cream { color: var(--ink); background: var(--paper); }
.pixel-button--gold { color: var(--ink); background: var(--gold); }

.code-strip {
  padding-block: 22px;
  color: var(--gold);
  background: var(--ink);
  border-bottom: 4px solid var(--gold);
}

.code-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 44px);
  font-family: var(--pixel);
  font-size: clamp(0.7rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  text-align: center;
  text-transform: uppercase;
}

.code-strip b {
  color: var(--red);
  font-size: 0.75rem;
}

.section {
  position: relative;
  padding-block: clamp(76px, 9vw, 128px);
}

.section h2 {
  max-width: 940px;
  margin-bottom: 48px;
  font-family: var(--pixel);
  font-size: clamp(1.7rem, 3.4vw, 3rem);
  line-height: 1.45;
  text-transform: uppercase;
}

.section--paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(154, 98, 21, 0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(154, 98, 21, 0.06) 2px, transparent 2px);
  background-size: 24px 24px;
}

.section--paper h2,
.section--collection h2 {
  text-align: center;
}

.section--paper .section-kicker,
.section--collection .section-kicker {
  text-align: center;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.code-card {
  position: relative;
  min-height: 300px;
  padding: 30px 22px;
  background: rgba(255, 253, 245, 0.92);
  border: 4px solid var(--ink);
  box-shadow: 7px 7px 0 var(--gold-dark);
}

.code-card::before,
.code-card::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--red);
}

.code-card::before { top: 9px; left: 9px; }
.code-card::after { right: 9px; bottom: 9px; }

.code-icon {
  display: block;
  min-height: 58px;
  color: var(--gold-dark);
  font-family: var(--pixel);
  font-size: 2.45rem;
  line-height: 1;
}

.code-card h3 {
  margin-bottom: 16px;
  font-family: var(--pixel);
  font-size: 0.83rem;
  line-height: 1.65;
  text-transform: uppercase;
}

.code-card p {
  margin-bottom: 0;
  font-size: 0.93rem;
  line-height: 1.65;
}

.section--dark {
  color: var(--white);
  background: var(--ink);
  border-block: 5px solid var(--gold);
}

.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(45deg, var(--gold) 12.5%, transparent 12.5%, transparent 50%, var(--gold) 50%, var(--gold) 62.5%, transparent 62.5%);
  background-size: 16px 16px;
}

.mindset-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.section-kicker--gold { color: var(--gold); }

.mindset-copy h2 {
  margin-bottom: 25px;
}

.mindset-copy .lead {
  color: var(--gold);
  font-family: var(--pixel);
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.75;
}

.mindset-copy > p:not(.section-kicker):not(.lead) {
  max-width: 720px;
  color: #f6edd6;
  font-size: 1.04rem;
}

.victory-card {
  margin: 0;
  padding: 42px 32px;
  color: var(--ink);
  background: var(--red);
  border: 5px solid var(--paper);
  outline: 4px solid var(--red);
  box-shadow: 12px 12px 0 var(--gold);
  transform: rotate(1.5deg);
}

.victory-card span,
.victory-card strong,
.victory-card small {
  display: block;
}

.victory-card span,
.victory-card strong {
  font-family: var(--pixel);
  line-height: 1.55;
  text-transform: uppercase;
}

.victory-card span {
  color: var(--paper);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
}

.victory-card strong {
  margin-top: 22px;
  color: var(--gold);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  text-shadow: 3px 3px 0 var(--ink);
}

.victory-card small {
  margin-top: 32px;
  color: var(--paper);
  font-weight: 700;
  text-transform: uppercase;
}

.section--collection {
  background: var(--paper-deep);
}

.section--collection::before,
.section--collection::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 14px, var(--gold) 14px 28px);
}

.section--collection::before { top: 0; }
.section--collection::after { bottom: 0; }

.collection-intro {
  max-width: 650px;
  margin: -25px auto 35px;
  text-align: center;
  font-size: 1.05rem;
}

.merch-stage {
  position: relative;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(244, 185, 66, 0.4), transparent 46%),
    var(--ink);
  border: 5px solid var(--ink);
  box-shadow: 9px 9px 0 var(--red-dark);
}

.merch-stage img {
  width: 100%;
  image-rendering: pixelated;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.product-card {
  min-height: 180px;
  padding: 24px 20px;
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--gold-dark);
}

.product-number {
  margin-bottom: 13px;
  color: var(--red);
  font-size: 0.62rem;
}

.product-card h3 {
  margin-bottom: 18px;
  font-family: var(--pixel);
  font-size: 0.76rem;
  line-height: 1.65;
  text-transform: uppercase;
}

.product-card span {
  color: #624719;
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
}

.final-quest {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(196, 41, 30, 0.92), rgba(70, 11, 8, 0.98)),
    var(--red);
  text-align: center;
}

.final-quest__inner {
  max-width: 980px;
}

.final-quest h2 {
  margin-inline: auto;
  margin-bottom: 22px;
}

.final-quest p:not(.section-kicker) {
  margin: 0 auto 35px;
  font-size: 1.1rem;
}

.site-footer {
  padding-block: 48px;
  color: var(--paper);
  background: var(--ink);
  border-top: 5px solid var(--gold);
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.3fr auto 1fr;
  align-items: center;
  gap: 38px;
}

.site-footer strong {
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 0.85rem;
  line-height: 1.5;
}

.site-footer p {
  margin: 8px 0 0;
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  gap: 25px;
}

.copyright {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms steps(6, end);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 5px;
}

@media (max-width: 980px) {
  .code-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mindset-layout {
    grid-template-columns: 1fr;
  }

  .victory-card {
    max-width: 620px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }

  .copyright { text-align: left; }
}

@media (max-width: 780px) {
  :root { --wrap: min(100% - 28px, 680px); }

  .site-header {
    min-height: 70px;
    padding-inline: 16px;
  }

  .brand-mark {
    width: 39px;
    transform: scale(0.82);
    transform-origin: left center;
    margin-right: -6px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px 18px;
    color: var(--paper);
    background: var(--ink);
    border-bottom: 5px solid var(--gold);
  }

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

  .site-nav a {
    padding: 17px 10px;
    font-size: 0.74rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero {
    min-height: 710px;
    align-items: end;
  }

  .hero-art {
    object-position: 64% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(6, 11, 12, 0.97) 0%, rgba(6, 11, 12, 0.78) 49%, rgba(6, 11, 12, 0.05) 84%);
  }

  .hero-content {
    padding-block: 220px 55px;
  }

  h1 {
    font-size: clamp(1.72rem, 8.7vw, 2.8rem);
    text-shadow: 4px 4px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pixel-button { width: 100%; }

  .code-strip .wrap {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .code-strip b { display: none; }

  .section { padding-block: 76px; }

  .merch-stage {
    padding: 8px;
    overflow-x: auto;
  }

  .merch-stage img {
    width: 920px;
    max-width: none;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand > span:last-child {
    max-width: 190px;
    font-size: 0.67rem;
  }

  .code-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .code-card {
    min-height: 0;
  }

  .victory-card {
    padding: 34px 22px;
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
