.city-edition {
  --paper: #f7f3e9;
  --light: #fffbf3;
  --ink: #222e29;
  --mute: #49544d;
  --line: #d8d4c6;
  --forest: #162923;
  --forest-deep: #101e1b;
  --brass: #e6bd83;
  --cream: #fcf0db;
  --rust: #8b452f;
}

.city-edition .top {
  background: var(--forest-deep);
  border-color: #405047;
}

.city-edition .top-inner { min-height: 73px; }
.city-edition .nav a { min-height: 44px; }
.city-edition .nav a[aria-current="page"] {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: .32em;
}

.city-hero { background: var(--forest); color: var(--cream); }
.city-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: center;
  padding-block: clamp(44px, 6.4vw, 94px) clamp(38px, 6vw, 80px);
}
.city-copy { min-width: 0; }
.city-edition .city-hero .section-kicker,
.city-edition .city-inverse .section-kicker { color: var(--brass); }
.city-hero h1 {
  font-size: clamp(2.35rem, 4.65vw, 5.15rem);
  line-height: 1.16;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.city-hero h1 span { display: block; }
.city-hero h1 span + span { color: #f0cb92; }
.city-lead { margin-top: 22px; max-width: 42ch; color: #f3e9da; font-size: clamp(1.01rem, 1.48vw, 1.15rem); }
.city-hero .actions { margin-top: 26px; }
.city-sound {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  margin-top: 7px;
  border: 0;
  background: transparent;
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: .23em;
  font-size: .9rem;
}
.city-inverse .button.outline { color: var(--cream); border-color: #a69983; }
.city-inverse .button.outline:hover { background: #faf0d916; }
.city-edition .button.primary { background: #284e41; border-color: #284e41; color: #fffaf0; }
.city-edition .city-inverse .button.primary { background: var(--brass); border-color: var(--brass); color: #202820; }
.city-edition .button { min-height: 46px; }
.city-art { min-width: 0; }
.city-art img {
  aspect-ratio: 1.38;
  object-fit: cover;
  object-position: 68% 53%;
  border-radius: 3px;
  box-shadow: 0 24px 40px #0b151780;
}
.city-art figcaption {
  margin-top: 12px;
  color: #e8d6ba;
  font-size: .82rem;
}
.city-art figcaption span { display: block; }
.city-art figcaption span + span { color: #c4b8a5; font-size: .74rem; }
.city-privacy {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  gap: clamp(14px, 3vw, 35px);
  align-items: center;
  padding-block: 20px 24px;
  border-top: 1px solid #586456;
  color: #f7e9d1;
}
.city-privacy strong { display: block; color: #f6dcad; font-family: var(--serif); font-size: clamp(1.12rem, 1.7vw, 1.44rem); line-height: 1.5; }
.city-privacy p { color: #ebe1d1; font-size: .88rem; }
.city-privacy a { color: var(--brass); }

.feature-scene { padding-block: clamp(52px, 7vw, 100px); }
.feature-scene .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(23px, 5.4vw, 78px);
  align-items: center;
}
.feature-scene img { aspect-ratio: 16/9; object-fit: cover; border-radius: 3px; }
.feature-scene figure { margin: 0; }
.feature-scene .section-kicker { margin-bottom: 9px; }
.feature-scene h2 { font-size: clamp(1.9rem, 4vw, 3.45rem); }
.feature-scene blockquote { margin: 19px 0 15px; }
.feature-scene-copy > p:not(.section-kicker) { color: var(--mute); }
.feature-scene .actions { margin: 17px 0 0; }
.feature-scene .text-link { display: inline-flex; align-items: center; min-height: 44px; margin-inline-end: 16px; }
.feature-scene .translation, .reading-text .translation { display: block; margin-top: 8px; font-weight: 500; }

.city-edition .empathy { display: block; background: transparent; padding-top: 0; }
.city-edition .empathy > div { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: clamp(22px, 5vw, 65px); }
.city-edition .empathy > div > :not(.example) { grid-column: 1; }
.city-edition .empathy .audience-links { display: grid; gap: 5px; margin-bottom: 0; }
.city-edition .empathy .audience-links li + li { margin-top: 0; }
.city-edition .empathy .audience-links a { display: inline-flex; align-items: center; min-height: 44px; }
.city-edition .empathy .example { grid-column: 2; grid-row: 2 / span 3; align-self: center; margin: 9px 0 0; }
.city-edition .empathy .example dt { color: var(--rust); }
.city-edition .floor-panel [data-floor-play] { margin-top: 12px; }
.city-edition .floor-panel .small { margin-top: 7px; color: #d9c6ae; }

.city-book .section-heading { align-items: center; }
.city-book .book-panorama img { max-height: 390px; object-fit: cover; object-position: 50% 52%; }
.city-book .chapter-list { margin-top: 16px; }
.city-book .book-flow { margin-top: 22px; }
.city-book .book-shortcuts { margin: 0 0 25px; }
.city-book .chapter-bridge .text-link { display: inline-flex; align-items: center; min-height: 44px; }

.record-demo {
  margin: 0 0 37px;
  padding: clamp(18px, 4vw, 38px);
  background: #eaf0e8;
  border: 1px solid #cad7cd;
  border-radius: 5px;
}
.record-demo h3 { margin-bottom: 6px; }
.record-demo .demo-note { color: #405049; max-width: 56ch; }
.record-demo .demo-status:empty { display: none; }
.record-demo .demo-status { color: #264b3e; font-weight: 750; margin-top: 12px; }
.demo-draft, .demo-archive, .demo-report { margin-top: 16px; }
.demo-draft .example, .demo-archive .example { margin: 12px 0 14px; }
.record-demo h4 { font-size: 1.1rem; margin: 0 0 5px; }
.record-demo .actions { margin-top: 12px; }
.demo-dates { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.demo-dates button[aria-pressed="true"] { background: #284e41; color: #fffaf0; border-color: #284e41; }
.demo-report { background: var(--light); border-left: 3px solid #517262; padding: clamp(14px, 3vw, 23px); }
.demo-report .report-time-chart { max-width: 445px; }
.demo-report summary { cursor: pointer; min-height: 44px; padding-top: 8px; font-weight: 700; }
.demo-report details p + p { margin-top: 5px; }
.demo-report .text-link { display: inline-flex; align-items: center; min-height: 44px; }

.city-edition .scene-panel .panel-nav { justify-content: space-between; }
.city-edition .scene-panel .actions { margin-top: 12px; }
.city-edition .scene-panel .source-quote .translation { display: block; margin-top: 7px; }
.city-edition .music-list button { min-height: 44px; }

.listening-page {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.listening-page:has(.player:not([hidden])) { padding-bottom: 0; }
.listening-content {
  position: relative;
  min-width: 0;
  overflow: auto;
  scroll-padding-top: 20px;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  .listening-content { scroll-behavior: auto; }
}
.city-edition .player {
  position: static;
  transform: none;
  justify-self: center;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 5px 0 calc(7px + env(safe-area-inset-bottom));
  background: var(--forest-deep);
}
.player-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 13px; align-items: center; }
.player-meta .player-label { color: var(--brass); }
.city-edition .player-meta strong { font-size: .95rem; }
.city-edition .player-controls button { min-height: 44px; min-width: 44px; }
.player-actions { flex-shrink: 0; }
.city-edition #playing-more { font-size: 1.16rem; }
.city-edition #playing-stop { background: var(--brass); color: #202820; border-color: var(--brass); font-weight: 800; padding-inline: 10px; }
.player-options {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 14px;
  max-height: min(36dvh, 14rem);
  overflow: auto;
  padding-top: 7px;
  border-top: 1px solid #607065;
}
.player-notice { grid-column: 1 / -1; color: #ffe1b0; font-size: .82rem; }
.player-ranges { display: grid; grid-template-columns: minmax(0, 1fr) minmax(85px, .32fr); gap: 8px 20px; }
.player-volume { display: flex; align-items: center; gap: 6px; font-size: .75rem; }
.player-volume input { width: 100%; min-width: 35px; accent-color: #e6bd83; }
.player-ranges input[type="range"] { min-height: 27px; margin-block: 0; }

.book-page-hero { background: var(--forest); color: var(--cream); }
.book-page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(23px, 5.4vw, 72px);
  align-items: center;
  padding-block: clamp(37px, 6.1vw, 82px);
}
.book-page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.7rem); margin: 4px 0 14px; }
.book-page-hero .book-subtitle { color: #f0cb92; font-family: var(--serif); font-size: clamp(1.12rem, 2.25vw, 1.6rem); margin: 0 0 12px; }
.book-page-hero p { color: #efe4d1; }
.book-page-hero img { border-radius: 3px; }
.book-page-hero figcaption { color: #ddd0ba; margin-top: 8px; font-size: .81rem; }
.reading-section { padding-block: clamp(46px, 7vw, 88px); }
.reading-section .reading-column { width: min(100% - 40px, 730px); margin-inline: auto; }
.reading-text {
  margin: 23px 0;
  padding: clamp(19px, 5vw, 41px);
  background: var(--light);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rust);
  font: 500 clamp(1rem, 2.1vw, 1.2rem)/1.9 var(--serif);
}
.reading-text p + p { margin-top: 13px; }
.reading-section .reading-note { margin-top: 10px; color: var(--mute); }
.reading-section .reading-source { font: 650 .82rem/1.5 var(--sans); color: var(--mute); margin-top: 17px; }
.book-purchase { background: #eae3d5; padding-block: clamp(38px, 6vw, 74px); }
.book-purchase .wrap { max-width: 970px; }
.edition-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 18px;
  margin: 18px 0;
}
.edition-status > div { background: var(--light); padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px; }
.edition-status dt { font-weight: 800; }
.edition-status dd { margin: 4px 0 0; font-size: .9rem; color: var(--mute); }
.book-purchase p { color: var(--mute); }
.city-edition.download-page .download-cards { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }

@media (max-width: 800px) {
  .city-hero-grid { gap: 23px; }
  .city-art img { aspect-ratio: 1.15; object-position: 67% 53%; }
  .city-edition .top-inner { flex-direction: row; align-items: center; gap: 5px 14px; flex-wrap: wrap; }
  .city-edition .nav { position: static; margin: 0; gap: 3px 12px; }
  .city-edition .nav .nav-lang { position: static; min-height: 44px; }
}

@media (max-width: 650px) {
  .city-hero-grid, .feature-scene .wrap, .book-page-hero .wrap,
  .city-edition .empathy > div, .city-privacy, .city-edition.download-page .download-cards { grid-template-columns: minmax(0, 1fr); }
  .city-hero-grid { gap: 19px; padding-top: 20px; }
  .city-hero-grid .city-art { grid-row: 1; }
  .city-hero h1 { font-size: clamp(1.84rem, 6.6vw, 3.15rem); text-wrap: pretty; }
  .city-art img { aspect-ratio: 1.88; object-position: 67% 49%; }
  .city-art figcaption { margin-top: 7px; }
  .city-art figcaption span + span { display: none; }
  .city-lead { margin-top: 13px; }
  .city-hero .actions { margin-top: 16px; gap: 7px; }
  .city-hero .actions .button { padding-inline: 10px; }
  .city-privacy { gap: 7px; }
  .feature-scene .wrap { gap: 20px; }
  .city-edition .empathy .example { grid-column: 1; grid-row: auto; margin: 0; }
  .city-edition .top-inner { align-items: center; min-height: 55px; padding-block: 3px; }
  .player-options { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 415px) {
  .city-edition .brand { font-size: 1.13rem; }
  .city-edition .brand span { display: none; }
  .city-edition .nav { gap: 2px 9px; }
  .city-edition .nav a { font-size: .83rem; }
  .city-edition .nav .nav-lang { padding: 0 1px; }
  .city-edition .player { padding-inline: 9px; }
  .player-bar { gap: 7px; }
  .player-ranges { gap: 9px; }
}

@media (max-width: 350px) {
  .city-edition .nav { gap: 2px 6px; }
  .city-edition .nav a { font-size: .79rem; }
  .edition-status { grid-template-columns: 1fr; }
}
