/* =========================================================
   WOBBLEHOOK CHRONICLES
   CHAPTER III · THE FALL
========================================================= */

.fall-page {
  background: #191719;
  color: var(--cream);
}

.fall-page .wrap {
  width: min(1360px, calc(100% - 64px));
}

.fall-page .brand img {
  filter: none;
}

.fall-page
.site-nav > a[aria-current="page"] {
  color: var(--gold);
}

/* =========================================================
   HERO
========================================================= */

.fall-hero {
  position: relative;
  isolation: isolate;

  min-height: 650px;

  display: flex;
  align-items: flex-end;

  overflow: hidden;

  background: #171517;
}

.fall-hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.fall-hero-art img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 44%;

  filter:
    saturate(.78)
    brightness(.72);
}

.fall-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(
      90deg,
      rgba(24, 18, 17, .97) 0%,
      rgba(24, 18, 17, .82) 31%,
      rgba(24, 18, 17, .30) 64%,
      rgba(24, 18, 17, .06) 100%
    ),
    linear-gradient(
      0deg,
      #191719 0%,
      transparent 32%
    );
}

.fall-hero-content {
  padding-bottom: 70px;
}

.chapter-back {
  display: inline-block;

  margin-bottom: 35px;

  color: #baa998;

  font:
    700 11px/1.4
    var(--label);

  letter-spacing: .1em;
}

.chapter-back:hover {
  color: var(--gold);
}

.fall-hero h1 {
  margin: 0;

  color: var(--cream);

  font:
    400
    clamp(
      54px,
      6vw,
      86px
    )/.98
    var(--heading);

  letter-spacing: -.035em;

  text-shadow:
    0 8px 25px #0009;
}

.fall-lead {
  max-width: 550px;

  margin-top: 24px;

  color: #ddd0bd;

  font-size: 16px;
}

.fall-punchline {
  color: var(--gold-light);

  font:
    400 24px/1.5
    var(--heading);

  margin-top: 11px;
}

.fall-hero .button {
  margin-top: 28px;
}

.hero-caption {
  position: absolute;

  right: 22px;
  bottom: 17px;

  color: #d9c39c;

  font:
    700 10px/1.4
    var(--label);

  letter-spacing: .14em;
}

/* =========================================================
   PROGRESS
========================================================= */

.fall-progress {
  position: sticky;
  top: 0;
  z-index: 40;

  height: 3px;

  background: #0d0c0e;
}

.fall-progress span {
  display: block;

  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      #d0aa6b,
      #9e5544
    );

  transform:
    scaleX(0);

  transform-origin: left;
}

/* =========================================================
   READING
========================================================= */

.fall-chapter {
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(215, 179, 120, .04),
      transparent 28%
    ),
    #191719;
}

.fall-reading {
  width:
    min(
      940px,
      calc(100% - 48px)
    ) !important;

  padding-bottom: 100px;
}

.fall-copy {
  max-width: 760px;

  margin-inline: auto;

  padding: 70px 0;
}

.fall-copy h2 {
  margin:
    8px 0 25px;

  font-size:
    clamp(
      34px,
      3.7vw,
      48px
    );

  line-height: 1.08;
}

.fall-copy p {
  color: #d4c8b7;

  font:
    400 19px/1.82
    Georgia,
    serif;
}

.fall-copy p + p {
  margin-top: 18px;
}

.story-label {
  color: var(--gold) !important;

  font:
    700 11px/1.5
    var(--label) !important;

  letter-spacing: .14em;
}

.pull-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;
}

/* =========================================================
   CREST
========================================================= */

.crest-section {
  display: grid;

  grid-template-columns:
    290px
    minmax(0, 1fr);

  gap: 55px;

  align-items: center;

  padding: 80px 0;

  border-block:
    1px solid
    rgba(215,179,120,.17);
}

.crest-display {
  text-align: center;
}

.crest-display img {
  width: 250px;
  max-width: 100%;

  filter:
    drop-shadow(
      0 18px 20px #0005
    );
}

