:root{--bg:#f7f6f3;--surface:#fff;--border:hsl(40 9% 86%);--fg:hsl(30 10% 11%);--muted:hsl(35 9% 34%);--faint:hsl(35 7% 42%);--landing:#59592a;--brand:hsl(26 73% 51%);--brand-text:hsl(26 80% 36%);--dot:40 8% 42% / .09}
@media (prefers-color-scheme:dark){:root{--bg:#0a0a0a;--surface:#161616;--border:#262626;--fg:#fafafa;--muted:#a1a1aa;--faint:#8b8b95;--landing:#e4e2d0;--brand-text:hsl(33 100% 60%);--dot:0 0% 100% / .06}}
*{box-sizing:border-box;margin:0}
body{background:var(--bg) radial-gradient(circle,hsl(var(--dot)) 1px,transparent 1px) 0 0/24px 24px;color:var(--fg);font:15px/1.7 Inter,ui-sans-serif,system-ui,sans-serif}
a{color:var(--brand-text);text-decoration:none}a:hover{text-decoration:underline}
header{background:color-mix(in srgb,var(--bg) 85%,transparent);backdrop-filter:blur(8px);padding:.6rem 1.5rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem;position:sticky;top:0;z-index:1;border-bottom:1px solid var(--border)}
footer{max-width:960px;margin:0 auto;padding:1.5rem 1rem 3rem;color:var(--faint);font-size:13px;border-top:1px solid var(--border)}
header b{font:1.3rem "Instrument Serif",Georgia,serif;color:var(--landing)}
nav{display:flex;gap:1.2rem;flex-wrap:wrap}nav a{color:var(--muted);font-size:14px}nav a:hover{color:var(--brand-text)}
main{max-width:960px;margin:0 auto;padding:3rem 1rem}
p{max-width:65ch}
h1,h2,h3{font-family:"Instrument Serif",ui-serif,Georgia,serif;font-weight:400}
h1{color:var(--landing);font-size:clamp(2.8rem,8vw,4.5rem);line-height:1.05}
h2{font-size:1.9rem;margin:3rem 0 1rem;padding-bottom:.3rem;border-bottom:1px solid var(--border)}
h3{font-size:1.35rem}
.sub{color:var(--muted)}.hl{color:var(--brand-text);font-weight:600}
.lead{font-size:1.15rem;margin:.75rem 0}
.box{background:var(--surface);border:1px solid var(--border);border-radius:.75rem;padding:1.25rem 1.5rem;margin-bottom:1.25rem}
.box>*+*{margin-top:.5rem}
.row{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:.25rem 1rem}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem}.grid .box{margin-bottom:0}
.skills p{margin-bottom:.4rem}.skills b{display:inline-block;width:5rem;font-weight:600}
.skills span{display:inline-block;margin:0 .4rem .4rem 0;padding:.15rem .7rem;border-radius:999px;font-size:13px;font-weight:600;color:var(--muted);background:hsl(35 8% 46% / .12);border:1px solid hsl(35 8% 46% / .25)}
ul{list-style:none;padding:0}li{padding:.35rem 0 .35rem 1rem;border-left:3px solid var(--brand);margin-bottom:.4rem}
.cursor{color:var(--brand);font-family:ui-monospace,monospace;font-size:.6em;animation:b 1s steps(1) infinite}@keyframes b{50%{opacity:0}}
html{scroll-behavior:smooth;scroll-padding-top:4rem}
::selection{background:hsl(26 73% 51% / .25)}
h1{animation:rise .8s ease-out both}
.lead{animation:rise .8s .15s ease-out both}
@keyframes rise{from{opacity:0;transform:translateY(12px)}}
@supports (animation-timeline:view()){
body::before{content:"";position:fixed;top:0;left:0;right:0;height:3px;background:var(--brand);transform-origin:left;z-index:2;animation:grow linear both;animation-timeline:scroll()}
@keyframes grow{from{transform:scaleX(0)}}
.box,h2,.skills p,li{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 60%}
h2{background:linear-gradient(var(--brand),var(--brand)) left bottom/0 2px no-repeat;animation:rise linear both,line linear both;animation-timeline:view();animation-range:entry 0% cover 35%}
@keyframes line{to{background-size:4rem 2px}}
}
@media (prefers-reduced-motion:reduce){*,*::before{animation:none!important}html{scroll-behavior:auto}}
