/* Meme kit page. Builds on ../styles.css (masthead, .btn, .ticker, footer). */
.kit-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 24px;
  padding: 48px 4.2% 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 232, 202, 0) 55%, var(--paper) 100%),
    url("../assets/banner.webp") left center / auto 135% no-repeat,
    var(--paper);
  border-top: 3px solid var(--ink);
}
.kit-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 232, 202, 0.92) 0%, rgba(244, 232, 202, 0.7) 45%, rgba(244, 232, 202, 0) 75%);
  pointer-events: none;
}
.kit-hero-copy {
  position: relative;
  padding-bottom: 56px;
}
.kit-hero h1 {
  margin: 6px 0 4px;
  font: clamp(64px, 11vw, 150px) / 0.9 "Rye", serif;
  color: var(--gold);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 6px 6px 0 var(--ink);
}
.kit-hero .hero-line {
  margin: 12px 0 14px;
}
.kit-hero .intro {
  max-width: 520px;
}
.kit-cta {
  display: flex;
  margin-top: 22px;
  max-width: 520px;
}
.kit-cta .btn small {
  font-size: 10px;
  opacity: 0.8;
}
.kit-hero-frog {
  position: relative;
  justify-self: center;
  width: min(100%, 460px);
  height: auto;
  filter: drop-shadow(8px 10px 0 rgba(11, 11, 11, 0.45));
}

.kit-body {
  padding: 24px 4.2% 40px;
}
.kit-section {
  margin: 40px 0 0;
}
.kit-section > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 20px;
  padding-bottom: 8px;
}
.kit-section h2 {
  margin: 0;
  font: 40px var(--display);
  letter-spacing: 1px;
}
.kit-section header p {
  margin: 0;
  font-size: 12px;
}
.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.tile .thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
  background: #e7d6ad;
}
.tile.dark .thumb {
  background:
    conic-gradient(#2a2118 25%, #1d1712 0 50%, #2a2118 0 75%, #1d1712 0) 0 0 / 22px 22px;
}
.tile .thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s;
}
.tile.none .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile.fit .thumb {
  background: var(--ink);
}
.tile .thumb:hover img {
  transform: scale(1.05) rotate(-1deg);
}
.tile figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 12px 10px;
  font-size: 11px;
  flex: 1;
}
.tile figcaption b {
  font: 18px var(--display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tile figcaption span {
  opacity: 0.7;
  font-size: 10px;
}
.tile .dl {
  margin: 0 12px 14px;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 11px;
}
.tile .dl:hover {
  background: var(--gold);
}

.kit-rules {
  margin: 0 4.2% 48px;
  padding: 24px 26px;
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--fire);
}
.kit-rules h2 {
  margin: 0 0 10px;
  font: 32px var(--display);
  color: var(--gold);
}
.kit-rules ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.9;
}

@media (max-width: 700px) {
  .kit-hero {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
  .kit-hero::before {
    background: linear-gradient(180deg, rgba(244, 232, 202, 0.92) 0%, rgba(244, 232, 202, 0.75) 55%, rgba(244, 232, 202, 0.2) 100%);
  }
  .kit-hero-copy {
    padding-bottom: 8px;
  }
  .kit-hero-frog {
    width: min(78%, 320px);
  }
  .kit-hero h1 {
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: 4px 4px 0 var(--ink);
  }
  .kit-section h2 {
    font-size: 30px;
  }
  .kit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .tile figcaption b {
    font-size: 14px;
  }
  .tile .dl {
    margin: 0 8px 10px;
    padding: 8px;
    font-size: 10px;
    gap: 6px;
  }
  .masthead nav {
    gap: 14px;
  }
}
