/* The home page of STAR Prints by CHA Prints: the welcome hero on flat Mist
 * (six product photo tiles), how ordering works on white, and "Don't see it?"
 * on Mist. Loaded after site.css, on the home page only.
 *
 * 🔴 No hex colors (tokens only), no shadows, no vh/svh/dvh/lvh.
 * 🔴 Nothing here moves or fades: the home page loads no script (the five
 *    product screens and their scroll reveal went in the home trim,
 *    Christian, 2026-10-29).
 * 🔴 Each tile holds a product page's own In use photograph, the sample art
 *    drawn on it at build time (in-use-scenes.js). The art is never warped.
 */

/* Until Jan 1, 2027: the price from Jan 1 under a "from" price. */
.hero-tile-price .jan-line {
  display: block;
}

/* ---- the hero: a welcome, two ways in, six products ---------------------- */
/* Christian, 2026-10-28: a first visit sees a welcome and a shop button, not one
   yard sign, and the hero is flat Mist: the gradient stays in the header bar only
   ("seems to ai made" across the hero). The tiles are six product pages' own
   In use photographs, each with its sample art drawn at build time (the paint
   below mirrors the home photos). No new gradient, glow or pattern. */
.hero-welcome {
  background: var(--mist);
}

.home .hero-inner {
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
}

.hero-welcome .lede,
.hero-tile-price,
.hero-caption {
  color: var(--dusk);
}

.hero-hello {
  margin-bottom: calc(-1 * var(--space-2));
  color: var(--ink);
  font-size: var(--size-lede);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: var(--space-3);
  row-gap: var(--space-1);
}

/* The welcome logo: the header's words, STAR PRINTS over By CHA PRINTS, in the light theme. "By CHA PRINTS" is a link
   laid over its own part of the logo (placed by the generator), 48 px tall at least and growing downward only, never up
   into STAR PRINTS (as the header's). */
.welcome-brand {
  position: relative;
  width: min(100%, 300px);
  margin-bottom: 14px;
}

/* Each sentence of the line stays whole where it fits (one per line on a wide screen); a phone wraps inside one. */
.lede-line {
  display: inline-block;
}

.welcome-title {
  margin: 0;
  line-height: 0;
}

.welcome-logo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.welcome-logo path {
  fill: var(--navy);
}

.welcome-logo .word-prints path {
  fill: var(--ink);
}

.welcome-logo .underline {
  fill: none;
  stroke: var(--blue);
}

.welcome-cha {
  position: absolute;
  min-height: 48px;
  border-radius: 4px;
}

.welcome-cha:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

.hero-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  width: 100%;
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
}

.hero-tile-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--navy);
  text-decoration: none;
}

.hero-tile-shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 4px;
  overflow: hidden;
  border-radius: var(--radius-row);
  background: var(--scene-object);
}

.hero-tile-zoom {
  position: absolute;
}

.hero-tile-photo,
.hero-tile-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-tile-photo {
  object-fit: cover;
}

.hero-tile-name {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}

.hero-tile-link:hover .hero-tile-name {
  text-decoration-color: currentColor;
}

.hero-caption {
  margin-top: calc(-1 * var(--space-1));
}

@media (min-width: 600px) {
  .hero-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .welcome-brand {
    width: 420px;
    margin-bottom: 4px;
  }

  .home .hero-inner {
    padding-top: var(--space-10);
    padding-bottom: var(--space-8);
  }
}

@media (min-width: 960px) {
  .welcome-brand {
    width: 500px;
  }

  .hero-tiles {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--space-3);
    margin-top: var(--space-5);
  }
}

/* The tiles' paint mirrors the /shop/ tiles' in shop.css. */
.hero-tile-art .shot-face {
  fill: var(--white);
  stroke: var(--hairline);
  stroke-width: .5px;
  vector-effect: non-scaling-stroke;
}

.hero-tile-art .shot-shadow {
  fill: var(--midnight);
  opacity: .18;
}

.hero-tile-art .shot-stake,
.hero-tile-art .shot-tie {
  stroke: var(--midnight);
  fill: none;
  opacity: .5;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

/* ---- how ordering works: the only numbered list, because it is a sequence -- */
/* On white, between the Mist hero and the Mist "Don't see it?", so the colors
   take turns (Christian's "C: alternate", 2026-10-29). */
.how {
  padding-block: var(--section-gap);
}

.how-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5) var(--space-4);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}

.how-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--size-h2);
  font-weight: 700;
  line-height: 1;
  color: var(--dusk);
}

.how-step h3 {
  margin-top: var(--space-2);
}

.how-step p {
  margin-top: var(--space-1);
  color: var(--dusk);
}

.how-guarantee {
  margin-top: var(--space-5);
}

.how-guarantee a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 48px;
}

@media (min-width: 600px) {
  .how-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .how-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- don't see it? ---------------------------------------------------------- */
.no-see-band {
  background: var(--mist);
}

/* A size never breaks across lines: "24″ × 18″" stays together. */
.nobr {
  white-space: nowrap;
}

/* "Shop exclusives" (2026-11-18): the outlined twin of .btn, only while /shop/exclusive/ has products. */
.btn-alt {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}

/* With both hero buttons, phones from 360 px keep them on one line, so the tiles under them do not move down. */
@media (max-width: 479px) {
  .hero-actions:has(.home-ex) {
    column-gap: var(--space-1);
  }
  .hero-actions:has(.home-ex) .btn {
    padding: 0 14px;
  }
}