.crest-turn {
  display: block;

  margin:
    17px auto 0;

  padding:
    10px 16px;

  border:
    1px solid
    rgba(215,179,120,.55);

  background: #2b2726;
  color: var(--gold-light);

  font:
    700 13px/1.3
    var(--label);
}

.crest-turn:hover {
  background: #493a2b;
}

.crest-copy h2 {
  margin:
    8px 0 25px;

  font-size:
    clamp(
      34px,
      4vw,
      47px
    );
}

.crest-copy p {
  color: #d4c8b7;

  font:
    400 18px/1.78
    Georgia,
    serif;
}

.crest-copy p + p {
  margin-top: 17px;
}

/* =========================================================
   WARNINGS
========================================================= */

.warning-section {
  max-width: 760px;

  margin:
    75px auto;

  padding: 36px;

  border:
    1px solid
    rgba(215,179,120,.30);

  background: #211e20;
}

.warning-section h2 {
  margin-bottom: 17px;

  font-size:
    clamp(
      34px,
      4vw,
      47px
    );
}

.warning-intro {
  color: #bfb2a0;

  font-size: 13px;
}

.warning-switcher {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin:
    28px 0 20px;
}

.warning-button {
  min-height: 42px;

  padding:
    9px 15px;

  border:
    1px solid
    rgba(215,179,120,.28);

  background: #191719;
  color: #baaD9d;

  font:
    700 13px/1.3
    var(--label);
}

.warning-button:hover,
.warning-button[aria-pressed="true"] {
  border-color: var(--gold);

  background: #4b3828;
  color: #ffe0a5;
}

.warning-card {
  padding-top: 21px;

  border-top:
    1px solid
    rgba(215,179,120,.20);
}

.warning-title {
  color: var(--gold);

  font:
    700 11px/1.4
    var(--label);

  letter-spacing: .12em;
}

.warning-card blockquote {
  margin:
    13px 0 15px;

  color: var(--gold-light);

  font:
    400 25px/1.5
    var(--heading);
}

.warning-copy {
  color: #bfb2a1;

  font-size: 13px;
}

/* =========================================================
   ESCALATION
========================================================= */

.escalation-section {
  max-width: 800px;

  margin:
    65px auto;

  padding:
    45px 0;
}

.escalation-section h2 {
  margin-bottom: 27px;

  font-size:
    clamp(
      35px,
      4vw,
      48px
    );
}

.escalation-list {
  border-top:
    1px solid
    rgba(215,179,120,.24);
}

.escalation-item {
  display: grid;

  grid-template-columns:
    42px
    minmax(0, 1fr)
    25px;

  gap: 15px;

  align-items: center;

  width: 100%;

  padding:
    18px 0;

  border: 0;
  border-bottom:
    1px solid
    rgba(215,179,120,.24);

  background: transparent;

  color: #ded1bd;

  text-align: left;
}

.escalation-item > span {
  color: var(--gold);

  font:
    700 15px/1
    var(--label);
}

.escalation-item strong {
  font:
    400 19px/1.4
    var(--heading);
}

.escalation-item b {
  color: var(--gold);

  font-size: 20px;
}

.escalation-item[aria-expanded="true"] b {
  transform: rotate(45deg);
}

.escalation-detail {
  padding:
    0 0 20px 57px;

  color: #bcb0a0;

  font-size: 13px;
}

/* =========================================================
   LION'S REST
========================================================= */

.lions-rest {
  max-width: 780px;

  margin:
    90px auto;

  padding:
    55px 45px;

  text-align: center;

  border-block:
    1px solid
    rgba(215,179,120,.28);

  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(215,179,120,.07),
      transparent 55%
    );
}

.lions-symbol {
  margin-bottom: 20px;

  color: var(--gold);

  font-size: 40px;
}

.lions-rest h2 {
  margin:
    7px 0 27px;

  font-size:
    clamp(
      36px,
      4vw,
      51px
    );
}

