/* Home page composition.
   Dark woodland hero, torn into cream; the sites introduction; the navy
   blueprint sheet with the tilted runner print; the FAQ line; the two
   sites in photographs; the closing invitation. */

/* ------------------------------------------------------------------
   Hero: the photo band at full height with the display headline
   ------------------------------------------------------------------ */

.home-hero {
  --focus: 50% 64%;
  min-height: clamp(36rem, 92vh, 56rem);
  padding-bottom: calc(var(--tear-height) + var(--space-8));
}

.home-hero__title {
  font-size: var(--text-display);
  line-height: var(--leading-display);
}

@media (min-width: 48rem) {
  .home-hero {
    justify-content: center;
  }

  .home-hero__title {
    max-width: 6.4em;
  }
}

@media (max-width: 47.99rem) {
  .home-hero {
    --focus: 50% 40%;
    min-height: clamp(34rem, 88vh, 44rem);
    padding-bottom: calc(var(--tear-height) + var(--space-8));
  }

  .home-hero .photo-band__media img {
    height: 74%;
  }
}

/* ------------------------------------------------------------------
   Riverpower sites: heading and lede beside the intake photograph
   ------------------------------------------------------------------ */

.home-sites {
  padding-top: var(--section-m);
}

.home-sites__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--space-7);
}

.home-sites__text,
.home-sites__photo {
  grid-column: 1 / -1;
}

.home-sites__title {
  margin-bottom: var(--space-6);
}

.home-sites__text .lede + p {
  margin-top: var(--space-6);
}

@media (min-width: 48rem) {
  .home-sites {
    padding-bottom: calc(var(--section-m) + 6rem);
  }

  .home-sites__text {
    grid-column: 1 / span 6;
    padding-top: var(--space-4);
  }

  .home-sites__photo {
    grid-column: 7 / -1;
    margin-top: var(--space-9);
  }
}

@media (min-width: 64rem) {
  .home-sites__text {
    grid-column: 1 / span 5;
  }

  .home-sites__photo {
    grid-column: 7 / -1;
  }
}

/* ------------------------------------------------------------------
   Technical information on the blueprint sheet.
   The runner print rises over the torn edge into the paper above.
   ------------------------------------------------------------------ */

.home-technical {
  padding-block: calc(var(--tear-height) + var(--space-8)) calc(var(--tear-height) + var(--space-8));
}

.home-technical__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--space-7);
  align-items: center;
}

.home-technical__photo,
.home-technical__text,
.home-technical__drawing {
  grid-column: 1 / -1;
}

.home-technical__photo {
  --tilt: -2.5deg;
  width: min(80%, 20rem);
  margin-top: calc(-1 * (var(--tear-height) + var(--space-9)));
}

.home-technical__text > * + * {
  margin-top: var(--space-5);
}

.home-technical__text h2 {
  margin-bottom: var(--space-2);
}

.home-technical__text p {
  max-width: 30rem;
}

.home-technical__text .btn {
  margin-top: var(--space-3);
}

.home-technical__drawing {
  max-width: 36rem;
}

@media (min-width: 48rem) {
  .home-technical__photo {
    grid-column: 1 / span 5;
    width: auto;
    margin-top: calc(-1 * (var(--tear-height) + var(--space-10)));
    margin-bottom: calc(-1 * var(--space-6));
    align-self: start;
  }

  .home-technical__text {
    grid-column: 7 / -1;
  }

  .home-technical__drawing {
    grid-column: 4 / -1;
    max-width: 34rem;
    justify-self: end;
  }
}

@media (min-width: 64rem) {
  .home-technical__grid {
    align-items: center;
  }

  .home-technical__photo {
    grid-column: 1 / span 4;
    grid-row: 1;
    margin-top: calc(-1 * (var(--tear-height) + var(--space-10) + var(--space-6)));
    margin-bottom: 0;
  }

  .home-technical__text {
    grid-column: 5 / span 4;
    grid-row: 1;
    padding-left: var(--space-5);
  }

  .home-technical__drawing {
    grid-column: 9 / -1;
    grid-row: 1;
    width: calc(100% + var(--page-gutter) - var(--space-4));
    max-width: none;
    margin-left: calc(-1 * var(--space-6));
    justify-self: start;
  }
}

/* ------------------------------------------------------------------
   Frequently asked questions: one line across the paper
   ------------------------------------------------------------------ */

.home-faq {
  padding-block: var(--section-m) var(--section-s);
}

.home-faq__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--space-5);
  padding-bottom: var(--section-s);
  border-bottom: var(--rule-width) solid var(--color-rule);
}

.home-faq__title,
.home-faq__text {
  grid-column: 1 / -1;
}

.home-faq__text > * + * {
  margin-top: var(--space-5);
}

.home-faq__text p {
  max-width: var(--measure);
}

@media (min-width: 48rem) {
  .home-faq__title {
    grid-column: 1 / span 6;
  }

  .home-faq__text {
    grid-column: 7 / -1;
    padding-top: var(--space-3);
  }
}

@media (min-width: 64rem) {
  .home-faq__title {
    grid-column: 1 / span 5;
  }

  .home-faq__text {
    grid-column: 7 / span 5;
  }
}

/* ------------------------------------------------------------------
   Trebartha and De Lank: four captioned photographs, unequal sizes
   ------------------------------------------------------------------ */

.home-places {
  padding-top: var(--section-s);
}

.home-places__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--space-7);
}

.home-places__head,
.home-places__photo {
  grid-column: 1 / -1;
}

.home-places__action {
  margin-top: var(--space-6);
}

.home-places__photo--spate {
  grid-column: 4 / -1;
}

.home-places__photo--bridge {
  grid-column: 1 / span 10;
}

.home-places__photo--hall {
  grid-column: 3 / -1;
}

@media (min-width: 48rem) {
  .home-places__grid {
    row-gap: var(--space-8);
  }

  .home-places__head {
    grid-column: 1 / span 4;
    grid-row: 1;
    align-self: start;
    padding-top: var(--space-2);
  }

  .home-places__photo--weir {
    grid-column: 5 / -1;
    grid-row: 1;
  }

  .home-places__photo--spate {
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
    align-self: end;
  }

  .home-places__photo--bridge {
    grid-column: 5 / span 4;
    grid-row: 2;
  }

  .home-places__photo--hall {
    grid-column: 9 / -1;
    grid-row: 2;
    margin-top: var(--space-8);
  }
}

/* ------------------------------------------------------------------
   Tell us about your site: heading, a thin rule, the action
   ------------------------------------------------------------------ */

.home-contact {
  padding-block: var(--section-m) var(--section-l);
  overflow: clip;
}

.home-contact__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6) var(--space-8);
}

.home-contact__title {
  max-width: 8em;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
}

@media (min-width: 48rem) {
  .home-contact__action {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding-left: var(--space-8);
    border-left: var(--rule-width) solid var(--ink-600);
  }
}
