:root {
  color-scheme: dark;
  --bg: #151614;
  --panel: #1e201d;
  --line: #363a33;
  --text: #f1eee7;
  --muted: #b1b3a9;
  --accent: #ffc178;
  --green: #c2d993;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "Cascadia Code", Consolas, monospace;
  font-family: var(--font);
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
.shell { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); background: #191b18; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.brand-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: var(--accent); color: #21180e; font: 800 16px var(--mono); }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); color: var(--muted); font-size: 14px; }
nav a:hover, .back:hover, .footer a:hover { color: var(--accent); }
.intro { padding: 66px 0 37px; }
.eyebrow, .featured-meta, .detail-meta { display: flex; align-items: center; gap: 12px; color: var(--accent); font-size: 13px; font-weight: 650; }
.eyebrow span { width: 20px; height: 1px; background: #8e704c; }
h1 { font-size: clamp(44px, 6.6vw, 80px); line-height: 1.12; letter-spacing: -.07em; font-weight: 800; }
.intro h1 { margin: 12px 0 16px; }
.intro h1 span { color: var(--accent); }
.intro p { color: var(--muted); font-size: clamp(15px, 2vw, 18px); }
.featured { display: grid; grid-template-columns: .83fr 1.17fr; overflow: hidden; border: 1px solid var(--line); background: var(--panel); border-radius: 20px; }
.featured-copy { padding: clamp(24px, 3.25vw, 44px); }
.featured h2 { margin: 11px 0 6px; font-size: clamp(31px, 4.25vw, 52px); line-height: 1.15; letter-spacing: -.065em; }
.featured p { color: var(--muted); font-size: 15px; }
.featured dl { display: grid; gap: 8px; margin: 23px 0; font-size: 14px; }
.featured dl div { display: flex; gap: 15px; }
.featured dt { color: var(--muted); min-width: 45px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 15px; border-radius: 8px; background: var(--accent); color: #24190e; font-size: 14px; font-weight: 750; transition: background .16s; }
.button:hover { background: #ffdaae; }
.button span { font: 800 17px var(--mono); }
.featured-visual { display: grid; }
.featured-visual .cover { border-radius: 0; min-height: 310px; }
.section { margin-top: 55px; scroll-margin-top: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 19px; }
.section-head h2 { font-size: clamp(25px, 3.2vw, 34px); letter-spacing: -.045em; line-height: 1.3; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters button { background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--muted); padding: 5px 9px; cursor: pointer; font-size: 13px; }
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { border-color: #625344; background: #352b21; color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .16s, transform .16s; min-width: 0; }
.card:hover { border-color: #a4835f; transform: translateY(-3px); }
.card-link { display: block; height: 100%; border-radius: inherit; }
.card .cover { aspect-ratio: 1.89; border-radius: 13px 13px 0 0; }
.card-body { padding: 17px 19px 20px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 2px 8px; border: 1px solid currentColor; border-radius: 99px; font-size: 11px; line-height: 1.55; color: #c2c3ba; }
.status::before { width: 5px; height: 5px; content: ""; border-radius: 50%; background: currentColor; }
.status.building { color: var(--accent); }
.status.preview, .status.complete { color: var(--green); }
.status.idea { color: #c5c2f0; }
.card h3 { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 4px; font-size: 22px; }
.card p { color: var(--muted); font-size: 14px; }
.arrow { color: var(--accent); font: 700 17px var(--mono); }
.updates { border-top: 1px solid var(--line); }
.update { display: grid; grid-template-columns: 120px minmax(0, 1fr) 115px auto; align-items: center; gap: 14px; padding: 15px 5px; border-bottom: 1px solid var(--line); }
.update:hover .update-title { color: var(--accent); }
time { color: var(--muted); font: 13px var(--mono); white-space: nowrap; }
.update-project { color: var(--muted); font-size: 13px; }
.footer { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; margin-top: 65px; padding: 21px 0 27px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.skip { position: absolute; z-index: 2; top: 10px; left: 10px; transform: translateY(-160%); background: var(--accent); color: #21180e; padding: 8px; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cover { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; background-color: #9c7454; border-radius: 16px; }
.cover-reading { background: radial-gradient(ellipse at 75% 15%, #e0b184, transparent 65%), linear-gradient(146deg, #9c674f, #c49468); }
.cover-tools { background: radial-gradient(at 23% 11%, #9ba885, #5f7769); }
.cover-map { background: radial-gradient(at 70% 0%, #a6a9d0, #655f85); }
.cover.fallback { min-height: 170px; background: #343830; color: var(--text); font-size: 28px; font-weight: 700; }
.photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.mock-wrap { width: 88%; container-type: inline-size; transform: rotate(-4deg); }
.featured-visual .mock-wrap, .detail-hero .mock-wrap { width: 82%; }
.mock { overflow: hidden; box-shadow: 0 2cqw 5cqw #241d1485; border: 1px solid #f5d9b68c; border-radius: 2.1cqw; background: #f7eee1; color: #332d25; font-size: 3cqw; line-height: 1.35; }
.mock-top { display: flex; align-items: center; gap: 4cqw; padding: 2.6cqw 4cqw; border-bottom: 1px solid #d9ccbd; font-size: 2.75cqw; white-space: nowrap; }
.mock-top b { margin-right: auto; font-size: 3.3cqw; }
.mock-body { display: grid; grid-template-columns: 28% 72%; min-height: 39cqw; }
.mock-sidebar { display: flex; flex-direction: column; align-items: stretch; gap: 1.5cqw; padding: 3cqw 2.4cqw; background: #ede3d3; color: #615144; font-size: 2.6cqw; }
.mock-sidebar b, .mock-sidebar span { padding: .6cqw 1cqw; white-space: nowrap; }
.mock-sidebar .active { border-radius: .8cqw; color: #713919; background: #f2d1ad; }
.mock-content { padding: 3cqw 3.8cqw; }
.mock-search { border: 1px solid #d9ccbd; border-radius: 1cqw; padding: 1.8cqw 2cqw; color: #695a4c; font-size: 2.65cqw; }
.mock-search i { font-style: normal; }
.mock-heading { display: block; margin-top: 2.9cqw; margin-bottom: 1cqw; }
.mock-note { display: flex; align-items: center; gap: 2cqw; padding: 1.3cqw 0; border-bottom: 1px solid #e5d8c8; }
.mock-note div { display: grid; gap: .4cqw; }
.mock-note div span { color: #6b5e50; font-size: 2.55cqw; }
.book { width: 4.4cqw; height: 6cqw; border-radius: .35cqw; border-left: .6cqw solid #0003; }
.ochre { background: #b77a51; }
.sage { background: #849477; }
.mock.tool { background: #232e29; color: #ecf4e6; border-color: #dce6d180; }
.tool .mock-top { border-color: #43564b; }
.tool-body { display: grid; grid-template-columns: 1fr 1fr; gap: 2cqw; padding: 4cqw; }
.tool-body > div { min-height: 30cqw; background: #17231e; border: 1px solid #496051; border-radius: 1cqw; padding: 2cqw; }
.tool-body small { display: block; color: #b6c6b7; font-size: 2.5cqw; }
.tool-body code { display: block; margin-top: 2cqw; color: #c5e897; font: 2.7cqw var(--mono); }
.mock.map { background: #eeeaf2; color: #322c42; }
.map-body { position: relative; min-height: 38cqw; background: repeating-linear-gradient(112deg, transparent 0 12cqw, #fbf9fb 12cqw 13cqw), repeating-linear-gradient(16deg, #d9d3e2 0 7cqw, #fbf9fb 7cqw 8.2cqw); overflow: hidden; }
.river { position: absolute; top: -30%; left: 41%; width: 12cqw; height: 165%; background: #a8bddc; transform: rotate(25deg); border-radius: 45%; }
.park { position: absolute; width: 26cqw; height: 13cqw; background: #c0cfb2; border-radius: 4cqw; }
.park-one { top: 7cqw; left: 4cqw; transform: rotate(11deg); }
.park-two { top: 22cqw; right: 9cqw; }
.pin { position: absolute; width: 4cqw; height: 4cqw; border: .6cqw solid white; border-radius: 50%; box-shadow: 0 .5cqw 1cqw #28204644; background: #7654a4; }
.pin-one { top: 12cqw; left: 27cqw; }
.pin-two { top: 18cqw; right: 29cqw; background: #665ea0; }
.pin-three { top: 26cqw; right: 13cqw; background: #417453; }
.map-label { position: absolute; top: 23cqw; left: 12cqw; background: #f8f5fb; border-radius: 1cqw; padding: 1cqw 2cqw; }

.back { display: inline-flex; gap: 9px; margin: 30px 0 25px; color: var(--muted); font-size: 14px; }
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: 5px 0 20px; }
.detail-hero h1 { margin: 12px 0; }
.detail-hero .cover { min-height: 280px; aspect-ratio: 1.62; }
.lede { font-size: 19px; }
.about { color: var(--muted); margin-top: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-links:not(:empty) { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.detail-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(24px, 5vw, 64px); }
.detail-grid .section { margin-top: 32px; }
.milestones { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0; }
.milestones li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.milestone-state { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.milestone-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.milestone-state.done { color: var(--green); }
.milestone-state.current { color: var(--accent); }
.milestone-state.current::before, .milestone-state.done::before { background: currentColor; }
.detail-grid h3 { margin: 5px 0; font-size: 18px; }
.detail-grid p { color: var(--muted); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.devlog { margin-left: 5px; padding-left: 22px; border-left: 1px solid var(--line); }
.devlog article { position: relative; padding: 0 0 25px; }
.devlog article:last-child { padding-bottom: 1px; }
.devlog article::before { content: ""; position: absolute; top: 8px; left: -28px; width: 11px; height: 11px; border: 2px solid var(--bg); border-radius: 50%; background: var(--accent); }
.devlog img { margin-top: 12px; border-radius: 8px; }

@media (max-width: 880px) {
  .shell { width: calc(100% - 48px); }
  .intro { padding-top: 52px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero .cover { min-height: 220px; }
}
@media (max-width: 630px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 61px; gap: 10px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand-icon { width: 30px; height: 30px; }
  nav { font-size: 13px; }
  .intro { padding: 37px 0 25px; }
  .featured, .detail-hero, .detail-grid { grid-template-columns: 1fr; }
  .featured-visual .cover { min-height: 220px; aspect-ratio: 1.7; }
  .featured dl { margin: 17px 0; }
  .section { margin-top: 39px; }
  .project-grid { grid-template-columns: 1fr; }
  .update { grid-template-columns: auto 1fr auto; gap: 3px 12px; }
  .update time { grid-column: 1; grid-row: 1; }
  .update-title { grid-column: 1 / 3; grid-row: 2; }
  .update-project { grid-column: 2; grid-row: 1; justify-self: start; }
  .update .arrow { grid-column: 3; grid-row: 1 / 3; }
  .detail-hero { padding-bottom: 0; }
  .detail-grid { gap: 3px; }
  .footer { margin-top: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
