:root {
  --ink: #0c0d0c;
  --paper: #f4efd9;
  --blue: #d8e8eb;
  --pink: #efd6e2;
  --mint: #cde9d3;
  --peach: #efddcf;
  --yellow: #efd96f;
  --white: #fffdf5;
  --muted: #575950;
  --accent: #287d72;
  --line: 2px solid var(--ink);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", SimSun, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  line-height: 1.75;
  letter-spacing: 0;
  overflow-x: hidden;
}

::selection {
  color: var(--white);
  background: var(--accent);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #157e75;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(16px, 3vw, 52px);
  color: var(--white);
  background: rgba(12, 13, 12, 0.97);
  border-bottom: var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--white);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 14px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  font-size: 13px;
  font-weight: 700;
}

.top-nav a {
  opacity: 0.76;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: opacity 160ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  opacity: 1;
}

.band {
  width: 100%;
  border-bottom: var(--line);
  padding: clamp(64px, 8vw, 124px) clamp(16px, 3vw, 52px);
}

.band-blue { background: var(--blue); }
.band-cream { background: var(--paper); }
.band-pink { background: var(--pink); }
.band-mint { background: var(--mint); }
.band-peach { background: var(--peach); }
.band-black {
  color: var(--white);
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(360px, 0.62fr);
  align-items: stretch;
  padding: 0;
}

.hero-main {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 7vw, 120px) clamp(18px, 5vw, 88px);
  border-right: var(--line);
}

.hero-main::after {
  content: "FIELD NOTES / HANGZHOU";
  position: absolute;
  right: clamp(18px, 3vw, 52px);
  bottom: 18px;
  font-size: 10px;
  font-weight: 800;
}

.kicker {
  width: fit-content;
  margin: 0 0 24px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 1180px;
  font-size: clamp(58px, 7.5vw, 128px);
  line-height: 1;
}

h2 {
  font-size: clamp(42px, 5.2vw, 84px);
  line-height: 1.02;
}

h3 {
  font-size: clamp(23px, 2.1vw, 34px);
  line-height: 1.14;
}

.hero-lead {
  max-width: 910px;
  margin: 30px 0 0;
  font-size: clamp(17px, 1.4vw, 23px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 20px;
  border: var(--line);
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-2px);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.text-link {
  font-weight: 800;
  text-underline-offset: 5px;
}

.hero-aside {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero-stamp {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 4vw, 64px);
  border-bottom: var(--line);
}

.hero-stamp::before {
  content: "PRIVATE DINNER · PUBLIC INSIGHTS";
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  font-weight: 800;
}

.hero-stamp span {
  font-family: var(--font-serif);
  font-size: clamp(52px, 5vw, 84px);
  line-height: 1;
}

.hero-stamp strong {
  font-size: clamp(42px, 4vw, 66px);
  line-height: 1;
}

.hero-stamp small {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.hero-stats div {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-right: var(--line);
  border-bottom: var(--line);
}

.hero-stats div:nth-child(1) { background: var(--paper); }
.hero-stats div:nth-child(2) { background: var(--pink); }
.hero-stats div:nth-child(3) { background: var(--blue); }
.hero-stats div:nth-child(4) { background: var(--mint); }

.hero-stats div:nth-child(even) { border-right: 0; }
.hero-stats div:nth-last-child(-n + 2) { border-bottom: 0; }
.hero-stats dt { font-size: 12px; font-weight: 800; }
.hero-stats dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: clamp(42px, 6vw, 76px);
}

.section-heading > p:last-child {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.heading-row {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
}

.heading-row .kicker {
  margin-bottom: 20px;
}

.heading-note {
  justify-self: end;
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--line);
  border-left: var(--line);
}

.thesis {
  min-width: 0;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 46px);
  background: var(--white);
  border-right: var(--line);
  border-bottom: var(--line);
}

.thesis-feature {
  grid-column: span 2;
  background: var(--yellow);
}

.thesis:nth-child(2) { background: var(--pink); }
.thesis:nth-child(3) { background: var(--mint); }
.thesis:nth-child(4) { background: var(--blue); }
.thesis:nth-child(5) { background: var(--peach); }

.thesis .index {
  margin-bottom: auto;
  font-family: var(--font-serif);
  font-size: 48px;
}

.thesis h3 {
  max-width: 780px;
}

.thesis p {
  max-width: 760px;
  margin: 22px 0;
}

.thesis a {
  margin-top: auto;
  font-weight: 800;
  text-underline-offset: 5px;
}

.thesis a:hover,
.thesis a:focus-visible {
  text-decoration-thickness: 3px;
}

.module-list {
  border-right: var(--line);
  border-top: var(--line);
  border-left: var(--line);
}

