/* ============================================================
   HOME — playful storefront (banner slider, collections, rail)
   Loaded after styles.css on the homepage only.
   ============================================================ */

.home {
  --mint: #bfead2;
  --mint-ink: #0f5a3a;
  --lemon: #ffe27a;
  --sky: #cfe6ff;
  --lilac: #ddd1ff;
  --coral-soft: #ffd6c6;
}

/* width/height attributes are for CLS only; sizing comes from aspect-ratio below */
:where(.home main) img {
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.home .site-header {
  top: 0;
}

/* the tilted marquee is wider than the viewport; clip it instead of scrolling sideways */
.home main {
  overflow-x: clip;
}

/* ---------- announcement bar ---------- */
.home-announce {
  overflow: hidden;
  background: var(--navy);
  color: var(--bone);
  font-size: 0.86rem;
  font-weight: 900;
}

.home-announce-track {
  display: flex;
  width: max-content;
  gap: 42px;
  padding: 9px 0;
  animation: home-scroll 32s linear infinite;
}

.home-announce-track span {
  white-space: nowrap;
}

@keyframes home-scroll {
  to { transform: translateX(50%); }
}

/* ---------- shared bits ---------- */
.home-title {
  margin: 0;
  color: var(--navy);
  font-family: "Lalezar", "Cairo", sans-serif;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
}

.home-title em {
  color: var(--coral);
  font-style: normal;
}

.home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 26px;
}

.home-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.home-kicker {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.home-ticks {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.home-ticks li {
  position: relative;
  padding-inline-start: 30px;
  font-weight: 700;
  line-height: 1.6;
}

.home-ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* .product-order (styles.css) is a text link; keep our pill buttons and tiles intact */
.home .button.product-order {
  padding: 13px 22px;
  border: 0;
  font-size: 1rem;
}

.home .button-primary.product-order {
  background: var(--coral);
  color: var(--white);
}

.home .button-primary.product-order:hover {
  background: var(--coral-dark);
  color: var(--white);
}

.home .home-make-tile.product-order {
  padding: 18px 16px;
  font-size: 1rem;
}

.home .home-make-tile.product-order:hover {
  color: var(--navy);
}

.home-btn-dark {
  background: var(--navy);
  color: var(--white);
}

.home-btn-dark:hover {
  background: #000;
}

.home-btn-dark svg,
.home-slide .button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  transform: rotate(180deg);
}

/* ---------- hero slider ---------- */
.home-hero {
  padding-block: 18px 8px;
}

.home-slides {
  position: relative;
  display: grid;
}

.home-slide {
  grid-area: 1 / 1;
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 30px 22px 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-24px) scale(0.985);
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 620ms;
}

.home-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

.home-slide.tone-coral { background: var(--coral); color: var(--white); }
.home-slide.tone-navy { background: var(--navy); color: var(--bone); }
.home-slide.tone-lemon { background: var(--lemon); color: var(--navy); }

.home-slide h1,
.home-slide h2 {
  margin: 0;
  font-family: "Lalezar", "Cairo", sans-serif;
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  font-weight: 400;
  line-height: 1.02;
}

.home-slide.tone-navy h2 { color: var(--white); }
.home-slide.tone-navy .home-kicker { color: var(--coral); }

.home-lead {
  max-width: 470px;
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.8;
  font-weight: 600;
}

.home-slide-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.home-link-light {
  padding-block: 6px;
  border-bottom: 2px solid currentColor;
  font-weight: 900;
}

/* name typer */
.home-name {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  max-width: 470px;
  padding: 6px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(10, 37, 64, 0.2);
}

.home-name input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: 700 1rem "Cairo", sans-serif;
  outline: none;
}

.home-name .button {
  min-height: 48px;
  padding-inline: 18px;
  white-space: nowrap;
}

.home-name:focus-within {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.home-name-preview {
  margin: 14px 0 0;
  min-height: 1.2em;
  color: var(--navy);
  font-family: "Lalezar", "Cairo", sans-serif;
  font-size: clamp(2.4rem, 9vw, 3.6rem);
  line-height: 1;
  text-shadow: 0 3px 0 rgba(10, 37, 64, 0.25);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}

.home-name-preview span {
  display: inline-block;
  animation: home-pop 380ms cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes home-pop {
  from { transform: scale(0.82); opacity: 0.4; }
}

/* slide art */
.home-slide-art {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(100%, 520px);
}

.home-slide-art > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 8px solid var(--white);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 24px 50px rgba(10, 37, 64, 0.3);
  transform: rotate(-3deg);
}

.tone-navy .home-slide-art > img { transform: rotate(3deg); }

.home-sticker {
  position: absolute;
  top: -14px;
  inset-inline-start: -8px;
  display: grid;
  place-items: center;
  width: 96px;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 50%;
  background: var(--lemon);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 10px 22px rgba(10, 37, 64, 0.25);
  transform: rotate(12deg);
  animation: home-bob 3.2s ease-in-out infinite;
}

.home-sticker b {
  font-family: "Lalezar", "Cairo", sans-serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 0.9;
}

.home-sticker-mint {
  background: var(--mint);
  color: var(--mint-ink);
}

.home-sticker-mint b { font-size: 1.35rem; }

@keyframes home-bob {
  50% { transform: rotate(6deg) translateY(-6px); }
}

/* collage of design renders */
.home-collage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.home-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 10px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(10, 37, 64, 0.18);
}

