/* =========================================================
   WOBBLEHOOK CHRONICLES
   CHAPTER IV · THE ECHOES
========================================================= */

.echoes-page {
  background: #171719;
  color: var(--cream);
}

.echoes-page .wrap {
  width: min(1360px, calc(100% - 64px));
}

.echoes-page .brand img {
  filter: none;
}

.echoes-page
.site-nav > a[aria-current="page"] {
  color: var(--gold);
}

/* =========================================================
   HERO
========================================================= */

.echoes-hero {
  position: relative;
  isolation: isolate;

  min-height: 650px;

  display: flex;
  align-items: flex-end;

  overflow: hidden;

  background: #111315;
}

.echoes-hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.echoes-hero-art img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 47%;

  filter:
    saturate(.62)
    brightness(.64);
}

.echoes-hero-shade {
  position: absolute;

  inset: 0;

  z-index: -2;

  background:
    linear-gradient(
      90deg,
      rgba(17, 17, 19, .98) 0%,
      rgba(17, 17, 19, .83) 32%,
      rgba(17, 17, 19, .32) 67%,
      rgba(17, 17, 19, .06) 100%
    ),
    linear-gradient(
      0deg,
      #171719 0%,
      transparent 34%
    );
}

.echoes-hero-content {
  padding-bottom: 70px;
}

.chapter-back {
  display: inline-block;

  margin-bottom: 35px;

  color: #b6aa9c;

  font:
    700 11px/1.4
    var(--label);

  letter-spacing: .1em;
}

.chapter-back:hover {
  color: var(--gold);
}

.echoes-hero h1 {
  margin: 0;

  color: var(--cream);

  font:
    400
    clamp(
      54px,
      6vw,
      86px
    )/.98
    var(--heading);

  letter-spacing: -.035em;

  text-shadow:
    0 8px 25px #000b;
}

.echoes-lead {
  max-width: 550px;

  margin-top: 24px;

  color: #d5cabb;

  font-size: 16px;
}

.echoes-punchline {
  color: var(--gold-light);

  font:
    400 24px/1.5
    var(--heading);

  margin-top: 11px;
}

.echoes-hero .button {
  margin-top: 28px;
}

.hero-caption {
  position: absolute;

  right: 22px;
  bottom: 17px;

  color: #cab691;

  font:
    700 10px/1.4
    var(--label);

  letter-spacing: .14em;
}

/* =========================================================
   PROGRESS
========================================================= */

.echoes-progress {
  position: sticky;
  top: 0;

  z-index: 40;

  height: 3px;

  background: #0c0c0e;
}

.echoes-progress span {
  display: block;

  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      #9d7545,
      #5cbddd
    );

  transform: scaleX(0);
  transform-origin: left;
}

/* =========================================================
   READING
========================================================= */

.echoes-chapter {
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(82, 162, 187, .035),
      transparent 27%
    ),
    #171719;
}

.echoes-reading {
  width:
    min(
      960px,
      calc(100% - 48px)
    ) !important;

  padding-bottom: 100px;
}

.echoes-copy,
.echo-explanation,
.dungeon-section,
.last-reveal {
  max-width: 760px;

  margin-inline: auto;

  padding: 70px 0;
}

.echoes-copy h2,
.echo-explanation h2,
.dungeon-section h2,
.last-reveal h2 {
  margin:
    8px 0 25px;

  font-size:
    clamp(
      34px,
      3.7vw,
      49px
    );

  line-height: 1.08;
}

.echoes-copy p,
.echo-explanation p,
.dungeon-section p,
.last-reveal p {
  color: #d1c6b7;

  font:
    400 19px/1.82
    Georgia,
    serif;
}

.echoes-copy p + p,
.echo-explanation p + p,
.dungeon-section p + p,
.last-reveal p + p {
  margin-top: 18px;
}

.story-label {
  color: var(--gold) !important;

  font:
    700 11px/1.5
    var(--label) !important;

  letter-spacing: .14em;
}

.pull-line,
.echo-line {
  margin-top: 30px !important;

  padding:
    14px 0
    14px 18px;

  border-left:
    2px solid var(--gold);

  color:
    var(--gold-light) !important;

  font:
    400 22px/1.55
    var(--heading) !important;
}

/* =========================================================
   ECHO EXPLANATION
========================================================= */

.echo-explanation {
  border-block:
    1px solid
    rgba(215,179,120,.14);
}

/* =========================================================
   BOSS ARCHIVE
========================================================= */

.boss-archive {
  margin:
    75px auto;

  padding:
    42px;

  border:
    1px solid
    rgba(215,179,120,.30);

  background:
    linear-gradient(
      145deg,
      #211f21,
      #171719
    );
}

