:root{color-scheme:light;--page:#f5f5f7;--surface:rgba(255,255,255,.86);--surface-hover:#fff;--text:#1d1d1f;--secondary:#6e6e73;--line:rgba(0,0,0,.09);--accent:#0071e3;--focus:rgba(0,113,227,.28)}
*{box-sizing:border-box}
html{background:var(--page)}
body{margin:0;background:var(--page);color:var(--text);font:16px/1.45 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
main{width:min(100% - 40px,920px);margin:0 auto;padding:20px 0 28px}
header{min-height:46px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.brand{color:var(--text);font-size:19px;font-weight:650;letter-spacing:-.35px;text-decoration:none}
.label{color:var(--secondary);font-size:13px;letter-spacing:-.05px}
.intro{margin:44px 0 22px}
h1{margin:0;font-size:clamp(34px,5vw,44px);font-weight:650;line-height:1.08;letter-spacing:-1.6px}
.intro p{margin:7px 0 0;color:var(--secondary);font-size:16px}
.projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.project{min-height:154px;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr auto;padding:19px 20px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.025);color:inherit;text-decoration:none;transition:background-color .18s ease,transform .18s ease,box-shadow .18s ease}
.project:hover{background:var(--surface-hover);box-shadow:0 7px 24px rgba(0,0,0,.07);transform:translateY(-1px)}
.project:active{transform:scale(.99)}
.project:focus-visible,.brand:focus-visible{outline:4px solid var(--focus);outline-offset:2px}
.number{grid-column:1/-1;color:#86868b;font-size:12px;font-weight:600;letter-spacing:.04em}
h2{align-self:end;margin:17px 0 2px;font-size:22px;font-weight:650;line-height:1.15;letter-spacing:-.55px}
.project p{grid-column:1;margin:0;color:var(--secondary);font-size:14px;line-height:1.35}
.open{grid-column:2;grid-row:2/4;align-self:end;display:block;width:30px;height:30px;border-radius:50%;background:#f0f0f2;color:transparent;font-size:0}
.open span{display:grid;width:100%;height:100%;place-items:center;color:var(--accent);font-size:19px;line-height:1;transform:translateY(-1px)}
footer{margin-top:24px;padding-top:15px;border-top:1px solid var(--line);color:#86868b;font-size:12px;text-align:center}
@media(max-width:640px){main{width:min(100% - 28px,920px);padding-top:10px}header{min-height:44px}.label{font-size:12px}.intro{margin:30px 0 18px}h1{font-size:34px}.projects{grid-template-columns:1fr;gap:10px}.project{min-height:132px;padding:17px 18px;border-radius:16px}h2{margin-top:12px;font-size:21px}footer{margin-top:20px}}
@media(prefers-color-scheme:dark){:root{color-scheme:dark;--page:#000;--surface:#1c1c1e;--surface-hover:#242426;--text:#f5f5f7;--secondary:#a1a1a6;--line:rgba(255,255,255,.12);--accent:#2997ff;--focus:rgba(41,151,255,.38)}.project{box-shadow:none}.project:hover{box-shadow:none}.open{background:#2c2c2e}}
@media(prefers-reduced-motion:reduce){.project{transition:none}}
