/* Get Found. The search the customer typed, set huge behind the phone that shows it; the four monthly jobs, each as the
   real thing it makes (a post, a review request and reply, one listing in four places, this month's question to
   ChatGPT); the price. Motion is tied to the scroll and rests where it ends. */

/* Head: vermilion, the words "bakery near me" as big as the band allows, the search in front of them. */
.gh { position: relative; overflow: clip; background: var(--signal); color: var(--ink); }
.gh__query { position: absolute; right: max(0px, (100vw - var(--wrap)) / 2 - 1vw); bottom: -0.11em; margin: 0; display: grid; justify-items: end; font: 900 min(20vw, 34vh)/.8 var(--display); letter-spacing: -0.02em; text-transform: uppercase; color: var(--bone); pointer-events: none; user-select: none; }
.gh__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4) var(--s5); align-items: start; min-height: min(calc(100svh - var(--head) - 56px), 820px); padding: clamp(36px, 6vh, 72px) 0 0; }
.gh__copy { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: start; max-width: 560px; }
.gh__title { font-size: clamp(60px, 7vw, 120px); font-weight: 900; line-height: .84; }
.gh__lede { max-width: 36ch; font: 500 clamp(19px, 1.45vw, 22px)/1.4 var(--text); }
.gh__price { font-size: 18px; max-width: 40ch; }
.gh__phone { position: relative; justify-self: center; align-self: end; width: min(100%, 540px); margin-bottom: -6%; }
.gh__phone img { width: 100%; filter: drop-shadow(0 40px 50px rgba(19, 17, 21, .35)); }
.gh__phone figcaption { position: absolute; left: -12%; top: 16%; max-width: 17ch; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--on-dark); font: 600 16px/1.3 var(--text); box-shadow: 0 20px 30px -18px rgba(0, 0, 0, .6); }

/* The four jobs, two to a row, the wide one swapping sides. */
.monthly { background: var(--bone); padding: clamp(72px, 11vh, 112px) 0; }
.monthly__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s5); align-items: end; margin-bottom: var(--s5); }
.monthly__head p { max-width: 44ch; color: var(--slate); }
.jobs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5) clamp(28px, 3.4vw, 56px); align-items: start; }
.job { display: grid; gap: var(--s3); align-content: start; }
.job--posts { grid-column: span 7; }
.job--reviews { grid-column: span 5; }
.job--places { grid-column: span 5; }
.job--ask { grid-column: span 7; }
.job__words { display: grid; gap: 8px; max-width: 46ch; }
.job__words p { color: var(--slate); }
.piece { border-radius: var(--r); background: var(--paper); box-shadow: 0 0 0 1px var(--hair), 0 30px 44px -34px rgba(19, 17, 21, .5); }

/* A post on the listing: the photo, who posted it, the words. */
.post { overflow: hidden; }
.post img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.post__text { display: grid; gap: 6px; padding: 18px 22px 22px; font-size: 18px; }
.post__by { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.post__by span { color: var(--slate); font-size: 16px; }

/* A review request by text, and a review with our reply under it. The review itself is left for the customer. */
.reviews { display: grid; gap: 18px; padding: 22px; }
.sms { justify-self: start; display: grid; gap: 4px; max-width: 34ch; padding: 12px 16px; border-radius: 18px 18px 18px 4px; background: var(--hair); font-size: 17px; line-height: 1.4; }
.sms__from { font-weight: 700; font-size: 16px; color: var(--slate); }
.review { display: grid; gap: 10px; padding: 18px; border-radius: 12px; background: var(--bone); }
.review__theirs { padding: 14px 16px; border: 2px dashed var(--hair); border-radius: 10px; color: var(--slate); font-style: italic; }
.review__by { margin-top: 4px; font: 700 16px/1.2 var(--text); color: var(--signal-ink); }
.review__ours { padding-left: 16px; border-left: 3px solid var(--ink); font-size: 17px; }

/* One listing in four places: scattered as you arrive, squared up as you read, because they all say the same. */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; background: var(--ink); box-shadow: none; }
.place { display: grid; gap: 2px; align-content: start; padding: 14px 16px; border-radius: 10px; background: var(--paper); font-size: 16px; line-height: 1.35; }
.place__where { margin-bottom: 4px; font: 700 15px/1.2 var(--text); letter-spacing: .04em; text-transform: uppercase; color: var(--signal-ink); }
.place__name { font-size: 17px; }
.place__line { color: var(--slate); }

