/* =========================================================
   WOBBLEHOOK CHRONICLES HUB
========================================================= */

.chronicles-page {
  background: #191719;
  color: var(--cream);
}

.chronicles-page .wrap {
  width:
    min(
      1360px,
      calc(100% - 64px)
    );
}

.chronicles-page figure {
  margin: 0;
}

.chronicles-page .brand img {
  filter: none;
}

.chronicles-page
.site-nav > a[aria-current="page"] {
  color: var(--gold);
}

/* =========================================================
   HERO
========================================================= */

.chronicle-hero {
  position: relative;
  isolation: isolate;

  min-height: 670px;

  display: flex;
  align-items: flex-end;

  overflow: hidden;

  background: #171517;
}

.chronicle-hero-art {
  position: absolute;

  inset: 0;

  z-index: -3;
}

.chronicle-hero-art img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 47%;
}

.chronicle-hero-shade {
  position: absolute;

  inset: 0;

  z-index: -2;

  background:
    linear-gradient(
      90deg,
      rgba(21, 18, 20, .96) 0%,
      rgba(21, 18, 20, .84) 28%,
      rgba(21, 18, 20, .34) 58%,
      rgba(21, 18, 20, .08) 100%
    ),
    linear-gradient(
      0deg,
      #191719 0%,
      transparent 31%
    );
}

.chronicle-hero-content {
  padding-bottom: 75px;
}

.chronicle-hero h1 {
  max-width: 720px;

  margin: 0;

  color: var(--cream);

  font:
    400
    clamp(
      54px,
      6vw,
      86px
    )/.98
    var(--heading);

  letter-spacing: -.035em;

  text-shadow:
    0 8px 25px #0009;
}

.chronicle-intro {
  max-width: 560px;

  margin-top: 25px;

  color: #ded1c0;

  font-size: 16px;
}

.chronicle-hook {
  max-width: 560px;

  margin-top: 17px;

  color: var(--gold-light);

  font:
    400 23px/1.5
    var(--heading);
}

.chronicle-actions {
  display: flex;
  flex-wrap: wrap;

  align-items: center;

  gap: 22px;

  margin-top: 30px;
}

.hero-corner {
  position: absolute;

  right: 22px;
  bottom: 18px;

  color:
    rgba(
      239,
      215,
      174,
      .74
    );

  font:
    700 10px/1.4
    var(--label);

  letter-spacing: .16em;
}

/* =========================================================
   CHRONICLES
========================================================= */

.chronicles {
  padding:
    90px 0 105px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(215, 179, 120, .05),
      transparent 28%
    ),
    #191719;
}

.chronicles-heading {
  max-width: 710px;

  margin:
    0 auto 48px;

  text-align: center;
}

.chronicles-heading h2 {
  font-size:
    clamp(
      38px,
      4vw,
      54px
    );
}

.chronicles-heading >
p:not(.kicker) {
  max-width: 590px;

  margin:
    17px auto 0;

  color: #beb2a2;

  font-size: 14px;
}

/* =========================================================
   CHAPTER GRID
========================================================= */

.chapter-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 22px;
}

.chapter-card {
  position: relative;
  isolation: isolate;

  min-height: 400px;

  overflow: hidden;

  border:
    1px solid
    rgba(215, 179, 120, .30);

  background: #242124;

  box-shadow:
    0 16px 38px
    rgba(0, 0, 0, .28);

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.chapter-card:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(
      215,
      179,
      120,
      .74
    );

  box-shadow:
    0 24px 50px
    rgba(0, 0, 0, .40);
}

.chapter-card > img {
  position: absolute;

  inset: 0;

  z-index: -3;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .45s ease;
}

.chapter-card:hover > img {
  transform: scale(1.03);
}

.chapter-shade {
  position: absolute;

  inset: 0;

  z-index: -2;

  background:
    linear-gradient(
      0deg,
      rgba(18, 16, 18, .97) 0%,
      rgba(18, 16, 18, .84) 35%,
      rgba(18, 16, 18, .13) 76%
    );
}

/* =========================================================
   NUMBER / STATUS
========================================================= */

.chapter-number {
  position: absolute;

  left: 20px;
  top: 18px;

  z-index: 3;

  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border:
    1px solid
    rgba(
      215,
      179,
      120,
      .70
    );

  background:
    rgba(
      28,
      25,
      27,
      .82
    );

  color:
    var(--gold-light);

  font:
    400 22px/1
    var(--heading);
}

