@layer styles {
  /* Hero */

  .hero {
    align-items: center;
    background-image: url('/assets/img/heroBackground.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: grid;
    height: 550px;
    margin-left: 0;
    margin-right: 0;
    margin-top: var(--size__header--max-height);
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  .hero__logo-box {
    align-items: center;
    background-color: var(--color__theme--ecovs);
    display: grid;
    height: var(--size__hero-logo--min-height);
    justify-items: flex-end;
    width: 90%;
  }

  @media (min-width: 600px) {
    .hero__logo-box {
      height: var(--size__hero-logo--max-height);
      width: 85%;
    }
  }

  @media (min-width: 900px) {
    .hero__logo-box {
      width: 57%;
    }
  }

  .hero__logo-image {
    display: block;
    height: auto;
    width: 250px;
  }

  @media (min-width: 600px) {
    .hero__logo-image {
      width: 450px;
    }
  }

  @media (min-width: 900px) {
    .hero__logo-image {
      width: 670px;
    }
  }

  /* Intro */

  .intro-section {
    text-align: center;
  }

  /* Divider blocks */

  .divider-block {
    display: grid;
    grid-template-columns: 1fr;
  }

  /* The four source images are all 431px tall but differently wide, so at equal
     column widths their natural heights differ. Stretch both cells to the row
     and let the images cover it. */
  .divider-block img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (min-width: 900px) {
    .divider-block {
      grid-gap: 0.5rem;
      grid-template-columns: 1fr 1fr;
    }
  }

  /* Work areas */

  .work-area {
    text-align: center;
  }

  @media (min-width: 600px) {
    .work-area {
      text-align: left;
    }
  }

  .work-area-cards {
    display: grid;
    grid-gap: var(--space--small);
  }

  @media (min-width: 900px) {
    .work-area-cards {
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
  }

  @media (min-width: 1200px) {
    .work-area-cards {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  }

  .work-area-card {
    text-align: center;
  }

  .work-area-card__title {
    font-size: var(--size__font--heading-medium);
    font-weight: 400;
    margin: var(--space--small) 0;
    padding: 0.5rem 0;
    text-align: center;
    text-transform: uppercase;
    width: 100%;
  }

  .work-area-card__title--theme-green {
    color: var(--color__font--bright);
    background-color: var(--color__cta--theme-green);
  }

  .work-area-card__title--olive-green {
    color: var(--color__font--dark);
    background-color: var(--color__cta--olive-green);
  }

  .work-area-card__title--sea-green {
    color: var(--color__font--dark);
    background-color: var(--color__cta--sea-green);
  }

  /* Employees */

  .employees {
    display: grid;
    grid-gap: var(--space--small) var(--space--extra-small);
    grid-template-columns: 1fr;
    justify-items: center;
    margin: 0 auto;
    max-width: 100%;
  }

  @media (min-width: 600px) {
    .employees {
      grid-template-columns: 1fr 1fr;
    }
  }

  .employee {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* Capped at the image's natural width; shrinks with the column. */
  .employee__image {
    display: block;
    width: 100%;
    max-width: 400px;
    /* Employee images are 408x213; the fixed ratio keeps the grid intact if a
       differently shaped one is ever added. */
    aspect-ratio: 408 / 213;
    object-fit: cover;
  }

  .employee__image-placeholder {
    flex-grow: 1;
  }

  .employee__information {
    font-size: var(--size__font--medium-body);
  }

  .employee__name {
    font-size: 1em;
  }

  .employee__information a {
    text-decoration: underline;
  }

  /* References */

  .references {
    background-color: var(--color__theme--secondary);
    padding-bottom: var(--space--medium);
    text-align: center;
  }

  .paragraph__reference {
    color: var(--color__theme--ecovs);
    font-family: var(--font-family--primary);
    font-size: var(--size__font--medium-body);
    font-style: italic;
    font-weight: 700;
    line-height: var(--line-height--standard);
    margin: 0.5rem 0;
    padding-top: var(--space--small);
    text-align: center;
  }

  @media (min-width: 600px) {
    .paragraph__reference {
      font-size: var(--size__font--body);
    }
  }
}
