/* GLOBAL SAFETY */
body {
  margin: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* IMAGE SECTION */
.image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
}

/* WRAPPER (replaces img pseudo hacks safely) */
.image-wrapper {
  position: relative;
  display: inline-block;
  line-height: 0;
  /* removes weird inline gaps in some browsers */
}

/* IMAGE CORE */
.image img {
  display: block;
  max-height: 100%;
  height: auto;

  position: relative;
}

/* TEXT */
.text {
  text-align: center;
  font-weight: 700;
  font-variant: small-caps;
  text-decoration: underline;
}

.text:nth-of-type(1) {
  margin-top: 24pt;
}

.text span {
  font-weight: 400;
  font-size: 48pt;
  color: #000;
  display: inline-block;

  /* mobile font stability */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* decorative dot */
.text span::after {
  font-weight: 700;
  color: red;
  content: ".";
}

/* MAIN LAYOUT */
main {
  margin: 0 25% 20vh;
  letter-spacing: 0.02em;
}

/* MOBILE SAFETY */
@media screen and (max-width: 768px) {
  main {
    margin: 0 1rem 20vh;
  }

  .image {
    height: auto;
  }

  .image img {
    height: auto;
    padding: 2rem 0;
    width: 50%;
  }

  .text span {
    font-size: 24pt;
    /* prevents overflow on small screens */
  }
}

/* VERY SMALL DEVICES */
@media screen and (max-width: 360px) {
  .text span {
    font-size: 24pt;
  }
}