:root {
  --ink: #1a120c;
  --ink-soft: #3a2418;
  --paper: #fff6df;
  --paper-deep: #f3e2b4;
  --carpet: #d4bc3c;
  --carpet-deep: #c4a82e;
  --carpet-light: #e6d25a;
  --wood: #2c1a12;
  --wood-mid: #4a3020;
  --cream: #f7efe3;
  --foam: #fffdf6;
  --tabby: #8b5a2b;
  --stroke: 4px;
  --shadow: 10px 10px 0 var(--ink);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--carpet);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.stage {
  position: relative;
  min-height: 100vh;
  background-color: var(--carpet);
  background-image:
    linear-gradient(180deg, rgba(44, 26, 18, 0.18), transparent 220px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='92' viewBox='0 0 160 92'%3E%3Cpath fill='%23c4a82e' d='M80 0L160 46 80 92 0 46z'/%3E%3Cpath fill='%23d8c246' d='M80 10L146 46 80 82 14 46z'/%3E%3C/svg%3E");
  background-size: auto, 160px 92px;
}

.stage::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(26, 18, 12, 0.08) 1.1px, transparent 1.2px);
  background-size: 7px 7px;
  z-index: 0;
}

.shelf {
  position: relative;
  z-index: 3;
  height: 54px;
  background:
    repeating-linear-gradient(
      90deg,
      #6b2b22 0 18px,
      #2f4a6b 18px 34px,
      #b7791f 34px 50px,
      #355e3b 50px 66px,
      #7a3e1d 66px 84px,
      #3d2b5e 84px 98px,
      #8a1f1f 98px 116px,
      #1f4d3a 116px 132px
    );
  box-shadow: inset 0 -10px 0 var(--wood);
  border-bottom: 6px solid var(--ink);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 246, 223, 0.94);
  border-bottom: 5px solid var(--ink);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 54px;
  height: 54px;
  background: var(--carpet);
  border: 3px solid var(--ink);
  padding: 3px;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand-copy strong {
  font-family: "Alfa Slab One", serif;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.brand-copy span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--tabby);
}

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

.nav-links a {
  text-decoration: none;
  font-weight: 800;
  padding: 8px 12px;
}

.nav-links a:hover {
  background: var(--carpet-light);
  box-shadow: 3px 3px 0 var(--ink);
}

.icon-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 3px solid var(--ink);
  background: var(--foam);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.icon-btn {
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
}

.icon-btn:hover,
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn {
  padding: 12px 16px;
  min-height: 48px;
}

.btn-buy {
  background: var(--carpet-light);
}

.btn-dex {
  background: #f0d9b0;
}

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

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

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  background: var(--foam);
}

.page {
  padding: 28px 0 64px;
}

.issue-tag {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: "Permanent Marker", cursive;
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.panel {
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--shadow);
  position: relative;
}

.caption {
  background: var(--carpet-light);
  border: 3px solid var(--ink);
  padding: 8px 12px;
  font-family: "Permanent Marker", cursive;
  display: inline-block;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.speech {
  background: var(--foam);
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 28px 28px 34px;
  position: relative;
  box-shadow: var(--shadow);
}

.speech::after {
  content: "";
  position: absolute;
  left: 72px;
  bottom: -22px;
  width: 28px;
  height: 28px;
  background: var(--foam);
  border-right: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  transform: rotate(45deg);
}

.kicker {
  font-family: "Permanent Marker", cursive;
  color: var(--tabby);
  margin: 0 0 8px;
}

.hero h1,
.section h2 {
  font-family: "Alfa Slab One", serif;
  line-height: 0.95;
  margin: 0;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  letter-spacing: 1px;
}

.ticker {
  display: inline-block;
  margin-top: 10px;
  background: var(--ink);
  color: var(--carpet-light);
  padding: 6px 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.lead {
  font-size: 1.18rem;
  font-weight: 700;
  max-width: 42rem;
  margin: 16px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ca-box {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--paper-deep);
  border: 3px dashed var(--ink);
  padding: 10px 12px;
}

.ca-box code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  word-break: break-all;
  flex: 1;
  min-width: 180px;
}

.hero-art {
  background: var(--carpet);
  padding: 12px;
}

.hero-art img,
.about-art img,
.cast-art img {
  width: 100%;
  max-height: none;
  object-fit: contain;
  background: var(--carpet);
}

.stack {
  display: grid;
  gap: 34px;
  margin-top: 42px;
}

.section {
  padding: 22px;
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.about {
  display: grid;
  gap: 18px;
}

.about p {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 8px 0 0;
  max-width: 70ch;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.step {
  background: var(--foam);
  border: 3px solid var(--ink);
  padding: 16px;
  min-height: 180px;
}

.step:nth-child(1) { background: #fff7d6; }
.step:nth-child(2) { background: #f7e7c6; }
.step:nth-child(3) { background: #efe4c0; }
.step:nth-child(4) { background: #fbf1d2; }

.step-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--carpet-light);
  font-family: "Alfa Slab One", serif;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  font-weight: 700;
}

.community {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 18px;
  align-items: center;
}

.cast-art {
  background: var(--carpet);
  padding: 10px;
}

.community p {
  font-weight: 700;
  font-size: 1.08rem;
}

.footer {
  margin-top: 18px;
  padding: 18px 0 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  border: 3px solid var(--carpet-light);
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  font-weight: 800;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cable {
  position: absolute;
  left: 18px;
  top: 120px;
  bottom: 80px;
  width: 3px;
  background: #fff;
  border: 2px solid var(--ink);
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

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

  .nav-links {
    display: none;
    position: absolute;
    right: 16px;
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border: 4px solid var(--ink);
    padding: 12px;
    box-shadow: var(--shadow);
    min-width: 220px;
  }

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

  .steps,
  .community {
    grid-template-columns: 1fr;
  }

  .cable {
    display: none;
  }
}
