:root {
  color-scheme: light;
  --white: #fff;
  --surface: #f6f6f5;
  --ink: #222222;
  --muted: #555552;
  --accent: #c93258;
  --accent-hover: #a82346;
  --accent-soft: #fff1f5;
  --line: #e4e4e1;
  --edge: #d3d3cf;
  --radius: 1rem;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --chinese: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --gutter: clamp(1.125rem, 4.5vw, 4.25rem);
  --chapter-height: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, .city article[id]:focus-visible {
  outline: .15rem solid var(--accent);
  outline-offset: .22rem;
}
.wrap { width: min(calc(100% - 2 * var(--gutter)), 64rem); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 10; top: .5rem; left: .5rem;
  transform: translateY(calc(-100% - 1rem));
  padding: .55rem 1rem; background: var(--white); color: var(--ink);
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; min-height: 4.5rem; align-items: center;
  justify-content: space-between; gap: .4rem 1.2rem;
}
.wordmark {
  display: inline-block; white-space: nowrap;
  font-size: 1.625rem; font-weight: 600; letter-spacing: normal; line-height: 1.2; text-decoration: none;
}
.wordmark-accent { margin-inline: .09em; color: var(--accent); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.35rem, 1.5vw, 1rem); }
.site-nav a {
  display: inline-grid; place-items: center; min-height: 2.75rem; padding: .25rem .66rem;
  border-radius: 1.5rem; font-size: .94rem; font-weight: 550; text-decoration: none;
}
.site-nav a:hover { background: var(--surface); }
h1 { font-size: clamp(2rem, 4vw, 3.375rem); font-weight: 700; line-height: 1.12; letter-spacing: -.033em; }
h2 { font-size: clamp(1.375rem, 2.35vw, 2.125rem); font-weight: 650; line-height: 1.22; letter-spacing: -.023em; }
h3 { font-size: clamp(1rem, 1.45vw, 1.1875rem); font-weight: 600; line-height: 1.32; letter-spacing: -.012em; }
h1 span[lang], h2 span[lang], h3 span[lang] {
  color: var(--muted); font-size: .92rem; font-weight: 500; line-height: 1.4; letter-spacing: 0;
}
:lang(zh-Hans) { font-family: var(--chinese); }
h3 span[lang] { display: block; margin-top: .3rem; }
.text-link { display: inline-block; color: var(--accent); font-size: .95rem; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: .23em; }
.text-link:hover { text-decoration-thickness: 2px; }
.location, .section-label { color: var(--muted); font-size: .875rem; font-weight: 500; line-height: 1.4; }
figcaption { display: flex; justify-content: space-between; gap: .6rem; color: var(--muted); font-size: .83rem; line-height: 1.4; }
figcaption span { text-align: right; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.home-banner { padding-top: clamp(1rem, 3vw, 2.3rem); }
.home-banner:not(:has(.banner-slide)) { display: none; }
.banner-track {
  display: flex; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x mandatory; border-radius: calc(var(--radius) + .25rem);
  background: #e9e9e6;
}
.banner-slide {
  display: flex; position: relative; flex: 0 0 100%; align-items: end;
  min-height: clamp(17rem, 34vw, 26rem);
  color: var(--white); isolation: isolate; overflow: hidden;
  scroll-snap-align: start; text-decoration: none;
}
.banner-slide > img, .banner-slide::after { position: absolute; inset: 0; z-index: -1; }
.banner-slide > img { height: 100%; object-fit: cover; object-position: center 46%; }
.banner-slide > img[src$="wukang.jpg"], .banner-slide[href$="/shanghai/wukang-building/"] > img { object-position: center 15%; }
.banner-slide::after {
  content: ""; background: linear-gradient(90deg, rgb(17 17 19 / 86%), rgb(17 17 19 / 55%) 39%, transparent 81%);
}
.banner-slide:focus-visible { outline-offset: -.25rem; }
.banner-slide:not(:has(> img)) { background: #312e2e; }
.banner-copy { width: min(100%, 40rem); padding: clamp(1.15rem, 4vw, 3.15rem); }
.banner-copy h2 { margin: .25rem 0 .48rem; font-size: clamp(1.6rem, 3.45vw, 3rem); text-wrap: balance; }
.banner-copy > p:not(.banner-city) { max-width: 33rem; line-height: 1.45; }
.banner-city { font-size: .94rem; font-weight: 600; }
.banner-slide:hover h2 { text-decoration: underline; text-underline-offset: .13em; text-decoration-thickness: 1px; }
.banner-controls:not([hidden]) {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 3rem; margin-top: .3rem;
}
.banner-controls button {
  display: grid; place-items: center; border: 0; min-width: 2.75rem; min-height: 2.75rem;
  color: var(--ink); background: transparent; cursor: pointer;
}
.banner-controls button:focus-visible { outline: .15rem solid var(--accent); outline-offset: -.16rem; border-radius: .55rem; }
.banner-controls .banner-control:hover { background: var(--surface); border-radius: 50%; }
.banner-control span { width: .45rem; height: .45rem; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(-45deg); }
.banner-control[data-step="-1"] span { transform: rotate(135deg); }
.banner-dots { display: flex; }
.banner-dots .banner-dot { min-width: 2.75rem; }
.banner-dot::before { content: ""; width: .43rem; height: .43rem; border-radius: 50%; background: var(--muted); }
.banner-dot[aria-pressed="true"]::before { width: 1.1rem; border-radius: 1rem; background: var(--accent); }

.city-shortcuts { padding-block: clamp(1.15rem, 3vw, 2.4rem) clamp(1.65rem, 4vw, 3.15rem); scroll-margin-top: 1rem; }
.city-shortcuts h2, .home-recommendations > h2 { font-size: clamp(1.375rem, 2.15vw, 1.9rem); }
.city-shortcut-list, .recommend-grid { margin: 0; padding: 0; list-style: none; }
.city-shortcut-list {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.6rem, 1.5vw, 1.25rem) clamp(.2rem, 1.5vw, 1.25rem); margin-top: 1.05rem;
}
.city-shortcut-list a {
  display: flex; align-items: center; flex-direction: column; min-height: 4.75rem;
  border-radius: var(--radius); padding: .25rem .15rem; text-align: center; text-decoration: none;
}
.city-icon {
  display: grid; place-items: center; width: clamp(2.75rem, 5.35vw, 4rem);
  aspect-ratio: 1; border-radius: .9rem; background: var(--accent-soft); color: var(--accent);
}
.city-icon svg { width: 57%; height: 57%; }
.city-shortcut-list a:hover .city-icon { background: var(--accent); color: var(--white); }
.city-name, .city-local-name { max-width: 100%; overflow-wrap: anywhere; }
.city-name { margin-top: .36rem; font-size: .92rem; font-weight: 600; line-height: 1.25; }
.city-local-name { margin-top: .18rem; color: var(--muted); font-size: .82rem; font-weight: 500; line-height: 1.25; }

.home-recommendations { padding-block: clamp(1.5rem, 3vw, 2.55rem) clamp(2.25rem, 5vw, 4.3rem); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.recommend-row { padding-block: clamp(1.15rem, 2.7vw, 2rem); }
.recommend-row + .recommend-row { border-top: 1px solid var(--line); }
.recommend-row:last-child { padding-bottom: 0; }
.recommend-title { font-size: clamp(1.18rem, 1.7vw, 1.5rem); }
.recommend-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); margin-top: .8rem; }
.recommend-grid > li { min-width: 0; }
.recommend-card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--white); text-decoration: none;
}
.recommend-card:hover { border-color: var(--edge); }
.recommend-card:hover h4 { color: var(--accent); }
.recommend-card:focus-visible { outline-offset: -.18rem; }
.recommend-card > img { aspect-ratio: 1.72; object-fit: cover; background: #e9e9e6; }
.recommend-card > img[src$="beijing-hero-760.jpg"] { object-position: center 65%; }
.recommend-text .recommend-card { background: var(--surface); }
.recommend-copy { display: grid; align-content: start; gap: .3rem; padding: .85rem .95rem 1rem; }
.recommend-copy h4 { font-size: 1rem; font-weight: 650; line-height: 1.3; }
.recommend-copy > p:not(.location) { color: var(--muted); font-size: .875rem; line-height: 1.45; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  padding-block: 1.35rem .9rem; color: var(--muted); font-size: .89rem; line-height: 1.4;
}
.breadcrumb a { font-weight: 650; text-underline-offset: .2em; }
.breadcrumb a:hover { color: var(--accent); }
.city-intro h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: .15em; }
.city-intro h1 span[lang] { font-size: clamp(1.08rem, 2.12vw, 1.65rem); }
.city-deck { margin-top: .54rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.17rem); }
.city-hero-figure { margin-top: 1.35rem; }
.city-hero-figure img {
  aspect-ratio: 2.95; object-fit: cover; object-position: 50% 56%;
  border-radius: calc(var(--radius) + .25rem); background: #e9e9e6;
}
.city-hero-figure img[src$="beijing-hero.jpg"] { object-position: 50% 68%; }
.city-hero-figure figcaption { padding-top: .52rem; }

