/* ==========================================================
   ISTRAM: THE RE-EMERGENCE
   Novel / Serialized Campaign Saga Landing Page
   Dark Chronicle Visual System
   ========================================================== */

body.istram-campaign-page {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(107,65,37,.12), transparent 32rem),
    #100b08;
  color: #ead9bb;
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */

.istram-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;

  background:
    linear-gradient(
      90deg,
      rgba(10,6,4,.97) 0%,
      rgba(10,6,4,.80) 36%,
      rgba(10,6,4,.30) 70%,
      rgba(10,6,4,.58) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(8,5,3,.18),
      rgba(8,5,3,.16) 45%,
      rgba(8,5,3,.96) 100%
    ),
    url('/assets/istram/book-1/chapter-01.png')
    center 38% / cover no-repeat;
}

.istram-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 180px;
  background:
    linear-gradient(
      to bottom,
      transparent,
      #100b08
    );
  pointer-events: none;
}

.istram-hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 10rem 0 6rem;
  color: #f3e3c6;
}

.istram-kicker {
  margin: 0 0 1rem;
  color: #d99b39;
  font-family: Arial, sans-serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.istram-hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 7.7rem);
  line-height: .87;
  letter-spacing: -.052em;
  text-shadow:
    0 5px 24px rgba(0,0,0,.82),
    0 1px 0 rgba(255,255,255,.05);
}

.istram-hero h1 span {
  display: block;
  margin-top: .12em;
  color: #d9a14a;
  font-size: .58em;
  letter-spacing: .015em;
}

.istram-intro {
  max-width: 720px;
  margin: 1.7rem 0 0;
  color: #dfc9a7;
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.75;
  text-shadow: 0 2px 8px #000;
}

.istram-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2rem;
}

.istram-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .75rem 1.25rem;

  border: 1px solid rgba(217,155,57,.72);
  border-radius: 2px;

  color: #f3e3c6;
  background: rgba(14,8,5,.48);

  font-family: Arial, sans-serif;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;

  backdrop-filter: blur(3px);

  transition:
    transform .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.istram-actions a:hover,
.istram-actions a:focus-visible {
  transform: translateY(-2px);
  border-color: #efbd67;
  background: rgba(51,29,16,.76);
}

.istram-actions a:first-child {
  color: #160d08;
  background: #d99b39;
  border-color: #d99b39;
}

.istram-actions a:first-child:hover,
.istram-actions a:first-child:focus-visible {
  background: #efb65a;
  border-color: #efb65a;
}

/* ----------------------------------------------------------
   BOOK / CURRENT VOLUME
   ---------------------------------------------------------- */

.istram-book {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 5.4rem 0 6rem;
}

.istram-book-header {
  position: relative;
  max-width: 850px;
  margin-bottom: 2.8rem;
  padding: 0 0 2.1rem 1.35rem;

  border-left: 2px solid #9d6a31;
  border-bottom: 1px solid rgba(217,155,57,.18);
}

