:root{color-scheme:light;--ink:#29241f;--muted:#988570;--line:#d9c6ae}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#fcfbf9;color:var(--ink);font-family:Georgia,"Times New Roman","Songti SC",SimSun,serif;display:grid;place-items:center;padding:60px 40px}a{color:inherit;text-decoration:none}.paper{width:min(1120px,100%);padding:76px 54px 32px;border-radius:28px;position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 20% 0%,#fffcf588,transparent 65%),radial-gradient(ellipse at 90% 90%,#d1bea750,transparent 55%),linear-gradient(112deg,#ede0ce,#f7eee1 48%,#efe2d3);box-shadow:0 18px 60px #50381a06}.paper:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.22;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%238e7354' filter='url(%23n)' opacity='.3' d='M0 0h180v180H0z'/%3E%3C/svg%3E");mix-blend-mode:multiply}header{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:67px}.name{font-size:36px;font-weight:bold;letter-spacing:5px}.edition{color:var(--muted);font:10px Arial,sans-serif;letter-spacing:1.8px}section{border-top:1px solid var(--line);padding:35px 0;display:grid;grid-template-columns:180px 1fr;gap:32px;align-items:baseline}h1,h2{font-size:19px;margin:0;white-space:nowrap;letter-spacing:-.5px}h1 em,h2 em{font-weight:normal;margin-right:5px}.entries{display:flex;flex-wrap:wrap;align-items:baseline;gap:14px 0}.entry{font-family:inherit;font-size:14px;line-height:1.65;position:relative;display:inline-block;padding:0 19px;background:none;border:0;color:inherit;text-align:left}.entry:first-child{padding-left:0}.entry+.entry:before{content:"";height:11px;width:1px;background:#bfa78a;position:absolute;left:0;top:6px}a.entry[href]{cursor:pointer}a.entry[href]:hover{color:#856542;text-decoration:underline;text-underline-offset:5px}.placeholder{color:#a79581;font-size:12px}.link-arrow{font-size:11px;margin-left:7px;color:#9e8568}h3{font-size:21px;font-weight:normal;margin:14px 0 12px}footer{display:flex;justify-content:space-between;gap:20px;margin-top:76px;color:#a18c75;font-size:9px;letter-spacing:1px}footer span:last-child{letter-spacing:2px}a:focus-visible,button:focus-visible{outline:1px solid #856542;outline-offset:6px}@media(min-width:1200px){body{padding-top:100px;padding-bottom:100px}}@media(max-width:900px){.paper{padding:56px 35px 28px}section{grid-template-columns:145px 1fr;gap:20px}.entry{padding:0 13px;font-size:13px}.edition{font-size:8px}h1,h2{font-size:17px}}@media(max-width:600px){body{padding:25px 16px;place-items:start center}.paper{padding:40px 25px 25px;border-radius:22px;min-height:560px}header{margin-bottom:45px;align-items:start}.name{font-size:30px}.edition{max-width:95px;line-height:1.8;text-align:right}section{display:block;padding:28px 0}h1,h2{margin-bottom:22px}.entries{gap:15px 0}.entry{font-size:14px}footer{margin-top:65px;font-size:8px;line-height:1.8}footer span:first-child{max-width:150px}footer span:last-child{text-align:right;max-width:90px}}
/* Two complete scenes; the glass is a separate, scroll-driven foreground layer. */
html{scroll-behavior:smooth;scroll-padding-top:0}body{display:block;padding:0;background:#fcfbf9}.scene{position:relative;min-height:100svh}.scene-index{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:24px 28px;isolation:isolate;background:radial-gradient(ellipse at 50% 60%,#f1ebe1 0%,#fcfbf9 70%)}.scene-index>.paper{flex:none}.scroll-cue{display:inline-flex;align-items:center;gap:12px;font:10px Arial,sans-serif;letter-spacing:1.5px;color:#75624d}.scroll-cue span{font-size:20px}.scene-about{display:block;overflow:hidden;background:#1b2837;color:#eeeae0;padding:58px 54px 28px;isolation:isolate}.scene-about:before{content:"";position:absolute;z-index:-1;inset:0;background:radial-gradient(ellipse at 85% 25%,#45606d44,transparent 55%),linear-gradient(135deg,#24334644,transparent 60%)}.about-wrap{max-width:1012px;margin:auto;min-height:calc(100svh - 86px);display:flex;flex-direction:column}.about-top,.about-bottom{display:flex;justify-content:space-between;gap:20px;color:#a0b0bc;font:10px Arial,"Microsoft YaHei",sans-serif;letter-spacing:1.5px}.about-top{padding-bottom:28px;border-bottom:1px solid #b2c1ce33}.about-main{display:grid;grid-template-columns:1fr 1.1fr;gap:65px;padding:70px 0;flex:1;align-content:center}.about-kicker{font:11px Arial,"Microsoft YaHei",sans-serif;letter-spacing:3px;color:#99aaa9}.about-heading h2{font-size:clamp(42px,5vw,66px);font-weight:normal;line-height:1.1;letter-spacing:-2px;margin:27px 0 31px}.about-heading h2 span{color:#a8bfae}.about-signature{font-size:11px;letter-spacing:2px;color:#9caaa9}.bio{font-family:"Microsoft YaHei",sans-serif;font-size:15px;font-weight:300;line-height:2.15;color:#d0d7db;margin:0 0 34px}.about-body h3{font:10px Arial,sans-serif;letter-spacing:1.8px;color:#a0b0bc;margin:0 0 17px}.about-body h3 span{font-size:10px;letter-spacing:1px;margin-left:12px;color:#7d919f}.focus ul{padding:0;margin:0 0 33px;list-style:none;display:flex;flex-wrap:wrap;gap:10px 20px}.focus li{font-size:15px;color:#dbe1df}.focus li:before{content:"·";color:#91a998;margin-right:8px}.contact a{display:flex;align-items:center;gap:20px;font-size:14px;padding:12px 0;border-bottom:1px solid #b2c1ce22}.contact a>span{color:#98aab6;font:10px Arial,sans-serif;width:42px}.contact b{margin-left:auto;font-weight:normal;color:#a4bcaf}.contact a:hover{color:#b3cdbb}.about-bottom{border-top:1px solid #b2c1ce33;padding-top:24px;font-size:9px;line-height:1.8}.about-bottom>a:hover{color:#fff}@media(max-width:900px){.scene-about{padding:45px 35px 25px}.about-main{gap:35px}.about-heading h2{font-size:46px}.bio{font-size:14px}}@media(max-width:600px){.scene-index{padding:16px}.scene-index .paper{min-height:0}.scene-about{padding:38px 26px 24px}.about-main{grid-template-columns:1fr;gap:34px;padding:40px 0}.about-heading h2{font-size:46px;margin:20px 0}.about-top{font-size:8px;letter-spacing:1px}.about-body h3{font-size:9px}.about-wrap{min-height:calc(100svh - 62px)}.about-bottom{font-size:8px;letter-spacing:.5px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.glass-transition{display:none!important}}


.scene-index footer{justify-content:flex-end}
.scene-about{padding-block:clamp(22px,5svh,58px)}
.about-wrap{min-height:0}
.about-main{flex:none;padding-block:clamp(24px,9svh,86px) 0}
.about-bottom{justify-content:flex-end;border-top:0;padding-top:clamp(20px,6svh,54px)}
@media (max-height:650px) and (min-width:601px){
  .about-top{padding-bottom:14px}
  .bio,.focus ul{margin-bottom:18px}
  .about-body h3{margin-bottom:10px}
  .contact a{padding-block:8px}
}
.about-heading h2{font-family:"Songti SC","Noto Serif CJK SC",SimSun,serif;letter-spacing:.06em}
.scene-index .paper{filter:blur(var(--scene-blur,0px))}
.scene-about .about-wrap{filter:blur(var(--scene-blur,0px))}
.glass-transition{
  position:fixed;z-index:20;pointer-events:none;inset-inline:0;
  top:var(--seam,100%);height:clamp(72px,18vh,160px);
  transform:translateY(-50%);visibility:hidden;opacity:0;
  backdrop-filter:blur(11px) saturate(1.12);
  background:linear-gradient(to bottom,transparent 43%,#d1e4f31a 49%,#d1e4f336 50%,#17243729 52%,transparent 61%);
  mask-image:linear-gradient(transparent,#000 44%,#000 56%,transparent);
}
@media(max-height:640px) and (min-width:601px){
  .scene-index .paper{padding-top:42px}
  .scene-index header{margin-bottom:36px}
  .scene-index section{padding-block:22px}
  .scene-index footer{margin-top:28px}
}


@media (min-width:601px){
  .about-wrap{
    min-height:calc(100svh - 2 * clamp(22px,5svh,58px));
  }
  .about-main{
    margin-top:auto;
    padding-top:clamp(24px,5svh,58px);
  }
  .about-bottom{
    margin-bottom:auto;
    padding-top:clamp(20px,4svh,40px);
  }
}

/* First-screen spacing follows the viewport height. */
.scene-index > .paper {
  padding-block: clamp(42px, 9svh, 76px) clamp(34px, 7svh, 52px);
}
.scene-index .paper > header {
  margin-bottom: clamp(34px, 8svh, 64px);
}
.scene-index .paper > section {
  padding-block: clamp(25px, 5.8svh, 42px);
}
.scene-index .paper > footer {
  margin-top: clamp(24px, 6svh, 52px);
}
@media (max-width: 600px) {
  .scene-index > .paper {
    padding-block: clamp(32px, 6svh, 48px) 30px;
  }
  .scene-index .paper > header {
    margin-bottom: 36px;
  }
  .scene-index .paper > section {
    padding-block: 26px;
  }
  .scene-index .paper > footer {
    margin-top: 28px;
  }
}

#projects button.entry { cursor: pointer; }
#projects button.entry:hover { color: #856542; text-decoration: underline; text-underline-offset: 5px; }
.project-dialog {
  position: fixed;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #d9c6ae;
  border-radius: 20px;
  background: #fbf5ebed;
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 16px 55px #35251424;
}
.project-dialog[open] { animation: project-in 190ms ease-out; }
.project-dialog::backdrop { background: #34271826; }
html:has(.project-dialog[open]) { overflow: hidden; }
.project-label { margin: 0; color: #836e58; font: 11px/1.5 Arial, sans-serif; letter-spacing: .08em; }
.project-dialog h2 { margin: 22px 0 14px; }
#project-description p { margin: 0 0 12px; font: 15px/1.85 "Microsoft YaHei", sans-serif; color: #5b5045; }
.project-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #75624d;
  font-size: 23px;
  cursor: pointer;
}
.project-close:hover { background: #e9ddcc; }
.project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #d9c6ae;
}
.project-actions a:hover { text-decoration: underline; }
@keyframes project-in {
  from { opacity: 0; filter: blur(4px); }
  to { opacity: 1; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .project-dialog[open] { animation: none; }
}
