@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Lora:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@400;500;600&display=swap');

:root{--bg:#f1f5ee;--text:#173124;--muted:#526959;--line:#cbd7c9;--orange:#285b3b;--on-accent:#fff;--logo-disc:#1a472a;--card:#e5ece1;--art:#cdd9c7;--paper:#f4f7f0;--font:"DM Sans","PingFang SC","Microsoft YaHei",sans-serif;color-scheme:light}
:root[data-theme="dark"]{--bg:#0c1b14;--text:#e6ebe3;--muted:#b5c1b1;--line:#344b3c;--orange:#9cbea5;--on-accent:#0c1b14;--logo-disc:#367148;--card:#142c1e;--art:#1b3426;--paper:#e0e7dc;color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:112px}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit}::selection{background:var(--orange);color:var(--on-accent)}a,button{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible{outline:3px solid var(--orange);outline-offset:6px}.wrap{width:min(1184px,calc(100% - 112px));margin-inline:auto}.site-header{height:112px;display:flex;align-items:center;border-bottom:1px solid var(--line)}.brand{font-family:"Manrope",sans-serif;font-size:39px;font-weight:800;letter-spacing:-4px;line-height:1}.brand span{font-family:var(--font);font-size:11px;letter-spacing:0;vertical-align:top;display:inline-block;margin:6px 0 0 7px}.site-header nav{display:flex;gap:35px;margin-left:auto;font-size:13px;font-weight:500}.site-header nav a:hover,.text-link:hover,.about-description a:hover{color:var(--orange)}.theme-toggle{border:1px solid var(--line);width:34px;height:34px;border-radius:50%;background:transparent;color:var(--text);margin-left:39px;cursor:pointer;font-size:21px;display:grid;place-items:center;padding:0}.theme-toggle:hover{border-color:var(--orange)}.hero{padding-top:67px;display:grid;grid-template-columns:1.12fr 1fr;column-gap:65px;align-items:center}.eyebrow{font-size:12px;letter-spacing:1.4px;line-height:1.8;font-weight:600;margin:0 0 25px;display:flex;align-items:center;gap:8px}.status-dot{width:6px;height:6px;background:var(--orange);border-radius:50%}h1{font-family:"Manrope",var(--font);font-size:clamp(70px,7.6vw,108px);font-weight:600;letter-spacing:-6px;line-height:1.04;margin:0}h1>span{display:block}.hello{font-family:var(--font);font-size:29px;letter-spacing:-.7px;line-height:1.7;margin-bottom:7px;font-weight:500}.orange{color:var(--orange)}.hero-description{font-size:14px;line-height:1.95;color:var(--muted);margin:28px 0}.button{display:inline-flex;align-items:center;gap:43px;padding:16px 22px;background:var(--text);color:var(--bg);font-size:15px;border-radius:3px;transition:background .2s,transform .2s}.button:hover{background:var(--orange);color:var(--on-accent);transform:translateY(-2px)}.hero-art{aspect-ratio:1.02;background:var(--art);position:relative;overflow:hidden;border-radius:4px;isolation:isolate}.art-bottom{position:absolute;left:28px;right:28px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;z-index:4}.art-bottom{bottom:25px;align-items:end;font-size:9px;line-height:1.6}.art-disc{width:66%;aspect-ratio:1;background:var(--logo-disc);position:absolute;top:18%;left:18%;border-radius:50%;box-shadow:inset -24px -25px 55px #0c281b30}.art-letter{position:absolute;top:12%;left:17%;font-family:Georgia,serif;font-size:clamp(160px,20vw,290px);font-style:italic;line-height:1.2;letter-spacing:-24px;color:#e9eee4;z-index:2;transform:rotate(-11deg);user-select:none}.orbit{position:absolute;width:97%;height:38%;border:1px solid #94ab98;left:2%;top:33%;border-radius:50%;z-index:3;transform:rotate(-35deg)}.orbit-two{transform:rotate(44deg);width:84%;left:9%;border-color:#e4e9e080;z-index:1}.art-spark{position:absolute;right:11%;top:16%;font-size:59px;color:var(--text);z-index:4}.art-arrow{font-size:36px;line-height:1}.hero-foot{grid-column:1/-1;display:flex;justify-content:flex-end;font-size:12px;color:var(--muted);border-bottom:1px solid var(--line);padding:44px 0 27px;margin-bottom:0}.hero-foot a{display:flex;gap:25px}.section{padding-top:50px;padding-bottom:65px;border-bottom:1px solid var(--line);scroll-margin-top:20px}.section-index{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:1.5px;color:var(--muted);margin-bottom:37px}.section-index>span+span{letter-spacing:.5px}.small-star{font-size:24px;color:var(--orange);line-height:1}.about-content{display:grid;grid-template-columns:1fr 1fr;gap:65px}h2{font-size:36px;line-height:1.4;font-weight:500;letter-spacing:-1px;margin:0}.about-description{padding-top:0;font-size:13px;line-height:2}.about-description p{margin:0 0 16px}.about-description a{border-bottom:1px solid var(--line);padding-bottom:2px}.muted{color:var(--muted)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:33px}.text-link{font-size:11px;white-space:nowrap}.text-link span{margin-left:17px}.project-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.project-card{display:block;border:1px solid var(--line);border-radius:4px;overflow:hidden;transition:transform .25s,border-color .25s}.project-card:hover{transform:translateY(-5px);border-color:var(--orange)}.project-visual{height:264px;position:relative;overflow:hidden}.notes-visual{background:#e5e7db;color:#33382c}.visual-label{position:absolute;top:21px;left:23px;font-size:8px;letter-spacing:1.3px;z-index:3}.visual-number{position:absolute;bottom:20px;right:22px;font-size:10px;z-index:3}.paper{position:absolute;width:200px;height:211px;left:50%;top:64px;border:1px solid #d0d4c4}.paper-back{background:#ced6c3;transform:translateX(-44%) rotate(11deg)}.paper-front{padding:28px 24px;background:#fafaf5;transform:translateX(-57%) rotate(-8deg);box-shadow:0 7px 15px #23301f0a}.paper-front>span{font-family:"Manrope",sans-serif;font-size:28px;font-weight:700;line-height:1.1;letter-spacing:-1.5px}.paper-rule{height:1px;background:#bbc3b0;margin-top:28px;margin-bottom:8px}.paper small{font-size:8px;letter-spacing:.4px}.painter-visual{background:#d3dcd2;color:#243e2c}.paint-shape{position:absolute;border-radius:50%}.shape-one{width:225px;height:240px;background:#4d6a53;left:11%;top:62px;transform:rotate(-25deg);border-radius:48% 52% 60% 40%}.shape-two{width:180px;height:210px;background:#8ca892;right:13%;top:60px;border-radius:55% 45% 43% 57%;transform:rotate(30deg)}.shape-three{width:145px;height:120px;background:#b6c2ad;right:21%;bottom:-54px}.paint-word{position:absolute;z-index:2;left:26%;top:83px;font-family:Georgia,serif;font-size:43px;line-height:1.1;color:#f4f6ee;letter-spacing:-2px}.paint-word em{font-size:38px}.project-info{padding:23px 25px 25px}.project-meta{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);margin-bottom:9px}.project-meta>span+span{font-size:21px;color:var(--text)}h3{font-size:21px;font-weight:500;letter-spacing:-.4px;margin:0 0 10px}.project-info p{font-size:12px;color:var(--muted);margin:0 0 22px;line-height:1.7}.repo-name{font-size:9px;border:1px solid var(--line);border-radius:3px;padding:5px 8px;color:var(--muted);letter-spacing:.2px}.contact{padding-bottom:62px}.contact-content{display:flex;justify-content:space-between;align-items:center;gap:40px}.contact .eyebrow{margin-bottom:12px;font-size:10px;letter-spacing:.6px;color:var(--muted)}.contact h2{font-size:57px;letter-spacing:-2px}.contact-link{display:flex;align-items:center;gap:55px;font-size:14px}.contact-link small{display:block;font-size:11px;color:var(--muted);margin-top:10px}.contact-arrow{width:59px;height:59px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;font-size:28px;transition:background .2s,color .2s}.contact-link:hover .contact-arrow{background:var(--orange);color:var(--on-accent);border-color:var(--orange)}footer{display:flex;justify-content:space-between;gap:20px;padding-block:26px 32px;font-size:9px;color:var(--muted)}.skip-link{position:fixed;top:-60px;left:20px;z-index:10;background:var(--text);color:var(--bg);padding:12px}.skip-link:focus{top:12px}
@media(min-width:1600px){.hero{padding-top:85px}.hero-art{max-height:510px}.hero-foot{padding-top:60px}}
@media(max-width:1000px){.wrap{width:calc(100% - 64px)}.hero{column-gap:35px}.hero-art{aspect-ratio:.88}h1{font-size:82px}.art-letter{top:22%;font-size:210px}.art-disc{top:24%}.orbit{top:38%}.about-content{gap:35px}.project-visual{height:240px}.paint-word{left:18%;font-size:39px}.paint-word em{font-size:35px}}
@media(max-width:720px){.wrap{width:calc(100% - 40px)}.site-header{height:83px}.brand{font-size:34px}.site-header nav{gap:21px;font-size:12px}.theme-toggle{margin-left:20px;width:30px;height:30px}.hero{padding-top:40px;grid-template-columns:1fr;gap:0}.eyebrow{font-size:11px;letter-spacing:1px;margin-bottom:21px}.hello{font-size:25px}h1{font-size:clamp(74px,17vw,105px);letter-spacing:-5px}.hero-description{font-size:13px;margin-block:23px}.button{padding:15px 20px}.hero-art{margin-top:38px;aspect-ratio:1.13}.art-disc{top:13%;width:64%;left:19%}.art-letter{font-size:clamp(220px,64vw,330px);top:5%;left:21%;letter-spacing:-25px}.orbit{top:30%}.art-spark{top:10%;font-size:50px}.art-bottom{left:22px;right:22px}.hero-foot{padding-top:27px;padding-bottom:25px;font-size:11px}.section{padding-block:35px 42px}.section-index{font-size:9px;margin-bottom:26px}.about-content{grid-template-columns:1fr;gap:23px}h2{font-size:30px}.about-description{font-size:13px}.about-description p:last-child{margin-bottom:0}.section-heading{align-items:start;gap:15px}.section-heading h2{font-size:28px}.text-link{font-size:9px;padding-top:12px}.text-link span{margin-left:7px}.project-grid{grid-template-columns:1fr;gap:25px}.project-visual{height:260px}.paint-word{left:25%;font-size:43px}.paint-word em{font-size:38px}.contact-content{align-items:start;flex-direction:column;gap:26px}.contact h2{font-size:47px}.contact-link{width:100%;justify-content:space-between}.contact-arrow{width:48px;height:48px}footer{font-size:8px;flex-wrap:wrap;padding-block:23px;gap:15px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}

/* Display the Chinese and English names together while preserving the fz artwork. */
h1 .name-cn{font-family:var(--font);font-size:clamp(56px,6.4vw,92px);letter-spacing:-3px;line-height:1.3}h1 .name-en{font-size:clamp(36px,5vw,64px);letter-spacing:-3px;line-height:1.3;margin-top:8px}
@media(max-width:720px){h1 .name-cn{font-size:clamp(56px,14vw,86px)}h1 .name-en{font-size:clamp(36px,9.5vw,64px);letter-spacing:-2px}}

.header-actions{display:flex;align-items:center;gap:12px;margin-left:30px}.header-actions .theme-toggle{margin-left:0}.language-toggle{background:transparent;border:0;color:var(--text);font-size:11px;font-weight:600;cursor:pointer;padding:9px 3px;min-width:30px}.language-toggle:hover{color:var(--orange)}.about-description .bio-detail{font-size:12px;line-height:1.9;color:var(--muted);margin-bottom:10px}.bio-github{display:inline-block;margin-top:6px;font-size:11px}.essays .section-heading{margin-bottom:16px}.essays-intro{font-size:13px;color:var(--muted);line-height:1.8;margin:0 0 26px}.essays-empty{display:flex;align-items:center;gap:22px;border-top:1px solid var(--line);padding:27px 0 5px}.essay-mark{font-size:28px;color:var(--orange)}.essays-empty p{font-size:14px;margin:0 0 7px}.essays-empty div>span{font-size:11px;line-height:1.8;color:var(--muted)}.social-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}.social-links>a,.social-pending{border:1px solid var(--line);padding:10px 14px;border-radius:3px;font-size:11px;display:inline-flex;align-items:center;gap:13px}.social-links>a:hover{border-color:var(--orange);color:var(--orange)}.social-pending{color:var(--muted)}.social-pending small{font-size:9px;opacity:.75}.sponsor{margin-top:30px;padding-top:22px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:22px}.sponsor p{font-size:12px;margin:0 0 5px}.sponsor div>span{font-size:9px;color:var(--muted);letter-spacing:1px}.sponsor-pending{font-size:10px;color:var(--muted);border:1px dashed var(--line);border-radius:3px;padding:13px 17px}html[lang="en"] .contact h2{font-size:46px}html[lang="en"] .section-heading h2{font-size:32px}
@media(max-width:720px){.site-header{display:grid;grid-template-columns:1fr auto;height:auto;padding-top:22px;padding-bottom:15px;row-gap:15px}.site-header .brand{grid-column:1;grid-row:1;width:max-content}.header-actions{grid-column:2;grid-row:1;margin-left:0;gap:14px}.site-header nav{grid-column:1/-1;grid-row:2;margin:0;justify-content:space-between;gap:15px;font-size:12px}.sponsor{gap:15px}.sponsor-pending{font-size:9px;padding:11px}.social-links{gap:9px}.social-links>a,.social-pending{padding:9px 11px}html[lang="en"] .contact h2{font-size:38px}html[lang="en"] .section-heading h2{font-size:28px}}

/* Compact profile details and a quiet row of social icons. */
h1.profile-name{display:flex;align-items:baseline;flex-wrap:wrap;font-family:var(--font);font-size:clamp(42px,4.6vw,64px);letter-spacing:-2px;line-height:1.3;font-weight:600}h1.profile-name>span{display:inline}.hero-description{margin:20px 0 24px;line-height:1.85;font-size:18px}.profile-socials{display:flex;align-items:center;gap:18px;margin-bottom:28px;color:var(--muted)}.follow-label{font-size:14px;margin-right:1px}.social-icon{display:inline-flex;align-items:center;justify-content:center;width:25px;height:28px;color:var(--muted)}a.social-icon:hover{color:var(--orange)}.social-unavailable{opacity:.42;cursor:default}.brand-icon{display:block;width:24px;height:24px;background:currentColor;mask:var(--icon) center/contain no-repeat;-webkit-mask:var(--icon) center/contain no-repeat}.icon-xiaohongshu{--icon:url('assets/xiaohongshu.svg')}.icon-bilibili{--icon:url('assets/bilibili.svg')}.icon-linkedin{--icon:url('assets/linkedin.svg')}.icon-github{--icon:url('assets/github.svg')}.language-toggle{font-size:11px;min-width:48px}html[lang="en"] .paper-front>span{font-size:27px;display:block;max-width:140px}html[lang="zh-CN"] .paint-word{font-style:normal;letter-spacing:1px}html[lang="zh-CN"] .paint-word em{font-style:normal}.hero-art .art-bottom{font-size:9px}
@media(max-width:720px){h1.profile-name{font-size:clamp(40px,10.5vw,58px);letter-spacing:-1.5px}.hero-description{font-size:16px;line-height:1.9}.profile-socials{gap:17px;margin-bottom:25px}.header-actions{gap:10px}}

.icon-instagram{--icon:url('assets/instagram.svg')}
.icon-zhihu{--icon:url('assets/zhihu.svg')}

.contact-emails{display:flex;flex-direction:column;gap:13px;font-size:15px}.contact-emails>span{font-size:10px;color:var(--muted);margin-bottom:1px}.contact-emails a{overflow-wrap:anywhere}.contact-emails a>span{margin-left:18px;color:var(--muted)}.contact-emails a:hover{color:var(--orange)}

/* Editorial serif typography inspired by Claude's reading experience. */
:root{--font-reading:"Lora","Noto Serif SC","Songti SC","STSong",Georgia,serif}
body{font-family:var(--font-reading)}
h1.profile-name{font-family:var(--font-reading);font-weight:400;letter-spacing:-.035em;line-height:1.35}
h2,h3{font-family:var(--font-reading);font-weight:400;letter-spacing:-.025em}
.hero-description{font-family:var(--font-reading);line-height:1.95}
.about-description{font-family:var(--font-reading);font-size:14px;line-height:2}
.about-description .bio-detail{font-size:12px;line-height:2}
.essays-intro{font-size:14px;line-height:1.95}
.essays-empty p{font-family:var(--font-reading);font-size:15px}
.project-info p{line-height:1.85}
.site-header,.button,.eyebrow,.hero-art,.hero-foot,.section-index,.text-link,.project-meta,.repo-name,.visual-label,.visual-number,.paper small,.profile-socials,.bio-github,.contact-emails,.sponsor,.essays-empty div>span,footer{font-family:var(--font)}
@media(max-width:720px){h1.profile-name{letter-spacing:-.025em}.about-description{font-size:13px}.about-description .bio-detail{font-size:12px}}

/* Give Chinese serif text a fuller, more substantial stroke weight. */
html[lang="zh-CN"] h1.profile-name,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3{font-weight:600;letter-spacing:-.02em}
html[lang="zh-CN"] .hero-description,
html[lang="zh-CN"] .about-description,
html[lang="zh-CN"] .essays-intro,
html[lang="zh-CN"] .essays-empty p,
html[lang="zh-CN"] .project-info p{font-weight:500}

.art-number{position:absolute;right:24%;bottom:24%;font-family:Georgia,serif;font-style:italic;font-size:clamp(48px,7.5vw,96px);line-height:1;letter-spacing:-3px;color:#e9eee4;transform:rotate(-11deg);z-index:4;user-select:none}
@media(max-width:720px){.art-number{right:27%;top:22%;bottom:auto;font-size:48px;letter-spacing:-2px}}

/* Let the introduction occupy the left column at the same scale as the artwork. */
.hero-copy{min-width:0}
.hero-copy .eyebrow{font-size:16px;margin-bottom:30px}
h1.profile-name{font-size:clamp(88px,12vw,160px);line-height:1.15;flex-wrap:nowrap}
html[lang="en"] h1.profile-name{font-size:clamp(60px,8vw,106px)}
.hero-description{font-size:24px;line-height:1.7;margin:26px 0 30px}
.profile-socials{gap:22px;margin-bottom:32px}
.follow-label{font-size:18px}
.social-icon{width:30px;height:34px}
.brand-icon{width:28px;height:28px}
.hero-copy .button{font-size:18px;padding:20px 28px;gap:70px}
.hero-foot{font-size:14px}
@media(max-width:720px){
  .hero-copy .eyebrow{font-size:13px;margin-bottom:24px}
  h1.profile-name{font-size:clamp(72px,26vw,112px)}
  html[lang="en"] h1.profile-name{font-size:clamp(48px,15.5vw,90px)}
  .hero-description{font-size:20px;line-height:1.7;margin:24px 0 26px}
  .profile-socials{gap:16px;margin-bottom:28px}
  .follow-label{font-size:16px}
  .social-icon{width:26px;height:30px}
  .brand-icon{width:26px;height:26px}
  .hero-copy .button{font-size:17px;padding:18px 24px;gap:48px}
  .hero-foot{font-size:12px}
}

.hero-copy .profile-socials{margin-bottom:22px}
.hero-contacts{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:20px;row-gap:9px;font-family:var(--font);font-size:18px;line-height:1.5;margin-bottom:28px;scroll-margin-top:30px}
.hero-contacts .contact-label{font-size:13px;color:var(--muted);padding-top:4px}
.hero-contacts .email-label{grid-row:span 2}
.hero-contacts a{width:fit-content;overflow-wrap:anywhere}
.hero-contacts a:hover{color:var(--orange)}
.hero-contacts a>span{color:var(--muted);margin-left:10px}
.wechat-id{user-select:all}
.about-content{grid-template-columns:.7fr 1.3fr}
.about-description{font-size:22px;line-height:1.85}
.about-description p{margin-bottom:24px}
.about-description .bio-detail{font-size:18px;line-height:1.9;margin-bottom:18px}
.bio-github{font-size:16px}
@media(max-width:720px){
  .hero-contacts{font-size:16px;column-gap:16px;margin-bottom:26px}
  .hero-contacts .contact-label{font-size:12px;padding-top:3px}
  .about-content{grid-template-columns:1fr}
  .about-description{font-size:20px;line-height:1.85}
  .about-description .bio-detail{font-size:17px;line-height:1.85}
  .bio-github{font-size:15px}
}

.project-info{padding:28px 30px 30px}
.project-meta{font-size:14px;margin-bottom:14px}
.project-info h3{font-size:30px;line-height:1.35;margin-bottom:16px}
.project-info p{font-size:18px;line-height:1.8}
.repo-name{display:inline-block;font-size:13px;line-height:1.5;padding:7px 10px;overflow-wrap:anywhere}
@media(max-width:720px){
  .project-info{padding:24px}
  .project-meta{font-size:13px}
  .project-info h3{font-size:26px}
  .project-info p{font-size:17px}
  .repo-name{font-size:12px}
}

.education{display:grid;grid-template-columns:.45fr 1.55fr;gap:36px;margin-top:32px;padding-top:28px;border-top:1px solid var(--line)}
.education h3{font-size:32px;line-height:1.4;margin:0}
.education-list{display:grid;grid-template-columns:minmax(0,1fr) max-content;column-gap:24px}
.education-row{display:grid;grid-template-columns:subgrid;grid-column:1/-1;align-items:baseline;gap:6px 24px;padding:0 0 16px}
.education-row+.education-row{border-top:1px solid var(--line);padding:16px 0 0}
.education-row p{font-size:28px;line-height:1.4;margin:0}
.education-dates{font-variant-numeric:tabular-nums;white-space:nowrap;font-family:var(--font);font-size:19px;line-height:1.5;color:var(--muted)}
@media(max-width:720px){
  .education{grid-template-columns:1fr;gap:18px;margin-top:28px;padding-top:24px}
  .education h3{font-size:28px}
  .education-list{display:block}
  .education-row{display:flex;align-items:flex-start;flex-direction:column}
  .education-row p{font-size:24px}
  .education-dates{font-size:17px}
}

.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.hero-copy .button-secondary{background:transparent;color:var(--text);border:1px solid var(--line);gap:24px}
.hero-copy .button-secondary:hover{border-color:var(--orange);color:var(--orange)}
.hero-copy .button[hidden],.gallery-slide[hidden],.gallery-controls[hidden]{display:none}
.hero-gallery{position:relative;min-width:0;aspect-ratio:1.02;border-radius:4px;overflow:hidden;background:var(--art)}
.hero-gallery .gallery-slide{position:absolute;inset:0;width:100%;height:100%;margin:0;max-height:none;aspect-ratio:auto}
.photo-slide img{display:block;width:100%;height:100%;object-fit:cover}
.gallery-controls{position:absolute;z-index:5;right:18px;bottom:18px;display:flex;align-items:center;gap:12px;padding:7px;border-radius:24px;background:#0c1b14d9;color:#e9eee4}
.gallery-controls button{display:grid;place-items:center;cursor:pointer;border:0;background:transparent;color:inherit;padding:0;width:32px;height:32px;font-size:20px;border-radius:50%}
.gallery-controls button:hover{background:#ffffff24}
.gallery-dots{display:flex;gap:8px}
.gallery-dots button{width:8px;height:8px;background:#e9eee466}
.gallery-dots button[aria-current="true"]{background:#e9eee4}
footer{font-size:12px;align-items:center;flex-wrap:wrap}
.last-updated{white-space:nowrap}
@media(max-width:1000px){.hero-gallery{aspect-ratio:.88}}
@media(max-width:720px){.hero-gallery{margin-top:38px;aspect-ratio:1.13}footer{font-size:11px}.gallery-controls{right:12px;bottom:12px}}

.has-photos .art-arrow{display:none}

/* Keep every photograph complete, with captions and navigation below the media. */
.has-photos .gallery-slide{height:calc(100% - 104px);bottom:104px}
.photo-slide img,.photo-slide video{display:block;width:100%;height:100%;object-fit:contain;background:var(--art)}
.gallery-caption{position:absolute;bottom:56px;left:16px;right:16px;margin:0;text-align:center;color:var(--text);font-family:var(--font);font-size:15px;line-height:1.5}
.gallery-controls{right:auto;left:50%;bottom:10px;transform:translateX(-50%);max-width:calc(100% - 24px);gap:10px;color:var(--text);background:transparent}
.gallery-controls>.gallery-prev,.gallery-controls>.gallery-next{flex-shrink:0}
.gallery-dots{min-width:0;gap:6px}
.gallery-dots button{flex-shrink:0}
.gallery-dots button{background:var(--muted);opacity:.45}
.gallery-dots button[aria-current="true"]{background:var(--text);opacity:1}
.hero-gallery:focus-visible{outline:3px solid var(--orange);outline-offset:5px}
.photography-empty{display:flex;align-items:center;gap:20px;padding:26px 0 4px;border-top:1px solid var(--line)}
.photography-mark{color:var(--orange);font-size:34px}
.photography-empty p{font-family:var(--font-reading);font-size:22px;margin:0 0 8px}
.photography-empty div>span{font-size:16px;line-height:1.8;color:var(--muted)}
.photography-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.photography-grid[hidden],.photography-empty[hidden]{display:none}
.photography-grid figure{margin:0;min-width:0}
.photography-grid img{display:block;width:100%;height:auto;border-radius:4px}
.photography-grid figcaption{font-size:15px;color:var(--muted);line-height:1.7;margin-top:12px}
@media(max-width:720px){
  .site-header nav{gap:10px;font-size:11px}
  .gallery-controls{gap:6px}
  .gallery-dots{gap:4px}
  .gallery-dots button{width:6px;height:6px}
  .hero-gallery{aspect-ratio:.82}
  .gallery-caption{font-size:14px;left:12px;right:12px}
  .photography-grid{grid-template-columns:1fr;gap:24px}
  .photography-empty p{font-size:20px}
  .photography-empty div>span{font-size:15px}
}

@media(min-width:721px){.hero-gallery{aspect-ratio:.82}}
.hero-art .art-bottom{font-size:12px}

.gallery-caption[hidden]{display:none}
.sponsor-code{--qr-paper:#f5f7ef;--qr-ink:#173124;width:300px;max-width:100%;flex-shrink:0;padding:14px 14px 18px;border:1px solid transparent;border-radius:8px;background:var(--qr-paper);text-align:center}
:root[data-theme="dark"] .sponsor-code{--qr-paper:var(--bg);--qr-ink:#f0d884;border-color:transparent}
.sponsor-code .qr-background{fill:var(--qr-paper)}
.sponsor-code .qr-modules{fill:var(--qr-ink)}
.sponsor-code svg{display:block;width:100%;height:auto}
@media(max-width:720px){.sponsor{align-items:flex-start;flex-direction:column;gap:20px}.sponsor-code{align-self:center}}

/* Full-name wordmark, sized relative to its artwork rather than the viewport. */
.hero-art{container-type:inline-size}
.hero-art .art-letter{top:42%;left:50%;font-size:20cqw;letter-spacing:-.055em;line-height:1;white-space:nowrap;transform:translate(-50%,-50%) rotate(-11deg)}
.hero-art .art-number{top:auto;right:23%;bottom:22%;font-size:18cqw;letter-spacing:-.035em}
.site-header .brand{font-size:30px;letter-spacing:-1.6px}
.site-header .brand span{font-size:9px;margin-left:4px}
@media(max-width:720px){.site-header .brand{font-size:27px;letter-spacing:-1.4px}}

.sponsor>div:first-child p{font-size:26px;line-height:1.5;margin-bottom:10px}
.sponsor>div:first-child>span{font-size:17px;line-height:1.6;letter-spacing:0}
@media(max-width:720px){.sponsor>div:first-child p{font-size:23px}.sponsor>div:first-child>span{font-size:16px}}

:root:not([data-theme="dark"]) .hero-gallery{--art:#355540}
.hero-gallery,.hero-art .art-spark{color:#e9eee4}
.gallery-caption,.gallery-controls{color:inherit}
.gallery-dots button,.gallery-dots button[aria-current="true"]{background:currentColor}
.hero-art .art-bottom{letter-spacing:0}

/* Keep the same wordmark visible, sliding it to the center as the page scrolls. */
.site-header{position:sticky;top:0;z-index:20;background:var(--bg);--brand-shift:0}
.site-header .brand{position:absolute;left:calc(50% * var(--brand-shift));top:50%;transform:translate(calc(-50% * var(--brand-shift)),-50%);font-size:calc(30px + 10px * var(--brand-shift));will-change:transform}
.site-header nav{gap:18px}
.site-header.is-scrolled{box-shadow:0 8px 18px -18px #0009}

  .site-header{display:grid;grid-template-columns:1fr auto;height:auto;padding-top:22px;padding-bottom:15px;row-gap:15px}
  .site-header .brand{grid-area:auto;top:22px;transform:translateX(calc(-50% * var(--brand-shift)))}
  .site-header .header-actions{grid-column:2;grid-row:1;margin-left:0;gap:8px}
  .site-header nav{grid-column:1/-1;grid-row:2;margin:0;justify-content:space-between;gap:15px;font-size:12px}
@media(max-width:720px){
  .site-header .brand{font-size:calc(27px + 5px * var(--brand-shift))}
  .site-header nav{gap:10px;font-size:11px}
  .site-header .language-toggle{min-width:38px}
}

@media(max-width:360px){
  .site-header .brand{font-size:calc(25px + 3px * var(--brand-shift))}
  .site-header .header-actions{gap:4px}
  .site-header .language-toggle{font-size:10px;min-width:35px}
}

/* Campus map: local controls, with map tiles requested only when visible. */
.campus-map{margin-top:30px;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:var(--card);font-family:var(--font)}
.campus-map-toolbar{display:flex;align-items:center;gap:24px;padding:16px 20px;border-bottom:1px solid var(--line)}
.campus-map-heading{font-size:17px;font-weight:600;white-space:nowrap}
.campus-map-schools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.campus-map button{color:var(--text);background:transparent;border:1px solid transparent;border-radius:4px;padding:8px 12px;cursor:pointer;font-size:13px}
.campus-map button:hover,.campus-map button[aria-pressed="true"]{border-color:var(--line);background:var(--bg)}
.campus-number{font-size:11px;margin-right:8px;color:var(--muted);font-variant-numeric:tabular-nums}
.campus-map .campus-map-reset{margin-left:auto;border-color:var(--line);white-space:nowrap}
.campus-map-stage{position:relative;isolation:isolate}
.campus-map-canvas{height:390px;background:var(--card);z-index:0}
.campus-map-canvas .leaflet-tile-pane{filter:grayscale(.8) sepia(.2) hue-rotate(35deg) saturate(.8)}
:root[data-theme="dark"] .campus-map-canvas .leaflet-tile-pane{filter:grayscale(1) invert(.92) sepia(.3) hue-rotate(75deg) saturate(1.4) brightness(.8)}
.campus-map-city{position:absolute;top:20px;right:20px;z-index:500;display:grid;gap:6px;padding:12px 14px;background:var(--bg);border:1px solid var(--line);border-radius:4px;pointer-events:none}
.campus-map-city span:first-child{font-size:11px;letter-spacing:2px;font-weight:600}
.campus-map-city span:last-child{font-family:monospace;font-size:10px;color:var(--muted)}
.campus-map-status{position:absolute;bottom:32px;left:20px;right:20px;z-index:500;width:fit-content;max-width:calc(100% - 40px);font-size:13px;line-height:1.6;margin:0;background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:8px 12px;pointer-events:none}
.campus-map-status[hidden]{display:none}
.campus-map-footer{display:flex;justify-content:space-between;gap:16px;padding:12px 20px;font-size:12px;line-height:1.6;color:var(--muted);border-top:1px solid var(--line)}
.campus-map-footer a{white-space:nowrap;color:var(--text)}
.campus-map .campus-pin{border:1px solid #e6ebe3;border-radius:50%;background:#1a472a;color:#fff;display:grid;place-items:center;box-shadow:0 0 0 6px #36714835,0 2px 7px #0c1b1430;font-family:var(--font);font-size:11px;font-weight:600}
.campus-map .leaflet-popup-content-wrapper,.campus-map .leaflet-popup-tip{background:var(--bg);color:var(--text)}
.campus-map .leaflet-popup-content{font-family:var(--font);line-height:1.6;min-width:170px}
.campus-map .leaflet-popup-content strong{display:block;font-size:15px;font-weight:600}
.campus-map .leaflet-popup-content span{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.campus-map .leaflet-control-zoom a{background:var(--bg);color:var(--text);border-color:var(--line)}
.campus-map .campus-map-canvas .leaflet-control-attribution{background:var(--bg);color:var(--muted);font-family:var(--font);font-size:10px}
.campus-map .leaflet-control-attribution a{color:var(--text)}
@media(max-width:720px){
  .campus-map-toolbar{flex-wrap:wrap;gap:12px;padding:14px}
  .campus-map-schools{order:3;flex-basis:100%;gap:6px}
  .campus-map button{padding:8px;font-size:12px}
  .campus-map-heading{font-size:16px}
  .campus-map-canvas{height:330px}
  .campus-map-city{top:12px;right:12px;padding:9px 10px}
  .campus-map-footer{padding:12px 14px;font-size:11px}
}

.inline-official-link,.about-description .inline-official-link{border-bottom:0;padding-bottom:0;text-decoration:none}.inline-official-link:hover{color:var(--orange)}

/* Current activities and a horizontally browsable record shelf. */
.now-item{border-top:1px solid var(--line);padding:22px 0 0}
.now-item h3{margin:0 0 16px;font-size:23px}
.now-item p{margin:0;color:var(--muted);font-size:18px;line-height:1.9;white-space:pre-line}
.now .section-index time{font-variant-numeric:tabular-nums}
.music-controls{display:flex;gap:10px}
.music-controls button{width:42px;height:42px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--text);font-size:22px;cursor:pointer}
.music-controls button:hover:not(:disabled){background:var(--card);border-color:var(--orange)}
.music-controls button:disabled{opacity:.3;cursor:default}
.music-hint{font-size:16px;color:var(--muted);line-height:1.8;margin:0 0 28px}
.music-rail{display:flex;gap:28px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:4px 2px 22px}
.music-card{position:relative;flex:0 0 calc((100% - 84px)/4);min-width:0;scroll-snap-align:start;scroll-margin-left:2px;display:flex;flex-direction:column;align-items:flex-start}
.music-card img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:4px;background:var(--card);transition:transform .25s}
.music-card:hover img{transform:translateY(-3px)}
.music-card-number{font-family:var(--font);color:var(--muted);font-size:12px;margin-top:18px}
.music-card h4{font-family:var(--font);font-size:20px;line-height:1.5;font-weight:600;letter-spacing:-.02em;margin:8px 0}
.music-card p{font-family:var(--font);margin:0;font-size:14px;line-height:1.6;color:var(--muted)}
.music-card .music-album{font-size:12px;margin-top:6px}
.music-platform{font-family:var(--font);font-size:12px;color:var(--muted);margin-top:auto;padding-top:20px}
@media(max-width:1000px){.music-card{flex-basis:calc((100% - 56px)/3)}}
@media(max-width:720px){.now-item{padding-top:18px}.now-item h3{font-size:21px;margin-bottom:10px}.now-item p{font-size:17px}.music-rail{gap:20px}.music-card{flex-basis:76%}.music-card h4{font-size:19px}.music-hint{font-size:14px}.music-controls button{width:36px;height:36px}.site-header nav{gap:8px;white-space:nowrap}.site-header nav a{flex-shrink:0}html[lang="en"] .site-header nav{font-size:10px;gap:6px}}

/* Reading shelf: full covers, with a glimpse of the next book. */
.book-shelf{margin-top:0}
.book-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.book-heading h3{font-size:23px;font-weight:500;margin:0}
.book-rail{display:flex;gap:32px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:8px 3px 24px}
.book-card{flex:0 0 calc((100% - 96px)/3.35);min-width:0;scroll-snap-align:start}
.book-cover{height:330px;display:flex;align-items:flex-end;justify-content:flex-start}
.book-cover img{display:block;width:auto;max-width:100%;height:100%;object-fit:contain;object-position:left bottom;border-radius:2px;box-shadow:6px 8px 15px #0002;transition:transform .2s}
.book-card:hover img{transform:translateY(-4px)}
.book-card h4{font-family:var(--font);font-size:19px;line-height:1.45;font-weight:500;margin:20px 0 8px}
.book-card p{font-size:14px;color:var(--muted);margin:0}
@media(max-width:1000px){.book-card{flex-basis:calc((100% - 64px)/2.4)}.book-cover{height:290px}}
@media(max-width:720px){.book-heading h3{font-size:21px}.book-rail{gap:24px}.book-card{flex-basis:68%}.book-cover{height:265px}.book-card h4{font-size:18px}}
@media(prefers-reduced-motion:reduce){.book-cover img,.music-card img{transition:none}}

@media(max-width:360px){html[lang="en"] .site-header nav{font-size:9.5px;gap:4px}}

.listening-shelf{margin-top:42px;padding-top:32px;border-top:1px solid var(--line);scroll-margin-top:130px}

/* Digital logic project artwork */
.logic-visual{background:var(--card);overflow:hidden}.logic-art{position:absolute;inset:23% 12% 14%;display:flex;flex-direction:column;justify-content:center;gap:12px}.logic-art>span,.logic-art small{font-family:monospace;font-size:12px;letter-spacing:2px;color:var(--muted)}.logic-art strong{font-size:clamp(32px,4vw,48px);line-height:1.05;letter-spacing:-2px;color:var(--text)}
