/* City art direction: full-bleed editorial chapters for the city guide.
   Inspired by cinematic game-world pages, translated into Wayfarer's
   forest/cream/rust palette rather than copied from them. */

body[data-page="city"] {
  --art-forest: #142a23;
  --art-forest-2: #1b362c;
  --art-wine: #4b252c;
  --art-cream: #f3ecdc;
  --art-muted: #b8c5b6;
  --art-rust: #c47a5c;
  --art-paper: #f7f4ed;
}

/* ---------- Chapter: split editorial portrait ---------- */

.city-story .city-discover.story-chapter {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 7vw, 110px);
  width: 100vw;
  max-width: none;
  min-height: min(900px, 100svh);
  margin: 0 calc(50% - 50vw);
  padding: clamp(82px, 9vw, 138px) max(6vw, calc((100vw - 1480px) / 2));
  overflow: hidden;
  border: 0;
  background: var(--art-forest);
  color: var(--art-cream);
}

.city-story .story-chapter::before {
  content: attr(data-ghost);
  position: absolute;
  z-index: 0;
  top: -5%;
  right: -2%;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  opacity: .055;
  font: 400 clamp(110px, 18vw, 320px)/.85 Georgia, 'Songti SC', 'Noto Serif SC', serif;
  letter-spacing: -.08em;
  white-space: nowrap;
  pointer-events: none;
}

.city-story .story-chapter .city-discover-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 650px;
  padding: 0;
}

.city-story .story-chapter .city-eyebrow {
  order: 0;
  color: var(--art-rust);
  font-size: 10px;
  letter-spacing: .22em;
  font-weight: 700;
}

.city-story .story-chapter-label {
  order: 1;
  margin-top: 28px;
  color: #9caf9f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.city-story .story-chapter h2.story-chapter-title {
  order: 2;
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--art-cream);
  font: 400 clamp(56px, 6.4vw, 108px)/1.02 Georgia, 'Songti SC', 'Noto Serif SC', serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.city-story .story-chapter .city-discover-copy > p {
  order: 3;
  max-width: 500px;
  margin: 30px 0 0;
  color: var(--art-muted);
  font-size: 15px;
  line-height: 1.95;
}

.city-story .story-chapter .city-place-list {
  order: 4;
  width: 100%;
  max-width: 500px;
  margin-top: 34px;
  border-top: 1px solid #f3ecdc2b;
}

.city-story .story-chapter .city-place-row {
  grid-template-columns: 45px 1fr 28px;
  gap: 10px;
  padding: 17px 0;
  border-bottom: 1px solid #f3ecdc2b;
  color: var(--art-cream);
}

.city-story .story-chapter .city-place-row:hover {
  padding-left: 8px;
  color: #e0b18e;
}

.city-story .story-chapter .city-place-no {
  color: var(--art-rust);
  font: 20px Georgia, serif;
}

.city-story .story-chapter .city-place-main strong {
  color: var(--art-cream);
  font-size: 17px;
  font-weight: 500;
}

.city-story .story-chapter .city-place-main small {
  color: #9fb0a1;
  font-size: 11px;
}

.city-story .story-chapter .city-place-arrow {
  color: var(--art-rust);
}

.city-story .story-chapter .city-editorial-link {
  order: 5;
  margin-top: 25px;
  padding-bottom: 9px;
  border-bottom: 1px solid #f3ecdc66;
  color: var(--art-cream);
  font-size: 11px;
  font-weight: 700;
}

/* Media: one tall editorial frame, one smaller offset print. */
.city-story .story-chapter-media {
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 64vh, 760px);
}

.city-story .story-chapter-primary.city-edit-photo {
  position: relative;
  width: 82%;
  height: clamp(520px, 64vh, 760px);
  min-height: 0;
  margin: 0 0 0 auto;
  transform: none;
  border: 1px solid #ffffff1f;
  background: #203c31;
  box-shadow: none;
}

.city-story .story-chapter-primary.city-edit-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2, .7, .2, 1);
}

.city-story .story-chapter-primary.city-edit-photo:hover img {
  transform: scale(1.035);
}

.city-story .story-chapter-primary.city-edit-photo:after {
  background: linear-gradient(0deg, #0e1f1a9c, transparent 48%);
}

.city-story .story-chapter-primary.city-edit-photo figcaption {
  z-index: 2;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: #f4eee1;
  font-size: 9px;
  letter-spacing: .1em;
}

.city-story .story-chapter-primary.city-edit-photo figcaption a {
  color: #f4eee1;
}

.city-story .story-chapter-secondary {
  position: absolute;
  z-index: 3;
  left: -6%;
  bottom: 5%;
  width: 43%;
  margin: 0;
  padding: 8px;
  border: 1px solid #ffffff24;
  background: var(--art-forest);
  box-shadow: 0 24px 60px #06140f66;
}

.city-story .story-chapter-secondary button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #27483a;
  cursor: zoom-in;
  overflow: hidden;
}

.city-story .story-chapter-secondary img {
  display: block;
  width: 100%;
  aspect-ratio: .82;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.city-story .story-chapter-secondary button:hover img {
  transform: scale(1.045);
}

.city-story .story-chapter-secondary button > span {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #f3ecdc80;
  border-radius: 50%;
  background: #142a2399;
  color: var(--art-cream);
  font-size: 15px;
  backdrop-filter: blur(8px);
}

.city-story .story-chapter-secondary figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 2px 1px;
  color: #bcc9ba;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .04em;
}

