/* =========================================================
   COMIC CATEGORY
========================================================= */


/* =========================================================
   PROJECT
========================================================= */

.comic-project {
  padding: 88px 0;

  border-top: 1px solid var(--line);
}

.comic-project-featured {
  padding-top: 65px;
}

.comic-project-intro {
  display: grid;

  grid-template-columns: 1.08fr .92fr;

  gap: 70px;

  align-items: end;

  margin-bottom: 34px;
}

.comic-project-intro h2 {
  margin-top: 9px;

  max-width: 820px;

  font-family: "Fraunces", serif;

  font-size: clamp(3.4rem, 5.8vw, 5.9rem);

  font-weight: 500;

  line-height: .9;

  letter-spacing: -.055em;
}

.comic-project-intro h2 em {
  color: var(--red);

  font-weight: 400;
}

.comic-project-summary > span {
  display: block;

  margin-bottom: 12px;

  color: var(--lime);

  font-family: "Fira Code", monospace;

  font-size: .68rem;

  letter-spacing: .07em;
}

.comic-project-summary p {
  margin-bottom: 11px;

  color: var(--muted);

  font-size: .96rem;

  line-height: 1.72;
}


/* =========================================================
   HEALTHY PASS — SWIPE READER
========================================================= */

.comic-reader {
  overflow: hidden;

  border: 1px solid var(--line);

  border-radius: 28px;

  background: var(--panel);
}

.comic-reader-top {
  min-height: 82px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 17px 20px;

  border-bottom: 1px solid var(--line);
}

.comic-reader-top > div:first-child {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.comic-reader-label {
  color: var(--red);

  font-family: "Fira Code", monospace;

  font-size: .64rem;

  letter-spacing: .07em;
}

.comic-reader-top strong {
  font-family: "Fraunces", serif;

  font-size: 1.2rem;

  font-weight: 500;
}

.comic-reader-controls {
  display: flex;

  align-items: center;

  gap: 10px;
}

.comic-reader-arrow {
  width: 44px;

  height: 44px;

  display: grid;

  place-items: center;

  border: 1px solid var(--line);

  border-radius: 50%;

  background: transparent;

  color: white;

  cursor: pointer;

  transition: .2s;
}

.comic-reader-arrow:hover {
  background: var(--lime);

  border-color: var(--lime);

  color: #111;
}

.comic-reader-arrow:disabled {
  opacity: .3;

  cursor: default;
}

.comic-reader-counter {
  min-width: 68px;

  color: #d7d1d3;

  font-family: "Fira Code", monospace;

  font-size: .72rem;

  text-align: center;
}


/* =========================================================
   HEALTHY SLIDER
========================================================= */

.healthy-slider {
  display: flex;

  gap: 18px;

  overflow-x: auto;

  padding: 22px;

  scroll-snap-type: x mandatory;

  scroll-behavior: smooth;

  overscroll-behavior-x: contain;

  scrollbar-width: none;

  touch-action: pan-x pan-y;

  cursor: grab;
}

.healthy-slider::-webkit-scrollbar {
  display: none;
}

.healthy-slider.is-dragging {
  cursor: grabbing;

  scroll-behavior: auto;

  user-select: none;
}

.healthy-slide {
  flex: 0 0 calc(100% - 90px);

  min-width: 0;

  position: relative;

  margin: 0;

  padding: 10px;

  background: var(--paper);

  scroll-snap-align: center;

  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

.healthy-slide > span {
  position: absolute;

  top: 17px;

  left: 17px;

  z-index: 3;

  padding: 5px 8px;

  background: rgba(11,11,14,.88);

  color: var(--lime);

  font-family: "Fira Code", monospace;

  font-size: .62rem;
}

.healthy-slide img {
  width: 100%;

  height: min(72vh, 780px);

  object-fit: contain;

  cursor: zoom-in;
}


/* =========================================================
   HEALTHY PROGRESS
========================================================= */

.healthy-progress {
  height: 3px;

  margin: 0 22px 22px;

  overflow: hidden;

  background: rgba(255,255,255,.08);
}

.healthy-progress span {
  display: block;

  width: calc(100% / 21);

  height: 100%;

  background: var(--lime);

  transform: translateX(0);

  transition: transform .25s ease;
}


/* =========================================================
   MOTIVATIONAL SERIES
========================================================= */

.motivational-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 14px;
}

.motivational-card {
  margin: 0;

  overflow: hidden;

  background: var(--panel);

  border: 1px solid var(--line);

  transition: .22s;
}

.motivational-card:hover {
  transform: translateY(-5px);

  border-color: rgba(255,255,255,.24);
}

.motivational-card img {
  width: 100%;

  aspect-ratio: 4 / 5;

  object-fit: contain;

  background: rgba(255,255,255,.015);

  cursor: zoom-in;
}

.motivational-card figcaption {
  min-height: 64px;

  display: flex;

  align-items: center;

  gap: 11px;

  padding: 12px 14px;

  border-top: 1px solid var(--line);
}

.motivational-card figcaption span {
  color: var(--red);

  font-family: "Fira Code", monospace;

  font-size: .62rem;
}

.motivational-card figcaption strong {
  font-family: "Fraunces", serif;

  font-size: 1.08rem;

  font-weight: 500;
}


/* =========================================================
   LYRIC MV
========================================================= */

.lyric-showcase {
  min-height: 520px;

  display: grid;

  place-items: center;

  padding: 20px;

  background: var(--panel);

  border: 1px solid var(--line);
}

.lyric-showcase img {
  width: 100%;

  max-height: 900px;

  object-fit: contain;

  cursor: zoom-in;
}


/* =========================================================
   NARRATIVE STUDIES
========================================================= */

.narrative-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 16px;
}

