/*
VOICE  quiet, unhurried, a photobook rather than a portfolio grid
IDEA   turning the pages of Shoot Up Hill: one picture at a time, air around it
PICTURE the photographs themselves, all shown at one generous size
COLOUR and TYPE  white ground, near-black ink; EB Garamond, as on the book's cover and spine
LAYOUT  name and three links on top, a short text column, then a single centred column of images; pairs sit side by side
*/
:root{color-scheme:light;--bg:#fff;--ink:#2b2b2b;--soft:#2b2b2b;--rule:#e6e6e6}
*{box-sizing:border-box;min-width:0}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 "EB Garamond",Garamond,"Times New Roman",serif;overflow-x:clip}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:1px solid var(--ink);outline-offset:4px}
header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:10px 32px;padding:clamp(22px,4vw,44px) max(5vw,20px) 0}
.name{font-size:18px;letter-spacing:.01em}
nav{display:flex;flex-wrap:wrap;gap:6px 24px;font-size:15px}
nav a{color:var(--ink);padding:6px 0;border-bottom:1px solid transparent;transition:color .2s}
nav a:hover{border-bottom-color:var(--rule)}
nav a[aria-current]{border-bottom-color:var(--ink)}
main{padding:0 max(5vw,20px) clamp(110px,20vh,200px)}
.intro{max-width:34em;margin:clamp(72px,16vh,170px) auto clamp(80px,18vh,190px)}
h1{font-weight:400;font-size:clamp(26px,3vw,34px);line-height:1.05;margin:0 0 28px;text-wrap:balance}
.meta{color:var(--soft);font-size:16px;margin:-16px 0 28px}
.intro p{margin:0 0 1em}
.work{display:flex;flex-direction:column;align-items:center;gap:clamp(90px,20vh,200px)}
figure{margin:0;display:flex;justify-content:center;align-items:flex-start;gap:clamp(14px,2vw,28px)}
figure img{display:block;width:auto;height:auto;max-height:84vh;max-width:min(90vw,1180px);background:var(--rule)}
figure.two{width:min(90vw,1180px,calc(84vh * var(--sum)))}
figure.two img{width:0;max-width:none;max-height:none}
.next{text-align:center;margin:clamp(110px,22vh,220px) 0 0;font-size:20px}
.next a{border-bottom:1px solid var(--rule);padding-bottom:3px}
.next a:hover{border-color:var(--ink)}
.about p:first-child{margin-top:0}
.about{display:grid;grid-template-columns:minmax(0,180px) minmax(0,30em);gap:clamp(32px,6vw,80px);justify-content:center;align-items:start;margin:clamp(72px,16vh,170px) auto 0}
.about img{width:100%;height:auto;display:block}
.about h1{margin-bottom:24px}
.contact{margin-top:32px}
.contact span{display:block;color:var(--soft);font-size:15px}
footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;padding:clamp(80px,16vh,160px) max(5vw,20px) 36px;color:var(--soft);font-size:15px}
body.home{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.show{flex:1;display:flex;align-items:center;justify-content:center;padding:clamp(10px,2vh,20px) max(2vw,12px) clamp(14px,3vh,28px);position:relative;min-height:0}
.fr{position:relative;width:100%;height:100%}
.show .fr img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;user-select:none;-webkit-user-drag:none;opacity:0}
.show .fr img.vis{opacity:1}
@media(prefers-reduced-motion:reduce){.show .fr img{transition:none}}
.show button{position:absolute;top:0;bottom:0;width:50%;background:none;border:0;padding:0;cursor:e-resize;z-index:2}
.show .prev{left:0;cursor:w-resize}.show .next{right:0}
.show button:focus-visible{outline:1px solid var(--ink);outline-offset:-6px}
body.seq{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.stage{flex:1;position:relative;min-height:0;margin:clamp(10px,2vh,20px) max(2vw,12px) clamp(44px,7vh,56px)}
.sl{position:absolute;inset:0;display:none;align-items:center;justify-content:center;gap:var(--g)}
.sl.on{display:flex}
.sl img{display:block;flex:none;cursor:zoom-in;position:relative;z-index:3}
.lb{position:fixed;inset:0;background:#fff;z-index:20;display:none;align-items:center;justify-content:center;padding:max(2vh,10px);cursor:zoom-out}
.lb.on{display:flex}
.lb img{max-width:100%;max-height:100%;width:auto;height:auto;display:block}
img{-webkit-user-drag:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.sl.txt{overflow-y:auto;align-items:safe center;z-index:3;pointer-events:none}
.sl.txt>div{pointer-events:auto}
.sl.txt>div{max-width:34em;margin:auto;padding:12px 4px}
.sl.txt h1{margin-bottom:24px}
.stage .nav{position:absolute;top:0;bottom:0;width:50%;background:none;border:0;padding:0;z-index:2;cursor:e-resize}
.stage .nav.prev{left:0;cursor:w-resize}.stage .nav.nx{right:0}
.stage .nav:focus-visible{outline:1px solid var(--ink);outline-offset:-6px}
.idx{position:fixed;right:max(5vw,20px);bottom:clamp(10px,2vh,18px);z-index:16;font:inherit;font-size:15px;color:var(--ink);background:#fff;border:0;border-bottom:1px solid transparent;padding:4px 0;cursor:pointer}
.idx:hover{border-bottom-color:var(--rule)}
.idx.on{border-bottom-color:var(--ink)}
.ix{position:fixed;left:0;right:0;bottom:clamp(44px,7vh,56px);top:var(--top,80px);background:#fff;z-index:15;overflow-y:auto;display:none;padding:clamp(16px,3vh,32px) max(5vw,20px) 48px}
.ix.on{display:block}
.ix .g{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:clamp(14px,2vw,28px);align-items:center}
.ix button{background:none;border:0;padding:0;cursor:pointer;aspect-ratio:1;display:flex;align-items:center;justify-content:center}
.ix img{max-width:100%;max-height:100%;display:block}
@media(max-width:600px){.ix .g{grid-template-columns:repeat(3,minmax(0,1fr))}}
img.fade{opacity:0;transition:opacity .8s ease}
img.fade.in{opacity:1}
@media(prefers-reduced-motion:reduce){img.fade{opacity:1;transition:none}}
@media(max-width:700px){
 body{font-size:16px}
 figure.two{flex-direction:column;gap:clamp(56px,10vh,90px);align-items:center}
 figure{width:100%}
 figure.two{width:100%}
 figure img,figure.two img{width:100%;max-width:100%;max-height:none;flex:none!important}
 .work{gap:clamp(64px,12vh,110px)}
 .about{grid-template-columns:minmax(0,1fr)}
 .about img{max-width:170px}
 .show{padding:16px 20px 32px}
}