.module-row {
  display: grid;
  grid-template-columns: 90px minmax(260px, 0.8fr) minmax(420px, 1.2fr) 160px;
  gap: clamp(18px, 3vw, 52px);
  align-items: center;
  min-height: 190px;
  padding: 28px clamp(20px, 2vw, 36px);
  border-bottom: var(--line);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.module-row:nth-child(3n + 1) { background: rgba(255, 253, 245, 0.32); }
.module-row:nth-child(3n + 2) { background: rgba(216, 232, 235, 0.28); }
.module-row:nth-child(3n + 3) { background: rgba(244, 239, 217, 0.32); }

.module-row:hover,
.module-row:focus-visible {
  color: var(--white);
  background: var(--ink);
  outline-offset: -5px;
}

.module-row:hover .module-summary,
.module-row:focus-visible .module-summary {
  color: #e5e2d8;
}

.module-row:hover .module-arrow,
.module-row:focus-visible .module-arrow {
  transform: translateX(8px);
}

.module-number {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
}

.module-title h3 {
  margin-bottom: 9px;
}

.module-title p,
.module-summary {
  margin: 0;
}

.module-title p {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.module-summary {
  color: #383834;
}

.module-meta {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.module-arrow {
  display: inline-block;
  margin-left: 8px;
  font-size: 20px;
  transition: transform 160ms ease;
}

.conflict-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  border-top: 1px solid #8b8a82;
}

.conflict-grid article {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 58px) 0;
  border-bottom: 1px solid #8b8a82;
  transition: background 160ms ease;
}

.conflict-grid article:hover {
  background: #171916;
}

.conflict-grid article:nth-of-type(odd) {
  padding-right: clamp(30px, 5vw, 80px);
}

.conflict-grid article:nth-of-type(even) {
  padding-left: clamp(30px, 5vw, 80px);
}

.conflict-grid article p {
  max-width: 680px;
  color: #d5d1c6;
}

.conflict-grid article a {
  margin-top: auto;
  font-weight: 800;
  text-underline-offset: 5px;
}

.conflict-label {
  color: var(--yellow) !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.versus {
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 26px;
  border-right: 1px solid #8b8a82;
  border-bottom: 1px solid #8b8a82;
  border-left: 1px solid #8b8a82;
}

.roadmap {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--line);
}

.roadmap li {
  min-height: 180px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 190px;
  gap: 30px;
  align-items: center;
  padding: 28px 0;
  border-bottom: var(--line);
  transition: background 160ms ease;
}

.roadmap li:hover {
  background: rgba(255, 253, 245, 0.34);
}

.roadmap .week {
  font-family: var(--font-serif);
  font-size: 42px;
}

.roadmap h3 {
  margin-bottom: 12px;
}

.roadmap p {
  max-width: 920px;
  margin: 0;
}

.roadmap a {
  font-weight: 800;
  text-align: right;
  text-underline-offset: 5px;
}

.source-note {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(40px, 8vw, 140px);
}

.source-note > div:first-child {
  align-self: start;
  padding: clamp(24px, 3vw, 42px);
  color: var(--white);
  background: var(--ink);
}

.source-copy {
  max-width: 920px;
  font-size: 17px;
}

.source-copy p:first-child { margin-top: 0; }

.site-footer {
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(16px, 3vw, 52px);
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.site-footer a {
  text-underline-offset: 5px;
}

/* Detail page */
.detail-hero {
  min-height: calc(76vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  padding: 0;
}

.detail-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 110px) clamp(18px, 5vw, 82px);
  border-right: var(--line);
}

.detail-breadcrumb {
  margin: 0 0 32px;
  font-size: 12px;
  font-weight: 800;
}

.detail-hero h1 {
  max-width: 1100px;
  font-size: clamp(50px, 7vw, 112px);
}

.detail-deck {
  max-width: 920px;
  margin: 30px 0 0;
  font-size: clamp(18px, 1.5vw, 24px);
}

.detail-hero-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 4vw, 64px);
  background: rgba(255, 253, 245, 0.22);
}

.detail-hero-aside .big-number {
  font-family: var(--font-serif);
  font-size: clamp(96px, 11vw, 176px);
  line-height: 0.8;
}

.detail-meta {
  display: grid;
  gap: 14px;
  margin: 40px 0 0;
}

.detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
}

.detail-meta dt { font-size: 12px; font-weight: 800; white-space: nowrap; }
.detail-meta dd { margin: 0; text-align: right; }

.reading-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1.52fr);
  gap: clamp(40px, 8vw, 150px);
}

.reading-label {
  position: sticky;
  top: 100px;
  align-self: start;
}

.reading-label .section-number {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-size: 58px;
  line-height: 1;
}

.reading-label p {
  max-width: 320px;
  color: var(--muted);
}

