/* =========================================================
   WOBBLEHOOK CHRONICLES
   CHAPTER I · THE EXPEDITION
========================================================= */

.voyage-page {
  background: #191719;
  color: var(--cream);
}

.voyage-page .wrap {
  width: min(1360px, calc(100% - 64px));
}

.voyage-page figure {
  margin: 0;
}

.voyage-page .brand img {
  filter: none;
}

.voyage-page
.site-nav > a[aria-current="page"] {
  color: var(--gold);
}

/* =========================================================
   HERO
========================================================= */

.voyage-hero {
  position: relative;
  isolation: isolate;

  min-height: 680px;

  display: flex;
  align-items: flex-end;

  overflow: hidden;

  background: #171517;
}

.voyage-hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.voyage-hero-art img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 45%;
}

.voyage-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(
      90deg,
      rgba(20, 17, 19, .96) 0%,
      rgba(20, 17, 19, .82) 32%,
      rgba(20, 17, 19, .27) 66%,
      rgba(20, 17, 19, .05) 100%
    ),
    linear-gradient(
      0deg,
      #191719 0%,
      transparent 32%
    );
}

.voyage-hero-content {
  padding-bottom: 72px;
}

.chapter-back {
  display: inline-block;

  margin-bottom: 35px;

  color: #b9aa96;

  font:
    700 11px/1.4
    var(--label);

  letter-spacing: .10em;
}

.chapter-back:hover {
  color: var(--gold);
}

.voyage-hero h1 {
  margin: 0;

  color: var(--cream);

  font:
    400
    clamp(
      54px,
      6vw,
      88px
    )/.98
    var(--heading);

  letter-spacing: -.035em;

  text-shadow:
    0 8px 25px #0009;
}

.voyage-lead {
  max-width: 560px;

  margin-top: 24px;

  color: #ddd1c1;

  font-size: 16px;
}

.voyage-punchline {
  color: var(--gold-light);

  font:
    400 24px/1.5
    var(--heading);

  margin-top: 12px;
}

.voyage-hero .button {
  margin-top: 28px;
}

.hero-caption {
  position: absolute;

  right: 22px;
  bottom: 17px;

  color: #ddc9a4;

  font:
    700 10px/1.4
    var(--label);

  letter-spacing: .15em;
}

/* =========================================================
   PROGRESS
========================================================= */

.voyage-progress {
  position: sticky;
  top: 0;
  z-index: 40;

  height: 3px;

  background: #0d0c0e;
}

.voyage-progress span {
  display: block;

  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      #987143,
      #e3bf7c
    );

  transform:
    scaleX(0);

  transform-origin: left;
}

/* =========================================================
   READING AREA
========================================================= */

.voyage-chapter {
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(215, 179, 120, .045),
      transparent 27%
    ),
    #191719;
}

.voyage-reading {
  width:
    min(
      900px,
      calc(100% - 48px)
    ) !important;

  padding-bottom: 100px;
}

/* =========================================================
   STORY COPY
========================================================= */

.voyage-copy {
  max-width: 760px;

  margin-inline: auto;

  padding: 70px 0;
}

.voyage-copy h2 {
  margin:
    8px 0 25px;

  font-size:
    clamp(
      34px,
      3.6vw,
      48px
    );

  line-height: 1.08;
}

.voyage-copy p {
  color: #d4c8b7;

  font:
    400 19px/1.82
    Georgia,
    serif;
}

.voyage-copy p + p {
  margin-top: 18px;
}

.voyage-copy strong {
  color: #f1d8ab;
}

.story-label {
  color:
    var(--gold) !important;

  font:
    700 11px/1.5
    var(--label) !important;

  letter-spacing: .14em;
}

.lead-copy {
  color:
    var(--gold-light) !important;

  font:
    400 23px/1.5
    var(--heading) !important;
}

.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;
}

/* =========================================================
   IMAGES
========================================================= */

.voyage-image {
  position: relative;

  width: 100%;

  overflow: hidden;

  margin:
    10px auto 10px;

  border:
    1px solid
    rgba(215, 179, 120, .28);

  background: #211e20;

  box-shadow:
    0 16px 38px
    rgba(0, 0, 0, .30);

  cursor: zoom-in;

  transition:
    box-shadow .2s ease,
    transform .2s ease;
}

