:root {
  --sky-deep: #2f8fd4;
  --sky: #4aa3e4;
  --sky-mid: #6eb8ee;
  --sky-high: #a6d6f7;
  --sky-wash: #d7eefc;
  --cloud: #f7fbff;
  --gold: #f0c43a;
  --gold-deep: #c99214;
  --gold-ink: #7a5608;
  --ink: #1a140c;
  --paper: #fff7e4;
  --caption: #ffe27a;
  --panel: #fffdf6;
  --gutter: 18px;
  --line: 4px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Comic Neue", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.35), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(255, 230, 120, 0.22), transparent 24%),
    linear-gradient(180deg, var(--sky-high) 0%, var(--sky) 42%, var(--sky-deep) 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle, rgba(26, 20, 12, 0.55) 0.8px, transparent 0.9px);
  background-size: 7px 7px;
}

.sky-depth {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  filter: blur(0.2px);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: inherit;
}

.cloud-a {
  width: 220px;
  height: 54px;
  top: 12%;
  left: -40px;
}

.cloud-a::before {
  width: 90px;
  height: 70px;
  top: -38px;
  left: 36px;
}

.cloud-a::after {
  width: 120px;
  height: 80px;
  top: -46px;
  left: 90px;
}

.cloud-b {
  width: 280px;
  height: 62px;
  top: 38%;
  right: -70px;
}

.cloud-b::before {
  width: 110px;
  height: 82px;
  top: -44px;
  left: 48px;
}

.cloud-b::after {
  width: 140px;
  height: 90px;
  top: -50px;
  left: 120px;
}

.cloud-c {
  width: 190px;
  height: 46px;
  bottom: 18%;
  left: 8%;
}

.cloud-c::before {
  width: 80px;
  height: 60px;
  top: -32px;
  left: 28px;
}

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

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

.masthead {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 22px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #ffe38a 0%, var(--gold) 55%, var(--gold-deep) 100%);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  background: transparent;
}

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

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

.brand-copy strong {
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand-copy span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-ink);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  margin: 5px auto;
  background: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

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

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-gold {
  background: linear-gradient(180deg, #ffe9a0, var(--gold) 60%, #d8a21a);
}

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

.btn-sky {
  background: linear-gradient(180deg, #dff3ff, #7fc4f3);
}

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

.page {
  margin-bottom: 28px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 8px 10px;
}

.page-kicker {
  margin: 0;
  font-family: Bangers, Impact, sans-serif;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: #fff8dc;
  text-shadow: 2px 2px 0 var(--ink);
}

.page-num {
  font-weight: 800;
  background: var(--caption);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: 3px 3px 0 var(--ink);
}

.panel {
  background: var(--panel);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.caption {
  background: var(--caption);
  border-top: 3px solid var(--ink);
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.95rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--gutter);
  align-items: stretch;
}

.hero-art {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 236, 150, 0.55), transparent 36%),
    linear-gradient(180deg, #8ec8f4 0%, #4ea4e4 100%);
}

.hero-art img {
  padding: 8px 8px 0;
}

.dialogue {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bubble {
  position: relative;
  background: #fff;
  border: var(--line);
  border-radius: 28px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow);
}

.bubble h1,
.section-title {
  margin: 0 0 8px;
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--gold);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
}

.ticker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--gold);
  font-weight: 800;
}

.lead {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

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

.ca-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--paper);
  border: var(--line);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

.ca-strip code {
  font-family: "Comic Neue", monospace;
  font-weight: 800;
  word-break: break-all;
}

.copy-btn {
  border: 3px solid var(--ink);
  background: var(--gold);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.about-stack {
  display: grid;
  gap: var(--gutter);
}

.about-row {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: var(--gutter);
}

.portrait {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 236, 150, 0.4), transparent 40%),
    var(--sky);
  overflow: hidden;
}

.portrait img {
  padding: 18px;
}

.file-box {
  padding: 22px 24px 20px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 18px;
}

.meta {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
}

.meta b {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta span {
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.story {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
}

.drop-art {
  background:
    linear-gradient(180deg, #8ec8f4 0%, #5aa8e4 70%, #f3d27a 140%);
  overflow: hidden;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

.step {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.step-body {
  padding: 18px 16px 16px;
  flex: 1;
}

.burst {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.7rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.step h3 {
  margin: 0 0 8px;
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.03em;
}

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

.community-panel {
  overflow: hidden;
}

.banner-hold {
  background: linear-gradient(180deg, #78b8ea, #4ea0dc);
  padding: 10px 10px 0;
}

.community-copy {
  padding: 18px 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.community-copy h2 {
  margin: 0 0 6px;
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.03em;
  color: var(--gold);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 3px 3px 0 var(--ink);
}

.community-copy p {
  margin: 0;
  font-weight: 700;
  max-width: 46ch;
}

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

.folio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 8px 8px;
  color: #fff8dc;
  font-weight: 800;
}

.folio a {
  color: inherit;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-row,
  .howto-grid {
    grid-template-columns: 1fr;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    padding: 12px;
    background: var(--paper);
    border: var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

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

  .masthead {
    position: relative;
    border-radius: 22px;
  }

  .brand-copy strong {
    font-size: 1.1rem;
  }
}