.lions-rest p {
  color: #d4c8b7;

  font:
    400 18px/1.8
    Georgia,
    serif;
}

.lions-rest p + p {
  margin-top: 17px;
}

.rest-line {
  margin-top: 29px !important;

  color: var(--gold-light) !important;

  font:
    400 24px/1.5
    var(--heading) !important;
}

/* =========================================================
   THE MISTAKE
========================================================= */

.mistake-section {
  max-width: 760px;

  margin-inline: auto;

  padding:
    70px 0;
}

.mistake-section h2 {
  margin:
    7px 0 25px;

  font-size:
    clamp(
      36px,
      4vw,
      50px
    );
}

.mistake-section p {
  color: #d4c8b7;

  font:
    400 18px/1.82
    Georgia,
    serif;
}

.mistake-section p + p {
  margin-top: 17px;
}

.mistake-line {
  margin-top: 30px !important;

  color: #e1be84 !important;

  font:
    400 24px/1.55
    var(--heading) !important;
}

/* =========================================================
   ISLAND RESPONSE
========================================================= */

.island-response {
  position: relative;
  isolation: isolate;

  max-width: 840px;

  margin:
    80px auto;

  padding:
    65px 45px;

  overflow: hidden;

  text-align: center;

  border:
    1px solid
    rgba(96,210,255,.25);

  background:
    #171c21;
}

.response-glow {
  position: absolute;

  z-index: -1;

  left: 50%;
  top: 50%;

  width: 420px;
  height: 260px;

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse,
      rgba(66,201,255,.13),
      transparent 70%
    );

  filter: blur(18px);

  animation:
    response-breathe
    3.2s ease-in-out infinite;
}

.island-response h2 {
  margin:
    8px 0 24px;

  font-size:
    clamp(
      38px,
      5vw,
      56px
    );
}

.island-response > p {
  color: #cad4d6;

  font:
    400 18px/1.75
    Georgia,
    serif;
}

.island-response > p + p {
  margin-top: 15px;
}

.response-trigger {
  margin-top: 28px;

  min-height: 46px;

  padding:
    11px 19px;

  border:
    1px solid
    rgba(91,210,255,.48);

  background: #132633;
  color: #c9f6ff;

  font:
    700 13px/1.3
    var(--label);

  letter-spacing: .07em;

  box-shadow:
    0 0 20px
    rgba(54,184,255,.10);
}

.response-trigger:hover {
  border-color: #73ddff;

  background: #19405a;
}

.response-result {
  margin-top: 30px;

  padding-top: 27px;

  border-top:
    1px solid
    rgba(87,201,255,.25);
}

.response-result p {
  color: #d4e1e3;

  font:
    400 18px/1.7
    Georgia,
    serif;
}

.response-result p + p {
  margin-top: 12px;
}

.response-result strong {
  display: block;

  margin-top: 25px;

  color: #dffaff;

  font:
    400 27px/1.45
    var(--heading);

  text-shadow:
    0 0 18px
    rgba(66,200,255,.32);
}

.island-response.is-awake {
  box-shadow:
    0 0 45px
    rgba(48,177,255,.16);
}

.island-response.is-awake
.response-glow {
  animation:
    response-awake
    1.1s ease-out forwards;
}

/* =========================================================
   AFTERMATH
========================================================= */

.aftermath-copy {
  padding-top: 90px;
}

.final-line {
  font-size:
    25px !important;
}

/* =========================================================
   COMPLETE
========================================================= */

.chapter-complete {
  max-width: 780px;

  margin:
    45px auto 0;

  padding:
    65px 45px;

  text-align: center;

  border:
    1px solid
    rgba(215,179,120,.40);

  background:
    radial-gradient(
      circle at 50% 0,
      rgba(215,179,120,.08),
      transparent 42%
    ),
    #211e20;
}

.completion-mark {
  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  margin:
    0 auto 24px;

  border:
    1px solid var(--gold);

  border-radius: 50%;

  color: var(--gold-light);

  font:
    400 28px/1
    var(--heading);
}

