:root {
  color-scheme: light;
  --ink: #1d2923;
  --ink-soft: #34423a;
  --muted: #6f7872;
  --line: #d9ded7;
  --paper: #f4f5ef;
  --surface: #fffefa;
  --surface-soft: #e9eee7;
  --accent: #b7452c;
  --accent-soft: #f4e2dc;
  --green: #c9df91;
  --green-deep: #334b3b;
  --shadow: 0 18px 55px rgb(30 45 34 / 8%);
  --max: 1160px;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf0e8;
  --ink-soft: #d4dbd1;
  --muted: #a1aaa2;
  --line: #3c4941;
  --paper: #17211b;
  --surface: #202d25;
  --surface-soft: #29382f;
  --accent: #f28a69;
  --accent-soft: #49302b;
  --green: #d1e9a0;
  --green-deep: #26372d;
  --shadow: 0 18px 55px rgb(0 0 0 / 24%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #edf0e8;
    --ink-soft: #d4dbd1;
    --muted: #a1aaa2;
    --line: #3c4941;
    --paper: #17211b;
    --surface: #202d25;
    --surface-soft: #29382f;
    --accent: #f28a69;
    --accent-soft: #49302b;
    --green: #d1e9a0;
    --green-deep: #26372d;
    --shadow: 0 18px 55px rgb(0 0 0 / 24%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 10% 4%, rgb(201 223 145 / 13%), transparent 25rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button { color: inherit; }
::selection { color: #17211b; background: var(--green); }

.site-frame { width: min(100% - 64px, var(--max)); margin: 0 auto; }
.site-header {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.brand-lockup { display: grid; gap: .05rem; text-decoration: none; }
.brand-name, .footer-mark {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.1;
}
.brand-period, .title-period { color: var(--accent); }
.brand-caption { color: var(--muted); font-size: .76rem; letter-spacing: .07em; }
.header-controls { display: flex; align-items: center; gap: 1.25rem; }
.site-nav { display: flex; align-items: center; gap: .45rem; }
.site-nav a {
  min-width: 4.3rem;
  padding: .58rem .9rem;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-soft); transform: translateY(-1px); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.theme-toggle {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  gap: .52rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: .78rem;
  transition: border-color .2s ease, background-color .2s ease;
}
.theme-toggle:hover { border-color: var(--ink-soft); background: var(--surface); }
.theme-glyph { position: relative; width: .8rem; height: .8rem; border: 1.5px solid currentColor; border-radius: 50%; }
.theme-glyph::after { position: absolute; top: -.2rem; right: -.25rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--paper); content: ""; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  border-radius: .4rem;
  color: #fff;
  background: var(--green-deep);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-main { min-height: 62vh; padding: 0 0 6rem; }
.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 104px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.site-footer p { margin: 0; }
.footer-mark { color: var(--ink); font-size: 1.1rem; text-decoration: none; }
.back-to-top { text-decoration: none; }
.back-to-top:hover { color: var(--accent); }

/* Home: a compact editorial cover with a clear route into the archive. */
.home-hero {
  position: relative;
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: 5rem 0 6rem;
  border-bottom: 1px solid var(--line);
}
.hero-copy { max-width: 650px; }
.eyebrow {
  margin: 0;
  color: var(--muted);
  font: 650 .72rem/1.4 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow span { padding: 0 .18rem; color: var(--accent); }
.home-hero h1 {
  max-width: 720px;
  margin: 1.35rem 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(3.15rem, 7.5vw, 6.1rem);
  font-weight: 600;
  letter-spacing: -.075em;
  line-height: 1.1;
  text-wrap: balance;
}
.hero-description { max-width: 41rem; margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 1.45vw, 1.15rem); line-height: 1.95; }
.hero-english { margin: .9rem 0 0; color: var(--muted); font-family: Georgia, serif; font-size: .82rem; font-style: italic; }
.hero-actions { display: flex; align-items: center; gap: 1.35rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .38rem;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.button-primary { color: #18251e; background: var(--green); font-weight: 650; }
.button-primary:hover { background: #d7eba9; transform: translateY(-2px); }
.text-link { padding: .55rem 0; color: var(--ink-soft); text-decoration: none; }
.text-link:hover { color: var(--accent); }
.hero-note {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 2rem;
  border-radius: 1rem;
  color: #f3f4ed;
  background: var(--green-deep);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.field-note-header, .field-note-tools, .field-note-controls { display: flex; align-items: center; }
.field-note-header { position: relative; z-index: 2; justify-content: space-between; gap: .65rem; color: #d0dfcc; font-size: .65rem; letter-spacing: .15em; }
.field-note-tools { gap: .55rem; }
.field-note-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.field-note-controls { gap: .25rem; }
.field-note-controls button { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; padding: 0; border: 1px solid rgb(243 244 237 / 32%); border-radius: 50%; color: #f3f4ed; background: transparent; font: 600 .8rem/1 var(--sans); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.field-note-controls button:hover { border-color: rgb(243 244 237 / 72%); background: rgb(243 244 237 / 12%); }
.field-note-controls button:focus-visible { outline: 2px solid #d8eaa8; outline-offset: 3px; }
.field-note-slide[hidden] { display: none; }
.field-note-slide { position: relative; min-height: 235px; }
.field-note-text { position: relative; z-index: 1; max-width: 19rem; padding-top: 2.45rem; }
.hero-quote { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.65; }
.hero-coordinates { position: relative; z-index: 1; display: flex; justify-content: flex-start; gap: .45rem; margin-top: 2rem; color: #d0dfcc; font-size: .65rem; letter-spacing: .15em; }
.hero-note[data-image-active="true"]::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(13 27 20 / 22%) 0%, rgb(13 27 20 / 12%) 34%, rgb(13 27 20 / 86%) 100%); content: ""; }
.field-note-slide-image { position: static; min-height: 0; }
.field-note-cover { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.field-note-image-caption { position: absolute; z-index: 1; right: 2rem; bottom: 2rem; left: 2rem; }
.field-note-kind { display: block; margin-bottom: .65rem; color: #e0e5d6; font-size: .62rem; letter-spacing: .16em; }
.field-note-image-caption a { display: flex; align-items: end; justify-content: space-between; gap: 1rem; color: #f3f4ed; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; text-decoration: none; }
.field-note-image-caption a:hover { text-decoration: underline; text-underline-offset: .16em; }
.field-note-empty { position: relative; z-index: 1; margin: 5rem 0 0; color: #d0dfcc; font-size: .9rem; }
.field-note-status { position: absolute; }
.hero-note[data-image-active="true"] .hero-orbit { display: none; }
.hero-orbit { position: absolute; z-index: -1; right: -5rem; bottom: -7rem; width: 18rem; height: 18rem; border: 1px solid rgb(214 233 192 / 30%); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { position: absolute; inset: 1.3rem; border: 1px solid rgb(214 233 192 / 25%); border-radius: 50%; content: ""; }
.hero-orbit::after { inset: 3rem; border-color: rgb(214 233 192 / 19%); }
.scroll-cue { position: absolute; bottom: 1.4rem; left: 0; display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-decoration: none; }
.scroll-cue span { color: var(--accent); font-size: 1.1rem; }

.home-section { padding: 5.6rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.8rem; }
.section-heading h2, .filters-topline h2 {
  margin: .45rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.3vw, 2.55rem);
  font-weight: 550;
  letter-spacing: -.055em;
  line-height: 1.2;
}
.section-count { color: var(--ink); font-family: Georgia, serif; font-size: 1.3rem; }
.section-count span { margin-left: .3rem; color: var(--muted); font: .72rem var(--sans); }
.preview-demo-intro { max-width: 56rem; margin: -0.55rem 0 1.15rem; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.entries, .elsewhere, .project-list { margin: 0; padding: 0; list-style: none; }
.entry-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 1.2rem .75rem;
  border-top: 1px solid var(--line);
  transition: background-color .2s ease, padding .2s ease;
}
.entry-row:last-child { border-bottom: 1px solid var(--line); }
.entry-row:hover { padding-right: 1rem; padding-left: 1rem; background: var(--surface); }
.entry-number, .entry-date, .elsewhere-number { color: var(--muted); font-family: Georgia, serif; font-size: .76rem; }
.entry-number { padding-top: .25rem; }
.entry-title { font-family: var(--serif); font-size: 1.08rem; font-weight: 550; }
.entry-title a { text-decoration: none; text-underline-offset: .25em; }
.entry-title a:hover { color: var(--accent); text-decoration: underline; }
.entry-arrow { display: inline-block; margin-left: .5rem; color: var(--accent); font-family: var(--sans); font-size: .8rem; transition: transform .2s ease; }
.entry-title a:hover .entry-arrow { transform: translate(2px, -2px); }
.entry-note { display: block; margin-top: .15rem; color: var(--muted); font-size: .82rem; }
.entry-empty-callout { padding: 1.2rem .75rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.entry-empty-callout p { max-width: 48rem; margin: 0; }
.entry-date { padding-top: .38rem; white-space: nowrap; }
.section-action { color: var(--ink-soft); font-size: .84rem; text-decoration: none; }
.section-action:hover { color: var(--accent); }
.project-empty-callout {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface);
}
.project-empty-callout p { margin: 0; color: var(--muted); font-size: .9rem; }
.empty-mark { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: 50%; color: var(--green-deep); background: var(--green); font-size: 1.2rem; }
.project-empty-callout > a { color: var(--ink); font-size: .82rem; text-decoration: none; white-space: nowrap; }
.project-empty-callout > a:hover { color: var(--accent); }
.elsewhere { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.elsewhere li { min-width: 0; }
.elsewhere a {
  display: flex;
  min-height: 3.6rem;
  align-items: center;
  gap: 1rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--surface);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.elsewhere a:hover { border-color: var(--accent); transform: translateY(-2px); }
.elsewhere-number { width: 1.5rem; }
.elsewhere-arrow { margin-left: auto; color: var(--accent); }

/* Index and project cards. */
.page-intro { max-width: 750px; margin: 0 0 3.5rem; padding: 5rem 0 2rem; }
.page-intro h1, .project-title {
  margin: .6rem 0 .9rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.7rem);
  font-weight: 550;
  letter-spacing: -.075em;
  line-height: 1.12;
  text-wrap: balance;
}
.page-intro > p:not(.eyebrow) { max-width: 40rem; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.intro-meta { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: 1.5rem; color: var(--muted); font-size: .76rem; }
.intro-meta > span { display: inline-flex; align-items: center; gap: .45rem; }
.status-dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: #718f50; }
.project-filters { margin: 0 0 2rem; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); box-shadow: var(--shadow); }
.filters-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.filters-topline h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.filters-topline p { margin: 0; color: var(--muted); font-size: .78rem; }
.search-field { position: relative; display: flex; min-height: 3.55rem; align-items: center; gap: .9rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--paper); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.search-symbol { position: relative; width: .9rem; height: .9rem; flex: 0 0 auto; border: 1.5px solid var(--muted); border-radius: 50%; }
.search-symbol::after { position: absolute; right: -.3rem; bottom: -.17rem; width: .4rem; height: 1.5px; background: var(--muted); content: ""; transform: rotate(45deg); transform-origin: left; }
.search-field input { width: 100%; min-width: 0; min-height: 3.35rem; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .92rem; }
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: var(--muted); opacity: .82; }
.search-shortcut kbd { display: inline-grid; min-width: 1.45rem; min-height: 1.45rem; place-items: center; border: 1px solid var(--line); border-radius: .25rem; color: var(--muted); background: var(--surface); font: .75rem var(--sans); }
.topic-filter { margin: 1.35rem 0 0; padding: 0; border: 0; }
.topic-filter legend { margin-bottom: .65rem; color: var(--ink-soft); font-size: .82rem; font-weight: 600; }
.topic-filter legend span { margin-left: .4rem; color: var(--muted); font-size: .72rem; font-weight: 400; }
.topic-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-option { position: relative; display: inline-flex; cursor: pointer; }
.topic-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topic-option span { display: inline-flex; min-height: 2.15rem; align-items: center; padding: .35rem .78rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: .76rem; transition: border-color .18s ease, color .18s ease, background-color .18s ease; }
.topic-option:hover span { border-color: var(--ink-soft); color: var(--ink); }
.topic-option input:checked + span { border-color: var(--green-deep); color: #fff; background: var(--green-deep); }
.topic-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.filter-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.project-count { margin: 0; color: var(--muted); font-size: .8rem; }
.filter-actions button { display: inline-flex; min-height: 2.4rem; align-items: center; gap: .4rem; padding: .35rem .6rem; border: 0; border-radius: .35rem; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: .78rem; }
.filter-actions button:hover { color: var(--accent); background: var(--accent-soft); }
.project-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-name-section { margin: 0 0 2.5rem; }
.project-name-section .section-heading { margin-bottom: 1rem; }
.project-card { min-width: 0; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.project-card:hover { border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); box-shadow: var(--shadow); transform: translateY(-3px); }
.project-card article { display: grid; min-height: 15rem; grid-template-columns: minmax(0, 1fr) auto; align-content: start; padding: 1.45rem; }
.project-card-main { min-width: 0; }
.project-card-kicker { margin: 0 0 .85rem; color: var(--muted); font-size: .65rem; letter-spacing: .14em; }
.project-card-kicker span { color: var(--accent); }
.project-card h2 { margin: 0; font-family: var(--serif); font-size: 1.42rem; font-weight: 550; letter-spacing: -.035em; line-height: 1.35; }
.project-card h2 a { text-decoration: none; text-underline-offset: .2em; }
.project-card h2 a:hover { color: var(--accent); }
.project-card .project-summary { max-width: 38rem; margin: .65rem 0 .3rem; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.project-meta, .project-detail-meta { color: var(--muted); font-size: .78rem; }
.project-meta { margin: .65rem 0 0; }
.project-card-arrow { display: grid; width: 2.35rem; height: 2.35rem; grid-row: 1; grid-column: 2; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease; }
.project-card:hover .project-card-arrow { border-color: var(--green-deep); color: #fff; background: var(--green-deep); transform: rotate(45deg); }
.project-topics { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.project-topics li a { display: inline-flex; min-height: 1.8rem; align-items: center; padding: .2rem .58rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .7rem; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
.project-topics li a:hover { color: var(--ink); background: var(--surface-soft); }
.project-no-results { margin: 1.5rem 0; padding: 2rem; border: 1px dashed var(--line); border-radius: .6rem; color: var(--muted); text-align: center; }
.project-no-results[hidden], .project-card[hidden] { display: none; }
.focus-card { position: relative; overflow: hidden; }
.focus-card-cover { position: absolute; inset: 0; }
.focus-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.focus-card-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .72), rgb(0 0 0 / .18) 55%, transparent); }
.focus-card article { position: relative; }
.focus-card.has-cover article { align-content: end; }
.focus-card.has-cover { color: #fff; }
.focus-card.has-cover .project-card-kicker, .focus-card.has-cover .project-summary, .focus-card.has-cover .project-meta { color: rgb(255 255 255 / .85); }
.focus-card.has-cover h2 a { color: #fff; }
.focus-card.has-cover .project-card-arrow { border-color: rgb(255 255 255 / .6); color: #fff; }
.focus-card-body { min-width: 0; }
.focus-card-title-link::after { content: ''; position: absolute; inset: 0; }
.focus-card-status { margin: .8rem 0 0; }
.status-badge { display: inline-flex; min-height: 1.8rem; align-items: center; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.status-coming { color: #fff; background: var(--accent); }
.status-active { color: #fff; background: var(--green-deep); }
.status-past { color: var(--muted); border: 1px solid var(--line); background: transparent; }
.project-detail-cover { margin: 0 0 1.5rem; }
.project-detail-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .8rem; }
.project-stages { margin: 2rem 0; }
.project-stages ol { margin: 1rem 0 0; padding: 0; list-style: none; }
.project-stages li { display: flex; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.project-stages li[data-stage-state='done'] span { color: var(--green-deep); }
.project-stages li[data-stage-state='active'] span { color: var(--accent); }
.project-latest { margin: 2rem 0; }
.project-latest-empty { color: var(--muted); }
.empty-state { position: relative; overflow: hidden; padding: 2rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.project-empty-state { min-height: 270px; }
.empty-state-index { display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.empty-state-mark { position: absolute; top: 2.6rem; right: 2.5rem; display: grid; width: 3.6rem; height: 3.6rem; place-items: center; border-radius: 50%; color: var(--green-deep); background: var(--green); font-size: 1.7rem; }
.empty-state h2 { max-width: 70%; margin: 3.2rem 0 .55rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 550; letter-spacing: -.04em; }
.empty-state p { max-width: 39rem; margin: 0; color: var(--muted); font-size: .9rem; }
.empty-state > a { display: inline-flex; gap: .5rem; margin-top: 1.2rem; color: var(--ink); font-size: .82rem; text-decoration: none; }
.empty-state > a:hover { color: var(--accent); }

/* Detail pages and type-specific article presentation. */
.back-link { margin: 2.1rem 0 1.25rem; color: var(--muted); font-size: .78rem; }
.back-link a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.back-link a:hover { color: var(--accent); }
.detail-header { max-width: 850px; padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.detail-header .eyebrow { display: flex; align-items: center; gap: .4rem; }
.project-title, .article-title { max-width: 900px; margin: .9rem 0 1rem; font-size: clamp(2.8rem, 6.6vw, 5.2rem); }
.project-summary, .article-lede { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.85; }
.markdown-content > :first-child { margin-top: 0; }
.markdown-content > :last-child { margin-bottom: 0; }
.markdown-content p, .markdown-content ul, .markdown-content ol, .markdown-content blockquote, .markdown-content pre { margin: .8em 0; }
.markdown-content ul, .markdown-content ol { padding-left: 1.35rem; }
.markdown-content a, .article-resource a { text-decoration-color: color-mix(in srgb, var(--accent) 65%, transparent); text-underline-offset: .2em; }
.markdown-content a:hover, .article-resource a:hover { color: var(--accent); }
.detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.detail-type, .article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 0; color: var(--muted); font-size: .76rem; }
.share-tools { display: flex; align-items: center; gap: .7rem; }
.share-button { min-height: 2.35rem; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: .75rem; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.share-button:hover { border-color: var(--ink); background: var(--surface); }
.share-status { color: var(--muted); font-size: .72rem; }
.project-detail-meta { display: flex; flex-wrap: wrap; gap: 1rem 4rem; margin: 2rem 0 1rem; }
.project-detail-meta div { display: grid; gap: .15rem; }
.project-detail-meta dt { color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.project-detail-meta dd { margin: 0; color: var(--ink); font-size: .9rem; }
.detail-topics { margin: 1rem 0 2rem; }
.project-body, .article-body { max-width: 72ch; margin: 2.6rem 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.05rem; line-height: 1.95; overflow-wrap: anywhere; }
.project-body h2, .project-body h3, .article-body h2, .article-body h3 { margin: 1.8em 0 .6em; color: var(--ink); font-family: var(--sans); font-size: 1.35rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.4; }
.project-body h3, .article-body h3 { font-size: 1.12rem; }
.project-body blockquote, .article-body blockquote { margin: 1.5rem 0; padding: .3rem 0 .3rem 1.2rem; border-left: 2px solid var(--accent); color: var(--muted); }
.project-body pre, .article-body pre { max-width: 100%; overflow-x: auto; padding: 1rem; border-radius: .45rem; color: var(--ink); background: var(--surface-soft); font: .88rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.project-body code, .article-body code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.project-body img, .article-body img { display: block; max-width: 100%; height: auto; border-radius: .45rem; }
.project-body table, .article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.project-body th, .project-body td, .article-body th, .article-body td { padding: .45rem .65rem; border: 1px solid var(--line); text-align: left; }
.project-resources { max-width: 850px; margin-top: 3.5rem; padding: 1.5rem 0 0; border-top: 1px solid var(--line); }
.project-resources h2 { margin: .4rem 0 1rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 550; }
.project-resources ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.project-resources li a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--surface); text-decoration: none; }
.project-resources li a:hover { border-color: var(--accent); }
.detail-return { max-width: 850px; margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .82rem; }
.detail-return a { text-decoration: none; }
.detail-return a:hover { color: var(--accent); }

.article-detail { max-width: 900px; }
.article-detail .detail-header { max-width: 900px; }
.article-hero-image { overflow: hidden; max-width: 900px; margin: 2rem 0 3rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface-soft); }
.article-hero-image img { display: block; width: 100%; max-height: 42rem; object-fit: cover; }
.article-title { line-height: 1.2; }
.article-detail[data-entry-type="notes"] .detail-header { border-left: 3px solid var(--green); padding-left: 1.5rem; }
.article-detail[data-entry-type="highlights"] .detail-header { border-left: 3px solid var(--accent); padding-left: 1.5rem; }
.article-detail[data-entry-type="links"] .detail-header { border-left: 3px solid #718f50; padding-left: 1.5rem; }
.article-detail[data-entry-type="podcasts"] .detail-header { border-left: 3px solid #8b7ab8; padding-left: 1.5rem; }
.article-detail[data-entry-type="notes"] .eyebrow::before { color: var(--green-deep); content: "✳"; }
.article-detail[data-entry-type="highlights"] .eyebrow::before { color: var(--accent); content: "❝"; font-size: 1rem; }
.article-detail[data-entry-type="links"] .eyebrow::before { color: #718f50; content: "↗"; }
.article-detail[data-entry-type="podcasts"] .eyebrow::before { color: #8b7ab8; content: "◖"; }
.article-body { margin-top: 2.8rem; }
.article-quote { position: relative; max-width: 760px; margin: 2.8rem 0; padding: 2rem 2.2rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: .65rem; background: var(--surface); box-shadow: var(--shadow); }
.article-quote::before { position: absolute; top: -.05em; right: .2em; color: var(--accent-soft); content: "“"; font-family: var(--serif); font-size: 7rem; line-height: 1; pointer-events: none; }
.article-quote-content { position: relative; z-index: 1; max-width: 620px; font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.75; }
.article-quote-content > :first-child { margin-top: 0; }
.article-quote-content > :last-child { margin-bottom: 0; }
.article-quote footer { position: relative; z-index: 1; margin-top: 1.6rem; color: var(--muted); font-size: .84rem; }
.article-quote footer::before { content: "— "; }
.article-resource { max-width: 760px; margin: 2.5rem 0; }
.link-preview-card { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem; padding: 1.35rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.link-preview-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-preview-icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: 50%; color: var(--green-deep); background: var(--green); font-size: 1.1rem; }
.link-preview-copy { min-width: 0; }
.link-preview-label { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.link-preview-url { display: block; overflow: hidden; color: var(--ink); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.link-preview-arrow { color: var(--accent); font-size: 1.1rem; }
.podcast-resource { margin-top: 2.6rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .8rem; background: linear-gradient(140deg, var(--surface), var(--surface-soft)); }
.podcast-resource h2 { margin: .35rem 0 .1rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 550; }
.podcast-resource > p:not(.eyebrow) { color: var(--muted); }
.podcast-resource audio { display: block; width: 100%; max-width: 640px; margin: 1.35rem 0; }
.preview-badge { padding: .15rem .5rem; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font: .67rem var(--sans); }
.article-feed-link { margin-top: 3.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.article-feed-link a { text-decoration: none; }
.article-feed-link a:hover { color: var(--accent); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 800px) {
  .site-frame { width: min(100% - 40px, var(--max)); }
  .home-hero { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); gap: 2rem; padding: 4rem 0 5rem; }
  .hero-note { min-height: 290px; padding: 1.5rem; }
  .field-note-slide { min-height: 205px; }
  .field-note-text { padding-top: 2.1rem; }
  .field-note-image-caption { right: 1.5rem; bottom: 1.5rem; left: 1.5rem; }
  .home-section { padding: 4.5rem 0; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .site-frame { width: min(100% - 36px, var(--max)); }
  .site-header { min-height: 0; flex-wrap: wrap; gap: .8rem; padding: 1.15rem 0 .9rem; }
  .brand-name { font-size: 1.45rem; }
  .brand-caption { font-size: .69rem; }
  .header-controls { width: 100%; justify-content: space-between; gap: .6rem; }
  .site-nav { gap: .2rem; }
  .site-nav a { min-width: 3.7rem; padding: .45rem .65rem; font-size: .86rem; }
  .theme-toggle { min-height: 2.2rem; padding: .3rem .65rem; font-size: .7rem; }
  .site-main { padding-bottom: 4rem; }
  .site-footer { grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: 1.3rem 0; }
  .site-footer p { grid-row: 2; font-size: .7rem; }
  .back-to-top { grid-column: 2; grid-row: 1 / span 2; }
  .home-hero { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 0 4.4rem; }
  .home-hero h1 { max-width: 13ch; margin-top: 1rem; font-size: clamp(2.85rem, 14vw, 4.2rem); }
  .hero-description { font-size: .98rem; }
  .hero-note { min-height: 255px; padding: 1.35rem; }
  .field-note-header { gap: .35rem; }
  .field-note-tools { gap: .35rem; }
  .field-note-count { font-size: .58rem; }
  .field-note-controls { gap: .18rem; }
  .field-note-controls button { width: 1.65rem; height: 1.65rem; }
  .field-note-slide { min-height: 170px; }
  .field-note-text { padding-top: 1.4rem; }
  .hero-quote { max-width: 13rem; margin-bottom: .7rem; font-size: 1.45rem; }
  .hero-coordinates { margin-top: 1rem; }
  .field-note-image-caption { right: 1.35rem; bottom: 1.35rem; left: 1.35rem; }
  .field-note-image-caption a { font-size: 1.2rem; }
  .field-note-kind { font-size: .58rem; }
  .scroll-cue { bottom: 1.1rem; }
  .home-section { padding: 3.6rem 0; }
  .section-heading { align-items: end; gap: .8rem; margin-bottom: 1.25rem; }
  .section-heading h2 { font-size: 1.85rem; }
  .section-count { font-size: 1.1rem; }
  .entry-row { grid-template-columns: 2rem minmax(0, 1fr); gap: .55rem; padding: 1rem .15rem; }
  .entry-number { grid-row: 1 / span 2; }
  .entry-title { font-size: 1rem; }
  .entry-note { font-size: .77rem; }
  .entry-date { grid-column: 2; grid-row: 2; padding-top: .1rem; font-size: .69rem; }
  .project-empty-callout { grid-template-columns: 2.6rem 1fr; gap: .8rem; padding: 1rem; }
  .project-empty-callout p { font-size: .82rem; }
  .project-empty-callout > a { grid-column: 2; }
  .empty-mark { width: 2.35rem; height: 2.35rem; }
  .elsewhere { grid-template-columns: 1fr; }
  .elsewhere a { min-height: 3.25rem; }
  .page-intro { margin-bottom: 2rem; padding: 3.4rem 0 1rem; }
  .page-intro h1, .project-title { font-size: clamp(2.8rem, 13vw, 4rem); }
  .page-intro > p:not(.eyebrow) { font-size: .91rem; }
  .filters-topline { display: block; }
  .filters-topline p { margin-top: .25rem; }
  .project-filters { margin-bottom: 1.2rem; }
  .project-results { grid-template-columns: 1fr; gap: .7rem; }
  .project-card article { min-height: 0; padding: 1.2rem; }
  .project-card h2 { font-size: 1.25rem; }
  .project-card .project-summary { font-size: .82rem; }
  .filter-actions { align-items: center; }
  .empty-state { padding: 1.3rem; }
  .empty-state-mark { top: 2.2rem; right: 1.25rem; width: 2.8rem; height: 2.8rem; }
  .empty-state h2 { max-width: 75%; margin-top: 2.7rem; font-size: 1.4rem; }
  .detail-header { padding: 1.9rem 0 1.4rem; }
  .article-detail[data-entry-type] .detail-header { padding-left: 1rem; }
  .detail-actions { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .share-tools { width: 100%; justify-content: space-between; }
  .project-detail-meta { gap: 1rem 2rem; }
  .project-body, .article-body { margin: 2rem 0; font-size: 1rem; }
  .project-resources ul { grid-template-columns: 1fr; }
  .article-quote { padding: 1.35rem; }
  .article-quote::before { right: .1em; font-size: 5.5rem; }
  .article-quote-content { font-size: 1.28rem; }
  .link-preview-card { grid-template-columns: 2.4rem minmax(0, 1fr) auto; gap: .65rem; padding: 1rem; }
  .link-preview-icon { width: 2.25rem; height: 2.25rem; }
  .link-preview-url { font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Social destinations are intentionally icon-only; the links retain accessible names. */
.elsewhere { display: flex; flex-wrap: wrap; gap: .65rem; }
.elsewhere li { min-width: 0; }
.elsewhere a {
  position: relative;
  display: grid;
  width: 3.55rem;
  min-height: 3.55rem;
  place-items: center;
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  color: var(--ink-soft);
  background: var(--surface);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.elsewhere a:hover { border-color: var(--ink-soft); color: var(--ink); background: var(--surface-soft); transform: translateY(-3px); }
.elsewhere svg.solid-icon { fill: currentColor; stroke: none; }
.social-x:hover { border-color: var(--ink); color: var(--ink); }
.social-rednote:hover { border-color: #df4f49; color: #df4f49; }
.social-email:hover { border-color: var(--accent); color: var(--accent); }
.elsewhere svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.elsewhere svg .icon-fill { fill: currentColor; stroke: none; }
.social-jike:hover { border-color: #ed633e; color: #ed633e; }
.social-instagram:hover { border-color: #b94970; color: #b94970; }
.social-douban:hover { border-color: #299867; color: #299867; }
.social-xiaohongshu:hover { border-color: #df4f49; color: #df4f49; }