.istram-book-label {
  margin: 0 0 .55rem;
  color: #c99143;
  font-family: Arial, sans-serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.istram-book h2 {
  margin: 0;
  color: #f1dfbf;
  font-size: clamp(2.7rem, 5.5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.035em;
}

.istram-book-copy {
  max-width: 660px;
  margin: 1rem 0 0;
  color: #bda98a;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ----------------------------------------------------------
   CHAPTER ARCHIVE
   ---------------------------------------------------------- */

.istram-chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.istram-chapter-card {
  --chapter-image: none;

  position: relative;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;

  padding: 1.5rem 1.55rem;

  border: 1px solid rgba(217,155,57,.24);
  border-radius: 3px;

  color: #f3e3c6;
  text-decoration: none;

  background:
    linear-gradient(
      to top,
      rgba(10,6,4,.98) 0%,
      rgba(10,6,4,.86) 38%,
      rgba(10,6,4,.30) 75%,
      rgba(10,6,4,.16) 100%
    ),
    var(--chapter-image)
    center / cover no-repeat;

  box-shadow:
    0 15px 35px rgba(0,0,0,.22),
    inset 0 0 0 1px rgba(255,255,255,.02);

  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.istram-chapter-card:nth-child(1) {
  --chapter-image: url('/assets/istram/book-1/chapter-01.png');
}

.istram-chapter-card:nth-child(2) {
  --chapter-image: url('/assets/istram/book-1/chapter-02.png');
}

.istram-chapter-card:nth-child(3) {
  --chapter-image: url('/assets/istram/book-1/chapter-03.png');
}

.istram-chapter-card:nth-child(4) {
  --chapter-image: url('/assets/istram/book-1/chapter-04.png');
}

.istram-chapter-card:nth-child(5) {
  --chapter-image: url('/assets/istram/book-1/chapter-05.png');
}

.istram-chapter-card:nth-child(6) {
  --chapter-image: url('/assets/istram/book-1/chapter-06.png');
}

.istram-chapter-card:nth-child(7) {
  --chapter-image: url('/assets/istram/book-1/chapter-07.png');
}

.istram-chapter-card:nth-child(8) {
  --chapter-image: url('/assets/istram/book-1/chapter-08.png');
}



.istram-chapter-card:nth-child(9) {
  --chapter-image: url('/assets/istram/book-1/chapter-09.png');
}

.istram-chapter-card:nth-child(10) {
  --chapter-image: url('/assets/istram/book-1/chapter-10.png');
}



.istram-chapter-card:nth-child(11) {
  --chapter-image: url('/assets/istram/book-1/chapter-11.png');
}

.istram-chapter-card:nth-child(12) {
  --chapter-image: url('/assets/istram/book-1/chapter-12.png');
}



.istram-chapter-card:nth-child(13) {
  --chapter-image: url('/assets/istram/book-1/chapter-13.png');
}

.istram-chapter-card:nth-child(14) {
  --chapter-image: url('/assets/istram/book-1/chapter-14.png');
}



.istram-chapter-card:nth-child(15) {
  --chapter-image: url('/assets/istram/book-1/chapter-15.png');
}

.istram-chapter-card:nth-child(16) {
  --chapter-image: url('/assets/istram/book-1/chapter-16.png');
}



.istram-chapter-card:nth-child(17) {
  --chapter-image: url('/assets/istram/book-1/chapter-17.png');
}

.istram-chapter-card:nth-child(18) {
  --chapter-image: url('/assets/istram/book-1/chapter-18.png');
}



.istram-chapter-card:nth-child(19) {
  --chapter-image: url('/assets/istram/book-1/chapter-19.png');
}

.istram-chapter-card:nth-child(20) {
  --chapter-image: url('/assets/istram/book-1/chapter-20.png');
}



.istram-chapter-card:nth-child(21) {
  --chapter-image: url('/assets/istram/book-1/chapter-21.png');
}

.istram-chapter-card:nth-child(22) {
  --chapter-image: url('/assets/istram/book-1/chapter-22.png');
}



.istram-chapter-card:nth-child(23) {
  --chapter-image: url('/assets/istram/book-1/chapter-23.png');
}

.istram-chapter-card:nth-child(24) {
  --chapter-image: url('/assets/istram/book-1/chapter-24.png');
}



.istram-chapter-card:nth-child(25) {
  --chapter-image: url('/assets/istram/book-1/chapter-25.png');
}

.istram-chapter-card:nth-child(26) {
  --chapter-image: url('/assets/istram/book-1/chapter-26.png');
}



.istram-chapter-card:nth-child(27) {
  --chapter-image: url('/assets/istram/book-1/chapter-27.png');
}

.istram-chapter-card:nth-child(28) {
  --chapter-image: url('/assets/istram/book-1/chapter-28.png');
}



.istram-chapter-card[href="/campaigns/istram/chapter-29/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-29.png');
}

.istram-chapter-card[href="/campaigns/istram/chapter-30/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-30.png');
}



.istram-chapter-card[href="/campaigns/istram/chapter-31/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-31.png');
}

.istram-chapter-card[href="/campaigns/istram/chapter-32/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-32.png');
}



.istram-chapter-card[href="/campaigns/istram/chapter-33/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-33.png');
}

.istram-chapter-card[href="/campaigns/istram/chapter-34/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-34.png');
}



.istram-chapter-card[href="/campaigns/istram/chapter-35/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-35.png');
}

.istram-chapter-card[href="/campaigns/istram/chapter-36/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-36.png');
}



.istram-chapter-card[href="/campaigns/istram/chapter-37/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-37.png');
}

.istram-chapter-card[href="/campaigns/istram/chapter-38/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-38.png');
}



.istram-chapter-card[href="/campaigns/istram/chapter-39/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-39.png');
}

.istram-chapter-card[href="/campaigns/istram/chapter-40/"] {
  --chapter-image: url('/assets/istram/book-1/chapter-40.png');
}

.istram-chapter-card::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      105deg,
      rgba(151,80,29,.07),
      transparent 34%
    );

  pointer-events: none;
}

.istram-chapter-card:hover,
.istram-chapter-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(239,189,103,.76);

  box-shadow:
    0 19px 44px rgba(0,0,0,.36),
    inset 0 0 0 1px rgba(239,189,103,.10);
}

.istram-chapter-number,
.istram-chapter-card h3,
.istram-chapter-status {
  position: relative;
  z-index: 1;
}

.istram-chapter-number {
  margin-bottom: auto;

  color: #d5a45b;
  font-family: Arial, sans-serif;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;

  text-shadow: 0 2px 6px #000;
}

.istram-chapter-card h3 {
  margin: 4.2rem 0 .55rem;

  color: #f4e3c6;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  line-height: 1.04;

  text-shadow: 0 3px 12px #000;
}

.istram-chapter-status {
  color: #d3b584;
  font-family: Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   CONTINUATION / TALES AFTER ISTRAM
   ---------------------------------------------------------- */

.istram-after {
  position: relative;
  overflow: hidden;

  margin-top: 3.7rem;
  padding: 2.2rem 2.4rem;

  border: 1px solid rgba(217,155,57,.26);
  border-left: 3px solid #a66c31;

  background:
    linear-gradient(
      115deg,
      rgba(84,43,21,.33),
      rgba(25,14,9,.72)
    );

  box-shadow: inset 0 0 45px rgba(0,0,0,.22);
}

.istram-after::after {
  content: "✦";
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);

  color: rgba(217,155,57,.17);
  font-size: 6rem;
  line-height: 1;

  pointer-events: none;
}

.istram-after h3 {
  position: relative;
  z-index: 1;

  margin: 0 0 .65rem;

  color: #ecd9b9;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.istram-after p {
  position: relative;
  z-index: 1;

  max-width: 720px;
  margin: 0;

  color: #bca788;
  line-height: 1.7;
}

.istram-after a {
  color: #e0a954;
  font-weight: 800;
  text-decoration: none;
}

.istram-after a:hover {
  color: #f0c477;
}

/* ----------------------------------------------------------
   HEADER ADJUSTMENT FOR ISTRAM
   ---------------------------------------------------------- */

.istram-campaign-page .site-header {
  background:
    linear-gradient(
      to bottom,
      rgba(9,5,3,.94),
      rgba(9,5,3,.44) 72%,
      transparent
    );
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */

@media (max-width: 900px) {

  .istram-hero {
    min-height: 72vh;
    background-position: 58% center;
  }

  .istram-chapter-grid {
    grid-template-columns: 1fr;
  }

  .istram-chapter-card {
    min-height: 230px;
  }
}

@media (max-width: 560px) {

  .istram-hero-inner,
  .istram-book {
    width: min(100% - 28px, 1180px);
  }

  .istram-hero-inner {
    padding-bottom: 4rem;
  }

  .istram-hero {
    min-height: 68vh;

    background:
      linear-gradient(
        to top,
        rgba(10,6,4,.98) 0%,
        rgba(10,6,4,.76) 44%,
        rgba(10,6,4,.32) 100%
      ),
      url('/assets/istram/book-1/chapter-01.png')
      60% center / cover no-repeat;
  }

  .istram-hero h1 {
    font-size: clamp(3.2rem, 17vw, 5.3rem);
  }

  .istram-intro {
    font-size: 1rem;
  }

  .istram-book {
    padding-top: 4rem;
  }

  .istram-book-header {
    padding-left: 1rem;
  }

  .istram-chapter-card {
    min-height: 210px;
    padding: 1.25rem;
  }

  .istram-after {
    padding: 1.6rem;
  }

  .istram-after::after {
    display: none;
  }
}

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

  .istram-actions a,
  .istram-chapter-card {
    transition: none;
  }
}
