/* Heroes: rw-hero (home) and rw-page-hero. Ported from Hero.svelte, PageHero.svelte,
   Polaroid.svelte (pinned) and RoundStamp.svelte. */

/* Flame canvas placement; the shared .rw-flames base lives in base.css. */
.rw-hero-flames {
  position: absolute;
  inset: 0;
  height: 100%;
}

.rw-hero,
.rw-pagehero {
  position: relative;
  overflow: hidden;
}
/* A light smoky scrim behind the copy; the fire itself also burns lower on that side. */
.rw-hero::after,
.rw-pagehero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(18 16 16 / 0.45) 0%, rgb(18 16 16 / 0.2) 40%, transparent 60%);
}
.rw-hero-inner,
.rw-pagehero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 56px;
  align-items: center;
}
.rw-hero-inner {
  grid-template-columns: 1.02fr 1fr;
  padding-block: 72px 200px;
}
.rw-pagehero-inner {
  grid-template-columns: 1.1fr 1fr;
  padding-block: 64px 170px;
}

.rw-hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-smoke);
}
.rw-hero-kicker i {
  width: 36px;
  height: 2px;
  background: var(--color-ember);
}
.rw-hero-kicker-label {
  color: var(--color-orange);
  font-size: 16px;
  letter-spacing: 0.08em;
}
.rw-hero-title {
  font-size: clamp(38px, 5.3vw, 70px);
  margin: 22px 0 24px;
}
.rw-pagehero .rw-hero-title {
  font-size: clamp(36px, 4.8vw, 62px);
  margin: 18px 0 22px;
}
.rw-hero-lede {
  max-width: 560px;
  font-size: clamp(16px, 1.45vw, 18.5px);
  line-height: 1.68;
  color: var(--color-cream-body);
}
.rw-pagehero .rw-hero-lede {
  max-width: 540px;
}
.rw-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.rw-pagehero .rw-hero-ctas {
  margin-top: 32px;
}
.rw-hero-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 30px;
  font-size: 28px;
  color: var(--color-orange);
  transform: rotate(-2deg);
  /* Night knockout, like sign lettering, so the note reads when the fire flares behind it. */
  --knockout: var(--color-night);
  text-shadow:
    2px 0 var(--knockout),
    -2px 0 var(--knockout),
    0 2px var(--knockout),
    0 -2px var(--knockout),
    1.5px 1.5px var(--knockout),
    -1.5px 1.5px var(--knockout),
    1.5px -1.5px var(--knockout),
    -1.5px -1.5px var(--knockout);
}
.rw-hero-note svg {
  width: 70px;
  height: 46px;
  margin-top: -6px;
  filter: drop-shadow(0 0 1.5px var(--knockout)) drop-shadow(0 0 1px var(--knockout));
}

/* Pinned polaroid: fills a box the parent positions, taped, caption on the frame. */
.rw-pinned {
  padding: 12px 12px 50px;
  box-shadow:
    0 24px 48px rgb(0 0 0 / 0.6),
    0 2px 6px rgb(0 0 0 / 0.4);
}
.rw-pinned > img {
  height: 100%;
}
.rw-pinned::before {
  content: '';
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 28px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgb(226 163 43 / 0.5);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}
.rw-pinned .rw-polaroid-caption {
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 27px;
  color: var(--color-ink-2);
}
.rw-pinned:hover {
  transform: rotate(0deg) scale(1.03);
  z-index: 5;
}

/* Round stamp. */
.rw-stamp {
  animation: rh-spin 40s linear infinite;
  filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.5));
}
.rw-stamp-disc {
  fill: var(--color-ember);
}
.rw-stamp-line {
  fill: none;
  stroke: var(--color-cream);
  stroke-width: 1.5;
}
.rw-stamp-dashed {
  stroke-dasharray: 3 5;
}
.rw-stamp text {
  fill: var(--color-cream);
}
.rw-stamp-ring {
  font-family: var(--font-rye);
  font-size: 15px;
}
.rw-stamp-center {
  font-family: var(--font-slab);
  font-size: 34px;
}
.rw-stamp-sub {
  font-family: var(--font-rye);
  font-size: 12px;
  letter-spacing: 2px;
}

/* Home collage. */
.rw-hero-collage {
  position: relative;
  height: 610px;
}
.rw-hero-collage .rw-p1 {
  position: absolute;
  width: 60%;
  height: 51%;
  right: 2%;
  top: 0;
}
.rw-hero-collage .rw-p2 {
  position: absolute;
  width: 46%;
  height: 52%;
  left: 0;
  top: 27%;
  z-index: 2;
}
.rw-hero-collage .rw-p3 {
  position: absolute;
  width: 42%;
  height: 46%;
  right: 8%;
  bottom: 0;
  z-index: 3;
}
.rw-hero-collage .rw-hero-stamp {
  position: absolute;
  left: 30%;
  top: -26px;
  width: 150px;
  height: 150px;
  z-index: 4;
}

/* Page hero snaps. */
.rw-pagehero-snaps {
  position: relative;
  height: 440px;
}
.rw-pagehero-snaps .rw-s1 {
  position: absolute;
  left: 0;
  top: 0;
  width: 64%;
  height: 64%;
}
.rw-pagehero-snaps .rw-s2 {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56%;
  height: 60%;
  z-index: 2;
}

@media (max-width: 767.98px) {
  .rw-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 44px 230px;
  }
  .rw-pagehero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 44px 150px;
  }
  .rw-hero-title,
  .rw-pagehero .rw-hero-title {
    font-size: 9.6vw;
  }
  .rw-hero-ctas .rh-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .rw-hero-note {
    font-size: 24px;
  }
  /* Deliberate deviation from the reference, whose phone collage hides the ribs caption:
     ribs print on top, the other two side by side below it, every caption clear. */
  .rw-hero-collage {
    height: 500px;
    margin-top: 20px;
  }
  .rw-hero-collage .rw-p1 {
    width: 76%;
    height: 50%;
    right: 4%;
  }
  .rw-hero-collage .rw-p2 {
    top: auto;
    bottom: 4%;
    width: 52%;
    height: 40%;
    z-index: 3;
  }
  .rw-hero-collage .rw-p3 {
    right: 0;
    width: 47%;
    height: 46%;
    z-index: 2;
  }
  .rw-hero-collage .rw-pinned .rw-polaroid-caption {
    font-size: 23px;
  }
  .rw-hero-collage .rw-hero-stamp {
    width: 96px;
    height: 96px;
    left: auto;
    right: -4px;
    top: -26px;
  }
  .rw-pagehero-snaps {
    height: 340px;
  }
}