.chapter-complete h2 {
  margin:
    6px 0 13px;

  font-size:
    clamp(
      34px,
      4vw,
      47px
    );
}

.chapter-complete >
p:not(.kicker) {
  color: #c0b4a4;
}

.next-chapter {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 25px;

  margin-top: 35px;

  padding:
    21px 23px;

  border:
    1px solid
    rgba(215,179,120,.36);

  background:
    linear-gradient(
      135deg,
      #2c2725,
      #1d1a1b
    );

  text-align: left;
}

.next-chapter:hover {
  border-color: var(--gold);

  background:
    linear-gradient(
      135deg,
      #413326,
      #26201c
    );
}

.next-chapter > span {
  color: var(--gold);

  font:
    700 11px/1.4
    var(--label);

  letter-spacing: .09em;
}

.next-chapter small {
  display: block;

  margin-top: 4px;

  color: #a99d90;

  font:
    400 10px/1.4
    var(--body);

  letter-spacing: 0;
}

.next-chapter strong {
  color: var(--gold-light);

  font:
    400 22px/1.3
    var(--heading);
}

.return-link {
  display: inline-block;

  margin-top: 24px;

  color: #ad9f8e;

  font-size: 11px;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes response-breathe {

  0%,
  100% {
    opacity: .45;

    transform:
      translate(-50%, -50%)
      scale(.92);
  }

  50% {
    opacity: .9;

    transform:
      translate(-50%, -50%)
      scale(1.08);
  }

}

@keyframes response-awake {

  0% {
    opacity: .4;

    transform:
      translate(-50%, -50%)
      scale(.8);
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: .7;

    transform:
      translate(-50%, -50%)
      scale(2.4);
  }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .fall-page .wrap {
    width:
      calc(100% - 34px);
  }

  .fall-hero {
    min-height: 640px;
  }

  .fall-hero-art img {
    object-position:
      60% center;
  }

  .fall-hero-shade {
    background:
      linear-gradient(
        0deg,
        #191719 0%,
        rgba(25,23,25,.92) 36%,
        rgba(25,23,25,.18) 76%
      );
  }

  .fall-hero-content {
    padding-bottom: 58px;
  }

  .fall-hero h1 {
    font-size:
      clamp(
        50px,
        14vw,
        68px
      );
  }

  .hero-caption {
    display: none;
  }

  .fall-reading {
    width:
      calc(100% - 30px)
      !important;
  }

  .fall-copy {
    padding:
      50px 0;
  }

  .fall-copy p {
    font-size: 17px;
  }

  .crest-section {
    grid-template-columns: 1fr;

    gap: 30px;

    padding:
      60px 0;
  }

  .crest-display img {
    width: 220px;
  }

  .warning-section {
    padding:
      28px 20px;

    margin-block: 55px;
  }

  .warning-card blockquote {
    font-size: 21px;
  }

  .escalation-section {
    margin-block: 45px;
  }

  .escalation-item {
    grid-template-columns:
      30px
      minmax(0, 1fr)
      20px;
  }

  .escalation-item strong {
    font-size: 17px;
  }

  .escalation-detail {
    padding-left: 45px;
  }

  .lions-rest {
    padding:
      45px 20px;

    margin-block: 65px;
  }

  .island-response {
    padding:
      45px 20px;

    margin-block: 60px;
  }

  .chapter-complete {
    padding:
      45px 20px;
  }

  .next-chapter {
    display: block;
  }

  .next-chapter strong {
    display: block;

    margin-top: 10px;

    font-size: 20px;
  }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .response-glow {
    animation: none !important;
  }

}

@media (min-width: 941px) and (max-width: 1120px) {

  .fall-page .site-nav {
    gap: 12px;
  }

  .fall-page .site-nav > a:not(.button) {
    font-size: 13px;
    letter-spacing: .04em;
    white-space: nowrap;
  }

  .fall-page .nav-cta {
    font-size: 13px;
    padding-inline: 14px;
  }

}