/* CHUCKABLES™ — comic landing, cream + pink + teal + yellow */

:root {
  --cream: #fff8e7;
  --cream-dark: #f0e6d4;
  --ink: #0d0d0d;
  --pink: #e91e8c;
  --pink-dark: #c2186a;
  --yellow: #ffeb3b;
  --teal: #00bcd4;
  --teal-dark: #0097a7;
  --red: #e53935;
  --outline: 3px solid var(--ink);
  --shadow-hard: 5px 5px 0 var(--ink);
  --font-display: "Bangers", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --halftone: radial-gradient(circle at center, rgba(13, 13, 13, 0.06) 1px, transparent 1px);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee {
    animation: none !important;
  }
  .hero-burst,
  .btn,
  .product-card {
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  background-color: var(--cream);
  background-image: var(--halftone);
  background-size: 10px 10px;
  line-height: 1.45;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--yellow);
  border: var(--outline);
  z-index: 9999;
  font-weight: 900;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--yellow);
  border-bottom: var(--outline);
  box-shadow: 0 4px 0 var(--ink);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: 0.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0;
}

.logo-chuck {
  color: var(--pink);
  text-shadow: 3px 3px 0 var(--ink);
}

.logo-able {
  color: var(--ink);
  text-shadow: 3px 3px 0 rgba(233, 30, 140, 0.35);
}

.logo-tm {
  font-size: 0.45em;
  font-family: var(--font-body);
  font-weight: 900;
  vertical-align: super;
  margin-left: 0.1em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.nav a {
  color: var(--ink);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  border-bottom-color: var(--pink);
  outline: none;
}

/* Hero */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.hero-copy {
  order: 1;
  width: 100%;
}

.hero-burst {
  order: 2;
  position: static;
  align-self: flex-end;
  width: min(36vw, 132px);
  margin: -0.5rem 0 -1rem;
  aspect-ratio: 1;
  background: var(--pink);
  border: var(--outline);
  box-shadow: var(--shadow-hard);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 3.2vw, 1rem);
  line-height: 1.1;
  padding: 0.45rem;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--ink);
  clip-path: polygon(
    50% 0%,
    61% 12%,
    78% 5%,
    82% 22%,
    100% 28%,
    88% 45%,
    100% 62%,
    82% 72%,
    85% 90%,
    65% 85%,
    50% 100%,
    38% 88%,
    18% 92%,
    22% 72%,
    5% 65%,
    18% 48%,
    8% 30%,
    28% 25%,
    22% 8%,
    42% 12%
  );
  z-index: 2;
  transform: rotate(-7deg);
}

@media (min-width: 480px) {
  .hero-burst {
    width: min(34vw, 150px);
    font-size: clamp(0.9rem, 2.6vw, 1.05rem);
    margin: -0.25rem 0.25rem -1.25rem;
  }
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 2rem;
    padding-top: 2.5rem;
  }

  .hero-copy,
  .hero-burst,
  .hero-art,
  .taunt-panel {
    order: unset;
    width: unset;
    align-self: unset;
  }

  .hero-burst {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: min(42vw, 180px);
    margin: 0;
    padding: 0.5rem;
    font-size: clamp(0.95rem, 2.8vw, 1.15rem);
    transform: rotate(-8deg);
  }

}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 0.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 10vw, 5.5rem);
  line-height: 0.95;
  margin: 0;
  color: var(--pink);
  text-shadow: 5px 5px 0 var(--ink), 8px 8px 0 rgba(0, 188, 212, 0.45);
  letter-spacing: 0.02em;
}

.hero-title .tm {
  font-size: 0.35em;
  font-family: var(--font-body);
  vertical-align: super;
  margin-left: 0.05em;
  color: var(--ink);
  text-shadow: 2px 2px 0 var(--yellow);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  text-transform: uppercase;
  font-weight: 900;
  max-width: 22em;
  margin: 1rem 0 1.5rem;
}

