/* Pooch Purrfect Pet Spa: Howl-O-Ween winners
   Loaded on the home page only while HOWL_WINNERS is True in tools/build.py.
   Self-contained, so it works with spooky.css off. The cobweb and pumpkin are the
   drawings from assets/spooky/; they can't be clicked and screen readers skip them. */

.champs {
  --pumpkin: #f28f3b;
  --pumpkin-soft: #ffeeda;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--pumpkin-soft);
  padding: 60px 0 96px;
}
.champs-web {
  position: absolute; z-index: -1; top: 0; left: 0; pointer-events: none;
  width: clamp(120px, 30vw, 300px); opacity: .22;
}
.champs-pumpkin {
  position: absolute; z-index: 1; pointer-events: none;
  right: max(14px, calc((100vw - var(--max)) / 2 + 10px)); bottom: 16px;
  width: clamp(70px, 16vw, 128px); transform: rotate(7deg);
}

.champs-head { max-width: 36rem; margin: 0 0 36px auto; text-align: right; }
.champs-head h2 { font-variation-settings: "WONK" 1; font-size: clamp(2.2rem, 8vw, 3.9rem); margin-bottom: .3em; }
.champs-head .lede { color: var(--ink); margin: 0 0 0 auto; max-width: 34ch; }

.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 16px; }
.champ { margin: 0; }
.champ.p1 { grid-column: 1 / -1; max-width: 440px; width: 100%; justify-self: center; }
.champ-arch { border-radius: 999px 999px 26px 26px; overflow: hidden; background: var(--tint); padding: 8px; }
.champ-arch img { border-radius: 999px 999px 20px 20px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.champ.p1 .champ-arch { padding: 10px; }

/* The ribbon is pinned over the bottom edge of the photo, like it was handed out. */
.champ-meta { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-top: -34px; padding-left: 6px; position: relative; }
.champ-meta .rosette { width: 56px; transform: rotate(-8deg); }
.champ-meta div { padding-top: 40px; }
.champ h3 { font-size: 1.35rem; margin: 0 0 .2em; }
.champ.p1 h3 { font-size: clamp(1.8rem, 6vw, 2.3rem); font-variation-settings: "WONK" 1; }
.champ p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.champ.p1 .rosette { width: 74px; }
.champ.p1 .champ-meta { margin-top: -44px; }
.champ.p1 .champ-meta div { padding-top: 50px; }
.champ.p1 p { font-size: 1.05rem; color: var(--ink); }

@media (max-width: 420px) {
  .champ-meta { grid-template-columns: 1fr; gap: 0; }
  .champ-meta div { padding-top: 4px; }
  .champ.p1 .champ-meta { grid-template-columns: auto 1fr; gap: 12px; }
  .champ.p1 .champ-meta div { padding-top: 50px; }
}

@media (min-width: 900px) {
  .champs { padding: 96px 0 120px; }
  .champs-head { margin-bottom: 56px; }
  /* A podium that steps down: first is tallest, then second, then third. */
  .podium { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; align-items: start; }
  .champ.p1 { grid-column: auto; max-width: none; }
  .champ.p2 { margin-top: 72px; }
  .champ.p3 { margin-top: 144px; }
  .champ h3 { font-size: 1.55rem; }
}

/* The prize terms, from the salon's winners post. Kept clear of the pumpkin. */
.champs-note { max-width: 46ch; margin: 44px 0 0; padding-right: clamp(80px, 18vw, 150px); font-size: 1rem; color: var(--ink); }
@media (min-width: 900px) { .champs-note { margin-top: 64px; padding-right: 0; } }