/* This month's question to ChatGPT, typed the way a customer would. */
.ask { display: grid; gap: 16px; padding: clamp(22px, 2.6vw, 36px); background: var(--night); color: var(--on-dark); box-shadow: 0 30px 44px -30px rgba(19, 17, 21, .6); }
.ask__who { font: 700 15px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-soft); }
.ask__q { justify-self: end; max-width: 26ch; padding: 18px 22px; border-radius: 24px 24px 6px 24px; background: var(--on-dark); color: var(--ink); font: 600 clamp(22px, 2vw, 28px)/1.3 var(--text); }
.ask__then { padding-top: 16px; border-top: 1px solid var(--hair-dark); font-size: 18px; color: var(--on-dark); }

/* The price: night, the number big, the search phone lying beside it. */
.gp { position: relative; overflow: clip; background: var(--night); color: var(--on-dark); padding: clamp(72px, 11vh, 112px) 0; }
.gp__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4) var(--s5); align-items: center; }
.gp__copy { display: grid; gap: 18px; justify-items: start; }
.gp__amount { display: flex; align-items: baseline; gap: 14px; font: 700 22px/1 var(--text); }
.gp__amount span { font: 900 clamp(120px, 13vw, 220px)/.8 var(--display); letter-spacing: -0.02em; color: var(--signal); }
.gp__setup { font: 700 22px/1.3 var(--text); }
.gp__note { max-width: 44ch; color: var(--on-dark-soft); }
.gp__phone { width: 118%; max-width: 760px; margin: -12% -10% -14% -4%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }

@media (prefers-reduced-motion: no-preference) {
  .gh__phone img { animation: rise 1s var(--ease) both; }
  @supports (animation-timeline: view()) {
    .gh__query { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .place { animation: square-up linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    .place:nth-child(1) { --r: -9deg; --x: -18px; --y: 26px; }
    .place:nth-child(2) { --r: 7deg; --x: 22px; --y: -10px; }
    .place:nth-child(3) { --r: 5deg; --x: -12px; --y: 18px; }
    .place:nth-child(4) { --r: -6deg; --x: 16px; --y: 30px; }
    .gp__phone { animation: lie linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 80px; } }
@keyframes drift { to { transform: translateX(-6%); } }
@keyframes square-up { from { transform: translate(var(--x), var(--y)) rotate(var(--r)); } to { transform: none; } }
@keyframes lie { from { transform: rotate(-10deg) translateY(40px); } to { transform: rotate(6deg) translateY(-30px); } }

@media (max-width: 899.98px) {
  .gh__in, .gp__in, .monthly__head { grid-template-columns: minmax(0, 1fr); }
  .gh__in { min-height: 0; padding-top: 28px; }
  .gh__query { font-size: 25vw; }
  .gh__phone { width: min(86vw, 440px); margin-bottom: -10%; }
  .gh__phone { display: grid; justify-items: center; gap: 14px; }
  .gh__phone figcaption { position: static; order: -1; max-width: 30ch; text-align: center; }
  .jobs { grid-template-columns: minmax(0, 1fr); }
  .job--posts, .job--reviews, .job--places, .job--ask { grid-column: auto; }
  .gp__phone { width: min(96vw, 520px); margin: -10% auto -16%; justify-self: center; }
}
@media (max-width: 459.98px) {
  .places { grid-template-columns: minmax(0, 1fr); }
}

/* The phone number in the band that ends the page is a link: give it a full tap target. */
.next__call a { display: inline-flex; align-items: center; min-height: 44px; }