.feature-article { max-width: 60rem; }
.feature-article .city-deck { max-width: 62ch; }
.managed-article { padding-bottom: clamp(2rem, 5vw, 4rem); }
.managed-article .feature-photo figcaption { display: block; }
.feature-article-without-cover { max-width: 68ch; }
.feature-photo { margin-block: 1.35rem 0; }
.feature-photo img { border-radius: calc(var(--radius) + .25rem); }
.feature-photo figcaption { padding-top: .52rem; }
.feature-body { max-width: 68ch; margin-inline: auto; padding-top: clamp(1.5rem, 4vw, 2.75rem); }
.feature-body > section + section { margin-top: 2rem; }
.feature-body section > p, .feature-body > .text-link { margin-top: .8rem; }
.rich-article-body > p + p { margin-top: .8rem; }
.rich-article-body h3 { margin-top: 1.4rem; }
.rich-article-body blockquote {
  margin: 1.25rem 0; padding: .2rem 1rem;
  border-inline-start: .2rem solid var(--edge); color: var(--muted);
}
.rich-article-body :is(ol, ul) { margin-block: .9rem; padding-inline-start: 1.6em; }
.rich-article-body li + li { margin-top: .3rem; }
.rich-article-body .article-body-photo { margin-block: 1.5rem; }
.rich-article-body .article-body-photo figcaption { display: block; }

