:root {
  --black: #000;
  --white: #fff;
  --button-bg: rgba(226, 226, 226, .5);
  --cotton-hover: #EB3E69;
  --food-hover: #EB5333;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--white);
  color: var(--black);
  font-family: "Poppins", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Desktop */
.gateway {
  width: min(1160px, calc(100vw - 80px));
  min-height: 720px;
  height: min(800px, calc(100vh - 40px));
  margin: 20px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 72px;
  background: var(--white);
}

.brand-logo {
  grid-column: 1;
  grid-row: 1;
  width: 180px;
  margin-top: 56px;
  display: block;
}

.brand-logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.image-placeholder {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: end;

  width: min(100%, 480px);
  height: 80vh;
  margin-top: 10vh;

  border-radius: 20px;
  overflow: hidden;
}

.image-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  width: 100%;
  max-width: 540px;
  padding-bottom: 28px;
}

.intro h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 600;
}

.intro p {
  margin: 26px 0 0;
  max-width: 540px;
  font-size: 14px;
  line-height: 1.45;
}

.pathways {
  grid-column: 1;
  grid-row: 3;

  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;

  padding: 44px 0 44px 0;
}

.pathway {
  width: 178px;
  height: 54px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--black);
  border-radius: 100px;
  background: var(--button-bg);
  overflow: hidden;
  transition: background-color .18s ease, border-color .18s ease;
}

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

.pathway--cotton:hover,
.pathway--cotton:focus-visible {
  background: var(--cotton-hover);
  border-color: transparent;
}

.pathway--food:hover,
.pathway--food:focus-visible {
  background: var(--food-hover);
  border-color: transparent;
}

.pathway--cotton:hover .pathway__logo,
.pathway--cotton:focus-visible .pathway__logo,
.pathway--food:hover .pathway__logo,
.pathway--food:focus-visible .pathway__logo {
  filter: brightness(0) invert(1);
}

.pathway:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

/* Tablet */
@media (max-width: 900px) and (min-width: 768px) {
  .gateway {
    width: min(92vw, 760px);
    height: auto;
    min-height: 760px;
    margin: 0 auto;
    column-gap: 40px;
  }

  .brand-logo {
    width: 150px;
    margin-top: 45px;
  }

  .image-placeholder {
    margin-top: 90px;
    width: 100%;
  }

  .intro h1 {
    font-size: 28px;
  }

  .intro p {
    font-size: 13px;
  }

  .pathway {
    width: 150px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  body {
    min-height: 100svh;
  }

  .gateway {
    width: 100%;
    min-height: 100svh;
    height: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 38px 7% 56px;
  }

  .brand-logo {
    order: 1;
    width: 150px;
    margin: 0;
    align-self: flex-start;
  }

  .image-placeholder {
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-top: 64px;
    border-radius: 20px;
    overflow: hidden;
  }

  .intro {
    order: 3;
    width: 100%;
    max-width: 520px;
    margin-top: 52px;
    padding: 0;
    text-align: center;
  }

  .intro h1 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 500;
  }

  .intro p {
    margin: 22px auto 0;
    max-width: 500px;
    font-size: 16px;
    line-height: 1.5;
  }

  .pathways {
    order: 4;
    width: 100%;
    margin-top: 48px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .pathway {
    width: min(270px, 82vw);
    height: 54px;
    padding: 14px;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .gateway {
    padding-top: 30px;
    padding-bottom: 42px;
  }

  .brand-logo {
    width: 130px;
  }

  .image-placeholder {
    margin-top: 50px;
  }

  .intro {
    margin-top: 42px;
  }

  .intro h1 {
    font-size: 19px;
  }

  .intro p {
    margin-top: 18px;
    font-size: 15px;
  }

  .pathways {
    margin-top: 38px;
    gap: 15px;
  }

  .pathway {
    width: min(250px, 84vw);
    height: 50px;
  }
}

/* Touch devices */
@media (hover: none) {
  .pathway--cotton:active {
    background: var(--cotton-hover);
    border-color: transparent;
  }

  .pathway--food:active {
    background: var(--food-hover);
    border-color: transparent;
  }

  .pathway:active .pathway__logo {
    filter: brightness(0) invert(1);
  }
}
