:root {
  --paper:#f8fbff; --ink:#25352f; --muted:#5f685f; --line:#dce3ea;
  --accent:#3c789b; --accent-hover:#316582; --accent-soft:#dff2ff; --white:#fffefa;
  --font:"YouYuan","幼圆","Avenir Next","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:100px; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.7 var(--font); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-underline-offset:5px; text-decoration-thickness:1px; }
button { font:inherit; cursor:pointer; }
img { display:block; max-width:100%; }
::selection { background:var(--accent-soft); color:var(--ink); }
:focus-visible { outline:3px solid var(--accent-hover); outline-offset:5px; }
.shell { width:min(1160px,calc(100% - 80px)); margin-inline:auto; }
.skip-link { position:fixed; top:10px; left:10px; z-index:100; background:var(--ink); color:white; padding:10px 16px; transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }
.header { position:sticky; top:0; z-index:20; background:rgba(248,251,255,.96); border-bottom:1px solid var(--line); }
.nav { display:flex; align-items:center; min-height:82px; gap:32px; }
.wordmark { display:inline-flex; align-items:center; text-decoration:none; font-size:25px; font-weight:600; letter-spacing:-.04em; }
.nav-links { margin-left:auto; display:flex; gap:28px; }
.nav-links a { font-size:14px; text-decoration:none; }
.nav-links a:hover { color:var(--accent); }
.language { display:flex; gap:3px; border-left:1px solid var(--line); padding-left:22px; }
.lang-btn { border:0; background:transparent; color:var(--muted); padding:5px 8px; font-size:12px; border-radius:5px; }
.lang-btn[aria-pressed="true"] { background:var(--accent); color:white; }
.hero { padding-top:56px; padding-bottom:52px; }
.hero-copy { max-width:760px; }
.hero .eyebrow { margin:0 0 16px; }
.eyebrow { display:flex; gap:12px; align-items:center; font-size:14px; margin:0 0 24px; }
.eyebrow::before { content:""; width:22px; height:1px; background:currentColor; }
.hero h1 { font-family:var(--font); font-size:32px; line-height:1.5; letter-spacing:0; font-weight:500; margin:0; }
.hero-intro { color:var(--muted); max-width:560px; font-size:15px; line-height:1.9; margin:16px 0 24px; }
.hero-actions { display:flex; align-items:center; gap:25px; flex-wrap:wrap; }
.pill { display:inline-flex; align-items:center; gap:22px; padding:12px 21px; border-radius:100px; background:var(--accent); color:white; text-decoration:none; font-size:14px; border:1px solid var(--accent); }
.pill:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
.text-link { color:var(--accent); font-size:14px; text-decoration:none; display:inline-flex; gap:8px; align-items:center; }
.text-link:hover { color:var(--accent-hover); }
.hero-note { display:flex; justify-content:space-between; gap:16px; border-block:1px solid var(--line); padding:16px 0; font-size:11px; letter-spacing:.12em; color:var(--muted); text-transform:uppercase; }
.hero-note .dot { display:inline-block; width:6px; height:6px; margin-right:8px; border-radius:50%; background:var(--accent); }
.section { padding:90px 0; }
.section-heading { display:grid; grid-template-columns:1fr 2fr; gap:35px; margin-bottom:48px; align-items:start; }
.section-index,.project-label { font:500 24px/1.5 var(--font); color:var(--ink); margin:0; letter-spacing:0; }
.section-description { color:var(--muted); font-size:14px; margin:0; }
.project { display:grid; grid-template-columns:minmax(0,1fr); gap:24px; max-width:900px; padding:0 0 54px; margin:0 0 54px; border-bottom:1px solid var(--line); }
.project:last-of-type { margin-bottom:0; }
.project-media { margin:0; min-width:0; }
.project-copy { max-width:760px; min-width:0; }
.screen-mat { padding:24px; background:#dff2ff; border-radius:12px; display:block; position:relative; text-decoration:none; }
.screen-mat:hover { background:#d5edff; }
.screen-mat img { width:100%; height:auto; max-height:440px; object-fit:contain; filter:drop-shadow(0 4px 9px #20322814); }
.image-hint { display:block; text-align:right; margin-top:12px; font-size:11px; color:var(--accent-hover); }
figcaption { margin-top:10px; font-size:11px; color:var(--muted); line-height:1.65; }
.project-label { display:flex; align-items:baseline; gap:12px; }
.project-label .num { flex-shrink:0; font-variant-numeric:tabular-nums; }
.project-description { font-size:14px; color:#566259; line-height:1.9; margin:0 0 20px; }
.project-thought { border-left:2px solid #9ec3d9; padding-left:15px; font-size:13px; line-height:1.8; color:var(--muted); margin:0 0 22px; }
.project-actions { display:flex; align-items:center; flex-wrap:wrap; column-gap:20px; row-gap:10px; }
.project-actions a { font-size:13px; color:var(--accent); }
.project-actions a:hover { color:var(--accent-hover); }
.primary-link { color:var(--accent); font-weight:650; }
.project-tag { margin-top:16px; font-size:11px; color:var(--muted); }
.sidequests { background:var(--paper); border-block:1px solid var(--line); }
.sidequests .section-heading { margin-bottom:32px; }
.side-list { border-top:1px solid var(--line); }
.side-link { display:grid; grid-template-columns:52px 1fr 1.1fr 28px; align-items:center; gap:25px; text-decoration:none; padding:24px 0; border-bottom:1px solid var(--line); }
.side-link:hover .side-title { color:var(--accent); text-decoration:underline; }
.side-icon { font-size:26px; text-align:center; }
.side-title { font-size:18px; font-weight:500; line-height:1.5; }
.side-tag { display:block; font-size:10px; text-transform:uppercase; color:var(--muted); font-weight:400; letter-spacing:.07em; margin-top:5px; }
.side-description { font-size:13px; color:#53624e; }
.side-arrow { font-size:20px; color:var(--accent); }
.about,.contact-section { display:grid; grid-template-columns:1fr 2fr; gap:35px; }
.about { border-bottom:1px solid var(--line); }
.about-copy { max-width:690px; }
.about-copy>p { font-size:16px; line-height:1.95; color:#526155; margin:0 0 20px; }
.games-list { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:0; }
.games-list dt { font-size:16px; }
.games-list dd { font-size:14px; line-height:1.85; color:var(--muted); margin:8px 0 0; }
.travel-copy { font-size:14px; line-height:1.85; color:var(--muted); }
.travel-copy p { margin:0; }
.travel-copy p+p { margin-top:12px; }
.about-links { display:flex; gap:24px; flex-wrap:wrap; margin:26px 0 30px; }
.background { border-block:1px solid var(--line); margin:0; }
.background+.background { border-top:0; }
.background summary { cursor:pointer; padding:18px 0; font-size:15px; font-weight:500; list-style:none; display:flex; justify-content:space-between; gap:20px; }
.background summary::-webkit-details-marker { display:none; }
.background summary::after { content:"+"; font-size:22px; line-height:1; }
.background[open] summary::after { content:"−"; }
.background-body { padding-bottom:24px; }
.background h3 { font-size:17px; font-weight:500; margin:28px 0 12px; }
.role { padding:20px 0; border-top:1px solid var(--line); }
.role-date,.school-year { font-size:12px; color:var(--muted); }
.role h3,.school h3 { font-size:17px; margin:6px 0 3px; }
.role-company { font-size:13px; margin:0 0 12px; color:var(--accent); }
.role ul { padding-left:19px; margin:0; color:#58655b; font-size:13px; line-height:1.85; }
.role li+li { margin-top:10px; }
.education { display:grid; grid-template-columns:1fr 1fr; gap:24px; border-top:1px solid var(--line); padding-top:24px; }
.school p { font-size:13px; color:var(--muted); }
.hackathon { font-size:13px; line-height:1.9; color:#58655b; padding:16px 0; border-top:1px solid var(--line); }
.footer { padding:30px 0; border-top:1px solid var(--line); }
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:20px; }
.footer-sign { font:500 22px/1.5 var(--font); color:var(--accent); }
.footer-note { font-size:11px; color:var(--muted); }
.back-top { font-size:12px; text-decoration:none; }
.noscript { padding:12px 24px; background:var(--accent-soft); font-size:13px; text-align:center; }
.js-only { display:none; }
html.has-js .js-only { display:flex; }
@media (max-width:1000px) {
  .shell { width:calc(100% - 56px); }
  .screen-mat { padding:16px; }
  .nav { gap:22px; }
  .nav-links { gap:22px; }
  .section-heading,.about,.contact-section { grid-template-columns:1fr 2fr; gap:24px; }
}
@media (max-width:760px) {
  html { scroll-padding-top:125px; }
  .shell { width:calc(100% - 36px); }
  .nav { min-height:70px; gap:12px; flex-wrap:wrap; padding-top:14px; padding-bottom:11px; }
  .wordmark { font-size:23px; }
  .language { margin-left:auto; padding:0; border:none; }
  .nav-links { order:3; width:100%; justify-content:space-between; border-top:1px solid var(--line); padding-top:10px; gap:10px; }
  .nav-links a { font-size:12px; }
  .hero { padding:38px 0 40px; }
  .hero h1 { font-size:26px; }
  .hero-intro { font-size:14px; margin:12px 0 22px; }
  .hero-actions { gap:21px; }
  .pill { padding:10px 17px; font-size:13px; gap:14px; }
  .hero-note { font-size:10px; letter-spacing:.04em; }
  .hero-note>span:last-child { display:none; }
  .section { padding:56px 0; }
  .section-heading,.about,.contact-section { grid-template-columns:1fr; gap:12px; }
  .section-heading { margin-bottom:30px; }
  .section-index,.project-label { font-size:20px; }
  .project { gap:18px; margin-bottom:36px; padding-bottom:36px; }
  .screen-mat { padding:18px; }
  .screen-mat img { height:auto; max-height:340px; }
  .project-thought,.project-description { margin-bottom:16px; }
  .project-tag { margin-top:14px; }
  .side-link { grid-template-columns:36px 1fr 20px; gap:13px; padding:20px 0; }
  .side-description { grid-column:2; grid-row:2; margin-top:-10px; }
  .side-arrow { grid-column:3; grid-row:1; }
  .side-title { font-size:17px; }
  .side-icon { font-size:24px; }
  .about,.contact-section { gap:18px; }
  .about-copy>p { font-size:15px; }
  .games-list { grid-template-columns:1fr; gap:20px; }
  .education { grid-template-columns:1fr; gap:12px; }
  .footer-inner { flex-wrap:wrap; gap:12px; }
  .footer-note { order:3; width:100%; }
  .back-top { margin-left:auto; }
  .footer-sign { font-size:21px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}