.city-story .story-chapter-secondary figcaption small {
  color: var(--art-rust);
  font-size: 8px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.city-story .story-chapter .city-place-list,
.city-story .story-chapter .city-place-row {
  max-width: 500px;
}

/* ---------- Album: oversized type on a wine field ---------- */

.city-story .story-gallery.story-gallery-art {
  position: relative;
  isolation: isolate;
  width: 100vw;
  max-width: none;
  margin: 0 calc(50% - 50vw);
  padding: clamp(80px, 9vw, 140px) max(6vw, calc((100vw - 1480px) / 2)) clamp(60px, 7vw, 110px);
  overflow: hidden;
  background: var(--art-wine);
  color: var(--art-cream);
}

.city-story .story-gallery-art::before {
  content: attr(data-ghost);
  position: absolute;
  z-index: 0;
  top: -7%;
  left: 2%;
  color: #f5e6cb;
  opacity: .055;
  font: 400 clamp(100px, 16vw, 280px)/.85 Georgia, 'Songti SC', 'Noto Serif SC', serif;
  letter-spacing: -.08em;
  white-space: nowrap;
  pointer-events: none;
}

.city-story .story-gallery-art .story-gallery-heading {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.city-story .story-gallery-art .city-eyebrow {
  color: #e0ad88;
  font-size: 10px;
  letter-spacing: .2em;
}

.city-story .story-gallery-art .story-gallery-heading h2 {
  max-width: 780px;
  margin: 22px 0 20px;
  color: var(--art-cream);
  font: 400 clamp(46px, 5.6vw, 88px)/1.03 Georgia, 'Songti SC', 'Noto Serif SC', serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.city-story .story-gallery-art .story-gallery-heading p {
  max-width: 520px;
  color: #d1c3b2;
  font-size: 14px;
  line-height: 1.9;
}

.city-story .story-gallery-art .story-gallery-frames {
  position: relative;
  z-index: 2;
  margin-top: clamp(48px, 6vw, 90px);
}

.city-story .story-gallery-art .story-frame button {
  border-radius: 3px;
  background: #61343a;
}

.city-story .story-gallery-art .story-frame button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #35181e40, transparent 55%);
  pointer-events: none;
}

.city-story .story-gallery-art .story-frame img {
  border-radius: 3px;
}

.city-story .story-gallery-art .story-frame figcaption {
  color: #d9cbb9;
}

.city-story .story-gallery-art .story-frame figcaption small {
  color: #e0ad88;
}

.city-story .story-gallery-art .story-frame-open {
  background: var(--art-cream);
  color: var(--art-wine);
}

.city-story .story-gallery-art .story-frame:nth-child(odd) button {
  box-shadow: 0 24px 50px #1c0c0f38;
}

.city-story .story-gallery-art .story-frame:nth-child(even) button {
  box-shadow: 0 24px 50px #1c0c0f52;
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
  .city-story .city-discover.story-chapter {
    gap: 5vw;
    padding-inline: 6vw;
  }
  .city-story .story-chapter h2.story-chapter-title {
    font-size: clamp(48px, 6.5vw, 74px);
  }
  .city-story .story-chapter-media {
    min-height: 540px;
  }
  .city-story .story-chapter-primary.city-edit-photo {
    width: 88%;
    height: 560px;
  }
  .city-story .story-chapter-secondary {
    width: 48%;
    left: -2%;
  }
}

@media (max-width: 760px) {
  .city-story .city-discover.story-chapter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 38px;
    min-height: 0;
    padding: 72px 6% 78px;
  }
  .city-story .story-chapter::before,
  .city-story .story-gallery-art::before {
    font-size: 35vw;
    top: -2%;
  }
  .city-story .story-chapter .city-discover-copy {
    max-width: none;
  }
  .city-story .story-chapter-label {
    margin-top: 24px;
    font-size: 9px;
  }
  .city-story .story-chapter h2.story-chapter-title {
    margin-top: 15px;
    font-size: clamp(43px, 12vw, 62px);
    line-height: 1.1;
  }
  .city-story .story-chapter .city-discover-copy > p {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.9;
  }
  .city-story .story-chapter .city-place-row {
    padding: 15px 0;
    grid-template-columns: 36px 1fr 22px;
  }
  .city-story .story-chapter .city-place-main strong {
    font-size: 16px;
  }
  .city-story .story-chapter-media {
    min-height: 0;
    padding: 0 0 38px;
  }
  .city-story .story-chapter-primary.city-edit-photo {
    width: 100%;
    height: 420px;
    min-height: 0;
  }
  .city-story .story-chapter-secondary {
    left: 4%;
    bottom: 0;
    width: 49%;
    padding: 6px;
  }
  .city-story .story-chapter-secondary img {
    aspect-ratio: .9;
  }
  .city-story .story-gallery.story-gallery-art {
    padding: 66px 6% 64px;
  }
  .city-story .story-gallery-art .story-gallery-heading h2 {
    margin-top: 18px;
    font-size: clamp(40px, 11.5vw, 58px);
    line-height: 1.08;
  }
  .city-story .story-gallery-art .story-gallery-heading p {
    font-size: 13px;
  }
  .city-story .story-gallery-art .story-gallery-frames {
    margin-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .city-story .story-chapter-primary.city-edit-photo img,
  .city-story .story-chapter-secondary img {
    transition: none !important;
  }
  .city-story .story-chapter-primary.city-edit-photo:hover img,
  .city-story .story-chapter-secondary button:hover img {
    transform: none;
  }
}
