:root {
  color-scheme: dark;
  --background: #0b0b0d;
  --surface: #131316;
  --surface-hover: #1c1c20;
  --text: #f4f4f5;
  --muted: #a6a6b0;
  --line: #303036;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
::selection { background: #ddd; color: #111; }
.page { width: min(100%, 1240px); min-height: 100svh; margin: 0 auto; padding: 0 clamp(24px, 6vw, 72px); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 27px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.project-type { color: var(--muted); text-decoration: none; letter-spacing: .025em; }
.header-links { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.header-links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; gap: 5px; }
.language-links { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); }
.language-links [aria-current="page"] { color: var(--text); }
.eyebrow { margin: 0; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; }
.hero { padding: clamp(56px, 9vw, 100px) 0 48px; }
h1 { margin: 23px 0 29px -.045em; font-size: clamp(3.8rem, 9vw, 7rem); font-weight: 600; letter-spacing: -.065em; line-height: .98; }
.period { color: #777780; }
.tagline { margin: 0 0 23px; font-size: clamp(20px, 2.8vw, 29px); font-weight: 500; letter-spacing: -.025em; }
.introduction { max-width: 790px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.introduction p { margin: 0 0 14px; }
.document-card { padding: clamp(25px, 4vw, 43px); border: 1px solid #42424a; border-radius: 12px; background: var(--surface); }
.document-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.document-date { color: var(--muted); font-size: 12px; }
.document-card h2 { max-width: 900px; margin: 24px 0 20px; font-size: clamp(25px, 3.5vw, 38px); font-weight: 550; line-height: 1.3; letter-spacing: -.035em; }
.version { display: inline-block; font-size: .63em; color: var(--muted); font-weight: 450; letter-spacing: -.01em; white-space: nowrap; }
.document-card p { max-width: 800px; margin: 0 0 26px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 45px; padding: 10px 17px; border: 1px solid var(--text); border-radius: 5px; background: var(--text); color: #111; text-decoration: none; font-size: 13px; font-weight: 600; }
.primary-link:hover { background: #d8d8dd; border-color: #d8d8dd; color: #111; }
.project-note { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 19px; max-width: 860px; margin-top: 29px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.stage { display: inline-block; padding: 2px 9px; border: 1px solid var(--line); border-radius: 4px; color: #d3d3da; white-space: nowrap; }
.project-note p { margin: 2px 0 0; }
.project-links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 17px; font-size: 12px; }
.project-links a { display: inline-flex; min-height: 36px; align-items: center; gap: 5px; }
.link-note { color: var(--muted); }
.research-log { margin: 71px 0 65px; padding-top: 38px; border-top: 1px solid var(--line); }
.log-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.log-heading h2 { margin: 10px 0 0; font-size: clamp(27px, 3.5vw, 35px); font-weight: 550; letter-spacing: -.035em; }
.log-heading > a { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; color: var(--muted); font-size: 12px; }
.log-intro { margin: 17px 0 21px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.log-summary { color: var(--muted); font-size: 12px; margin-bottom: 19px; }
.log-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.log-filters button { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--background); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.log-filters button:hover { border-color: #777780; color: var(--text); }
.log-filters button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #111; }
.filter-count { opacity: .7; font-size: 11px; font-variant-numeric: tabular-nums; }
.log-filter-status { min-height: 1.6em; margin: 16px 0 30px; color: var(--muted); font-size: 12px; }
.log-day { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 32px; margin-bottom: 35px; }
.log-day h3 { margin: 2px 0 0; color: #d5d5dc; font-size: 13px; font-weight: 500; line-height: 1.85; }
.log-entries { min-width: 0; padding: 0; margin: 0; list-style: none; }
.log-entry { padding: 0 0 28px; margin: 0 0 27px; border-bottom: 1px solid var(--line); }
.log-entry:last-child { border: 0; padding-bottom: 0; margin-bottom: 0; }
.log-kind { display: inline-block; padding: 2px 7px; border: 1px solid var(--line); border-radius: 3px; color: #c0c0c8; font-size: 10px; line-height: 1.6; }
.log-entry h4 { margin: 10px 0 9px; font-size: 18px; line-height: 1.5; font-weight: 550; letter-spacing: -.01em; }
.log-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.log-files { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; }
.log-files li { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; font-size: 11px; line-height: 1.85; }
.file-change { flex-shrink: 0; color: var(--muted); font-size: 10px; }
.log-files a { min-width: 0; color: #d0d0d7; overflow-wrap: anywhere; }
.log-commits { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.log-empty { color: var(--muted); line-height: 1.8; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 25px 0 33px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.8; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-200%); padding: 12px 16px; background: var(--surface); border: 2px solid #fff; }
.skip-link:focus { transform: translateY(0); }

@media (max-width: 700px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 7px; padding: 20px 0; }
  .header-links { width: 100%; gap: 22px; }
  .language-links { margin-left: auto; }
  .hero { padding-top: 49px; }
  .log-day { grid-template-columns: 1fr; gap: 17px; margin-bottom: 40px; }
  .log-day h3 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .project-note { grid-template-columns: 1fr; gap: 10px; }
  .stage { justify-self: start; }
  .desktop-break { display: none; }
}

@media (max-width: 420px) {
  .page { padding: 0 20px; }
  h1 { font-size: clamp(2.9rem, 13vw, 3.8rem); }
  .header-links { gap: 16px; font-size: 11px; }
  .introduction { font-size: 15px; }
  .document-card { padding: 23px; }
  .document-card h2 { font-size: 26px; }
  .research-log { margin-top: 53px; }
}
