/* Aleksandr Kulikov — analog photography.
   One typeface (Hanken Grotesk, self-hosted), paper ground, colour only from
   the photographs. Generated by build.py — edit the CSS block there, not this. */

@font-face{
  font-family:'Hanken Grotesk';
  font-style:normal;font-weight:400 600;font-display:swap;
  src:url('../fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Hanken Grotesk';
  font-style:normal;font-weight:400 600;font-display:swap;
  src:url('../fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root{
  --paper:#FAFAF7;
  --ink:#1A1A1A;
  --muted:#75746F;        /* meets WCAG AA at 12–14px on the paper ground */
  --line:rgba(0,0,0,0.09);
  --frame-vh:85;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  min-height:100vh;
  min-height:100svh;
  display:flex;
  flex-direction:column;
}
img{display:block;max-width:100%;height:auto}
picture{display:contents}
a{color:var(--ink);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
a.muted{color:var(--muted)}
a.muted:hover{color:var(--ink)}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
:focus:not(:focus-visible){outline:none}

.skip{position:absolute;left:-200vw;top:0;z-index:30;background:var(--paper);padding:12px 18px;font-size:14px;border:1px solid var(--line)}
.skip:focus{left:0}

.pad{padding-left:40px;padding-right:40px}

/* header */
header.site{
  position:sticky;top:0;z-index:20;
  background:rgba(250,250,247,0.94);
  backdrop-filter:saturate(120%) blur(2px);
  -webkit-backdrop-filter:saturate(120%) blur(2px);
  border-bottom:1px solid var(--line);
}
header .bar{
  max-width:1400px;margin:0 auto;padding-top:16px;padding-bottom:16px;
  display:flex;align-items:baseline;justify-content:space-between;gap:24px;
}
.wordmark{font-size:15px;font-weight:500;letter-spacing:0.02em;white-space:nowrap}
nav.main{display:flex;gap:26px;align-items:baseline}
nav.main a{font-size:14px;letter-spacing:0.01em;color:var(--muted);font-weight:400}
nav.main a.active{color:var(--ink);font-weight:500}

main{flex:1;width:100%}

/* footer */
footer.site{
  width:100%;max-width:1400px;margin:0 auto;padding-top:28px;padding-bottom:28px;
  border-top:1px solid var(--line);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
  font-size:12px;color:var(--muted);
}

/* shared */
.dim{color:var(--muted);font-weight:400}
.page-h1{font-size:30px;font-weight:500;letter-spacing:-0.01em;line-height:1.15;margin:0;text-wrap:balance}
.page-intro{font-size:15px;color:var(--muted);max-width:560px;margin:0 0 44px;line-height:1.5}

/* home: project index — two explicit columns so the reading order is
   left-to-right (1·2 / 3·4 …), and one source-ordered column on mobile */
.index-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:clamp(28px,4vw,56px);align-items:start}
.index-item{display:block;margin-bottom:52px;color:inherit}
.index-item .cover{width:100%}
.index-meta{margin-top:13px}
.index-title{font-size:16px;line-height:1.3}
.index-sub{font-size:13px;color:var(--muted);margin-top:3px}
.index-item:hover .index-title{text-decoration:underline;text-underline-offset:3px}

/* project page */
.dek{font-size:13px;color:var(--muted);margin-top:8px}
.statement{max-width:620px;margin-top:26px}
.statement p{font-size:17px;line-height:1.55;margin:0 0 16px;text-wrap:pretty}
.statement p:last-child{margin-bottom:0}
.sequence{width:100%;padding:44px 20px 8px}
/* frames keep their own proportions at every size — portrait frames get a
   definite width inline (build.py) so nothing distorts or shifts on load;
   never set a fixed height (a fixed height distorts portraits on phones) */
.f-full-land{width:100%;max-width:1100px;margin:0 auto 88px}
.f-full-port{height:auto;max-width:100%;margin:0 auto 88px}
.f-quiet-land{width:100%;max-width:640px;margin:0 auto 88px}
.f-quiet-port{height:auto;max-width:100%;margin:0 auto 88px}
.pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:1100px;margin:0 auto 88px}
.pair img{width:100%}
.tech{font-size:13px;color:var(--muted);letter-spacing:0.01em}
.back{font-size:14px}

/* books */
.book{display:flex;gap:40px;flex-wrap:wrap;align-items:flex-start;margin-bottom:64px}
.book-cover{flex:0 0 240px;max-width:240px;width:100%}
.book-cover img{width:100%}
.book-body{flex:1;min-width:260px}
.book-title{font-size:19px;font-weight:500;line-height:1.2}
.book-line{font-size:13px;color:var(--muted);margin-top:6px}
.book-blurb{font-size:15px;line-height:1.5;max-width:480px;margin:16px 0 0;text-wrap:pretty}
.spreads{display:flex;gap:14px;margin-top:20px;flex-wrap:wrap}
.spreads img{width:160px;max-width:100%}

/* about */
.portrait{width:300px;max-width:100%}
.portrait img{width:100%}
.bio{max-width:640px;margin-top:32px}
.bio p{font-size:17px;line-height:1.55;margin:0 0 16px;text-wrap:pretty}
.bio .muted-p{font-size:15px;color:var(--muted);margin-top:20px}
.cv{max-width:720px;margin-top:52px;border-top:1px solid var(--line);padding-top:36px}
.cv-group{margin-bottom:32px}
.cv-h{font-size:12px;letter-spacing:0.09em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.cv-row{font-size:15px;line-height:1.5;margin-bottom:7px}

/* contact */
.contact{font-size:19px;line-height:1.9}
.contact .muted-p{color:var(--muted)}

/* responsive */
@media(max-width:760px){
  .index-grid{display:flex;flex-direction:column}
  .index-col{display:contents}   /* items linearise in source order via order: */
  .pair{grid-template-columns:1fr}
  .pad{padding-left:20px;padding-right:20px}
  header .bar{padding-top:12px;padding-bottom:12px;flex-wrap:wrap;gap:8px 24px}
  .wordmark{width:100%}
  nav.main{width:100%;gap:12px 18px}
  .page-h1{font-size:24px}
  .book{gap:24px}
  .sequence{padding-left:16px;padding-right:16px}
}
