:root {
  --ink: #1c140c;
  --ink-soft: #3a2a1c;
  --paper: #f4ead6;
  --paper-bright: #fffaf0;
  --sky: #8ec8de;
  --sky-deep: #5ea7c4;
  --grass: #6f9458;
  --leaf: #d7e8b8;
  --wood: #c4894e;
  --wood-deep: #8a5a32;
  --cream: #f7e7c3;
  --cozy: #8c2f38;
  --cozy-soft: #f3d5c4;
  --gold: #e8b84a;
  --panel: #fffdf8;
  --gutter: 14px;
  --radius: 18px;
  --shadow: 7px 7px 0 var(--ink);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  background-color: #e9f4c9;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(142, 200, 222, 0.45), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(247, 231, 195, 0.7), transparent 32%),
    radial-gradient(circle at 80% 92%, rgba(196, 137, 78, 0.18), transparent 36%),
    linear-gradient(180deg, #d8eef6 0%, #eaf4cc 38%, #f4ead6 72%, #e7d3b0 100%);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper-bright);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 8px 0 rgba(28, 20, 12, 0.08);
}

.issue-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-family: "Special Elite", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
}

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

.brand-mark {
  width: 58px;
  height: 58px;
  padding: 3px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}

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

.brand-copy {
  line-height: 1.05;
}

.brand-kicker {
  display: block;
  font-family: "Special Elite", serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name {
  font-family: "Lilita One", cursive;
  font-size: 1.45rem;
}

.nav-link {
  font-weight: 800;
  color: var(--ink) !important;
  padding: 0.4rem 0.75rem !important;
}

.nav-link:hover {
  color: var(--cozy) !important;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.icon-btn.buy {
  background: #8be08b;
}

.icon-btn.dex {
  background: #9fd7f0;
}

.icon-btn.x {
  background: #fff;
}

.icon-btn i {
  font-size: 1.05rem;
}

.page {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 1.25rem auto 2.5rem;
}

.section-shell {
  position: relative;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed rgba(28, 20, 12, 0.18);
  border-radius: 18px;
  pointer-events: none;
}

.hero-shell {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.55), rgba(255, 250, 240, 0.2)),
    radial-gradient(circle at 20% 80%, rgba(111, 148, 88, 0.25), transparent 40%),
    linear-gradient(160deg, #c8e9f4 0%, #f7efc8 55%, #d9edb4 100%);
}

.about-shell {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.4), rgba(255, 250, 240, 0.15)),
    linear-gradient(135deg, #f6e1c3 0%, #e7c49a 48%, #d7b48a 100%);
}

.buy-shell {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.35) 0 28px,
      rgba(159, 215, 240, 0.18) 28px 56px
    ),
    linear-gradient(180deg, #fffdf8 0%, #e7f4fb 100%);
}

.community-shell {
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 184, 74, 0.28), transparent 28%),
    linear-gradient(160deg, #f8d8cb 0%, #f4ead6 42%, #e9c3b0 100%);
}

.page-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--ink);
  color: var(--paper-bright);
  border-radius: 999px;
  font-family: "Special Elite", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-tab span {
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 50%;
  font-family: "Lilita One", cursive;
}

.section-title {
  font-family: "Lilita One", cursive;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.92;
  margin: 0 0 0.4rem;
}

