/* Core elements */
body {
  line-height: 1.75;
  font-family: Montserrat, helvetica, sans-serif;
}

h1,
h2 {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 1em 0;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  margin: 4em 0 1.5em 0;
}

img {
  display: block;
}

figure {
  margin: 0;
  padding: 0;
}

hr {
  border: 0;
  &::before {
    content: "×";
    display: block;
    color: black;
    text-align: center;
  }
}

strong {
  font-weight: 500;
}

a,
a:visited {
  color: black;
  font-weight: 500;
  text-decoration-thickness: 1.5px;
}

/* utils */
.animates {
  opacity: 0;
  transform: translateY(15px);
  transition: 0.66s ease-in opacity, 0.5s ease-in transform;
  &.active {
    transform: translate(0);
    opacity: 1;
  }
}

.emart {
  box-shadow: -1px 2px 25px rgba(0, 0, 0, 0.225);
  border-radius: 20px;
}

.block-text {
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 2rem);
  max-width: 600px;
}

.block-screenshot {
  margin: 4em auto;
  width: calc(100% - 2rem);
  max-width: 700px;

  @media (min-width: 800px) {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) 2fr;
    gap: 1.5em;
  }

  &.reversed {
    grid-template-columns: 2fr minmax(100px, 1fr);
    & figure {
      order: 1;
    }
  }

  .screenshot {
    margin-bottom: 2rem;
  }

  .blurb {
    padding-top: 0.5em;
    & > p:first-child {
      margin-top: 0;
    }
  }
}

.block-photogrid {
  margin: 2em auto;
  max-width: 1200px;
  width: calc(100% - 10px);

  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  @media (min-width: 600px) {
    grid-template-columns: repeat(3, 1fr);
  }

  & img {
    display: block;
    object-fit: cover;
    height: auto;
    width: 100%;
    max-width: 100%; /* for safari mobile */
  }
}

/* components */

.intro {
  font-weight: bold;
  text-align: center;
  width: 1000px;
  max-width: calc(100% - 40px);
  margin: 2em auto 1em auto;
  color: #444;
  font-size: 1.25rem;
  @media (min-width: 800px) {
    font-size: 2rem;
  }
}

.avatar {
  margin: 0 auto;
}

.cta {
  background: #111;
  color: white;
  font-weight: bold;
  color: white;
  text-decoration: none;
  padding: 0.5em 1.5em;
  border-radius: 10px;
  display: block;
  width: fit-content;
  margin: 2.5em auto;
}

.screenshot {
  max-width: 320px;
  display: block;
  width: 100%;
}

.end {
  font-variant: all-small-caps;
  text-align: center;
  margin: 4rem auto;
  letter-spacing: 0.125em;
}