.chapter-status {
  position: absolute;

  right: 18px;
  top: 18px;

  z-index: 3;

  padding:
    6px 9px;

  border:
    1px solid
    rgba(
      215,
      179,
      120,
      .30
    );

  background:
    rgba(
      28,
      25,
      27,
      .82
    );

  color: #ae9f8e;

  font:
    700 10px/1.3
    var(--label);

  letter-spacing: .10em;
}

.chapter-card.is-read
.chapter-status {
  color: #efd59f;

  border-color:
    rgba(
      215,
      179,
      120,
      .70
    );
}

.chapter-card.is-current
.chapter-status {
  color: #c9f7ff;

  border-color:
    rgba(
      91,
      202,
      255,
      .55
    );
}

/* =========================================================
   CARD COPY
========================================================= */

.chapter-content {
  position: absolute;

  left: 26px;
  right: 26px;
  bottom: 25px;

  z-index: 3;

  display: block;
}

.chapter-content small {
  display: block;

  margin-bottom: 10px;

  color: var(--gold);

  font:
    700 11px/1.4
    var(--label);

  letter-spacing: .14em;
}

.chapter-content strong {
  display: block;

  max-width: 470px;

  color: var(--cream);

  font:
    400 33px/1.06
    var(--heading);
}

.chapter-content > span {
  display: block;

  max-width: 500px;

  margin-top: 13px;

  color: #cbc0b0;

  font-size: 13px;
}

.chapter-content b {
  display: block;

  margin-top: 18px;

  color: var(--gold-light);

  font:
    700 13px/1.4
    var(--label);

  letter-spacing: .06em;
}

/* =========================================================
   DOOF CARD
========================================================= */

.chapter-doof
.chapter-shade {
  background:
    linear-gradient(
      0deg,
      rgba(12, 19, 25, .97),
      rgba(12, 19, 25, .74) 38%,
      rgba(12, 33, 48, .08) 76%
    );
}

.chapter-doof::after {
  content: "";

  position: absolute;

  z-index: -1;

  left: 50%;
  top: 46%;

  width: 230px;
  height: 130px;

  transform:
    translate(-50%, -50%);

  background:
    radial-gradient(
      ellipse,
      rgba(62, 203, 255, .17),
      transparent 70%
    );

  filter: blur(15px);

  pointer-events: none;

  animation:
    hub-doof-breathe
    3.3s ease-in-out
    infinite;
}

/* =========================================================
   FALL CARD
========================================================= */

.chapter-fall > img {
  object-fit: contain;

  padding: 35px 25px 80px;

  background:
    linear-gradient(
      145deg,
      #e5d7bd,
      #cdbb9a
    );
}

/* =========================================================
   ECHO COLLAGE
========================================================= */

.echo-art {
  position: absolute;

  inset: 0;

  z-index: -3;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 2px;

  background: #181618;
}

.echo-art img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter:
    saturate(.78)
    brightness(.8);

  transition:
    filter .3s ease,
    transform .35s ease;
}

.chapter-echoes:hover
.echo-art img {
  filter:
    saturate(.95)
    brightness(.92);
}

/* =========================================================
   PROGRESS
========================================================= */

.chronicle-progress-section {
  padding:
    0 0 95px;

  background: #191719;
}

.progress-card {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  align-items: center;

  gap: 50px;

  padding: 38px;

  border:
    1px solid
    rgba(215, 179, 120, .28);

  background:
    linear-gradient(
      145deg,
      #272326,
      #201d20
    );
}

.progress-card h2 {
  max-width: 520px;

  font-size:
    clamp(
      29px,
      3vw,
      39px
    );
}

.progress-summary {
  display: flex;

  align-items: center;

  gap: 25px;
}

.progress-ring {
  flex-shrink: 0;

  display: flex;
  align-items: baseline;
  justify-content: center;

  width: 105px;
  height: 105px;

  border:
    2px solid
    rgba(
      215,
      179,
      120,
      .55
    );

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(215,179,120,.08),
      transparent 70%
    );

  padding-top: 27px;
}

.progress-ring span {
  color:
    var(--gold-light);

  font:
    400 42px/1
    var(--heading);
}

.progress-ring small {
  color: #aa9c8c;

  font-size: 12px;

  margin-left: 3px;
}

.progress-summary strong {
  display: block;

  color: var(--gold-light);

  font:
    400 22px/1.35
    var(--heading);
}

.progress-summary p {
  max-width: 420px;

  margin-top: 7px;

  color: #bcb0a0;

  font-size: 12px;
}

/* =========================================================
   DOOF TEASE
========================================================= */

