/* ---------- CatListen tokens — warm ivory + signature olive ---------- */
:root {
  --paper: #faf8f2; /* soft paper — page canvas */
  --surface: #f5f1e8; /* warm ivory — cards and panels */
  --ink: #292723;
  --muted: #8d897f;
  --accent: #687342; /* signature olive — primary actions, active, progress */
  --terra: #cc785c; /* terracotta — journey progress, in-progress state (brief-specified) */
  --sage: #8a9a86; /* sage — journey progress, completed state (brief-specified) */
  --accent-deep: oklch(from var(--accent) calc(l - 0.07) c h);
  --border: oklch(85.5% 0.012 88); /* warm hairline, derived from ivory + ink */
  --night: oklch(17% 0.015 60); /* night-forest base, derived from ink hue (unused in this world) */
  /* city-slice derivations — soft overcast afternoon, all from locked tokens */
  --haze: oklch(from var(--w4) calc(l + 0.025) calc(c * 0.6) h); /* city air — hero canvas */
  --skyline: oklch(
    from var(--paper) calc(l - 0.15) 0.016 250
  ); /* distant hazy blocks, muted blue-grey */
  --concrete: oklch(from var(--muted) calc(l + 0.13) calc(c * 0.45) h); /* warm sidewalk concrete */
  --asphalt: oklch(from var(--ink) calc(l + 0.2) calc(c * 0.28) h); /* quiet road, soft charcoal */
  --dusty: oklch(from var(--sage) calc(l - 0.01) calc(c * 0.65) h); /* dusty street green */
  --awning: oklch(from var(--terra) calc(l + 0.05) calc(c * 0.6) h); /* soft terracotta awning */
  --figure: oklch(from var(--ink) calc(l + 0.05) calc(c * 0.6) h); /* anonymous passers-by */
  --hero-label: oklch(from var(--muted) calc(l - 0.16) c h); /* small caps on light scene, ≥4.5:1 */
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --sans: 'PingFang SC', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  /* five worlds — muted editorial tints; deep line tones derived, never invented */
  --w1: #e5e7d6;
  --w1-ink: oklch(from var(--w1) calc(l - 0.42) calc(c * 2 + 0.02) h); /* 日常星球 · sage */
  --w2: #e8dad5;
  --w2-ink: oklch(from var(--w2) calc(l - 0.42) calc(c * 2 + 0.02) h); /* 银幕剧场 · burgundy */
  --w3: #dde5e5;
  --w3-ink: oklch(from var(--w3) calc(l - 0.4) calc(c * 2 + 0.025) h); /* 世界漫游 · faded blue */
  --w4: #e9ded4;
  --w4-ink: oklch(from var(--w4) calc(l - 0.42) calc(c * 2 + 0.02) h); /* 人间观察 · terracotta */
  --w5: #e9e4ce;
  --w5-ink: oklch(from var(--w5) calc(l - 0.44) calc(c * 2 + 0.02) h); /* 思维实验室 · ochre */
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
}
::selection {
  background: var(--accent);
  color: var(--paper);
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- small-caps editorial label ---------- */
.caps {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
/* ---------- world identity bindings ---------- */
.w1 {
  --wa: var(--w1);
  --wad: var(--w1-ink);
}
.w2 {
  --wa: var(--w2);
  --wad: var(--w2-ink);
}
.w3 {
  --wa: var(--w3);
  --wad: var(--w3-ink);
}
.w4 {
  --wa: var(--w4);
  --wad: var(--w4-ink);
}
.w5 {
  --wa: var(--w5);
  --wad: var(--w5-ink);
}

/* ---------- back link — single quiet way home ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.back-link:hover {
  color: var(--accent);
}

/* ======================= 1 · world hero — full-viewport urban slice =======================
     one quiet elevated view of a city block; ink type sits on the pale wall / haze at left
     (World Visual System v1.1 — text safe zone: the left 32–38% low-detail wall and sky,
      street life stays right-of-center in the midground) */
.wh {
  position: relative;
  height: 100vh;
  min-height: 620px;
  background: var(--haze);
  overflow: hidden;
}
.wh-bg-wrap {
  position: absolute;
  inset: 0;
}
.wh-art-src {
  position: absolute;
} /* scene source — referenced by both viewport crops */
.wh-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1.06); /* headroom for the slow scroll drift */
}
.wh-bg-m {
  display: none;
} /* portrait crop, woken only below 768px */
/* atmospheric scrim — a quiet paper lift behind the type plus an ink-derived gradient
     that grounds the lower-left text corner and lets the street light stay soft */