.home-collage img:first-child {
  grid-row: span 2;
  object-fit: cover;
  padding: 0;
  transform: rotate(-2deg);
}

.home-collage img:nth-child(2) { transform: rotate(3deg); }
.home-collage img:nth-child(3) { transform: rotate(-2deg); }

/* slider controls */
.home-slider-nav {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.home-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.12);
  cursor: pointer;
}

.home-arrow svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
}

.home-dots {
  display: flex;
  gap: 8px;
}

.home-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.2);
  cursor: pointer;
  transition: width 260ms ease, background-color 260ms ease;
}

.home-dots button[aria-selected="true"] {
  width: 30px;
  background: var(--coral);
}

/* ---------- collections ---------- */
.home-collections {
  padding-block: 44px 16px;
}

.home-collections .home-title {
  margin-bottom: 22px;
  text-align: center;
}

.home-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.home-collection {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1.05rem;
  text-align: center;
}

.home-collection span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  transition: transform 260ms cubic-bezier(0.3, 1.5, 0.5, 1), border-radius 260ms ease;
}

.home-collection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.home-collection:hover span {
  border-radius: 38%;
  transform: translateY(-6px) rotate(-3deg);
}

.home-collection b { font-weight: 900; }

.tone-coral > span, .home-make-tile.tone-coral { background: var(--coral-soft); }
.tone-mint > span, .home-make-tile.tone-mint { background: var(--mint); }
.tone-sky > span, .home-make-tile.tone-sky { background: var(--sky); }
.tone-lemon > span, .home-make-tile.tone-lemon { background: var(--lemon); }
.home-make-tile.tone-lilac { background: var(--lilac); }

/* ---------- products rail ---------- */
.home-products {
  padding-block: 52px 24px;
}

.home-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
}

.home-card {
  scroll-snap-align: start;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px 10px 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  transition: box-shadow 220ms ease;
}

.home-card:hover {
  box-shadow: 0 18px 44px rgba(10, 37, 64, 0.16);
}

.home-card-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 8px;
  border-radius: 18px;
  background: #f3f1ee;
}

.home-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.home-card-img img.home-fit { object-fit: contain; }

.home-card:hover .home-card-img img { transform: scale(1.05); }

.home-card-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 900;
}

.home-card-kind {
  padding-inline: 6px;
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.home-card-title {
  padding-inline: 6px;
  font-size: 1.04rem;
  font-weight: 900;
  line-height: 1.5;
}

.home-card-price {
  padding-inline: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.home-card:first-child .home-card-price {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 900;
}

/* ---------- name feature ---------- */
.home-feature {
  padding-block: 44px;
}

.home-feature-grid {
  display: grid;
  gap: 30px;
  align-items: center;
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  background: var(--coral-soft);
}

.home-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-mosaic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid var(--white);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(10, 37, 64, 0.16);
}

.home-mosaic img:first-child { transform: rotate(-3deg); }
.home-mosaic img:last-child { transform: rotate(3deg) translateY(18px); }

.home-feature-copy .home-kicker { color: var(--coral-dark); }

.home-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.home-tiers span {
  display: block;
  min-width: 92px;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  text-align: center;
}

.home-tiers b {
  font-family: "Lalezar", "Cairo", sans-serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
}

.home-tiers small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

/* ---------- big marquee ---------- */
.home-marquee {
  overflow: hidden;
  margin-block: 26px;
  background: var(--navy);
  transform: rotate(-1.5deg);
}

.home-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 26px;
  padding: 14px 0 8px;
  color: var(--bone);
  font-family: "Lalezar", "Cairo", sans-serif;
  font-size: clamp(2rem, 6vw, 3.2rem);
  white-space: nowrap;
  animation: home-scroll 26s linear infinite;
}

.home-marquee-track i {
  color: var(--coral);
  font-style: normal;
  font-size: 0.7em;
}

/* ---------- what we can make ---------- */
.home-make-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.home-make-tile {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  padding: 18px 16px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--navy);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 240ms ease;
}

.home-make-tile:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 16px 30px rgba(10, 37, 64, 0.14);
}

.home-make-tile strong {
  font-family: "Lalezar", "Cairo", sans-serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.05;
}

.home-make-tile span {
  font-size: 0.88rem;
  line-height: 1.6;
}

.home-make-tile em {
  margin-top: auto;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

/* ---------- business band ---------- */
.home-business {
  padding-block: 20px 40px;
}

.home-business-grid {
  display: grid;
  gap: 30px;
  align-items: center;
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--bone);
}

.home-business .home-title { color: var(--white); }
.home-business .home-kicker { color: var(--coral); }

.home-business-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-business-art img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  background: var(--white);
}

.home-business-art img:last-child { transform: translateY(22px); }

/* ---------- desktop ---------- */
@media (min-width: 760px) {
  .home-hero { padding-block: 26px 10px; }

  .home-slide {
    grid-template-columns: 1.05fr 1fr;
    gap: 36px;
    min-height: 500px;
    padding: 46px 54px;
  }

  .home-collection-grid { grid-template-columns: repeat(4, 1fr); gap: 26px; }

  .home-rail {
    grid-auto-columns: calc((100% - 48px) / 4);
  }

  .home-feature-grid,
  .home-business-grid {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 48px 54px;
  }

  .home-make-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .home .home-make-tile.product-order { min-height: 190px; padding: 24px 22px; }
  .home-make-tile strong { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-announce-track,
  .home-marquee-track,
  .home-sticker { animation: none; }
  .home-slide { transition: none; }
}