.narrative-card {
  display: flex;

  flex-direction: column;

  overflow: hidden;

  background: var(--panel);

  border: 1px solid var(--line);

  transition: .22s;
}

.narrative-card:hover {
  transform: translateY(-5px);

  border-color: rgba(255,255,255,.24);
}

.narrative-image {
  min-height: 410px;

  display: grid;

  place-items: center;

  background: rgba(255,255,255,.015);
}

.narrative-image img {
  width: 100%;

  height: 410px;

  object-fit: contain;

  cursor: zoom-in;
}

.narrative-content {
  padding: 18px;

  border-top: 1px solid var(--line);
}

.narrative-content > span {
  color: var(--red);

  font-family: "Fira Code", monospace;

  font-size: .63rem;

  letter-spacing: .065em;
}

.narrative-content h3 {
  margin-top: 8px;

  font-family: "Fraunces", serif;

  font-size: 1.5rem;

  font-weight: 500;

  line-height: 1.05;
}

.narrative-content p {
  margin-top: 10px;

  color: var(--muted);

  font-size: .82rem;

  line-height: 1.65;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

  .comic-project-intro {
    grid-template-columns: 1fr;

    gap: 28px;
  }

  .healthy-slide {
    flex-basis: calc(100% - 55px);
  }

  .motivational-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .narrative-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .comic-project {
    padding: 64px 0;
  }

  .comic-project-intro h2 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .comic-reader {
    border-radius: 20px;
  }

  .comic-reader-top {
    align-items: flex-start;

    flex-direction: column;
  }

  .comic-reader-controls {
    width: 100%;

    justify-content: space-between;
  }

  .healthy-slider {
    gap: 10px;

    padding: 12px;
  }

  .healthy-slide {
    flex-basis: 92%;

    padding: 6px;
  }

  .healthy-slide img {
    height: auto;

    max-height: 72vh;
  }

  .healthy-progress {
    margin: 0 12px 14px;
  }

  .motivational-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .narrative-grid {
    grid-template-columns: 1fr;
  }

  .narrative-image,
  .narrative-image img {
    min-height: 0;

    height: auto;

    max-height: 620px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 460px) {

  .healthy-slide {
    flex-basis: 96%;
  }

  .motivational-grid {
    grid-template-columns: 1fr;
  }

}