/* Bitter */
@import url("https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900");

/* Oswald */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap");

/* Charis SIL */
@import url("https://fonts.googleapis.com/css2?family=Charis+SIL:ital,wght@0,400;0,700;1,400;1,700&display=swap");

/* Outfit */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");
html,
body {
  border: 0;
  margin: 0;
  padding: 0;
}
* {
  box-sizing: border-box;
}

.desktop {
  display: none;
}

@media (min-width: 480px) {
  .desktop {
    display: inline-block;
  }

  .mobile {
    display: none;
  }
}

.bitter {
  font-family: "Bitter", Georgia, serif;
}
.oswald {
  font-family: "Oswald", serif;
}

.charis-sil {
  font-family: "Charis SIL", serif;
}

.outfit {
  font-family: "Outfit", serif;
}

.ripped-paper {
  background: url(../img/bg.webp) no-repeat center/cover;
  min-height: 100vh;
  height: 100%;
  width: 100%;
  font-family: "Bitter", Georgia, serif;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 4rem;

  &::before,
  &::after {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    top: 0;
    pointer-events: none;
  }

  &::before {
    background-image: url(../img/tear-top.webp);
    top: 0;
  }

  &::after {
    background-image: url(../img/tear-bottom.webp);
    background-position: bottom;
    bottom: 0;
  }
}

@media (min-width: 480px) {
  .ripped-paper {
    margin-bottom: 0;
    &::before,
    &::after {
      content: "";
      width: 100%;
      height: 100%;
      display: block;
      position: absolute;
      background-size: contain;
      background-repeat: no-repeat;
      top: 0;
      pointer-events: none;
    }

    &::before {
      background-image: url(../img/tear-left.webp);
      background-position: left top;
      left: 0;
    }

    &::after {
      background-image: url(../img/tear-right.webp);
      background-position: right top;
      right: 0;
    }
  }
}

@media (min-width: 480px) and (orientation: portrait) {
  .ripped-paper {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    align-items: normal;
    &::before,
    &::after {
      position: fixed;
      width: 50%;
      height: 100vh;
      z-index: 0;
    }

    &::before {
      background-position: right top;
      margin-left: -36%;
    }
    &::after {
      background-position: right top;
      width: 120vw;
      left: auto;
      right: -5vw;
    }
  }
}

header {
  display: flex;
  justify-content: right;
  align-items: center;
  width: 100%;
  gap: 1rem;
  position: fixed;
  z-index: 9;
  background: #000;
  bottom: 0;
  box-shadow: 0 -1px 1rem #000;
  padding: 1rem 2rem;
}

@media (min-width: 480px) {
  header {
    display: flex;
    justify-content: right;
    align-items: center;
    width: 100%;
    height: 4rem;
    gap: 2rem;
    padding: 0 2rem;
    box-shadow: none;
    background: none;
    position: absolute;
    top: 0;
  }
}

@media (min-width: 480px) {
  .header-social {
    background-image: linear-gradient(45deg, #ff6d0c, #fe8e04);
    line-height: 0;
    width: 2.5rem;
  }
}

.header-social-x {
  order: 1;
}

.header-social-substack {
  order: 2;
}
.header-social-ig {
  order: 3;
}

.header-social-join img,
.header-social img {
  max-width: 100%;
}
@media (min-width: 480px) {
  .header-social img {
    transition: all 100ms;
  }
  .header-social:hover img {
    scale: 90%;
  }
}

.header-social-join {
  order: 0;
  /* cursor: pointer; */
  pointer-events: none;
}
@media (min-width: 480px) {
  .header-social-join {
    order: 3;
    margin-top: 7px;
  }
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 3rem;
  padding-bottom: 0;
  z-index: 1;
  margin: auto 0;
}

.logo {
  margin-top: 4rem;
  max-width: 75vw;
  height: auto;
  z-index: 1;
}

@media (min-width: 480px) {
  .logo {
    max-width: calc(99vw - 10%);
  }
}

.letter {
  position: relative;
  display: block;
  margin: 2rem;
  padding: min(9vw, 5rem) min(10%, 8rem);
  background-color: #ffffff;
  width: min(48rem, calc(99vw - 10%));
  font-size: 1rem;
  line-height: 1.8rem;
  font-weight: 600;
  box-shadow: 0 1px 9px #00000044;

  &::before,
  &::after {
    content: "";
    display: block;
    position: absolute;
    background: url(../img/letter-shadow.webp) no-repeat center/contain;
    width: 108%;
    height: 30rem;
    top: auto;
    bottom: calc(6vw - 14rem);
    left: -4%;
    z-index: -1;
  }
  &::before {
    width: 110%;
    left: -5%;
    margin-top: -13rem;
    margin-bottom: auto;
    top: auto;
    bottom: auto;
    transform: scaleY(-100%);
  }
}

@media (min-width: 480px) {
  .letter::after {
    bottom: -17%;
  }
}

.tagline-wrapper {
  text-align: center;
}
.tagline {
  margin-top: 3rem;
  flex-shrink: 1;
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.closure-line {
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  color: #333;
  font-weight: 800;
  margin-top: 0;
  max-width: 90vw;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem 2rem;
  margin-top: 0rem;
  margin-bottom: -1rem;
  flex-wrap: wrap;
}
@media (min-width: 480px) {
  footer {
    gap: 2rem;
  }
}

.footer-sound {
  order: 0;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  flex-basis: 100%;
  flex-grow: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}

.footer-sound-scaler {
  background: #000;
  display: flex;
}

.footer-sound-label {
  text-wrap: nowrap;
  margin: 10px 20px 10px 0;
  font-size: 14px;
  text-align: left;
  font-weight: 600;
  display: none;
}
.footer-sound.playing .footer-sound-label {
  display: inline-block;
}

@media (min-width: 480px) {
  .footer-sound {
    order: 1;
    flex-basis: 0;
  }
}

.footer-sound a {
  color: #fff;
  text-decoration: none;
}
.footer-sound a:hover {
  text-decoration: underline;
}

.footer-social {
  order: 1;
}

.legal {
  font-family: "Oswald", serif;
  font-size: 1rem;
  color: #9b3602;
}
@media (min-width: 480px) {
  .legal {
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #858484;
  }
}