.voyage-image:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 21px 47px
    rgba(0, 0, 0, .40);
}

.voyage-image img {
  display: block;

  width: 100%;

  aspect-ratio: 16 / 9;

  object-fit: cover;
}

.voyage-image figcaption {
  position: absolute;

  left: 14px;
  bottom: 14px;

  padding:
    9px 13px;

  background:
    rgba(24, 22, 25, .90);

  border-left:
    2px solid var(--gold);
}

.voyage-image figcaption strong {
  display: block;

  color: var(--gold-light);

  font:
    400 19px/1.3
    var(--heading);
}

.voyage-image figcaption span {
  display: block;

  margin-top: 2px;

  color: #bcb0a0;

  font-size: 10px;
}

/* =========================================================
   OPTIONAL LOG
========================================================= */

.log-entry {
  max-width: 680px;

  margin:
    0 auto 65px;

  border:
    1px solid
    rgba(215, 179, 120, .24);

  background: #242123;
}

.log-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  width: 100%;

  padding: 16px 19px;

  border: 0;

  background: transparent;
  color: var(--gold-light);

  text-align: left;

  font:
    700 13px/1.4
    var(--label);

  letter-spacing: .07em;
}

.log-toggle small {
  display: block;

  color: #9e9182;

  font:
    400 10px/1.5
    var(--body);

  letter-spacing: 0;
}

.log-toggle[aria-expanded="true"]
> span:last-child {
  transform: rotate(45deg);
}

.log-content {
  border-top:
    1px solid
    rgba(215, 179, 120, .20);

  padding: 21px;

  color: #c9bca9;
}

.log-content p {
  font:
    400 17px/1.65
    var(--heading);
}

.log-content p + p {
  margin-top: 12px;
}

.log-signature {
  color: var(--gold);

  text-align: right;

  font:
    700 12px/1.4
    var(--label) !important;

  letter-spacing: .13em;
}

/* =========================================================
   LIRA NOTE
========================================================= */

.margin-note {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  width: 100%;

  margin-top: 27px;

  padding:
    13px 0;

  border: 0;
  border-block:
    1px solid
    rgba(215, 179, 120, .30);

  background: transparent;

  color: var(--gold);

  font:
    700 13px/1.4
    var(--label);

  text-align: left;
}

.margin-note[aria-expanded="true"]
span:last-child {
  transform: rotate(45deg);
}

.note-paper {
  margin-top: 15px;

  padding: 21px;

  background: #e9ddc7;

  border:
    1px solid #f3e7d0;

  color: #4c4033;

  transform: rotate(-.5deg);

  box-shadow:
    4px 6px 0
    rgba(0, 0, 0, .13);
}

.note-paper p {
  color: #5b4b39;

  font:
    400 16px/1.7
    var(--heading);
}

.note-paper p + p {
  margin-top: 10px;
}

/* =========================================================
   STRANGE SEA SECTION
========================================================= */

.strange-seas {
  position: relative;

  margin-top: 20px;

  padding:
    75px 40px;

  border-block:
    1px solid
    rgba(215, 179, 120, .17);

  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(82, 156, 166, .05),
      transparent 65%
    );
}

.strange-seas::before {
  content: "~";

  position: absolute;

  right: 16px;
  top: 5px;

  color:
    rgba(215, 179, 120, .14);

  font:
    400 90px/1
    var(--heading);
}

/* =========================================================
   ARRIVAL
========================================================= */

.arrival-image {
  margin-top: 60px;
}

.arrival-copy {
  padding-bottom: 85px;
}

.final-line {
  margin-bottom: 23px;
}

.arrival-final {
  color:
    var(--cream) !important;

  font:
    400
    clamp(
      35px,
      4vw,
      49px
    )/1.15
    var(--heading) !important;
}

.arrival-whisper {
  color:
    #c2d6d4 !important;

  font:
    400 19px/1.6
    var(--heading) !important;

  font-style: italic !important;
}

/* =========================================================
   CHAPTER COMPLETE
========================================================= */

.chapter-complete {
  position: relative;

  max-width: 780px;

  margin:
    50px auto 0;

  padding:
    65px 45px;

  text-align: center;

  border:
    1px solid
    rgba(215, 179, 120, .42);

  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(88, 204, 255, .34);

  background:
    linear-gradient(
      135deg,
      #18232c,
      #11191f
    );

  text-align: left;

  transition:
    background .2s,
    border-color .2s,
    transform .2s;
}

