
/* System stack; minimal reset */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font:16px/1.6 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Inter,Helvetica,Arial,Ubuntu,system-ui,sans-serif;background:#0f0f10;color:#e9e9ec}
img{max-width:100%;display:block}
a{color:#d28a31;text-underline-offset:.2em}
a:focus{outline:3px solid #7db7ff;outline-offset:2px}

/* Layout */
.container{max-width:72rem;margin-inline:auto;padding:0 1rem}
header{border-bottom:1px solid #232327;background:#121215}
.head{display:flex;gap:1rem;align-items:flex-end;justify-content:space-between;padding:1.25rem 0}
.head > div{flex:1;min-width:0}
/* Brand: desktop-first fluid sizing; wrap allowed on small screens */
.brand{margin:0;font-weight:700;line-height:1.02;max-width:100%;white-space:nowrap;/* keep on one line on larger viewports */
  font-size:clamp(1.05rem,1.2vw + 0.4rem,1.6rem);
}

/* Step down a bit for medium widths to avoid overflow near the nav */
@media (max-width:1200px){ .brand{font-size:clamp(0.98rem,1.1vw + 0.3rem,1.3rem)} }
@media (max-width:1000px){ .brand{font-size:clamp(0.9rem,1vw + 0.2rem,1.05rem)} }

/* On small screens allow wrapping and use conservative sizes */
@media (max-width:760px){ .brand{white-space:normal;font-size:0.95rem;line-height:1.05} }
@media (max-width:480px){ .brand{font-size:0.9rem} }

/* Reduce the brand size in small steps so it fits the available header width */
@media (max-width:1200px){ .brand{font-size:0.98rem} }
@media (max-width:1000px){ .brand{font-size:0.9rem} }
@media (max-width:880px){ .brand{font-size:0.82rem} }
@media (max-width:760px){ .brand{font-size:0.75rem} }
@media (max-width:640px){ .brand{font-size:0.7rem} }
.tag{margin:.25rem 0 0 .125rem;color:#b8bac0;font-size:.95rem;font-weight:500}

/* Minimal inline nav (no active outline) */
.nav{display:flex;gap:.75rem}
.nav a{display:inline-block;padding:.25rem .35rem;border-radius:.35rem;color:#e9e9ec}
.nav a[aria-current]{outline:none}

/* Hero image + overlay */
.hero{position:relative}
.hero picture img{width:100%;height:clamp(22rem,50vh,34rem);object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.54),rgba(0,0,0,.08) 60%,transparent 100%);pointer-events:none}
.hero-inner{position:absolute;inset:0;display:grid;place-items:start start;padding:clamp(.6rem,3.5vw,1.25rem) 0;z-index:2}
.hero h1{margin:0;font-weight:730;letter-spacing:.2px;color:#ffffff;text-shadow:0 10px 40px rgba(0,0,0,.8), 0 4px 18px rgba(0,0,0,.65), 0 1px 0 rgba(0,0,0,.28)}
.hero h1 span{display:block;font-size:clamp(2rem,2.2vw+1.2rem,2.5rem)}
.hero .sub{margin:.35rem 0 0;color:#ffffff;font-size:clamp(1.05rem,1.1vw+0.9rem,1.25rem)}

main{padding:2rem 0}
.prose{max-width:68ch}
.prose h3,.prose h4{margin-top:2rem;margin-bottom:.25rem}
.prose p{margin:.85rem 0;color:#e9e9ec}
.prose ol{padding-left:1.25rem}
.prose li{margin:.4rem 0}

.page-head{padding-top:1rem}
.page-intro{color:#b8bac0}

.divider{height:1px;background:#232327;margin:2rem 0}

footer{border-top:1px solid #232327;background:#121215}
.foot{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding:1rem 0;color:#b8bac0}
.legal{display:flex;gap:.75rem}

/* Projects list with left image */
.project-list{display:grid;gap:1rem;padding:1rem 0 3rem}
.project{display:grid;grid-template-columns:200px 1fr;gap:1rem;align-items:start;background:#121215;border:1px solid #232327;border-radius:.75rem;overflow:hidden}
.project-thumb{width:200px;height:200px;background:#0b0b0c}
.project-thumb picture,.project-thumb img{width:100%;height:100%;object-fit:cover}
.project-body{padding:1rem}
.project h2{margin:.25rem 0 .25rem;font-size:1.1rem}
.project .sub{margin:0 0 .5rem;color:#b8bac0;font-style:italic;font-size:.95rem}

@media (max-width:48rem){
  .project{grid-template-columns:1fr}
  .project-thumb{width:100%;height:auto;aspect-ratio:1/1}
  .head{align-items:flex-start}
}
