@layer styles {
  .header {
    --header__logotype: 100px;
    --header__menu-button-width: 100px;
    --header__menu-height: 100px;
  }

  .header__top {
    /* The width is sized inside the padding; border-box would narrow it. */
    box-sizing: content-box;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: var(--space--extra-small);
    position: absolute;
    width: calc(100% - var(--page__margin) * 2);
  }

  @media (min-width: 1200px) {
    .header__top {
      width: var(--grid-width);
    }
  }

  .phone-numbers {
    --phone-numbers-top: 78%;
    --phone-numbers-margin: var(--page__margin);

    color: white;
    font-size: 1.2rem;
    left: var(--phone-numbers-margin);
    position: absolute;
    text-shadow: 1px 1px #000;
    top: var(--phone-numbers-top);
  }

  @media (min-width: 600px) {
    .phone-numbers {
      --phone-numbers-top: 70%;
    }
  }

  @media (min-width: 900px) {
    .phone-numbers {
      --phone-numbers-top: 80%;
    }
  }

  @media (min-width: 1200px) {
    .phone-numbers {
      --phone-numbers-top: 85%;
      --phone-numbers-margin: calc((100% - var(--grid-width)) / 2);
    }
  }

  .header__logotypes {
    display: flex;
    grid-gap: var(--space--small);
  }

  .header__link {
    display: block;
    text-decoration: underline;
  }

  .header__link + .header__link {
    margin-top: 0.8rem;
  }

  .hero {
    display: flex;
    justify-content: center;
    min-height: calc(100vh - var(--header__height));
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .hero__image {
    display: block;
    height: auto;
    max-width: 100%;
  }

  .hero__overlay {
    background-color: black;
    bottom: 0;
    left: 0;
    opacity: 0.3;
    position: absolute;
    right: 0;
    top: 0;
  }

  .hero__text {
    --hero__font-size: 1.6rem;
    --hero__text-width: 80%;
    --hero__top-space: 24vw;

    align-self: center;
    background-color: var(--color__media-text-background);
    /* The width is sized inside the padding; border-box would narrow it. */
    box-sizing: content-box;
    color: white;
    font-family: var(--font-family-header);
    font-size: var(--hero__font-size);
    font-weight: var(--font__weight);
    letter-spacing: 0.0625rem;
    line-height: 1.5em;
    max-width: var(--hero__text-width);
    padding: var(--space--small);
    position: absolute;
    text-align: center;
    text-shadow: 1px 1px #000;
    top: var(--hero__top-space);
    z-index: 1;
  }

  @media (min-width: 600px) {
    .hero__text {
      --hero__font-size: 2rem;
      --hero__text-width: 60%;
      --hero__top-space: 8vw;
    }
  }

  @media (min-width: 900px) {
    .hero__text {
      --hero__font-size: 2.5rem;
    }
  }

  @media (min-width: 1200px) {
    .hero__text {
      --hero__font-size: 3rem;
    }
  }

  /* Keeps the button and the nav as separate flex items of .header__top. */
  anderssons-bilservice-menu {
    display: contents;
  }

  .heimr-menu {
    display: none;
  }

  .heimr-menu--open {
    background: white;
    display: inline-block;
    opacity: 0.95;
    padding-left: var(--space--small);
    padding-right: var(--space--small);
    position: absolute;
    right: 5px;
    top: var(--header__menu-height);
    z-index: 2;
  }

  @media (min-width: 1200px) {
    .heimr-menu {
      display: block;
    }
  }

  .heimr-menu__item {
    color: var(--font__color);
    display: block;
    font-weight: 400;
    letter-spacing: 0.04rem;
    padding: var(--space--extra-small);
    text-decoration: none;
    text-transform: uppercase;
  }

  @media (width < 1200px) {
    .heimr-menu__item:not(:last-child) {
      border-bottom: 0.5px solid var(--font__color);
    }
  }

  @media (min-width: 1200px) {
    .heimr-menu__item {
      color: white;
      display: inline-block;
      padding: var(--space--extra-small);
    }

    .heimr-menu__item:first-child {
      padding-left: 0;
    }

    .heimr-menu__item:last-child {
      padding-right: 0;
    }
  }

  .heimr-hamburger-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 0.5;
    outline: none;
    padding: 0;
  }

  @media (min-width: 1200px) {
    .heimr-hamburger-button {
      display: none;
    }
  }

  .heimr-hamburger-button--open {
    font-size: 2.4rem;
    line-height: 0.8;
  }
}