.boss-archive h2 {
  margin:
    7px 0 12px;

  font-size:
    clamp(
      37px,
      4vw,
      52px
    );
}

.boss-intro {
  color: #aaa094;

  font-size: 12px;
}

/* =========================================================
   BOSS TABS
========================================================= */

.boss-tabs {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );

  gap: 7px;

  margin:
    30px 0 25px;
}

.boss-tab {
  min-height: 55px;

  border:
    1px solid
    rgba(215,179,120,.22);

  background: #151517;
  color: #aa9e91;

  font:
    700 13px/1.3
    var(--label);

  letter-spacing: .04em;
}

.boss-tab span {
  color: #7d6e5c;

  margin-right: 6px;
}

.boss-tab:hover,
.boss-tab[aria-selected="true"] {
  background: #443323;

  color: #ffe0a7;

  border-color: var(--gold);
}

.boss-tab[aria-selected="true"] span {
  color: var(--gold);
}

/* =========================================================
   BOSS PANEL
========================================================= */

.boss-panel {
  display: grid;

  grid-template-columns:
    .9fr 1.1fr;

  gap: 35px;

  min-height: 400px;

  border:
    1px solid
    rgba(215,179,120,.20);

  background: #111214;

  overflow: hidden;
}

.boss-art {
  position: relative;

  min-height: 400px;

  overflow: hidden;
}

.boss-art img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  filter:
    saturate(.72)
    brightness(.76);

  transition:
    opacity .2s ease;
}

.boss-number {
  position: absolute;

  left: 16px;
  top: 15px;

  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  background:
    rgba(18,16,18,.87);

  border:
    1px solid
    rgba(215,179,120,.60);

  color: var(--gold-light);

  font:
    400 23px/1
    var(--heading);
}

.boss-copy {
  align-self: center;

  padding:
    34px 35px 34px 0;
}

.boss-type {
  color: var(--gold);

  font:
    700 11px/1.4
    var(--label);

  letter-spacing: .13em;
}

.boss-copy h3 {
  margin:
    9px 0 18px;

  font-size:
    clamp(
      31px,
      3vw,
      41px
    );
}

.boss-copy >
p:not(.boss-type):not(.boss-note) {
  color: #c7bcad;

  font-size: 14px;
}

.boss-copy blockquote {
  margin:
    24px 0;

  padding:
    16px 0
    16px 18px;

  border-left:
    2px solid var(--gold);

  color: var(--gold-light);

  font:
    400 21px/1.5
    var(--heading);
}

.boss-note {
  color: #7ebdd1;

  font:
    700 10px/1.4
    var(--label);

  letter-spacing: .12em;
}

/* =========================================================
   DUNGEON SECTION
========================================================= */

.dungeon-section {
  padding-top: 90px;
}

/* =========================================================
   LEGACY THREAD
========================================================= */

.legacy-thread {
  position: relative;

  max-width: 760px;

  margin:
    50px auto 90px;

  padding-left: 30px;
}

.thread-line {
  position: absolute;

  left: 10px;
  top: 5px;
  bottom: 5px;

  width: 1px;

  background:
    linear-gradient(
      var(--gold),
      #4c9ab3
    );
}

.thread-point {
  position: relative;

  display: grid;

  grid-template-columns:
    50px
    minmax(0,1fr);

  gap: 18px;

  padding:
    18px 0;
}

.thread-point > span {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  margin-left: -38px;

  border:
    1px solid
    rgba(215,179,120,.58);

  border-radius: 50%;

  background: #171719;
  color: var(--gold);

  font:
    700 11px/1
    var(--label);
}

.thread-point strong {
  color: var(--gold-light);

  font:
    400 20px/1.4
    var(--heading);
}

.thread-point p {
  margin-top: 5px;

  color: #aaa094;

  font-size: 12px;
}

.current-point > span {
  border-color: #65d2f5;

  color: #a9efff;

  box-shadow:
    0 0 18px
    rgba(74,190,235,.22);
}

/* =========================================================
   MODERN ANTAGONISTS
========================================================= */

.modern-section {
  max-width: 800px;

  margin:
    80px auto;

  padding:
    45px;

  border:
    1px solid
    rgba(91,190,222,.22);

  background:
    radial-gradient(
      circle at 50% 0,
      rgba(61,172,220,.07),
      transparent 45%
    ),
    #151a1e;
}

.modern-section h2 {
  margin:
    8px 0 18px;

  font-size:
    clamp(
      37px,
      4vw,
      50px
    );
}

.modern-intro {
  color: #bec7c9;

  font-size: 14px;
}

.modern-intro + .modern-intro {
  margin-top: 8px;
}

.modern-switcher {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin:
    30px 0 18px;
}

