@font-face {
  font-family: "Montserrat";
  src: url("/public/fonts/Montserrat/Montserrat-VariableFont_wght.ttf");
  font-display: swap;
}

:root {
  --fs-header: clamp(3.6rem, 2.95392rem + 1.7231vw, 6.4rem);
  --fs-body: clamp(1.8rem, 1.23072rem + 0.9846vw, 3.2rem);
  --fs-subtext: clamp(1.4rem, 1.2616rem + 0.3692vw, 2rem);

  --ff-sans: "Montserrat", sans-serif;

  --fw-light: 400;
  --fw-regular: 600;
  --fw-bold: 800;
}

/* === reset === */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
}

body {
  min-height: 100vh;

  font-size: var(--fs-body);
  font-family: var(--ff-sans);
  font-weight: var(--fw-regular);
  line-height: 1.5;

  color: var(--body-color);
  background: var(--body-bg);
  background-repeat: no-repeat;

  box-sizing: border-box;
}

ul,
ol {
  list-style-type: none;
}

img,
picture {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: var(--fw-bold);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: var(--fs-header);
}

a:link,
a:visited {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

/* === end of reset === */

body {
  --body-color: white;

  background-image: linear-gradient(45deg, #0c9cb0 0%, #65c7c1 60%);
  background-position: 0% 0%;
  background-repeat: repeat;
  background-size: auto;
}

.ShowreelHeader {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3.2rem;

  & .ShowreelHeader__CTA {
    text-align: center;
    max-width: 30ch;

    & a.CTA {
      margin-top: 1.6rem;
      box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    }
  }

  & .ShowreelHeader__Video {
    width: 100%;
    aspect-ratio: 16/9;

    & iframe {
      width: 100%;
      aspect-ratio: 16/9;
      box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    }
  }
}

@media screen and (min-width: 62.5em) {
  & .ShowreelHeader__Video {
    max-width: 80rem;
  }
}

.ReviewList {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-items: center;
  gap: 3.2rem;
}

.Review {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas:
    "video"
    "review";
  justify-items: center;
}

@media screen and (min-width: 62.5em) {
  .Review {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(2, 50%);
    grid-template-areas: "review video";
    align-items: center;
  }

  .Review.Review--inverted {
    grid-template-areas: "video review";
  }
}

.ReviewClientReview {
  grid-area: review;
  text-align: center;

  & .ReviewClientReview__Review {
    max-width: 32ch;
    margin-top: 2rem;
  }
}

.ReviewVideo {
  grid-area: video;
  width: 100%;
  aspect-ratio: 16/9;

  & iframe {
    width: 100%;
    aspect-ratio: 16/9;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  }
}

.ReviewYouTubeDetails {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  gap: 0.4rem;

  & .ReviewYouTubeDetails__Picture {
    border-radius: 50%;
    overflow: hidden;
    width: 3.2rem;
    aspect-ratio: 1;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;

    & img {
      max-width: 100%;
    }
  }

  & .ReviewYouTubeDetails__Link {
    font-weight: var(--fw-light);
    font-size: var(--fs-subtext);
  }
}

@media screen and (min-width: 62.5em) {
  .ReviewYouTubeDetails {
    & .ReviewYouTubeDetails__Picture {
      width: 6rem;
    }
  }
}

a.CTA {
  display: inline-block;
  font-size: var(--fs-subtext);
  color: white;
  background-color: #1ac485;
  padding: 1.6rem 3.2rem;
  border-radius: 24px;
  transition: background-color 2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

a.CTA:focus,
a.CTA:hover {
  background-color: #2fb987;
}

#how-to-hire-me {
  text-align: center;

  & h3 {
    margin-bottom: 3.2rem;
  }

  & p {
    font-size: var(--fs-subtext);
  }

  & a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.2rem auto;
    width: 30rem;
    background-color: black;
    padding: 1.6rem 3.2rem;
    border-radius: 24px;
    transition: background-color 2s cubic-bezier(0.075, 0.82, 0.165, 1);

    & img {
      width: 2rem;
    }
  }

  & a:focus,
  & a:hover {
    background-color: rgb(32, 32, 32);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* added line */
  border: 0;
}

.container {
  margin-block: 3.2rem;
  padding-inline: 1.6rem;
}

@media screen and (min-width: 62.5em) {
  .container {
    max-width: 200rem;
    margin: 6.4rem auto;
    padding-inline: 3.2rem;
  }
}

.uppercase {
  text-transform: uppercase;
}