.ticker {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.15rem 0.7rem;
  background: var(--ink);
  color: var(--gold);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lede {
  max-width: 38rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.comic-frame {
  position: relative;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.7rem;
  box-shadow: 5px 5px 0 var(--ink);
}

.comic-frame img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #f6efe3;
}

.window-frame {
  padding: 1rem 1rem 1.15rem;
  background:
    linear-gradient(#efe3c8, #efe3c8) padding-box,
    repeating-linear-gradient(90deg, #8a5a32 0 10px, #c4894e 10px 20px);
  border: 10px solid #8a5a32;
  border-radius: 18px 18px 8px 8px;
  box-shadow: 8px 8px 0 var(--ink);
}

.window-frame img {
  border-radius: 4px;
}

.porch-frame {
  padding: 0.55rem;
  background: #f3e0c4;
  border: 4px solid #6d4424;
  box-shadow: inset 0 0 0 6px #e7c49a, 6px 6px 0 #6d4424;
}

.porch-frame img {
  border-radius: 4px;
}

.quilt-frame {
  padding: 0.85rem;
  background:
    radial-gradient(circle at 12px 12px, #fff 1.5px, transparent 2px),
    #9c3340;
  background-size: 28px 28px, auto;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.photo-mount {
  position: relative;
}

.photo-mount::before,
.photo-mount::after,
.photo-mount .corner-bl,
.photo-mount .corner-br {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: #f1d9a4;
  border: 2px solid var(--ink);
  z-index: 2;
}

.photo-mount::before {
  top: 8px;
  left: 8px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.photo-mount::after {
  top: 8px;
  right: 8px;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.photo-mount .corner-bl {
  left: 8px;
  bottom: 8px;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.photo-mount .corner-br {
  right: 8px;
  bottom: 8px;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.caption-bar {
  margin-top: 0.7rem;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: var(--paper-bright);
  border-radius: 10px;
  font-family: "Special Elite", serif;
  font-size: 0.92rem;
}

.speech {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 1rem 1.1rem 1.15rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 26px 26px 26px 8px;
  box-shadow: 4px 4px 0 var(--ink);
}

.speech::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -16px;
  width: 22px;
  height: 18px;
  background: #fff;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.hero-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.wide-panel {
  margin-bottom: 1.15rem;
}

.story-card {
  height: 100%;
  padding: 1.15rem 1.2rem 1.3rem;
  background: var(--paper-bright);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--wood-deep);
}

.story-card h3 {
  font-family: "Lilita One", cursive;
  margin-bottom: 0.7rem;
}

.story-card p {
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
}

.duo-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.duo-chip img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  border: 2px solid var(--ink);
}

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

.strip-cell {
  min-height: 100%;
  padding: 1rem 0.95rem 1.1rem;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

.step-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.7rem;
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: "Lilita One", cursive;
  font-size: 1.2rem;
}

.strip-cell h3 {
  font-family: "Lilita One", cursive;
  font-size: 1.2rem;
}

.strip-cell p {
  margin: 0;
  color: var(--ink-soft);
}

.ca-ticket {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.15rem;
  padding: 0.85rem 1rem;
  background:
    repeating-linear-gradient(
      90deg,
      #fff 0 12px,
      #fffaf0 12px 24px
    );
  border: 3px dashed var(--ink);
  border-radius: 16px;
}

.ca-label {
  font-family: "Special Elite", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ca-value {
  overflow-wrap: anywhere;
  font-family: "Special Elite", serif;
  font-size: 0.95rem;
}

.copy-btn {
  border: 3px solid var(--ink);
  background: var(--gold);
  border-radius: 12px;
  min-width: 44px;
  min-height: 44px;
  font-weight: 800;
}

.pack-card {
  padding: 1.15rem;
  background: var(--paper-bright);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--cozy);
  height: 100%;
}

.pack-card h3 {
  font-family: "Lilita One", cursive;
}

.emblem {
  width: 92px;
  padding: 6px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink);
}

.emblem img {
  width: 100%;
  border-radius: 50%;
}

.site-foot {
  border-top: 4px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 1.4rem 0 1.6rem;
}

.site-foot a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
}

.paw-field {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(circle at 12px 10px, var(--ink) 3px, transparent 4px),
    radial-gradient(circle at 22px 10px, var(--ink) 3px, transparent 4px),
    radial-gradient(circle at 17px 18px, var(--ink) 5px, transparent 6px);
  background-size: 90px 70px;
}

.navbar-toggler {
  border: 3px solid var(--ink);
}

@media (max-width: 991.98px) {
  .strip {
    grid-template-columns: 1fr;
  }

  .ca-ticket {
    grid-template-columns: 1fr auto;
  }

  .ca-label {
    grid-column: 1 / -1;
  }

  .brand-name {
    font-size: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .section-shell {
    padding: 0.9rem;
    border-radius: 22px;
  }

  .issue-bar {
    font-size: 0.66rem;
  }

  .hero-actions .icon-btn,
  .community-actions .icon-btn {
    width: 100%;
  }
}