.doof-tease {
  padding:
    90px 0;

  border-top:
    1px solid
    rgba(94, 199, 255, .14);

  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(45, 169, 255, .08),
      transparent 28%
    ),
    #13181d;
}

.doof-tease-layout {
  display: grid;

  grid-template-columns:
    1.2fr .8fr;

  align-items: center;

  gap: 70px;
}

.doof-tease-layout h2 {
  margin-bottom: 18px;

  font-size:
    clamp(
      35px,
      4vw,
      50px
    );
}

.doof-tease-layout p:not(.kicker) {
  max-width: 600px;

  color: #bcc7cb;

  font-size: 14px;
}

.doof-tease-layout .text-link {
  margin-top: 24px;

  color: #83dfff;
}

.doof-tease-mark {
  position: relative;

  display: grid;
  place-items: center;

  min-height: 230px;
}

.doof-tease-mark::before {
  content: "";

  position: absolute;

  width: 260px;
  height: 150px;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      rgba(77, 211, 255, .20),
      transparent 70%
    );

  filter: blur(8px);

  animation:
    hub-doof-breathe
    3.3s ease-in-out
    infinite;
}

.doof-tease-mark span {
  position: relative;

  color: #d1f9ff;

  font:
    800
    clamp(
      65px,
      8vw,
      105px
    )/.9
    var(--label);

  letter-spacing: .10em;

  text-shadow:
    0 0 12px #a3efff,
    0 0 34px
    rgba(47, 185, 255, .7),
    0 0 70px
    rgba(35, 111, 255, .30);
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes hub-doof-breathe {

  0%,
  100% {
    opacity: .5;
    transform:
      translate(-50%, -50%)
      scale(.9);
  }

  50% {
    opacity: 1;
    transform:
      translate(-50%, -50%)
      scale(1.1);
  }

}

.doof-tease-mark::before {
  transform:
    translate(-50%, -50%);

  left: 50%;
  top: 50%;
}

@keyframes hub-doof-breathe {

  0%,
  100% {
    opacity: .45;
    scale: .9;
  }

  50% {
    opacity: 1;
    scale: 1.08;
  }

}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .chapter-card {
    min-height: 360px;
  }

  .progress-card {
    grid-template-columns: 1fr;
  }

  .doof-tease-layout {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .doof-tease-mark {
    min-height: 160px;
  }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .chronicles-page .wrap {
    width:
      calc(100% - 34px);
  }

  .chronicle-hero {
    min-height: 640px;
  }

  .chronicle-hero-art img {
    object-position:
      63% center;
  }

  .chronicle-hero-shade {
    background:
      linear-gradient(
        0deg,
        #191719 0%,
        rgba(25, 23, 25, .90) 35%,
        rgba(25, 23, 25, .20) 74%
      );
  }

  .chronicle-hero-content {
    padding-bottom: 60px;
  }

  .chronicle-hero h1 {
    font-size:
      clamp(
        48px,
        13vw,
        66px
      );
  }

  .chronicle-intro {
    font-size: 14px;
  }

  .chronicle-hook {
    font-size: 20px;
  }

  .hero-corner {
    display: none;
  }

  .chronicles {
    padding-block:
      65px;
  }

  .chronicles-heading {
    margin-bottom: 32px;
  }

  .chapter-card {
    min-height: 330px;
  }

  .chapter-content {
    left: 19px;
    right: 19px;
    bottom: 20px;
  }

  .chapter-content strong {
    font-size: 28px;
  }

  .chapter-content > span {
    font-size: 12px;
  }

  .chapter-number {
    left: 14px;
    top: 14px;
  }

  .chapter-status {
    right: 14px;
    top: 14px;
  }

  .progress-card {
    padding: 27px 20px;
  }

  .progress-summary {
    align-items: flex-start;
  }

  .progress-ring {
    width: 85px;
    height: 85px;

    padding-top: 21px;
  }

  .progress-ring span {
    font-size: 34px;
  }

  .doof-tease {
    padding-block: 65px;
  }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .chapter-card,
  .chapter-card > img,
  .echo-art img,
  .chapter-doof::after,
  .doof-tease-mark::before {
    animation: none !important;
    transition: none !important;
  }

}

@media (min-width: 941px) and (max-width: 1120px) {

  .chronicles-page .site-nav {
    gap: 12px;
  }

  .chronicles-page .site-nav > a:not(.button),
  .chronicles-page .nav-dropdown > summary {
    font-size: 13px;
    letter-spacing: .045em;
  }

  .chronicles-page .nav-cta {
    font-size: 13px;
    padding-inline: 14px;
    gap: 8px;
  }

}