@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: #c6c0bb;
}


/* =========================
   HOME
   ========================= */

.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 20px 60px;
}

.logo {
  display: block;
  max-width: 100%;
}

.logo-desktop {
  width: 650px;
}

.logo-mobile {
  display: none;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -25px 0 35px;
}

.social-links img {
  width: 34px;
  height: 34px;
  display: block;
}


/* =========================
   STICKY HEADER
   ========================= */

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  padding: 15px 30px;
  z-index: 1000;
  background: #c6c0bb;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-header a {
  display: block;
}

.header-logo img {
  width: 180px;
  height: auto;
  display: block;
}

.header-contact {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.header-contact img {
  width: 31px;
  height: auto;
  display: block;
  opacity: 0.78;
}


/* =========================
   GRADE DE TIRINHAS DA HOME
   ========================= */

.comics-grid {
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.comics-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.comics-grid a {
  display: block;
}

.comic-card {
  position: relative;
  display: block;
}


/* =========================
   ABOUT
   ========================= */

.about-section {
  width: calc(100% - 40px);
  max-width: 930px;
  margin: 125px auto 0;
  padding: 0 0 125px;

  font-family: "Manrope", sans-serif;
  color: #000;
}

.about-title {
  margin: 0 0 42px;

  font-family: "Manrope", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.about-text {
  margin: 0;

  font-family: "Manrope", sans-serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.32;
}

.about-otto {
  display: block;
  width: 210px;
  max-width: 45%;
  height: auto;

  margin: 55px auto 0;
}


/* =========================
   ÍCONE DE MÚLTIPLOS QUADROS
   ========================= */

.multi-icon {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 25px;
  height: 18px;

  z-index: 2;
  pointer-events: none;

  opacity: 0.42;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25 18'%3E%3Crect x='1' y='1' width='13' height='16' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M17 1 H19 V17 H17' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='square'/%3E%3Cpath d='M21 1 H23 V17 H21' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='square'/%3E%3C/svg%3E");
}

.multi-icon::before,
.multi-icon::after {
  content: none;
}


/* =========================
   DESKTOP
   PÁGINA INTERNA
   ========================= */

.comic-page {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 86px 20px 12px;
}

.comic-topbar {
  width: min(620px, calc((100dvh - 155px) * 0.8));
  margin: 0 auto 6px;
}

.comic-number {
  color: #4f4948;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}


/* =========================
   FEED MOBILE
   ESCONDIDO NO DESKTOP
   ========================= */

.mobile-feed {
  display: none;
}


/* =========================
   ÁREA DO CARROSSEL
   ========================= */

.comic-carousel-wrap {
  position: relative;
  width: min(620px, calc((100dvh - 155px) * 0.8));
  margin: 0 auto;
}

.comic-carousel {
  width: 100%;
  margin: 0 auto;
}

.carousel-stage {
  position: relative;
  width: 100%;
}

.carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  align-items: flex-start;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================
   CONTADOR 1/4
   ========================= */

.carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;

  padding: 6px 9px;
  border-radius: 20px;

  background: rgba(255, 255, 255, 0.42);
  color: #4f4948;

  font-family: "Manrope", sans-serif;
  font-size: 14px;
  line-height: 1;
}


/* =========================
   SETAS DOS QUADROS
   DENTRO DA TIRINHA
   ========================= */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;

  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.carousel-arrow::before {
  display: block;
  color: rgba(255, 255, 255, 0.48);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 41px;
  font-weight: 700;
  line-height: 1;
}

.carousel-arrow.prev::before {
  content: "‹";
}

.carousel-arrow.next::before {
  content: "›";
}

.carousel-arrow.prev {
  left: 8px;
}

.carousel-arrow.next {
  right: 8px;
}

.carousel-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}


/* =========================
   BOLINHAS DO CARROSSEL
   ========================= */

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid #4f4948;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.carousel-dot.active {
  background: #4f4948;
}


/* =========================
   SETAS ENTRE TIRINHAS
   FORA DA TIRINHA
   ========================= */

.strip-arrow {
  position: fixed;
  top: min(calc(50dvh + 34px), 499px);

  width: 68px;
  height: 68px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: none;
  text-decoration: none;

  color: transparent;
  font-size: 0;

  transform: translateY(-50%);

  opacity: 0;
  pointer-events: none;
  z-index: 900;
}

.strip-arrow::before {
  display: block;
  color: rgba(79, 73, 72, 0.40);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 55px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -3px;
}

.strip-prev::before {
  content: "‹";
}

.strip-next::before {
  content: "›";
}

.strip-arrow.available {
  opacity: 1;
  pointer-events: auto;
}

.strip-prev {
  left: 22px;
}

.strip-next {
  right: 22px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

  .hero {
    padding: 85px 20px 45px;
  }

  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
    width: 300px;
  }

  .sticky-header {
    height: 65px;
    padding: 12px 16px;
  }

  .header-logo img {
    width: 140px;
  }

  .header-contact img {
    width: 27px;
  }

  .social-links img {
    width: 30px;
    height: 30px;
  }

  .comics-grid {
    width: calc(100% - 16px);
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .about-section {
    width: calc(100% - 40px);
    margin: 75px auto 0;
    padding: 0 0 80px;
  }

  .about-title {
    margin-bottom: 25px;
    font-size: 24px;
  }

  .about-text {
    font-size: 18px;
    line-height: 1.38;
  }

  .about-otto {
    width: 145px;
    max-width: 55%;
    margin-top: 38px;
  }

  .multi-icon {
    top: 7px;
    right: 7px;
    transform: scale(0.9);
    transform-origin: top right;
  }

  .desktop-comic-view {
    display: none;
  }

  .mobile-feed {
    display: block;
    width: 100%;
    padding: 70px 0 30px;
  }

  .mobile-feed::after {
    content: "";
    display: block;
    height: max(
      60px,
      calc(100dvh - 125vw - 170px)
    );
  }

  .mobile-feed-item {
    width: 100%;
    margin: 0 0 34px;
    scroll-margin-top: 70px;
  }

  .mobile-feed-topbar {
    width: min(calc(100% - 24px), calc((100dvh - 115px) * 0.8));
    margin: 0 auto 5px;
  }

  .mobile-feed-topbar .comic-number {
    font-size: 15px;
  }

  .mobile-feed .comic-carousel {
    width: min(100%, calc((100dvh - 115px) * 0.8));
    margin: 0 auto;
  }

  .mobile-feed .carousel-stage {
    width: 100%;
  }

  .mobile-feed .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
  }

  .mobile-feed .carousel-slide img {
    width: 100%;
    height: auto;
  }

  .carousel-arrow {
    display: none;
  }

  .strip-arrow {
    display: none;
  }

  .carousel-counter {
    top: 10px;
    right: 10px;
  }

  .carousel-dots {
    margin-top: 8px;
  }

}