/* alohamc.com, the home page's own CSS (after site.css), scoped to body[data-page="home"] where a
   rule names a section by its id. */

/* hero: the map still is the layer behind the words' box */
#top.hero--photo > .hero__bg { --ly-pos: 62% 50%; --ly-pos-phone: 50% 50%; overflow: hidden; }
#top.hero--photo > .hero__bg > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--ly-pos); }
@media (max-width: 639px) { #top.hero--photo > .hero__bg > img { object-position: var(--ly-pos-phone); } }
/* the box on seven of the twelve columns from 1024, so the name sets on one line in the wide face and
   the town stays in view beside it */
@media (min-width: 1024px) {
  #top.hero--photo .hero__text { width: calc((100% - 11 * var(--gutter, 24px)) / 12 * 7 + 6 * var(--gutter, 24px)); }
  #top.hero--photo h1 { max-width: none; }
}

/* shared */
.s-photo { --ratio: 56.25%; }
.lead-line { margin: 0 0 var(--s-6); font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 44ch; }

/* features: a short ruled list beside one picture */
.features .rows__name { font-weight: 500; }
/* its picture is a whole screenshot in a frame as tall as the list (from 1024) or 16:9 (below), so
   the frame crops it: keep the house, right of centre, and more shore than sky */
[data-page="home"] #features .frame__img { object-position: 70% 57%; }

/* the address: set large in the mono face (the page's type moment), the copy button and the live
   count under it, then the four steps to join */
.type-moment { margin: var(--s-5) 0 0; font: 400 clamp(36px, 7.4vw, 108px)/1.05 var(--font-mono); letter-spacing: -0.04em; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.address__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-6); min-height: 44px; }
:root:not(.js) [data-copy] { display: none; }

/* the steps: a numbered list, because the order is the point. Each step is a column under its own
   rule (drawn in effects.css), the number in the display face; four across, two on a tablet, one on
   a phone */
.steps { margin: var(--s-8) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); counter-reset: step; }
.steps > li { counter-increment: step; padding-top: var(--s-4); }
.steps > li::before { content: counter(step); display: block; margin-bottom: var(--s-4); font: var(--display-weight) var(--t-h3)/1 var(--font-display); font-stretch: var(--display-stretch); color: var(--muted); }
.steps h3 { margin: 0 0 var(--s-2); font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.steps p { margin: 0; max-width: 40ch; }

@media (max-width: 1023px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the address on two lines on a tablet and a phone, broken after "play." */
  .type-moment .hue::before { content: "\A"; white-space: pre; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .type-moment { font-size: 10vw; }
  [data-page="home"] #season-3 .lead-line { max-width: none; }
  /* stacked under its words, a picture gets room of its own */
  [data-page="home"] :is(#features, #season-3) .s-photo { margin-top: var(--s-5); }
}
@media (max-width: 639px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
  [data-page="home"] :is(#features, #season-3) .s-photo { margin-top: var(--s-5); }
}

/* the halo of the Season 3 section leans to the sign's sky cyan */
[data-page="home"] #season-3.bg-halo { --g-hue: #2f8fa3; --g-hue-b: #1858a8; }