.next-chapter:hover {
  transform:
    translateY(-2px);

  border-color:
    rgba(96, 220, 255, .68);

  background:
    linear-gradient(
      135deg,
      #1c3040,
      #13212b
    );
}

.next-chapter > span {
  color: #8fdfff;

  font:
    700 11px/1.4
    var(--label);

  letter-spacing: .09em;
}

.next-chapter small {
  display: block;

  margin-top: 4px;

  color: #a9a094;

  font:
    400 10px/1.4
    var(--body);

  letter-spacing: 0;
}

.next-chapter strong {
  color: #d3f7ff;

  font:
    400 22px/1.3
    var(--heading);
}

.return-link {
  display: inline-block;

  margin-top: 24px;

  color: #ad9f8e;

  font-size: 11px;
}

.return-link:hover {
  color: var(--gold);
}

/* =========================================================
   LIGHTBOX
========================================================= */

.voyage-page:has(
  .voyage-dialog[open]
) {
  overflow: hidden;
}

.voyage-dialog {
  width:
    min(
      1150px,
      calc(100% - 30px)
    );

  max-height:
    calc(100dvh - 30px);

  padding: 0;
  margin: auto;

  overflow: hidden;

  border:
    1px solid var(--gold);

  background: #111012;
  color: var(--cream);

  box-shadow:
    0 30px 100px #000c;
}

.voyage-dialog::backdrop {
  background: #090709eb;
}

.voyage-dialog img {
  display: block;

  width: 100%;

  max-height:
    calc(100dvh - 115px);

  object-fit: contain;
}

.dialog-close {
  position: absolute;

  right: 11px;
  top: 11px;

  z-index: 5;

  width: 44px;
  height: 44px;

  border:
    1px solid
    rgba(215, 179, 120, .52);

  background:
    rgba(20, 18, 20, .91);

  color: var(--cream);

  font-size: 27px;
}

.dialog-caption {
  display: flex;
  align-items: baseline;

  gap: 13px;

  padding:
    14px 18px;
}

.dialog-caption strong {
  color: var(--gold-light);

  font:
    400 20px/1.3
    var(--heading);
}

.dialog-caption span {
  color: #afa293;

  font-size: 10px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  .voyage-page .wrap {
    width:
      calc(100% - 34px);
  }

  .voyage-hero {
    min-height: 650px;
  }

  .voyage-hero-art img {
    object-position:
      61% center;
  }

  .voyage-hero-shade {
    background:
      linear-gradient(
        0deg,
        #191719 0%,
        rgba(25, 23, 25, .91) 36%,
        rgba(25, 23, 25, .18) 76%
      );
  }

  .voyage-hero-content {
    padding-bottom: 58px;
  }

  .voyage-hero h1 {
    font-size:
      clamp(
        50px,
        14vw,
        68px
      );
  }

  .voyage-lead {
    font-size: 14px;
  }

  .voyage-punchline {
    font-size: 20px;
  }

  .hero-caption {
    display: none;
  }

  .voyage-reading {
    width:
      calc(100% - 32px)
      !important;
  }

  .voyage-copy {
    padding:
      50px 0;
  }

  .voyage-copy p {
    font-size: 17px;
    line-height: 1.76;
  }

  .voyage-copy h2 {
    font-size: 33px;
  }

  .lead-copy,
  .pull-line {
    font-size:
      21px !important;
  }

  .voyage-image img {
    aspect-ratio: 1.35;
  }

  .voyage-image figcaption {
    left: 10px;
    bottom: 10px;
  }

  .strange-seas {
    padding:
      55px 18px;
  }

  .chapter-complete {
    padding:
      45px 20px;
  }

  .next-chapter {
    display: block;
  }

  .next-chapter strong {
    display: block;

    margin-top: 11px;

    font-size: 20px;
  }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .voyage-image,
  .next-chapter {
    transition: none;
  }

}

@media (min-width: 941px) and (max-width: 1120px) {

  .voyage-page .site-nav {
    gap: 12px;
  }

  .voyage-page .site-nav > a:not(.button) {
    font-size: 13px;
    letter-spacing: .04em;
    white-space: nowrap;
  }

  .voyage-page .nav-cta {
    font-size: 13px;
    padding-inline: 14px;
  }

}