:root{--background:#fafafa;--surface:#ffffff;--text:#222;--muted:#666;--border:#ddd;--link:#1f5fa8;--code-background:#f1ede4;--code-text:#332f29}html.dark{--background:#181818;--surface:#202020;--text:#e8e8e8;--muted:#aaa;--border:#373737;--link:#79aee8;--code-background:#2b2924;--code-text:#eee9df}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--background);color:var(--text);font-family:system-ui,-apple-system,BlinkMacSystemFont,segoe ui,sans-serif;font-size:16px;line-height:1.65}.container{width:min(900px,calc(100% - 48px));margin:0 auto}main.container{flex:1;min-width:0}a{color:var(--link);text-decoration:none}a:hover{text-decoration:underline}.site-header{padding:28px 0 20px}.header-inner{display:flex;justify-content:space-between;gap:24px;align-items:baseline}.site-name{color:var(--text);font-weight:650;font-size:18px;white-space:nowrap}nav{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:flex-end}nav a{font-size:14px}#theme-toggle{border:0;background:0 0;color:var(--text);cursor:pointer;font-size:16px;padding:4px}h1{font-size:clamp(26px,5vw,30px);line-height:1.25;overflow-wrap:anywhere}h2{margin-top:0;font-size:23px}h3{font-size:18px}section{margin:56px 0}hr{border:0;border-top:1px solid var(--border);margin:48px 0}.muted{color:var(--muted)}@media(max-width:700px){.container{width:min(100% - 32px,900px)}.header-inner{display:block}nav{margin-top:10px;justify-content:flex-start;gap:10px 14px}section{margin:44px 0}hr{margin:36px 0}}.projects-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:36px}.project-card{display:flex;flex-direction:column;min-width:0;padding:24px;border:1px solid var(--border);border-radius:14px;background:var(--surface);box-shadow:0 4px 14px rgb(0 0 0/4%);transition:border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease}.project-card:hover{border-color:color-mix(in srgb,var(--link) 40%,var(--border));box-shadow:0 10px 26px rgb(0 0 0/8%);transform:translateY(-2px)}.project-card-header h2{margin:0;font-size:21px;line-height:1.3}.project-achievement{margin:8px 0 0;color:var(--link);font-size:14px;line-height:1.45}.project-description{flex:1;margin:18px 0 20px;color:var(--muted);line-height:1.6}.project-technologies{display:flex;flex-wrap:wrap;gap:7px}.technology-tag{padding:3px 9px;border:1px solid var(--border);border-radius:999px;background:var(--background);color:var(--muted);font-size:12px;line-height:1.4}.project-links{display:flex;flex-wrap:wrap;gap:14px;margin-top:22px;padding-top:16px;border-top:1px solid var(--border);font-size:14px;font-weight:600}.project-links a{white-space:nowrap}.project-links a span{font-size:15px}@media(max-width:700px){.projects-grid{grid-template-columns:1fr;margin-top:28px}}@media(prefers-reduced-motion:reduce){.project-card{transition:none}}.profile-header{display:grid;grid-template-columns:minmax(0,1fr)auto;gap:0;max-width:760px;margin-bottom:24px}.profile-copy{min-width:0;padding:0}.profile-header h1{margin:0;overflow-wrap:anywhere}.profile-header p{margin:6px 0 0}.profile-copy>p{margin:14px 0 0}.profile-photo{display:flex;width:180px;min-width:180px;height:180px;align-self:center;margin:24px 0;padding:0}.profile-image{display:block;width:100%;height:100%;min-height:100%;object-fit:cover}@media(max-width:600px){.profile-header{display:flex;flex-direction:column;align-items:stretch;margin-bottom:20px}.profile-copy{padding:0}.profile-photo{align-self:center;order:-1;width:min(160px,48vw);min-width:0;height:min(160px,48vw);margin:0 auto 24px}}.compact-projects{padding-left:20px}.education-entry{margin-bottom:28px}.education-heading{display:flex;justify-content:space-between;gap:20px}.education-entry p{margin:6px 0 0}.article{max-width:740px;margin:40px auto 80px}.article-header{margin-bottom:36px}.article-content img{display:block;max-width:100%;height:auto}.article-content{min-width:0;overflow-wrap:anywhere}.article-content pre{overflow-x:auto;padding:16px}.article-content p{margin:1.2em 0}.article-content table{display:block;max-width:100%;overflow-x:auto;white-space:nowrap}.post-list-item{display:grid;grid-template-columns:110px minmax(0,1fr);gap:20px;padding:18px 0;border-bottom:1px solid var(--border)}.post-list-item h3{margin:0}.post-list-item p{margin:5px 0 0}.post-list-item>div{min-width:0}.recent-post{display:grid;grid-template-columns:110px minmax(0,1fr);gap:20px}@media(max-width:600px){.article{margin:28px auto 56px}.article-header{margin-bottom:28px}.post-list-item{display:block}.post-list-item time,.recent-post .muted{display:block;margin-bottom:4px}.recent-post{display:block}.education-heading{display:block}}.site-footer{margin-top:64px;padding:28px 0 36px;border-top:1px solid var(--border);color:var(--muted);font-size:14px}.site-footer p{margin:4px 0}pre,.highlight,.highlight pre,:not(pre)>code{background:var(--code-background);color:var(--code-text)}pre,.highlight pre{max-width:100%;overflow-x:auto;padding:16px}.highlight{max-width:100%}:not(pre)>code{padding:2px 4px}.search-page{--pagefind-ui-primary:var(--link);--pagefind-ui-text:var(--text);--pagefind-ui-background:var(--surface);--pagefind-ui-border:var(--border);--pagefind-ui-tag:var(--surface);min-width:0}#search{min-width:0}.search-page input,.search-page button,.search-page .pagefind-ui__result,.search-page .pagefind-ui__result-title,.search-page .pagefind-ui__result-excerpt{color:var(--text)}@media(max-width:600px){body{font-size:14px;line-height:1.55}.site-name{font-size:17px}nav a{font-size:13px}#theme-toggle{font-size:15px}h1{font-size:clamp(22px,7vw,26px)}h2{font-size:19px}h3{font-size:15px}section{margin:36px 0}hr{margin:30px 0}.profile-copy>p{margin-top:12px}pre,.highlight pre{padding:12px;font-size:13px}.project{margin-bottom:28px}.site-footer{margin-top:48px;padding:24px 0 28px}}@media(max-width:400px){.container{width:calc(100% - 24px)}.site-header{padding:20px 0 14px}nav{gap:8px 12px}section{margin:36px 0}hr{margin:30px 0}}