.chapter-bar {
  position: sticky; top: 0; z-index: 3; margin-top: 1.15rem;
  background: var(--white); border-block: 1px solid var(--line);
}
.chapter-nav {
  display: flex; align-items: center; gap: .5rem;
  min-height: var(--chapter-height); padding-block: .38rem; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: #bdbdb8 transparent;
}
.chapter-nav a {
  display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 2.75rem; padding: .45rem .88rem;
  border-radius: 1.5rem; color: var(--muted); white-space: nowrap; font-size: .94rem;
  font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.chapter-nav a:hover { background: var(--surface); color: var(--ink); }
.chapter-nav a:focus-visible { outline-offset: -.2rem; }
.chapter-nav a:is(:active, [aria-current]) { background: var(--accent-soft); color: var(--accent); }
.city section[id], .city article[id], .city-card-anchor, #photo-credits { scroll-margin-top: calc(var(--chapter-height) + .75rem); }
.city-card-anchor { position: absolute; }
.city-card-anchors { position: relative; }
.city-section { padding-block: clamp(2.35rem, 5.7vw, 5.25rem); }
.overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); align-items: center; gap: clamp(1.65rem, 6vw, 5.5rem); }
.city-areas { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(1rem, 2.35vw, 1.75rem); }
.city-areas dl { margin: .55rem 0 1rem; }
.city-areas dl > div { padding-block: .52rem; border-bottom: 1px solid var(--line); }
.city-areas dt { font-weight: 600; }
.city-areas dd { margin: .1rem 0 0; font-size: .94rem; color: var(--muted); }
.section-label { margin-bottom: .42rem; }
.section-copy > p:not(.section-label), .section-heading > p:not(.section-label) { max-width: 42rem; margin-top: .8rem; color: var(--muted); }
.section-copy .text-link { margin-top: 1rem; }
.locator svg { width: 100%; display: block; border: 1px solid var(--line); border-radius: var(--radius); }
.locator figcaption { padding-top: .55rem; }
.section-heading { margin-bottom: clamp(1.25rem, 2.9vw, 2rem); }
.section-band { background: var(--surface); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 1.8vw, 1.45rem); }
.city-guide .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-card, .profile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.story-card > img { aspect-ratio: 1.6; object-fit: cover; background: #e9e9e6; }
.story-card > img[src$="tower.jpg"] { object-position: center 22%; }
.story-card > img[src$="guangzhou-tower.jpg"] { object-position: center 30%; }
.card-copy { padding: clamp(1rem, 1.75vw, 1.5rem); }
.card-copy p, .profile-copy p { margin-top: .63rem; color: var(--muted); }
.card-copy .text-link, .profile-copy .text-link { margin-top: .8rem; }
.section-link { margin-top: 1.15rem; }
.section-page-entrance { margin-top: .7rem; }
.section-page-entrance a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.section-guide { padding-bottom: clamp(2.75rem, 6vw, 5rem); }
.section-guide .city-deck { max-width: 64ch; }
.section-guide-body { margin-inline: 0; }
.section-guide-articles { display: grid; gap: 1rem; margin-top: clamp(1.5rem, 4vw, 2.75rem); }
.section-story { position: relative; }
.section-story-featured {
  display: grid; align-items: center; max-width: 63rem;
  background: var(--surface);
}
.section-story-featured .card-copy { padding: clamp(1.15rem, 4vw, 3rem); }
.section-story-featured h3 { font-size: clamp(1.375rem, 2.35vw, 2.125rem); font-weight: 650; }
.section-story h3 a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.section-story h3 a::after { content: ""; position: absolute; inset: 0; }
.section-story:hover h3 a { color: var(--accent); }
.section-story:focus-within { outline: .15rem solid var(--accent); outline-offset: .2rem; }
@media (min-width: 48rem) {
  .section-story-featured:has(> img) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.85rem, 1.8vw, 1.45rem); }
