:root {
  color-scheme: light dark;
  --bg: #fffdf2;
  --dot: color-mix(in oklab, #111111 11%, transparent);
  --card: #ffffff;
  --ink: #141218;
  --ink-muted: #464152;
  --yellow: #ffd60a;
  --coral: #ff4d6d;
  --mint: #06d6a0;
  --sky: #bde0fe;
  --hard-shadow: 5px 5px 0 #141218;
  --border: 3px solid #141218;
  --in-oklab: ;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171324;
    --dot: color-mix(in oklab, #ffffff 10%, transparent);
    --card: #231d36;
    --ink: #fffdf5;
    --ink-muted: #cfc7e6;
    --yellow: #ffd60a;
    --coral: #ff6b86;
    --mint: #1be7b0;
    --sky: #90caf9;
    --hard-shadow: 5px 5px 0 #090710;
    --border: 3px solid #fffdf5;
  }
}

@media (forced-colors: active) {
  :root {
    --border: 2px solid CanvasText;
    --hard-shadow: none;
  }
}

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

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.55;
  --distance: 22px;
  --radius: 1.5px;
  --polka: radial-gradient(circle, var(--dot) var(--radius), transparent calc(var(--radius) + 1px));
  background: var(--polka) 0 0, var(--polka) var(--distance) var(--distance) var(--bg);
  background-size: calc(var(--distance) * 2) calc(var(--distance) * 2);
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3.5rem;
}

.zine-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--card);
  border: var(--border);
  border-radius: 18px;
  padding: 0.85rem 1.25rem;
  box-shadow: var(--hard-shadow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
}

.lol-sticker {
  display: inline-block;
  background: var(--yellow);
  color: #141218;
  border: 2px solid #141218;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  transform: rotate(-4deg);
}

.nav-pills {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: var(--border);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 #141218;
}

.pill-btn.yellow {
  background: var(--yellow);
  color: #141218;
}

.pill-btn.coral {
  background: var(--coral);
  color: #141218;
}

.pill-btn.mint {
  background: var(--mint);
  color: #141218;
}

/* Hero Toybox */
.hero-box {
  container-type: inline-size;
  margin-top: 2rem;
  background: var(--card);
  border: var(--border);
  border-radius: 26px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--hard-shadow);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-box {
    grid-template-columns: 1fr;
  }
}

.kicker-sticker {
  display: inline-block;
  background: var(--mint);
  color: #141218;
  border: 2px solid #141218;
  border-radius: 8px;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-box h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.3rem);
  line-height: 1.03;
  margin: 0.9rem 0;
  letter-spacing: -0.03em;
}

@supports (font-size: 1cqi) {
  .hero-box h1 {
    font-size: clamp(2.2rem, 5.4cqi, 4.5rem);
  }
}

.excuse-machine {
  background: var(--sky);
  color: #141218;
  border: 3px solid #141218;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 5px 5px 0 #141218;
}

.machine-screen {
  background: #fffdf5;
  color: #141218;
  border: 2.5px solid #141218;
  border-radius: 14px;
  padding: 1.1rem;
  margin: 0.9rem 0;
  min-height: 5.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

/* Sections */
.zine-section {
  margin-top: 2.75rem;
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 0.4rem 0 1.35rem;
  letter-spacing: -0.02em;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.35rem;
}

.toy-card {
  background: var(--card);
  border: var(--border);
  border-radius: 20px;
  padding: 1.4rem;
  box-shadow: var(--hard-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes pop-in {
      entry 0% {
        opacity: 0.3;
        transform: scale(0.94) translateY(16px);
      }
      entry 100%,
      exit 0% {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    .toy-card {
      animation: pop-in auto linear both;
      animation-timeline: view();
    }
  }
}

.toy-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 2px solid #141218;
  background: var(--yellow);
  color: #141218;
  width: fit-content;
}

.toy-card h3 {
  font-size: 1.4rem;
  margin: 0.4rem 0;
}

/* Coming Soon VIP Club */
.vip-club {
  margin-top: 2.75rem;
  background: var(--yellow);
  color: #141218;
  border: 3px solid #141218;
  border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: 6px 6px 0 #141218;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 820px) {
  .vip-club {
    grid-template-columns: 1fr;
  }
}

.club-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.club-form input {
  flex: 1 1 200px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 2.5px solid #141218;
  background: #ffffff;
  color: #141218;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

dialog {
  max-width: 500px;
  width: calc(100% - 2rem);
  border: var(--border);
  border-radius: 22px;
  padding: 1.6rem;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--hard-shadow);
}

dialog::backdrop {
  background: rgba(20, 18, 24, 0.62);
  backdrop-filter: blur(3px);
}

.zine-footer {
  margin-top: 2.75rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}