.modern-button {
  min-height: 43px;

  padding:
    9px 16px;

  border:
    1px solid
    rgba(87,194,232,.27);

  background: #10171b;

  color: #91aeb8;

  font:
    700 13px/1.3
    var(--label);
}

.modern-button:hover,
.modern-button[aria-pressed="true"] {
  border-color: #5cccec;

  background: #15374a;

  color: #d8f9ff;
}

.modern-card {
  padding:
    27px;

  border:
    1px solid
    rgba(88,199,235,.18);

  background: #10171b;
}

.modern-label {
  color: #67cbe9;

  font:
    700 10px/1.4
    var(--label);

  letter-spacing: .12em;
}

.modern-card h3 {
  margin:
    9px 0 17px;

  font-size: 32px;
}

.modern-card p {
  color: #c1cbcd;

  font-size: 13px;
}

.modern-card p + p {
  margin-top: 12px;
}

.modern-link {
  display: inline-block;

  margin-top: 22px;

  color: #83ddfa;

  font:
    700 12px/1.4
    var(--label);

  letter-spacing: .08em;
}

/* =========================================================
   FINAL REVEAL
========================================================= */

.last-reveal {
  text-align: center;

  padding-block:
    100px;
}

.last-reveal p {
  max-width: 660px;

  margin-inline: auto;
}

.final-whisper {
  margin-top:
    32px !important;

  color:
    #c7edf2 !important;

  font:
    400 24px/1.5
    var(--heading) !important;

  font-style: italic !important;
}

/* =========================================================
   CHRONICLE COMPLETE
========================================================= */

.chronicle-complete {
  max-width: 820px;

  margin:
    30px auto 0;

  padding:
    70px 45px;

  text-align: center;

  border:
    1px solid
    rgba(215,179,120,.44);

  background:
    radial-gradient(
      circle at 50% 0,
      rgba(215,179,120,.08),
      transparent 42%
    ),
    #211e20;
}

.completed-seal {
  display: grid;
  place-items: center;

  width: 130px;
  height: 130px;

  margin:
    0 auto 27px;

  border:
    2px solid
    rgba(215,179,120,.70);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(215,179,120,.10),
      transparent 68%
    );
}

.completed-seal span {
  color: var(--gold-light);

  font:
    400 40px/1
    var(--heading);
}

.completed-seal small {
  width: 90px;

  color: var(--gold);

  font:
    700 8px/1.3
    var(--label);

  letter-spacing: .08em;
}

.chronicle-complete h2 {
  margin:
    8px 0 18px;

  font-size:
    clamp(
      38px,
      5vw,
      55px
    );
}

.chronicle-complete >
p:not(.kicker) {
  max-width: 620px;

  margin-inline: auto;

  color: #c2b6a6;
}

.complete-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 13px;

  margin-top: 30px;
}

.return-link {
  display: inline-block;

  margin-top: 26px;

  color: #a99d90;

  font-size: 11px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .echoes-page .wrap {
    width:
      calc(100% - 34px);
  }

  .echoes-hero {
    min-height: 640px;
  }

  .echoes-hero-art img {
    object-position:
      56% center;
  }

  .echoes-hero-shade {
    background:
      linear-gradient(
        0deg,
        #171719 0%,
        rgba(23,23,25,.93) 37%,
        rgba(23,23,25,.18) 76%
      );
  }

  .echoes-hero-content {
    padding-bottom: 58px;
  }

  .echoes-hero h1 {
    font-size:
      clamp(
        50px,
        14vw,
        68px
      );
  }

  .hero-caption {
    display: none;
  }

  .echoes-reading {
    width:
      calc(100% - 30px)
      !important;
  }

  .echoes-copy,
  .echo-explanation,
  .dungeon-section,
  .last-reveal {
    padding:
      50px 0;
  }

  .echoes-copy p,
  .echo-explanation p,
  .dungeon-section p,
  .last-reveal p {
    font-size: 17px;
  }

  .boss-archive {
    padding:
      30px 18px;

    margin-block: 55px;
  }

  .boss-tabs {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .boss-panel {
    grid-template-columns: 1fr;
  }

  .boss-art {
    min-height: 300px;
  }

  .boss-copy {
    padding:
      25px 20px 30px;
  }

  .legacy-thread {
    padding-left: 34px;
  }

  .modern-section {
    padding:
      32px 20px;

    margin-block: 55px;
  }

  .chronicle-complete {
    padding:
      50px 20px;
  }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .boss-art img {
    transition: none;
  }

}

@media (min-width: 941px) and (max-width: 1120px) {

  .echoes-page .site-nav {
    gap: 12px;
  }

  .echoes-page .site-nav > a {
    font-size: 13px;
    letter-spacing: .04em;
    white-space: nowrap;
  }

}