.profile { display: grid; grid-template-columns: minmax(5rem, .48fr) minmax(0, 1fr); align-items: stretch; }
.profile > img { aspect-ratio: 3 / 4; min-height: 100%; object-fit: cover; object-position: center 25%; background: #e9e9e6; }
.profile-copy { padding: clamp(.95rem, 2vw, 1.5rem); }
.profile-text { display: block; }
.hotel-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hotel {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .65rem 2rem;
  padding: clamp(1rem, 2vw, 1.6rem);
}
.hotel + .hotel { border-top: 1px solid var(--line); }
.hotel h3 { margin-top: .22rem; }
.hotel h3 span[lang] { display: inline-block; }
.hotel p:not(.location) { color: var(--muted); margin-top: .35rem; }
.hotel > a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem .85rem;
  border: 1px solid var(--edge); border-radius: .65rem; line-height: 1.2; text-decoration: none;
}
.hotel > a:hover { color: var(--accent-hover); background: var(--accent-soft); border-color: var(--accent); }
.sources { padding-block: 1.65rem 2rem; color: var(--muted); }
.sources details + details { border-top: 1px solid var(--line); }
.sources summary { cursor: pointer; padding: .6rem 0; font-size: .94rem; font-weight: 650; }
.sources p, .sources ul { margin-top: .4rem; overflow-wrap: anywhere; }
.sources li { margin-bottom: .2rem; }
.sources a { text-underline-offset: .2em; }

.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-inner { padding-block: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.15rem 3rem; }
.footer-inner p { margin-top: .6rem; color: var(--muted); font-size: .92rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .93rem; }
.footer-inner nav a { text-underline-offset: .23em; }
.footer-inner nav a:hover { color: var(--accent); }
.footer-credits summary { cursor: pointer; }
.footer-credits ul { margin: .4rem 0 0; padding-inline-start: 1.25rem; }

@media (max-width: 48rem) {
  .banner-slide::after { background: linear-gradient(0deg, rgb(17 17 19 / 89%), rgb(17 17 19 / 54%) 53%, transparent 91%); }
  .recommend-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 44%);
    overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--edge) transparent;
    scroll-snap-type: x mandatory; padding-bottom: .45rem;
  }
  .recommend-grid > li { scroll-snap-align: start; }
  .recommend-card > img { aspect-ratio: 1.36; }
  .city-hero-figure { margin-top: 1rem; }
  .city-hero-figure img { aspect-ratio: 2.02; }
  .chapter-nav { width: 100%; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .chapter-bar::before, .chapter-bar::after {
    position: absolute; inset-block: 0 .18rem; z-index: 1; width: 1.1rem;
    pointer-events: none; content: "";
  }
  .chapter-bar[data-scroll-start]::before { left: 0; background: linear-gradient(to right, white, transparent); }
  .chapter-bar[data-scroll-end]::after { right: 0; background: linear-gradient(to left, white, transparent); }
  .overview { grid-template-columns: 1fr; }
  .locator { max-width: 36rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profiles { grid-template-columns: 1fr; }
  .profile { grid-template-columns: clamp(6rem, 26vw, 10rem) minmax(0, 1fr); }
}
@media (max-width: 35rem) {
  .header-inner { min-height: 4rem; }
  .wordmark { font-size: 1.375rem; }
  .site-nav { gap: .16rem; }
  .site-nav a { padding-inline: .37rem; font-size: .875rem; }
  .banner-copy > p:not(.banner-city) { font-size: .94rem; }
  .city-shortcut-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .city-name { font-size: .875rem; }
  .recommend-copy { padding: .65rem .7rem .8rem; }
  .breadcrumb { padding-block: 1rem .6rem; }
  .city-hero-figure img { aspect-ratio: 1.62; }
  .chapter-bar { margin-top: .9rem; }
  .chapter-nav { gap: .15rem; }
  .chapter-nav a { padding-inline: .56rem; }
  .cards, .city-guide .cards { grid-template-columns: 1fr; gap: 1rem; }
  .hotel { grid-template-columns: 1fr; justify-items: start; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 22rem) {
  .header-inner { flex-wrap: wrap; column-gap: .5rem; padding-block: .58rem .18rem; }
}