.reading-content {
  min-width: 0;
}

.reading-content > p:first-child,
.reading-content .lead {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: clamp(27px, 3vw, 46px);
  line-height: 1.28;
}

.point-list,
.evidence-list,
.action-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: var(--line);
}

.point-list li,
.evidence-list li,
.action-list li {
  position: relative;
  padding: 26px 0 26px 56px;
  border-bottom: var(--line);
}

.point-list li::before,
.evidence-list li::before,
.action-list li::before {
  position: absolute;
  left: 0;
  top: 27px;
  font-family: var(--font-serif);
  font-size: 24px;
}

.point-list li::before { content: "◆"; }
.evidence-list li::before { content: "＋"; }
.action-list li::before { content: "→"; }

.point-list strong,
.evidence-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.method-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--line);
  border-left: var(--line);
}

.method-step {
  min-height: 190px;
  padding: 28px;
  border-right: var(--line);
  border-bottom: var(--line);
}

.method-step:nth-child(4n + 2),
.method-step:nth-child(4n + 3) {
  background: rgba(255, 253, 245, 0.24);
}

.method-step span {
  display: block;
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-size: 38px;
}

.method-step h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

.caveat-box {
  padding: clamp(28px, 4vw, 52px);
  color: var(--white);
  background: var(--ink);
}

.caveat-box h3 {
  margin-bottom: 20px;
}

.caveat-box ul {
  margin: 0;
  padding-left: 1.25em;
}

.quote-block {
  margin: 0;
  padding: clamp(32px, 5vw, 76px);
  border: var(--line);
  background: var(--yellow);
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.2;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--line);
  border-left: var(--line);
}

.related-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-right: var(--line);
  border-bottom: var(--line);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.related-card:hover,
.related-card:focus-visible {
  color: var(--white);
  background: var(--ink);
}

.related-card span {
  font-family: var(--font-serif);
  font-size: 36px;
}

.related-card h3 {
  margin-top: auto;
}

.detail-error {
  min-height: calc(100vh - 186px);
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  }

  .thesis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-row {
    grid-template-columns: 70px minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  }

  .module-meta {
    grid-column: 2 / -1;
    display: flex;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 60px;
  }

  .top-nav {
    max-width: 58vw;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar { display: none; }

  .hero,
  .detail-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-main,
  .detail-hero-main {
    min-height: calc(78vh - 60px);
    border-right: 0;
    border-bottom: var(--line);
  }

  .hero-main::after {
    right: 18px;
  }

  .hero-aside {
    grid-template-columns: 0.8fr 1.2fr;
    grid-template-rows: auto;
  }

  .hero-stamp {
    min-height: 300px;
    border-right: var(--line);
    border-bottom: 0;
  }

  .heading-row,
  .source-note,
  .reading-grid {
    grid-template-columns: 1fr;
  }

  .heading-note {
    justify-self: start;
  }

  .reading-label {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
  }

  .reading-label .section-number {
    margin: 0;
  }

  .module-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .module-summary,
  .module-meta {
    grid-column: 2;
  }

  .conflict-grid {
    grid-template-columns: 1fr;
  }

  .versus {
    min-height: 74px;
    border-right: 0;
    border-left: 0;
  }

  .conflict-grid article:nth-of-type(odd),
  .conflict-grid article:nth-of-type(even) {
    padding-right: 0;
    padding-left: 0;
  }

  .roadmap li {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .roadmap a {
    grid-column: 2;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .top-nav {
    max-width: calc(100vw - 84px);
  }

  .band {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-main,
  .detail-hero-main {
    min-height: calc(76vh - 60px);
    padding-top: 48px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(42px, 12vw, 56px);
    line-height: 1.05;
  }

  h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-aside {
    grid-template-columns: 1fr;
  }

  .hero-stamp {
    min-height: 250px;
    border-right: 0;
    border-bottom: var(--line);
  }

  .hero-stats div {
    min-height: 108px;
  }

  .thesis-grid,
  .method-flow,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .thesis-feature {
    grid-column: span 1;
  }

  .thesis {
    min-height: 350px;
  }

  .module-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .module-number {
    font-size: 42px;
  }

  .module-summary {
    font-size: 14px;
  }

  .module-meta {
    flex-wrap: wrap;
  }

  .roadmap li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .roadmap a {
    grid-column: 1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-hero h1 {
    font-size: clamp(40px, 12vw, 56px);
    line-height: 1.08;
  }

  .detail-hero-aside {
    min-height: 320px;
  }

  .reading-label {
    grid-template-columns: 1fr;
  }

  .point-list li,
  .evidence-list li,
  .action-list li {
    padding-left: 38px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .module-arrow { transition: none; }
}
