/* One stylesheet for index.html, portfolio.html and skills.html.
   Text scales with screen height so each page fits one desktop screen without scrolling. */
:root{--fg:#fff;--mute:rgba(255,255,255,.74);--line:rgba(255,255,255,.2);--serif:'Newsreader',Georgia,'Times New Roman',serif;--sans:'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',sans-serif;box-sizing:border-box}
*,*::before,*::after{box-sizing:inherit}
html{font-size:clamp(12px,1.75vh,18px)}
body{margin:0;background:#000;color:var(--fg);font:300 1rem/1.55 var(--sans);-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(0,0,0,.94) 0,rgba(0,0,0,.82) 45%,rgba(0,0,0,.7) 100%),url("../images/background.jpg") center/cover no-repeat}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:2px solid #fff;outline-offset:4px}
.skip{position:absolute;left:-999px}.skip:focus{left:1rem;top:1rem;background:#fff;color:#000;padding:.5rem .8rem;z-index:10}
.shell{display:grid;grid-template-columns:14rem minmax(0,1fr);gap:clamp(2rem,5vw,5rem);max-width:78rem;min-height:100vh;min-height:100dvh;margin:0 auto;padding:2.2rem clamp(1.5rem,4vw,4rem) 1.5rem}
.photo{width:8.5rem;height:8.5rem;object-fit:cover;display:block;border:1px solid var(--line)}
.name{color:var(--fg);font:300 1.7rem/1.15 var(--serif);margin:1.2rem 0 .25rem;letter-spacing:-.01em}
.role{color:var(--mute);margin:0 0 1.6rem;font-size:.92rem}
nav{display:flex;flex-direction:column;border-top:1px solid var(--line)}
nav a{padding:.7rem 0;border-bottom:1px solid var(--line);color:var(--mute);display:flex;justify-content:space-between;align-items:center;transition:color .2s}
nav a:hover,nav a[aria-current=page]{color:var(--fg)}
nav a[aria-current=page]::after{content:"";width:6px;height:6px;border-radius:50%;background:#fff}
main{min-width:0;display:flex;flex-direction:column}
h1,h2{font-family:var(--serif);font-weight:300;letter-spacing:-.015em;margin:0}
h1{font-size:2.4rem;line-height:1.12}
h2{font-size:1.3rem;margin-bottom:.8rem}
p{margin:0;color:var(--mute)}
b{font-weight:500;color:var(--fg)}
.lede{font-size:1.1rem;max-width:58rem;margin-top:1.1rem;color:var(--fg)}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:0 3.5rem;margin-top:1.8rem}
.cols section+section{margin-top:1.6rem}
.row{display:grid;grid-template-columns:7rem 1fr;gap:1rem;padding:.8rem 0;border-top:1px solid var(--line);font-size:.95rem}
.row:last-child{border-bottom:1px solid var(--line)}
.k{color:var(--mute)}
.row h3,.skills h3{font:400 1rem/1.4 var(--sans);margin:0 0 .15rem}
.skills{display:grid;grid-template-columns:1fr 1fr;gap:0 3.5rem}
.skills.one{grid-template-columns:1fr}
.skills div{padding:.8rem 0;border-top:1px solid var(--line)}
.skills.one div:last-child{border-bottom:1px solid var(--line)}
.skills p{font-size:.95rem}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem 3rem;margin-top:1.6rem}
.proj{border-top:1px solid var(--line);padding-top:1rem;display:grid;grid-template-columns:11.4rem 1fr;column-gap:1rem;align-content:start}
.proj>p,.proj>.links{grid-column:1/-1}
.proj .th{display:block}
.proj img{width:100%;height:6.4rem;object-fit:cover;display:block;filter:grayscale(1);opacity:.9;transition:filter .3s,opacity .3s}
.proj:hover img{filter:none;opacity:1}
.proj .hd{align-self:center}
.proj .hd+p{margin-top:.8rem}
.proj h3{font:300 1.25rem/1.25 var(--serif);margin:0 0 .3rem}
.proj h3 a:hover{text-decoration:underline;text-underline-offset:4px}
.proj .meta{font-size:.85rem}
.meta span{white-space:nowrap}
.proj p{font-size:.92rem;line-height:1.5}
.proj .meth{font-size:.85rem;margin-top:.5rem}
.links{display:flex;flex-wrap:wrap;gap:.3rem 1.3rem;margin-top:.6rem;font-size:.92rem}
.links a{border-bottom:1px solid var(--line);padding-bottom:1px;transition:border-color .2s}
.links a:hover{border-color:#fff}
footer{margin-top:auto;padding-top:1rem;border-top:1px solid var(--line);display:flex;gap:4rem;color:var(--mute);font-size:.88rem;line-height:1.6}
footer div{display:flex;flex-direction:column}
footer a:hover{color:#fff}
footer .fname{color:var(--fg)}
.grid+footer,.cols+footer,.skills+footer{margin-top:auto}
main>*:nth-last-child(2){margin-bottom:1.5rem}
@media(max-width:1000px){html{font-size:16px}.shell{grid-template-columns:1fr;min-height:0;padding-top:2rem;gap:1.8rem}aside{display:grid;grid-template-columns:6.5rem 1fr;column-gap:1.4rem;align-items:end}aside>a{grid-row:1/3}.photo{width:6.5rem;height:6.5rem}.name{margin:0;font-size:1.6rem}.role{margin:0}nav{grid-column:1/-1;margin-top:1.4rem;flex-direction:row;gap:1.8rem;border-top:0;border-bottom:1px solid var(--line)}nav a{border:0;padding:.7rem 0}nav a[aria-current=page]{box-shadow:inset 0 -1px #fff}nav a[aria-current=page]::after{display:none}h1{font-size:2rem}.cols,.skills,.grid{grid-template-columns:1fr}.cols{margin-top:1.4rem}footer{margin-top:2.5rem}}
@media(max-width:560px){.row{grid-template-columns:1fr;gap:.2rem}footer{flex-direction:column;gap:.8rem}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
