:root {
  --clr-primary: #0d6efd;
  --clr-secondary: #a90dfd;
  --clr-button: #fd950d;
  --wrapper-padding-inline: 1rem;
  --wrapper-max-width: 70rem;
  --section-padding-block: 3rem;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: white;
  background-color: rgb(125, 119, 164);
  background-image: linear-gradient(to bottom right, blue, rgb(112, 8, 8));
  background-blend-mode: multiply;
}

img {
  max-width: 100%;
  display: block;
}

h1 {
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}

section {
  padding-block: var(--section-padding-block);
}

.primary {
  color: white;
  background-color: var(--clr-primary);
}

.secondary {
  color: white;
  background-color: var(--clr-secondary);
}

.button {
  display: inline-flex;
  padding: 0.75em 1.5em;
  background: var(--clr-button);
  color: white;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875em;
}

.button:hover,
.button:focus {
  background-color: white;
  color: black;
}

.wrapper {
  max-width: var(--wrapper-max-width);
  margin-inline: auto;
  padding-inline: var(--wrapper-padding-inline);
}

.full-width-split-screen {
  padding-block: 0;
}

.full-width-split-screen > :not(img) {
  padding-block: var(--section-padding-block);
  padding-inline: var(--wrapper-padding-inline);
}

@media (min-width: 600px) {
  .full-width-split-screen {
    display: grid;
    grid-template-columns:
      minmax(var(--wrapper-padding-inline), 1fr)
      minmax(0, calc(var(--wrapper-max-width) / 2))
      minmax(0, calc(var(--wrapper-max-width) / 2))
      minmax(var(--wrapper-padding-inline), 1fr);
    position: relative;
  }
  .full-width-split-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .full-width-split-screen > img:first-child {
    grid-column: 1 / 3;
  }
  .full-width-split-screen > img:last-child {
    grid-column: 3 / -1;
  }
  .full-width-split-screen > :not(img) {
    display: grid;
    align-content: center;
    justify-items: start;
  }
  .full-width-split-screen > :not(img):first-child {
    grid-column: 2 / 3;
    padding-left: 0;
    padding-right: clamp(1rem, 5vw, 3rem);
  }
  .full-width-split-screen > :not(img):last-child {
    grid-column: 3 / 4;
    padding-right: 0;
    padding-left: clamp(1rem, 5vw, 3rem);
  }
  .full-width-split-screen > :not(img)::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: inherit;
  }
  .full-width-split-screen > :not(img):first-child::before {
    grid-column: 1 / 2;
  }
  .full-width-split-screen > :not(img):last-child::before {
    grid-column: 4 / 5;
  }
}
