/* =========================================================
   GURT.CLUB / READ
   Loaded after ../styles.css
   ========================================================= */

.read-page {
  background: #f5f5f3;
}

.read-page main {
  width: 100%;
}


/* NAV */

.read-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #dedede;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.read-nav-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 58px;
  margin: 0 auto;

  display: flex;
  align-items: center;
}

.read-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #111;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.read-nav-back:hover,
.read-nav-back:focus-visible {
  color: var(--accent);
}


/* INTRO */

.read-intro {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 42px;

  text-align: center;
}

.read-logo {
  width: min(430px, 82vw);
  height: auto;
  margin: 0 auto 28px;
}

.read-kicker,
.reader-section-kicker {
  margin: 0 0 8px;

  color: var(--accent);

  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .12em;
}

.read-intro h1 {
  margin: 0 0 16px;

  color: #111;

  font-size: clamp(31px, 5vw, 52px);
  line-height: 1.02;

  letter-spacing: -.035em;
}

.read-intro h1 em {
  font-style: normal;
}

.read-deck {
  max-width: 680px;
  margin: 0 auto 12px;

  color: #2f3740;

  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
}

.read-credit {
  margin: 0;

  color: #68717b;

  font-size: 13px;
}


/* COMIC PAGES */

.comic-pages {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 64px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 24px;
}

.comic-page {
  display: block;

  width: 100%;
  height: auto;

  background: #fff;

  border: 1px solid #dedede;

  box-shadow:
    0 5px 18px rgba(0,0,0,.08);
}


/* READER CTA SECTIONS */

.reader-signup,
.share-section {
  width: 100%;

  background: #fff;

  border-top: 1px solid #dedede;
}

.share-section {
  background: #111;
  color: #fff;

  border-top: 0;
}

.reader-section-inner {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0;

  text-align: center;
}

.reader-section-inner h2 {
  margin: 0 0 12px;

  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.05;

  letter-spacing: -.025em;
}

.reader-section-inner > p:not(.reader-section-kicker):not(.copy-status) {
  max-width: 650px;
  margin: 0 auto 28px;

  font-size: 17px;
  line-height: 1.55;
}


/* BREVO */

.reader-brevo {
  width: min(680px, 100%);
  margin: 0 auto;

  text-align: left;
}

.reader-brevo iframe {
  display: block;

  width: 100%;
  min-height: 605px;

  border: 0;

  background: #fff;
}


.share-section .reader-section-kicker {
  color: #ff544c;
}


/* SHARE LINK */

.share-link-wrap {
  display: flex;
  align-items: stretch;
  justify-content: center;

  width: min(680px, 100%);
  margin: 28px auto 0;

  gap: 10px;
}

.share-link-field {
  flex: 1 1 auto;

  min-width: 0;

  padding: 18px 22px;

  border: 2px solid #fff;
  border-radius: 14px;

  background: #fff;
  color: #111;

  font: inherit;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;

  text-align: left;

  cursor: pointer;
}

.share-link-field:hover,
.share-link-field:focus-visible {
  background: #f1f1f1;
}

.share-copy-button {
  flex: 0 0 auto;

  padding: 0 28px;

  border: 0;
  border-radius: 14px;

  background: var(--accent);
  color: #fff;

  font: inherit;
  font-size: 16px;
  font-weight: 900;

  cursor: pointer;
}

.share-copy-button:hover,
.share-copy-button:focus-visible {
  background: #b71319;
}

.copy-status {
  min-height: 24px;

  margin: 14px 0 0;

  color: #fff;

  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 600px) {

  .share-link-wrap {
    flex-direction: column;
  }

  .share-link-field {
    width: 100%;
    text-align: center;
  }

  .share-copy-button {
    width: 100%;
    min-height: 52px;
  }

}



/* FOOTER */

.read-footer {
  padding-top: 46px;

  background: #f5f5f3;
}


/* SCROLL TO TOP */

.scroll-top {
  position: fixed;

  right: 20px;
  bottom: 20px;

  z-index: 60;

  width: 48px;
  height: 48px;

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

  border: 0;
  border-radius: 50%;

  background: #111;
  color: #fff;

  box-shadow:
    0 5px 18px rgba(0,0,0,.25);

  font-size: 24px;
  line-height: 1;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transform: translateY(8px);

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility .18s ease,
    background .18s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--accent);
}


/* MOBILE */

@media (max-width: 767px) {

  .read-nav-inner {
    width: calc(100% - 28px);
    min-height: 52px;
  }

  .read-intro {
    width: calc(100% - 30px);

    padding: 34px 0 30px;
  }

  .read-logo {
    width: min(360px, 88vw);

    margin-bottom: 22px;
  }

  .read-deck {
    font-size: 16px;
  }

  .comic-pages {
    width: calc(100% - 16px);

    gap: 14px;

    padding-bottom: 40px;
  }

  .comic-page {
    border-left: 0;
    border-right: 0;

    box-shadow:
      0 3px 12px rgba(0,0,0,.07);
  }

  .reader-section-inner {
    width: calc(100% - 30px);

    padding: 42px 0;
  }

  .reader-section-inner > p:not(.reader-section-kicker):not(.copy-status) {
    font-size: 16px;
  }

  .share-buttons {
    display: grid;

    grid-template-columns:
      1fr 1fr;
  }

  .share-button {
    width: 100%;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;

    width: 44px;
    height: 44px;
  }

  .read-footer {
    width: calc(100% - 40px);
  }

}


@media (max-width: 430px) {

  .share-buttons {
    grid-template-columns: 1fr;
  }

}


@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .share-button,
  .scroll-top {
    transition: none;
  }

}


/* MORE COMICS */

.reader-more {
  width: 100%;
  background: #fff;
  border-top: 1px solid #dedede;
}

.reader-more-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.reader-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 54px;
  padding: 14px 26px;

  border: 2px solid #111;
  border-radius: 30px;

  background: #fff;
  color: #111;

  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.reader-more-button:hover,
.reader-more-button:focus-visible {
  background: #111;
  color: #fff;
}

.reader-more-primary {
  background: #690003;
  border-color: #690003;
  color: #fff;
}

.reader-more-primary:hover,
.reader-more-primary:focus-visible {
  background: #690003;
  border-color: #690003;
}

@media (max-width: 600px) {
  .reader-more-actions {
    flex-direction: column;
  }

  .reader-more-button {
    width: 100%;
  }
}

.reader-more-image {
    display: block;
    max-width: 400px;
    width: 100%;
    margin: auto;
}