.wh-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top right,
      oklch(from var(--ink) l c h / 0.24),
      oklch(from var(--ink) l c h / 0.08) 46%,
      oklch(from var(--ink) l c h / 0) 74%
    ),
    linear-gradient(
      to top,
      oklch(from var(--paper) l c h / 0.4),
      oklch(from var(--paper) l c h / 0.12) 42%,
      oklch(from var(--paper) l c h / 0) 68%
    );
}
/* bottom dissolve — the street feathers through a soft asphalt tone into the paper canvas */
.wh-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    oklch(from var(--haze) l c h / 0),
    oklch(from var(--asphalt) l c h / 0.14) 45%,
    var(--paper)
  );
}
.wh-back {
  position: absolute;
  top: 24px;
  left: clamp(24px, 4vw, 48px);
  z-index: 3;
  color: var(--ink);
  opacity: 0.66;
}
.wh-back:hover {
  color: var(--accent-deep);
  opacity: 1;
}
.wh-text {
  position: absolute;
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 5vw, 64px);
  bottom: clamp(
    240px,
    34vh,
    340px
  ); /* left-lower-center: whole text group incl. CTA stays on the quiet wall above the sidewalk line (~y620 in the SVG) */
  z-index: 2;
  color: var(--ink);
}
.wh-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hero-label);
}
.wh-text h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(46px, 6.6vw, 92px);
  line-height: 1.3;
  letter-spacing: 0;
  margin-top: 18px;
}
.wh-text .en-title {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--w4-ink);
  margin-top: 8px;
}
.wh-line {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  opacity: 0.88;
}
.wh-line-sub {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-label);
}
/* restrained text CTA — hairline underline, arrow nudge only */
.wh-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  min-height: 44px;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  border-bottom: 1px solid oklch(from var(--accent) l c h / 0.45);
  padding-bottom: 4px;
  transition: border-color 0.15s ease;
}
.wh-cta .arr {
  display: inline-block;
  transition: transform 0.2s ease;
}
.wh-cta:hover {
  border-bottom-color: var(--accent-deep);
}
.wh-cta:hover .arr {
  transform: translateX(4px);
}

/* slow life inside the haze — dust drift only, off when reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .wh .mote {
    animation: mote-drift 9s ease-in-out infinite alternate;
  }
}
@keyframes mote-drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(7px, -16px);
  }
}

/* ======================= 2 · editor's note — quiet magazine prose ======================= */
.intro {
  margin-top: 88px;
}
.intro p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  max-width: 38em;
  text-align: justify;
  text-justify: inter-character;
}

/* ---------- section headers ---------- */
.sec {
  margin-top: 96px;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 40px;
}
.sec-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.sec-title h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: 0;
}

/* ---------- tablet 768–1199: icons-only rail, hero boundary, 2-col grid ----------
     HERO BOUNDARY (hard rule): hero height + intro + section head > 100vh, so no journey
     cover can enter the first viewport — only the section title / hairline may peek.
     Verified at 768×1024 (cards at ~1100px) and 1024×768 (min-height 560 → cards at ~940px). */
@media (max-width: 1199px) {
  .content {
    padding: 0 40px 88px;
  }
  .wh {
    height: 70vh;
    min-height: 560px;
  }
  .intro {
    margin-top: 72px;
  }
  .sec {
    margin-top: 80px;
  }
}

/* ---------- mobile <768: full-bleed immersive hero, type in the upper quiet sky/haze zone ----------
     first screen is the complete world scene again — edge to edge, no frame; ink type sits
     on the calm upper sky, the city block and its passers-by stay below */
@media (max-width: 767px) {
  .content {
    padding: 0 20px 72px;
  }
  .wh {
    height: 94vh;
    min-height: 560px;
  }
  .wh-back {
    top: 16px;
    left: 20px;
  }
  .wh-text {
    top: clamp(88px, 16vh, 132px);
    bottom: auto;
    left: 20px;
    right: 20px;
  }
  .wh-text h1 {
    font-size: clamp(34px, 9vw, 44px);
    margin-top: 12px;
  }
  /* a whisper of paper lift behind the upper type — the city haze never crosses the words */
  .wh-scrim {
    background: linear-gradient(
      to bottom,
      oklch(from var(--paper) l c h / 0.62),
      oklch(from var(--paper) l c h / 0.22) 40%,
      oklch(from var(--paper) l c h / 0) 62%
    );
  }
  .wh-fade {
    height: 140px;
  }
  .wh-bg {
    display: none;
  }
  .wh-bg.wh-bg-m {
    display: block;
  } /* portrait crop: quiet sky up top, street and figures below */
  .intro {
    margin-top: 64px;
  }
  .sec {
    margin-top: 64px;
  }
  .sec-head {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
  }
  .sec-title h2 {
    font-size: 24px;
  }
}

.content {
  max-width: 1184px;
  margin: 0 auto;
  padding: 0 56px 96px;
}

@media (max-width: 1199px) {
  .content {
    padding: 0 40px 88px;
  }
}
@media (max-width: 767px) {
  .content {
    padding: 0 22px 72px;
  }
}
