/* Home page. Layout only; colors, type and components come from site.css. */

main a.tel { white-space: nowrap; }

/* ---------- hero ---------- */
.home-hero { padding-top: clamp(36px, 5vw, 72px); }
.hero-text h1 {
  font-size: var(--h1);
  line-height: 0.98;
  letter-spacing: -0.028em;
  max-width: 13.5em;
}
.hero-lead {
  margin-top: clamp(16px, 1.6vw, 22px);
  max-width: 35em;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  color: var(--grey);
}
.hero-actions { margin-top: 28px; gap: 10px; }
.hero-status { margin-left: 14px; font-size: var(--fs-small); }

/* The lineup: a full-width stone band under the hero text */
.lineup { margin-top: clamp(32px, 4vw, 52px); }
.lineup-stage svg { width: 100%; height: auto; }
.lineup-stage .compact { display: none; }
/* One moment on load: the pieces are lowered into place in turn, as if from the boom truck.
   Only position moves, so nothing is ever hidden. Inside an SVG, lengths are drawing units
   (about a foot), not screen pixels. */
@media (prefers-reduced-motion: no-preference) {
  .lineup-stage.is-setting .piece {
    animation: set-down 0.9s cubic-bezier(0.3, 0.65, 0.2, 1) backwards;
    animation-delay: calc(0.1s + var(--i, 0) * 0.16s);
  }
}
@keyframes set-down { from { transform: translateY(-0.9px); } }

/* ---------- where to start: an index, one row per job ---------- */
/* The sentences start on the same line as the right-hand column of .split (4fr | 7fr with
   --gap-wide), so these rows, the delivery tool and the contact details share one edge. */
.starts-section { --art: 128px; --col: 28px; }
.starts-head, .start {
  display: grid;
  grid-template-columns: var(--art) calc((100% - var(--gap-wide)) * 4 / 11 + var(--gap-wide) - var(--art) - 2 * var(--col)) minmax(0, 1fr);
  column-gap: var(--col);
}
.starts-head { align-items: end; margin-bottom: clamp(24px, 3vw, 36px); }
.starts-head h2 { grid-column: 1 / 3; }
.starts-head .lead { grid-column: 3; margin-top: 0; }
.starts { list-style: none; border-top: 1px solid var(--ink); }
.starts li { border-bottom: 1px solid var(--rule); }
.start { align-items: center; padding: 14px 0; text-decoration: none; }
.start-art { display: block; aspect-ratio: 4 / 3; background: var(--stone); }
.start-art svg { width: 100%; height: 100%; }
.start-text { display: contents; }
.start-title {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.012em;
}
.start-line { display: block; max-width: 34em; color: var(--grey); }
.start:hover .start-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.start:hover .start-art { background: var(--stone-2); --ill-ground: var(--stone-2); }
.start:focus-visible { outline-offset: 2px; }

/* ---------- featured products ---------- */
.featured-more { margin-top: clamp(36px, 4vw, 52px); }
/* Eight tiles: four across down to tablets (two full rows), two across on phones (site.css). */
@media (min-width: 721px) and (max-width: 1080px) {
  .featured .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 16px; }
  .featured .tile-meta { flex-direction: column; gap: 0; }
}

/* ---------- delivery ---------- */
.delivery-more { margin-top: 24px; }
.town-form .field-label { font-size: var(--fs-body); }
.town-out { margin-top: 14px; padding: 20px 24px 22px; background: var(--white); overflow-wrap: anywhere; }
.town-out:empty { display: none; }
.town-out:focus { outline: none; }
.town-rate {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.town-line { margin-top: 10px; max-width: 36em; }
.town-miss { font-weight: 600; }
.town-miss + .town-line { margin-top: 4px; }
.town-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.rates {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
  margin-top: 28px;
}
.rates li { padding: 12px 0 16px; border-top: 1px solid var(--rule-strong); }
.rates li.is-hit { padding-top: 10px; border-top: 3px solid var(--red); }
.rate-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.rate-price { font-variant-numeric: tabular-nums; }
.rate-where { display: block; margin-top: 2px; font-size: var(--fs-small); line-height: 1.45; color: var(--grey); }

/* ---------- family ---------- */
/* The heading comes first in the page (and first on phones); on wider screens the photo sits to
   its left, spanning the heading and the quotes. */
.family-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "photo head" "photo quotes";
  gap: 0 var(--gap-wide);
  align-items: start;
}
.family-head { grid-area: head; }
.family-photo { grid-area: photo; }
.family-photo img { aspect-ratio: 4 / 3; background: var(--stone); }
.family-head .lead { margin-top: 14px; }
.family-quotes.quotes { grid-area: quotes; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: clamp(28px, 3vw, 40px); }
.family-quotes figure { padding-block: 20px 22px; border-top: 1px solid var(--rule); }
.family-quotes figure:first-child { border-top-color: var(--ink); }

/* ---------- contact strip ---------- */
/* The hours start on the .split line (see "where to start") and are never narrower than their
   longest line, so the open status doesn't wrap under its dot. */
.contact-strip { padding-block: clamp(40px, 5vw, 64px); }
.contact-grid {
  display: grid;
  grid-template-columns: calc((100% - var(--gap-wide)) * 4 / 11 + var(--gap-wide) - var(--gap)) minmax(max-content, 1fr) minmax(0, 1fr);
  gap: 28px var(--gap);
  align-items: start;
}
.contact-h { margin-bottom: 8px; font-family: var(--sans); font-size: var(--fs-body); font-weight: 600; }
.contact-phone {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}
.contact-phone:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.contact-strip p + p { margin-top: 8px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .starts-head { display: block; }
  .starts-head .lead { margin-top: 10px; }
  .start { grid-template-columns: var(--art) minmax(0, 1fr); }
  .start-text { display: block; }
  .start-line { margin-top: 4px; }
  .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .contact-grid { grid-template-columns: minmax(max-content, 1fr) minmax(0, 1fr); }
  .contact-call { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hero-status { flex-basis: 100%; margin: 8px 0 0; }
  .lineup-stage { margin-inline: calc(-1 * var(--gutter)); }
  .lineup-stage .wide { display: none; }
  .lineup-stage .compact { display: block; }
  .starts-section { --art: 92px; --col: 16px; }
  .start { align-items: start; padding: 14px 0; }
  .start-title { font-size: 20px; }
  .start-line { margin-top: 3px; font-size: var(--fs-small); line-height: 1.45; }
  .town-out { padding: 16px 18px 18px; }
  .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .family-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "head" "photo" "quotes"; }
  .family-photo { margin-top: 24px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
