:root {
  --banner-gutter: 48px;
  --banner-content-default-min-height: 300px;
  --banner-content-wide-min-height: 600px;
  --categories-height-collapsed: 100px;
  --categories-height-expanded: 360px;
  --home-page-max-width-including-padding: 1296px;
  --horizontal-button-padding: 10px;
  --button-width-when-stacked: 200px;
  --image-min-width: 354px;
  --image-preferred-width: 40%;
  --image-max-width: 500px;
}

body {
  margin: 0;
}

.first-screen-mobile {
  height: 100vh;
  max-height: 600px;
  min-height: calc(var(--banner-content-default-min-height) + var(--categories-height-collapsed));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.title {
  font-size: clamp(1rem, 4vw + 1rem, 3rem);
}

.title-line {
  display: block;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-basis: var(--banner-content-default-min-height);
  flex-grow: 1;
  flex-shrink: 0;
  text-align: center;

  background-color: wheat;
  color: teal;
  border: 1px solid red;
}

.content-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--home-page-max-width-including-padding);
  height: 100%;

  outline: 1px solid rebeccapurple;
}

.controls {
  width: 100%;
}

.button {
  display: block;
  width: var(--button-width-when-stacked);
  padding-inline: var(--horizontal-button-padding);
  margin: 0 auto 8px auto;

  border: 1px solid rebeccapurple;
  color: wheat;
  background-color: teal;
}

.categories {
  height: var(--categories-height-collapsed);

  background-color: rgba(0, 0, 255, 0.3);
}

@media only all and (min-width: 480px) {
  .button {
    display: inline-block;
    width: unset;
  }
}

@media only screen and (min-width: 730px) {

  .content {
    text-align: unset;
  }

  .content-inner {
    justify-content: unset;
    background-image: url('home.svg');
    background-repeat: no-repeat;
    background-size: clamp(
      var(--image-min-width),
      var(--image-preferred-width),
      var(--image-max-width)
    );
    background-position: bottom right var(--banner-gutter);
    padding-left: var(--banner-gutter);
    width: calc(100% - var(--banner-gutter));
    margin-inline: auto;
  }
}

@media only screen and (min-width: 730px) and (max-width: 799px) {
  .button {
    display: block;
    width: var(--button-width-when-stacked);
    margin-inline: 0;
  }
}

@media only all and (min-width: 1200px) {
  .first-screen-mobile {
    max-height: 1200px;
    min-height: calc(var(--banner-content-wide-min-height) + var(--categories-height-expanded));
  }

  .content {
    flex-basis: var(--banner-content-wide-min-height);
    max-height: 100vh;
  }

  .categories {
    height: var(--categories-height-expanded);
  }
}