.hero-tagline strong {
  color: var(--teal-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 28em;
  opacity: 0.92;
  margin: 0;
}

.hero-art {
  order: 3;
  margin: 0;
  position: relative;
  z-index: 1;
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
  border: var(--outline);
  box-shadow: var(--shadow-hard);
  background: var(--cream-dark);
}

/* Taunt panel */

.taunt-panel {
  order: 4;
  align-self: center;
  width: 100%;
  max-width: 520px;
  grid-column: 1 / -1;
  position: relative;
  background: #fff;
  border: var(--outline);
  box-shadow: var(--shadow-hard);
  padding: 1rem 1.25rem 1.1rem;
  margin: 0 auto;
  border-radius: 1.25rem;
}

.taunt-panel:not([hidden]) {
  display: block;
}

.taunt-bubble-tail {
  position: absolute;
  bottom: 100%;
  left: 20%;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 18px solid var(--ink);
  transform: translateX(-50%);
  margin-bottom: -3px;
}

.taunt-bubble-tail::after {
  content: "";
  position: absolute;
  left: -11px;
  top: 5px;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 15px solid #fff;
}

.taunt-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.75rem 1.25rem;
  border: var(--outline);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

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

.btn-primary {
  background: var(--pink);
  color: var(--yellow);
  text-shadow: 1px 1px 0 var(--ink);
  box-shadow: var(--shadow-hard);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--pink-dark);
  outline: none;
}

.btn-outline {
  background: var(--teal);
  box-shadow: var(--shadow-hard);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--teal-dark);
  color: #fff;
  outline: none;
}

/* Marquee strip */

.strip {
  border-block: var(--outline);
  overflow: hidden;
  padding: 0.65rem 0;
}

.strip-pink {
  background: var(--pink);
  color: var(--yellow);
}

.marquee {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.08em;
  text-shadow: 2px 2px 0 var(--ink);
  width: max-content;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Sections */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-header {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--teal);
  letter-spacing: 0.02em;
}

.section-lede {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.9;
}

.section-controllers {
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 40%);
  border-top: var(--outline);
  max-width: none;
  padding-inline: 0;
}

.section-controllers .section-header,
.section-controllers .split {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 1.25rem;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

.poster-frame {
  margin: 0;
}

.poster-frame img {
  width: 100%;
  height: auto;
  display: block;
  border: var(--outline);
  box-shadow: 8px 8px 0 var(--pink);
  background: #fff;
}

.split-copy {
  padding-bottom: 1rem;
}

.callout-star {
  background: var(--yellow);
  border: var(--outline);
  box-shadow: var(--shadow-hard);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  clip-path: polygon(
    10% 0%,
    90% 0%,
    100% 35%,
    85% 100%,
    15% 100%,
    0% 35%
  );
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  letter-spacing: 0.04em;
}

.feature-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.feature-list em {
  font-style: normal;
  color: var(--pink-dark);
}

.fine-print {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0;
}

/* Product grid */

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card {
  position: relative;
  background: #fff;
  border: var(--outline);
  box-shadow: var(--shadow-hard);
  padding: 1.5rem 1.25rem 1.25rem;
  padding-top: 2.25rem;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.product-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}

.product-burst {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--teal);
  opacity: 0.35;
  clip-path: polygon(
    50% 0%,
    100% 38%,
    82% 100%,
    18% 100%,
    0% 38%
  );
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
}

.product-taunt {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 1rem;
  line-height: 1.35;
}

.product-placeholder {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.6rem;
  background: var(--cream-dark);
  border: 2px dashed var(--ink);
  color: var(--ink);
  opacity: 0.85;
}

/* CTA */

.section-cta {
  padding-bottom: 4rem;
}

.cta-panel {
  max-width: 640px;
  margin: 0 auto;
  background: var(--yellow);
  border: var(--outline);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 2rem 1.5rem;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 0 0 0.5rem;
  text-shadow: 3px 3px 0 var(--pink);
}

.cta-copy {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 480px) {
  .signup-form {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
  }
}

.signup-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: var(--outline);
  background: #fff;
}

.signup-input::placeholder {
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.6;
}

.signup-form .btn {
  flex-shrink: 0;
}

.cta-fine {
  font-size: 0.7rem;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.8;
}

/* Footer */

.site-footer {
  border-top: var(--outline);
  background: var(--ink);
  color: var(--cream);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0.25rem 0;
}

.footer-links a {
  color: var(--yellow);
  font-weight: 900;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--teal);
  outline: none;
}
