@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@700;900&display=swap');

:root {
  --soft-red: hsla(7, 99%, 70%, 0.5);
  --soft-red-hover: hsl(7, 99%, 70%);
  --yellow: hsla(51, 100%, 49%, 0.5);
  --yellow-hover: hsl(51, 100%, 49%);
  --graphic-design-text: hsl(167, 40%, 24%);
  --photography-text: hsl(198, 62%, 26%);
  --footer: hsl(168, 34%, 41%);
  --footer-background: hsla(168, 34%, 41%, 0.5);

  --very-dark-desaturated-blue: hsl(212, 27%, 19%);
  --very-dark-grayish-blue: hsl(213, 9%, 39%);
  --dark-grayish-blue: hsl(232, 10%, 55%);
  --grayish-blue: hsl(210, 4%, 67%);
  --white: hsl(0, 0%, 100%);
  --white-hover: hsla(0, 0%, 100%, 0.5);
}

h1 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: 5px;
  color: var(--white);
}

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--very-dark-desaturated-blue);
}

p {
  color: var(--very-dark-grayish-blue);
}

img {
  max-width: 100%;
}

body {
  margin: 0;
  text-align: center;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
}

header {
  background-image: url(images/desktop/image-header.jpg);
  height: 100vh;
  background-size: cover;
  background-position: center;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1.5rem;
}

nav ul {
  width: calc(100% - 1.5rem - 1.5rem);
  list-style: none;
  clip-path: polygon(calc(100% - 1.5rem) 1.5rem, 100% 0, 100% 100%, 0 100%, 0 1.5rem);
  margin: 0;
  padding: 1.5rem 0 2.5rem;
}

nav li {
  margin: 2rem;
}

nav li:last-child {
  margin: 1rem 0;
}

nav li:last-child a {
  background-color: var(--yellow);
  padding: 1rem 1.5rem;
  border-radius: 2rem;
  font-family: 'Fraunces', serif;
  color: var(--very-dark-desaturated-blue);
}

nav a {
  text-decoration: none;
  color: var(--very-dark-grayish-blue);
}

.transform div,
.stand div {
  padding: 4rem 2.5rem;
}

.transform h2,
.stand h2 {
  margin-top: 0;
}

.transform a,
.stand a {
  position: relative;
  font-family: 'Fraunces', serif;
  color: var(--very-dark-desaturated-blue);
  text-decoration: none;
}

.transform a::after,
.stand a::after {
  position: absolute;
  z-index: -1;
  top: .9rem;
  left: 50%;
  transform: translateX(-50%);
  content: '';
  display: block;
  background-color: var(--soft-red);
  width: 8rem;
  height: .5rem;
  border-radius: .5rem;
}

.transform a::after {
  background-color: var(--soft-red);
}

.stand a::after {
  background-color: var(--yellow);
}

.transform a:hover::after {
  background-color: var(--soft-red-hover);
}

.stand a:hover::after {
  background-color: var(--yellow-hover);
}

.graphic,
.photography {
  height: 100vw;
  background-size: cover;
  background-position: center;
  display: grid;
  align-content: end;
}

.graphic {
  background-image: url(images/desktop/image-graphic-design.jpg);
}

.photography {
  background-image: url(images/desktop/image-photography.jpg);
}

.graphic p,
.photography p {
  max-width: 38ch;
  margin: auto auto 4rem;
}

.client h2 {
  font-size: 1rem;
  letter-spacing: 5px;
  color: var(--grayish-blue);
  margin: 4rem auto;
}

.client ul {
  list-style: none;
  padding: 0;
}

.client img {
  border-radius: 50%;
}

.client p:nth-child(2) {
  max-width: 32ch;
  margin: 2rem auto;
}

.client p:nth-child(3) {
  color: var(--very-dark-desaturated-blue);
  font-family: 'Fraunces', serif;
  margin-top: 2rem;
}

.client p:nth-child(4) {
  color: var(--grayish-blue);
  margin: 1rem auto 4.5rem;
}

.gallery {
  background-image:
    url(images/desktop/image-gallery-milkbottles.jpg),
    url(images/desktop/image-gallery-orange.jpg),
    url(images/desktop/image-gallery-cone.jpg),
    url(images/desktop/image-gallery-sugarcubes.jpg);
  height: 100vw;
  background-repeat: no-repeat;
  background-size: 50vw 50vw;
  background-position:
    top left,
    top right,
    bottom left,
    bottom right;
}

footer {
  background-color: var(--footer-background);
  padding-top: 4.5rem;
}


footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

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

footer a:hover {
  color: var(--white);
}

.footer__logo,
.footer__link {
  color: var(--footer);
}

.footer__link {
  margin-top: 2.5rem;
  gap: 3.5rem;
}

.footer__social {
  margin-top: 4.5rem;
  gap: 1.5rem;
}

.footer__social svg {
  color: var(--footer);
}

.footer__social svg:hover {
  color: var(--white);
}

.footer__attribution {
  font-size: 11px;
  text-align: center;
}

.footer__attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width:600px) {
  nav ul {
    display: none;
    position: absolute;
    top: 5rem;
    left: 1.5rem;
    background-color: var(--white);
  }

  nav ul.opened {
    display: block;
  }
}

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

  nav {
    padding: 0 3vw;
  }

  nav ul {
    display: flex;
    align-items: center;
    justify-content: right;
    padding: 0;
  }

  nav li {
    margin: 2.5rem 2.5rem 2.5rem 0;
  }

  nav li:last-child a {
    background-color: var(--white);
  }

  nav li:last-child a:hover {
    color: var(--white);
    background-color: var(--white-hover);
  }

  nav a {
    color: var(--white);
  }

  .menu {
    display: none;
  }

  .transform,
  .stand {
    text-align: left;
  }

  .transform div,
  .stand div {
    margin: auto;
  }

  .transform div {
    padding: 0 7.5vw 0 10vw;
  }

  .transform__image,
  .stand__image {
    width: 50vw;
  }

  .stand div {
    padding: 0 10vw 0 7.5vw;
  }

  .transform--reverse {
    grid-area: 1/2/2/3;
  }

  .graphic,
  .photography {
    height: 50vw;
  }

  .client ul {
    display: flex;
    gap: 2rem;
    justify-content: center;
  }

  .gallery {
    height: 30vw;
    background-size: 25vw;
    background-position:
      0 0,
      25vw 0,
      50vw 0,
      75vw 0;
  }
}