:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --surface: #fffefa;
  --ink: #272b27;
  --muted: #64675e;
  --line: #d8d9cf;
  --accent: #405e44;
  --soft: #eaf0e6;
  --focus: #345b8c;
  font-family: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.masthead, main, .footer { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.masthead { min-height: 90px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; }
.wordmark { font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.wordmark span { margin-inline: 10px; color: var(--accent); }
.header-note { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.intro { padding-block: 48px 36px; }
.eyebrow { font-size: 12px; color: var(--accent); letter-spacing: .15em; margin: 0 0 12px; }
h1 { font-family: "Noto Serif CJK SC", "Songti SC", "SimSun", serif; font-size: clamp(26px, 3vw, 36px); font-weight: 600; line-height: 1.45; margin: 0; letter-spacing: -.025em; overflow-wrap: anywhere; }
.intro-copy { color: var(--muted); font-size: 14px; margin: 12px 0 0; line-height: 1.8; }
.toolbar { display: flex; gap: 36px; align-items: end; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.search-field { flex: 1; max-width: 530px; }
.search-field label, .type-filters legend { display: block; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.search-field input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); font-size: 14px; }
.search-field input::placeholder { color: var(--muted); }
.type-filters { border: 0; padding: 0; margin: 0; min-width: 0; }
.type-filters legend { padding: 0; }
.filter-options { display: flex; gap: 6px; }
.filter-options button, .secondary-button { min-height: 46px; min-width: 44px; padding: 0 16px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 5px; cursor: pointer; font-size: 13px; }
.filter-options button:hover, .secondary-button:hover { background: var(--soft); color: var(--ink); }
.filter-options button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.state-panel { padding: 44px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.state-panel h3 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
.state-panel p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0; }
.state-panel button { margin-top: 20px; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block: 28px 14px; }
h2 { margin: 0; font-size: 14px; font-weight: 600; }
#results-summary { font-size: 12px; color: var(--muted); margin: 0; }
.projects { border-top: 1px solid var(--line); }
.project { display: grid; grid-template-columns: minmax(0, 1fr) 235px 112px; align-items: center; gap: 32px; padding: 28px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.project h3 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.project-description { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 8px 0 14px; overflow-wrap: anywhere; }
.project-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; }
.type-badge { border: 1px solid var(--line); padding: 3px 8px; border-radius: 4px; }
.status-badge { color: var(--accent); }
.status-badge::before { content: ""; display: inline-block; width: 5px; height: 5px; background: currentColor; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.project-meta { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 14px; font-size: 12px; line-height: 1.6; }
.project-meta dt { color: var(--muted); }
.project-meta dd { margin: 0; overflow-wrap: anywhere; }
.project-meta code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 11px; }
.visit { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; font-size: 13px; font-weight: 500; }
.visit:hover { background: var(--soft); border-color: var(--accent); color: var(--accent); }
.footer { margin-block: 30px 36px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.footer p { margin: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px 18px; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 16px; }
.noscript { margin: 24px; padding: 24px; border: 1px solid var(--line); }
button:disabled, input:disabled { opacity: .6; cursor: wait; }
@media (max-width: 900px) {
  .masthead, main, .footer { width: calc(100% - 48px); }
  .toolbar { gap: 24px; }
  .project { grid-template-columns: minmax(0, 1fr) 200px; gap: 20px 24px; }
  .visit { grid-column: 2; width: 100%; }
  .project-content { grid-row: span 2; }
}
@media (max-width: 600px) {
  .masthead, main, .footer { width: calc(100% - 40px); }
  .masthead { min-height: 72px; gap: 12px; }
  .header-note { font-size: 10px; letter-spacing: 0; }
  .wordmark { font-size: 12px; letter-spacing: .05em; }
  .wordmark span { margin-inline: 6px; }
  .intro { padding-block: 32px 28px; }
  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 24px; }
  .search-field { max-width: none; }
  .filter-options { display: grid; grid-template-columns: .75fr 1fr 1.2fr; }
  .filter-options button { padding-inline: 10px; }
  .project { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; gap: 22px; }
  .project-content { grid-row: auto; }
  .project-meta { grid-template-columns: 36px minmax(0, 1fr); gap: 8px 12px; }
  .visit { grid-column: auto; }
  .footer { display: block; margin-top: 24px; }
  .footer p + p { margin-top: 8px; }
  .state-panel { padding: 32px 18px; }
}
