:root {
  color-scheme: light;
  --paper: #f1f2f3;
  --ink: #28343e;
  --body: #4f606b;
  --blue: #496e89;
  --rule: #d0d6da;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
h1,h2,p { margin: 0; }
a { color: inherit; }
button,input,textarea { font: inherit; color: inherit; }
button,summary { cursor: pointer; }
button { background: transparent; }
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}
[hidden] { display: none !important; }
.skip { position: absolute; z-index: 4; inset: 8px auto auto 14px; transform: translateY(-160%); background: var(--paper); padding: 8px 12px; }
.skip:focus { transform: none; }
.frame { width: min(1120px, calc(100% - 100px)); margin-inline: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.masthead { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; min-height: 82px; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; justify-self: start; align-items: center; text-decoration: none; gap: 8px; white-space: nowrap; }
.brand svg { width: 27px; height: 24px; color: var(--blue); }
.brand .latin { font-size: 1.36rem; font-weight: 680; letter-spacing: -.065em; }
.brand .latin b { color: var(--blue); font-weight: inherit; }
.brand-cn { font-size: 1.06rem; font-weight: 550; letter-spacing: .04em; }
nav { display: flex; align-items: center; gap: clamp(13px,2.3vw,35px); }
nav a { display: inline-grid; place-items: center; position: relative; min-width: 43px; height: 46px; font-size: .97rem; text-decoration: none; letter-spacing: .04em; }
nav a[aria-current],nav a:hover { color: var(--blue); }
nav a[aria-current] { font-weight: 640; }
nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; height: 2px; width: 19px; background: var(--blue); }
#manage { justify-self: end; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 5px 0 5px 10px; font-size: .875rem; color: var(--body); border: 0; }
#manage:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
#manage svg { width: 15px; height: 15px; }
main { flex: 1; min-width: 0; }
main:focus { outline: none; }
.spread { display: grid; grid-template-columns: 45% minmax(0,1fr); align-items: center; padding-block: clamp(65px,7.2vw,102px) clamp(54px,6vw,85px); }
.front-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--blue); font-size: .875rem; letter-spacing: .13em; white-space: pre-line; }
.eyebrow::before { content: ""; width: 26px; flex: none; height: 1px; background: #7d95a6; }
.display { color: #27323b; font: 620 clamp(44px, 4.75vw, 68px)/1.2 var(--sans); letter-spacing: -.055em; white-space: pre-line; overflow-wrap: anywhere; }
.accent-ai { font-weight: 600; color: var(--blue); }
.lede, .work-note, .entry-copy, .bio-row p, .page-intro p, .thought { white-space: pre-line; overflow-wrap: anywhere; }
.lede { max-width: 28em; margin-top: 23px; font-size: 1rem; line-height: 1.95; color: var(--body); }
.window-study { display: block; justify-self: end; width: 100%; height: auto; max-width: 670px; }
.paper-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; border-top: 1px solid var(--rule); padding-block: 32px clamp(46px,5vw,72px); }
.paper-notes h2 { color: var(--blue); font-size: .875rem; line-height: 1.6; letter-spacing: .08em; font-weight: 550; }
.thought { margin-top: 12px; font-size: clamp(21px,1.75vw,26px); line-height: 1.65; letter-spacing: .008em; }
.work-note { max-width: 29em; font-size: 1rem; margin-top: 13px; line-height: 1.95; color: var(--body); }
.frame > footer { border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 21px 0 25px; color: #677783; font-size: .82rem; line-height: 1.7; }
.frame > footer [lang=en] { letter-spacing: .055em; }
.interior { padding-block: clamp(45px,5vw,76px) clamp(64px,7vw,102px); }
.page-intro { position: relative; isolation: isolate; padding: 0 0 36px; }
.page-intro::after { content: ""; position: absolute; z-index: -1; pointer-events: none; top: -22px; bottom: 0; right: 0; width: 40%; max-width: 350px; background: radial-gradient(ellipse at 55% 50%,#dbe7eb82,transparent 67%); }
.page-intro h1 { font: 610 clamp(38px, 3.65vw,55px)/1.22 var(--sans); letter-spacing: -.05em; }
.page-intro p { margin-top: 18px; max-width: 39em; font-size: 1rem; line-height: 1.9; color: var(--body); }
.folio,.bio { border-top: 1px solid var(--rule); }
.folio-item,.bio-row { border-bottom: 1px solid var(--rule); }
.folio-item summary { display: grid; grid-template-columns: minmax(0,1fr) auto 16px; gap: 16px; align-items: center; list-style: none; padding: 22px 3px 22px 0; }
summary::-webkit-details-marker { display: none; }
.entry-name, .bio-row h2 { font-size: clamp(20px,1.8vw,25px); font-weight: 550; letter-spacing: -.025em; overflow-wrap: anywhere; }
.entry-type { max-width: 16em; overflow-wrap: anywhere; color: var(--body); font-size: .875rem; }
.disclosure { justify-self: center; width: 8px; height: 8px; border-style: solid; border-color: var(--blue); border-width: 0 1.25px 1.25px 0; transform: translateY(-2px) rotate(45deg); }
details[open] .disclosure { transform: translateY(2px) rotate(225deg); }
summary:hover .entry-name { color: var(--blue); }
.entry-copy,.bio p,.no-entries { color: var(--body); font-size: 1rem; line-height: 1.95; }
.entry-copy { padding-bottom: 25px; max-width: 41em; }
.no-entries { padding: 25px 0; }
.bio-row { display: grid; grid-template-columns: 30% minmax(0,1fr); gap: 20px; padding: 25px 0; }
.vacant { color: #64737b; }
.notice { position: fixed; bottom: 17px; left: 50%; transform: translateX(-50%); color: var(--paper); background: #314c60; padding: 9px 18px; border-radius: 5px; font-size: .875rem; z-index: 5; }
.notice:empty { display: none; }
.editor-dialog { inset: 0 0 0 auto; margin: 0; width: min(490px,100%); height: 100%; max-height: 100%; max-width: 100%; padding: 0; background: var(--paper); color: var(--ink); border: none; border-left: 1px solid #c7d1d5; box-shadow: -12px 0 72px #243f520e; }
.editor-dialog::backdrop { background: #24354133; }
body:has(.editor-dialog[open]) { overflow: hidden; }
.editor-form { height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.editor-header,.editor-footer { padding: 24px 30px; display: flex; align-items: center; }
.editor-header { justify-content: space-between; border-bottom: 1px solid var(--rule); }
.editor-header h2 { font-size: 1.28rem; font-weight: 640; letter-spacing:-.02em; }
.editor-help { margin-top: 6px; font-size: .875rem; color: var(--body); }
.editor-close { border: 0; color: var(--body); width: 39px; height: 39px; font-size: 1.6rem; font-weight: 350; }
.editor-body { min-height: 0; overflow-y: auto; padding: 22px 30px; overscroll-behavior: contain; }
.editor-field { display: block; margin-bottom: 16px; }
.editor-field > span { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 550; }
.editor-field textarea,.editor-field input { display:block; width:100%; padding: 8px 10px; border: 1px solid #bccbd1; background:#f9fafb; border-radius: 4px; font-size: 1rem; line-height: 1.6; }
.editor-field textarea { resize: vertical; min-height: 54px; }
.editor-entry { min-width: 0; margin: 14px 0; padding: 14px 14px 10px; border: 1px solid var(--rule); border-radius: 5px; }
.editor-entry legend { font-weight: 580; font-size: .94rem; color: var(--blue); padding-inline: 5px; }
.editor-footer { border-top: 1px solid var(--rule); justify-content: flex-end; gap: 10px; padding-block: 15px; }
.editor-entry-actions { display: flex; justify-content: flex-end; }
.editor-remove,.editor-add,.editor-cancel,.editor-save { min-height: 39px; border-radius: 4px; padding: 7px 14px; font-size: .875rem; border: 1px solid #bac8ce; }
.editor-add,.editor-cancel { color: var(--blue); }
.editor-remove { color: #7c5249; border: 0; min-height: 32px; padding: 4px 0 4px 10px; }
.editor-save { background: #41667f; border-color: #41667f; color: white; font-weight: 550; }
.editor-save:hover { background: #33566e; }
.editor-cancel:hover,.editor-add:hover { background: #ebf0ef; }
.editor-message { font-size: .875rem; line-height: 1.6; color: #755242; }
.editor-message:not(:empty) { margin-top: 10px; }
@media(max-width:850px) {
  .frame { width: calc(100% - 54px); }
  .masthead { min-height: 76px; }
  .spread { grid-template-columns: 48% minmax(0,1fr); padding-block: 55px 47px; }
}
@media(max-width:690px) {
  .frame { width: calc(100% - 40px); }
  .masthead { grid-template-columns: 1fr 1fr; gap: 1px; padding-top: 11px; min-height: auto; }
  .brand { grid-row: 1; grid-column: 1; }
  .brand svg { width: 22px; }
  .brand .latin { font-size:1.22rem; }
  .brand-cn { font-size: .99rem; }
  #manage { grid-row: 1; grid-column: 2; min-height: 40px; }
  nav { grid-row: 2; grid-column: 1/-1; justify-self: center; gap: clamp(7px,3.8vw,24px); }
  nav a { height: 44px; font-size:.91rem; }
  nav a[aria-current]::after { bottom: -1px; }
  .spread { grid-template-columns: 1fr; padding: 38px 0 21px; gap: 17px; }
  .eyebrow { margin-bottom: 14px; font-size: .875rem; }
  .display { font-size: clamp(38px,10.8vw,56px); }
  .lede { margin-top: 16px; line-height: 1.82; }
  .window-study { width: min(100%,430px); justify-self: center; }
  .paper-notes { grid-template-columns: 1fr; gap: 22px; padding: 24px 0 33px; }
  .thought, .work-note { margin-top: 6px; }
  .frame > footer { padding: 17px 0 20px; font-size: .75rem; flex-wrap: wrap; }
  .page-intro { padding-bottom: 24px; }
  .bio-row { display: block; padding-block: 20px; }
  .bio-row h2 { margin-bottom: 8px; }
  .entry-type { max-width: 7em; }
  .editor-header,.editor-body,.editor-footer { padding-inline: 20px; }
}
@media(max-width:350px) { .frame { width: calc(100% - 30px); } nav { gap: 6px; } }
