/* christophewilhelm.com — stylesheet.
   One type style for the whole site: Jost Light, sentence case; only the size changes. The brand name is Jost Medium, in spaced capitals. */
@font-face{font-family:"Jost";font-weight:300 500;font-style:normal;font-display:swap;src:url(/assets/fonts/jost.woff2) format("woff2")}   /* one variable file: Light and Medium */

:root{--paper:#F5F3EF;--ash:#CFCBC4;--ink:#161615;--night:#0B0B0A;--m:clamp(20px,3.2vw,48px);--col:350px;--bg:var(--paper);--fg:var(--ink);--t2:.72;--t3:.62}   /* secondary and faint text: the least opaque it may be. 7:1 and 5:1 on Paper, 8.8:1 and 6.9:1 on Night (2026-10-10) */
body[data-tone="ash"]{--bg:var(--ash)}
body[data-tone="ink"]{--bg:var(--night);--fg:var(--paper)}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg)}
body{min-height:100vh;background:var(--bg);color:var(--fg);font:300 16px/1.5 "Jost",sans-serif;letter-spacing:.01em;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
a{color:inherit}
button{font:inherit;letter-spacing:inherit;color:inherit;background:none;border:0;cursor:pointer}
h1,h2,h3,b,strong{font-weight:inherit}
img{display:block;max-width:100%}
:focus-visible{outline:1px solid currentColor;outline-offset:4px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* page transitions: the index stays, the content crossfades (browsers without support simply change page) */
@view-transition{navigation:auto}
.index{view-transition-name:index}
::view-transition-old(root),::view-transition-new(root){animation-duration:.35s}

/* the index, on every page */
.index{position:fixed;left:var(--m);top:var(--m);bottom:var(--m);width:250px;display:flex;flex-direction:column;z-index:3}
.logo{align-self:flex-start;display:inline-flex;align-items:center;gap:.7em;font:500 16px/1 "Jost",sans-serif;letter-spacing:.2em;text-transform:uppercase;white-space:nowrap;text-decoration:none}
.logo i{display:block;flex:none;width:2.2em;height:1px;background:currentColor;position:relative;top:-.04em}
.index ul{list-style:none;margin-top:max(40px,26vh)}
.index li{position:relative;font-size:18px;line-height:1.2;padding:9px 0;opacity:var(--t2);transition:opacity .4s,padding .5s cubic-bezier(.3,.1,.2,1)}
.index li a,.index li button{display:block;text-decoration:none;text-align:left;padding:0}
.index li.sub{font-size:16px;padding-left:14px;max-height:4.2em;overflow:hidden;transition:opacity .35s ease .4s,padding-top .4s cubic-bezier(.3,.1,.2,1),padding-bottom .4s cubic-bezier(.3,.1,.2,1),max-height .4s cubic-bezier(.3,.1,.2,1)}   /* opening: the space opens, then the entries fade in where they stand */
.index li.sub small{display:block;font-size:13px;line-height:1.4;opacity:.85;margin-top:2px}
.index ul:not(.open) li.sub{max-height:0;padding-top:0;padding-bottom:0;opacity:0;visibility:hidden;transition:opacity .2s,padding-top .4s cubic-bezier(.3,.1,.2,1) .2s,padding-bottom .4s cubic-bezier(.3,.1,.2,1) .2s,max-height .4s cubic-bezier(.3,.1,.2,1) .2s,visibility 0s .6s}   /* closing: the entries fade where they stand, then the space closes: nothing visible ever slides */
.index li:hover,.index li.on{opacity:1}
.index li::before{--mk:clamp(8px,calc(var(--m) - 22px),18px);content:"";position:absolute;left:calc(-10px - var(--mk));top:calc(9px + .6em);width:0;height:1px;background:currentColor;transition:width .5s cubic-bezier(.3,.1,.2,1)}
.index li.on::before{width:var(--mk)}   /* the current page: a line in the margin; the labels themselves never move */
.line{position:fixed;left:var(--m);bottom:var(--m);font-size:13px;opacity:var(--t2);z-index:3}
.line a{margin-left:22px;text-decoration:none;border-bottom:1px solid transparent;transition:border-color .3s}
.line a:hover{border-bottom-color:currentColor}

/* the content column, to the right of the index */
main{margin-left:calc(var(--m) + var(--col));padding:calc(var(--m) + 8vh) var(--m) 20vh 0;max-width:1400px}
.head{position:relative;margin-bottom:56px}
.head h1{font-size:clamp(34px,4vw,56px);line-height:1.05}
.head p{margin-top:12px;font-size:16px;opacity:var(--t2)}
.small{font-size:13px;opacity:var(--t3)}

/* Photographs: a contact sheet in justified rows, by gallery */
/* The gallery index: a text list that stays at the top while scrolling */
.gals{position:sticky;top:0;z-index:2;display:flex;flex-wrap:wrap;gap:6px 26px;padding:18px 0 16px;margin-bottom:40px;background:var(--bg);border-bottom:1px solid color-mix(in srgb,var(--fg) 14%,transparent)}
.gals a{font-size:15px;text-decoration:none;opacity:var(--t2);transition:opacity .3s}
.gals a:hover,.gals a.on{opacity:1}
@media (min-width:760px){.gals{box-sizing:border-box;min-height:calc(var(--m) + 7.86px);padding:0;align-items:center}}   /* its line sits on the line beside the brand name */
.gal{scroll-margin-top:90px;margin-bottom:96px;content-visibility:auto;contain-intrinsic-size:auto 900px}
.gal h2{display:flex;align-items:baseline;gap:14px;font-size:26px;line-height:1.2;margin-bottom:22px}
.gal h2 small{font-size:13px;opacity:var(--t3)}
.sheet{--rh:250px;display:flex;flex-wrap:wrap;gap:10px}
.sheet::after{content:"";flex:999 1 0}   /* the last row keeps its natural height instead of stretching */
.sheet figure{scroll-margin-top:96px;position:relative;flex:var(--r) 1 calc(var(--r) * var(--rh));background-size:cover;background-position:center}
.sheet picture{display:contents}
.sheet a{display:block;cursor:zoom-in;-webkit-touch-callout:none;-webkit-user-drag:none}
@media print{.sheet,.viewer{display:none}}
.sheet img{pointer-events:none;-webkit-user-drag:none;user-select:none;-webkit-touch-callout:none;width:100%;height:auto;aspect-ratio:var(--r);opacity:0;transition:opacity .9s ease}
.sheet img.in{opacity:1}
.sheet figcaption{position:absolute;left:0;top:100%;padding-top:5px;font-size:12px;opacity:0;transition:opacity .3s;white-space:nowrap}
.sheet figure:hover figcaption{opacity:var(--t2)}

/* the enlarged view */
.viewer{position:fixed;inset:0;z-index:10;display:none;background:var(--night);color:var(--paper)}
.viewer.open{display:block}
.viewer .stage{position:absolute;inset:56px 104px 84px;display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.viewer .frame{position:relative;display:flex}
.viewer .frame::after{content:"";position:absolute;inset:0}   /* a clear layer over the photograph: nothing to save */   /* the frame is the image's own size: Close and the caption hang from its edges */
.viewer img{pointer-events:none;-webkit-touch-callout:none;max-width:calc(100vw - 208px);max-height:calc(100vh - 140px);width:auto;height:auto;object-fit:contain;view-transition-name:photo;user-select:none;-webkit-user-drag:none}
.viewer .close{position:absolute;left:100%;top:0;margin-left:16px;font-size:13px;line-height:1;opacity:var(--t2);padding:2px 0;transition:opacity .3s}
.viewer .close:hover{opacity:1}
.viewer .cap{position:absolute;left:0;right:0;top:100%;display:flex;justify-content:space-between;gap:24px;padding-top:12px;font-size:13px;line-height:1.4}
.viewer .nav{position:absolute;top:100%;margin-top:6px;padding:6px 0;font-size:13px;line-height:1.4;opacity:var(--t2);transition:opacity .3s}   /* under the photograph, on the caption's line, out of the picture's way */
.viewer .nav:hover,.viewer .nav:focus-visible{opacity:1}
.viewer .prev{right:76px}
.viewer .next{right:0}
::view-transition-group(photo){animation-duration:.45s;animation-timing-function:cubic-bezier(.2,.7,.1,1)}

/* Photographers: the index of names */
.intro{margin-bottom:44px;font-size:19px;line-height:1.6;opacity:.85}
.ph-head{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:18px;border-bottom:1px solid color-mix(in srgb,var(--fg) 22%,transparent)}
.sort{display:flex;gap:22px}
.sort button{font-size:13px;padding:0 0 4px;opacity:var(--t3);border-bottom:1px solid transparent;transition:opacity .3s,border-color .3s}
.sort button[aria-pressed="true"]{opacity:1;border-bottom-color:currentColor}
.plist{list-style:none;transition:opacity .35s}
.plist.fading{opacity:0}
.plist li{position:relative;border-bottom:1px solid color-mix(in srgb,var(--fg) 10%,transparent);transition:opacity .5s}
.plist:hover li{opacity:.5}
.plist li:hover{opacity:1}
.plist a{display:flex;align-items:baseline;gap:32px;padding:22px 0 26px;text-decoration:none}
.mask{display:block;overflow:hidden;padding-bottom:.26em;margin-bottom:-.26em;transition:transform .7s cubic-bezier(.2,.7,.1,1)}
.plist .mask{font-size:clamp(24px,2.6vw,38px)}
.plist li:hover .mask{transform:translateX(14px)}
.nm{display:block;line-height:1.05;animation:rise 1.1s cubic-bezier(.2,.7,.1,1) both}
@keyframes rise{from{transform:translateY(135%)}}
.pm{margin-left:auto;display:flex;gap:18px;align-items:baseline;font-size:13px;line-height:1.4;white-space:nowrap;opacity:var(--t3)}
.pm .go{opacity:0;transition:opacity .4s}
.plist li:hover .go{opacity:1}
.life{position:absolute;bottom:10px;height:1px;background:currentColor;transform-origin:left;opacity:.22;animation:draw 1.2s cubic-bezier(.2,.7,.1,1) .2s both;transition:opacity .5s}
@keyframes draw{from{transform:scaleX(0)}}
.plist li:hover .life{opacity:1}
.life.open{background:linear-gradient(90deg,currentColor 70%,transparent)}
.axis{position:relative;height:28px;margin-top:10px}
.axis span{position:absolute;top:8px;transform:translateX(-50%);font-size:13px;opacity:var(--t3)}
.count{margin-top:26px}

/* a photographer's profile */
.progress{position:fixed;top:0;left:0;right:0;height:1px;background:currentColor;transform-origin:left;transform:scaleX(0);opacity:.5;z-index:4}
.pf{max-width:980px}
.pf-top{display:flex;justify-content:space-between;margin-bottom:56px;font-size:13px}
.pf-top a{text-decoration:none;opacity:var(--t2)}.pf-top a:hover{opacity:1}
.pf .mask{font-size:clamp(40px,5.4vw,84px)}
.pf-name{font-size:1em;line-height:1.02;animation:rise 1.2s cubic-bezier(.2,.7,.1,1) .15s both}
.pf-dates{display:flex;justify-content:space-between;gap:24px;margin-top:18px;font-size:14px;opacity:var(--t2)}
.pf-no{font-size:13px;opacity:.85;white-space:nowrap}
.pf-scale{position:relative;height:30px;margin-top:34px;border-bottom:1px solid color-mix(in srgb,var(--fg) 18%,transparent)}
.pf-scale span{position:absolute;top:0;transform:translateX(-50%);font-size:13px;opacity:var(--t3)}
.pf-scale .life{bottom:-1px;opacity:.9;animation-delay:.7s}
.pf-lead{margin-top:48px;max-width:30em;font-size:23px;line-height:1.55}
.pf-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 48px;margin-top:64px;border-top:1px solid color-mix(in srgb,var(--fg) 18%,transparent)}
.pf-facts div{padding:14px 0;border-bottom:1px solid color-mix(in srgb,var(--fg) 10%,transparent)}
.pf-facts dt{font-size:13px;opacity:var(--t3);margin-bottom:3px}
.pf-facts dd{font-size:16px}
.pf-sec{display:grid;grid-template-columns:130px minmax(0,1fr);gap:0 40px;margin-top:110px}
.js .pf-sec{opacity:0;transform:translateY(24px);transition:opacity 1s ease,transform 1s cubic-bezier(.2,.7,.1,1)}
.js .pf-sec.in{opacity:1;transform:none}
.pf-lab{font-size:13px;opacity:var(--t3);padding-top:12px;position:sticky;top:40px;align-self:start}
.pf-h{font-size:30px;line-height:1.25;margin-bottom:28px;max-width:22em}
.pf-body{max-width:36em;font-size:17.5px;line-height:1.78}
.pf-body p+p{margin-top:1.1em}
.pf-body a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.pf-body h3{font-size:21px;line-height:1.4;margin:56px 0 14px;padding-top:18px;border-top:1px solid color-mix(in srgb,var(--fg) 12%,transparent)}
.pf-body figure{margin:30px 0 8px;max-width:640px}
.pf-body figure img{width:100%;height:auto;max-height:72vh;object-fit:contain;object-position:left;filter:grayscale(1) contrast(1.03)}
.pf-cap{display:block;margin-top:10px;font-size:13px;line-height:1.5;opacity:var(--t3);max-width:48em}
.pf-link{display:inline-block;margin:18px 0 4px;font-size:13px;text-decoration:none!important;border-bottom:1px solid currentColor;padding-bottom:3px}
.pf-link+.pf-cap{margin-top:6px}
.pf-body ul{list-style:none}.pf-body li{padding:10px 0;border-bottom:1px solid color-mix(in srgb,var(--fg) 10%,transparent)}
.pf-take .pf-body{font-size:22px;line-height:1.6;padding-left:28px;border-left:1px solid currentColor}
.pf-video{display:block;max-width:640px;position:relative;text-decoration:none!important}
.pf-video img{width:100%;filter:grayscale(1) contrast(1.05) brightness(.9)}
.pf-video span{position:absolute;left:20px;bottom:18px;font-size:14px;line-height:1;color:var(--paper);border-bottom:1px solid var(--paper);padding-bottom:3px}
.pf-nav{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:40px;padding-top:28px;border-top:1px solid color-mix(in srgb,var(--fg) 18%,transparent)}
.pf-nav a{text-decoration:none}.pf-nav a:last-child{text-align:right}
.pf-nav small{display:block;font-size:13px;opacity:var(--t3);margin-bottom:8px}
.pf-nav b{font-size:30px;line-height:1.1;transition:opacity .3s}
.pf-nav a:hover b{opacity:.6}

/* Reading: the shelf, and the list */
.shelf{--maxh:320px;display:flex;align-items:flex-end;gap:5px;padding:0 26px;min-height:calc(var(--maxh) + 90px);padding-bottom:0;border-bottom:3px solid var(--fg);transition:opacity .5s}
.year{display:flex;align-items:baseline;gap:14px;font-size:28px;margin:0 0 18px}
.year small{font-size:13px;opacity:var(--t3)}
.spine{position:relative;flex:0 1 var(--w);min-width:20px;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--fg) 14%,transparent);height:var(--h);background:var(--c);color:var(--t);display:flex;align-items:center;justify-content:center;padding:14px 0;text-decoration:none;transform-origin:100% 100%;transition:transform .45s cubic-bezier(.2,.7,.1,1);animation:stand 1s cubic-bezier(.25,.8,.3,1) backwards;animation-delay:calc(var(--i) * 60ms)}
@keyframes stand{from{transform:rotate(7deg);opacity:0}40%{opacity:1}}   /* each book is set on the shelf: it stands up from a slight lean against the books already there, pivoting on its foot, never below the board */
.bookend{position:relative;flex:none;width:6px;height:130px;background:var(--fg)}   /* the stoppers: a plate with its foot on the outer side */
.bookend::after{content:"";position:absolute;bottom:0;width:26px;height:6px;background:var(--fg)}
.bookend.l{margin-right:4px}.bookend.l::after{right:0}
.bookend.r{margin-left:4px;animation:close .8s cubic-bezier(.2,.7,.1,1) backwards;animation-delay:calc(var(--n) * 60ms + 1.05s)}.bookend.r::after{left:0}
@keyframes close{from{transform:translateX(36px);opacity:0}}   /* the right stopper comes last and closes the row */
@keyframes shelve{from{transform:translateY(30px);opacity:0}}
.spine span{writing-mode:vertical-rl;transform:rotate(180deg);font-size:13px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:100%}
.spine:hover{transform:translateY(-14px)}
.spine .tip{position:absolute;bottom:calc(100% + var(--maxh) - var(--h) + 30px);left:0;color:var(--fg);font-size:13px;line-height:1.4;text-align:left;font-style:normal;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .25s}
.spine .tip b{display:block;font-size:16px}
.spine:hover .tip{opacity:.85}
.spine.end .tip{left:auto;right:0;text-align:right}   /* the title always sits on one line above the tallest book, and never runs past the shelf */
.cta{margin-top:40px;font-size:15px;border-bottom:1px solid currentColor;padding:0 0 5px;opacity:.8}
.cta:hover{opacity:1}
.list{list-style:none;margin-top:8px}
.list li{display:grid;grid-template-columns:2.5em 13em 1fr;gap:18px;align-items:baseline;padding:13px 0;border-bottom:1px solid color-mix(in srgb,var(--fg) 14%,transparent);animation:shelve .6s cubic-bezier(.2,.7,.1,1) both;animation-delay:calc(var(--i) * 30ms)}
.list .n{font-size:13px;opacity:var(--t3)}
.list small{font-size:13px;opacity:var(--t3);margin-left:12px}
[hidden]{display:none!important}

/* text pages: About, Credits, page not found */
.text{max-width:34em;font-size:19px;line-height:1.65}
.text p+p{margin-top:1em}
.text h2{font-size:13px;opacity:var(--t3);margin:48px 0 10px}
.text .small{display:block;margin-top:28px}
.text a{text-decoration-thickness:1px;text-underline-offset:3px}
.social{list-style:none;display:flex;gap:24px;font-size:16px}
.social a{text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:2px}
.note{display:inline-block;margin-bottom:28px;font-size:13px;opacity:var(--t3);border:1px solid currentColor;padding:3px 8px}

/* phones: the index sits above the content */
@media (max-width:759px){
  .index{position:static;width:auto;padding:var(--m) var(--m) 0}
  .index ul{display:flex;flex-wrap:wrap;gap:0 18px;margin-top:22px}
  .index li{font-size:16px;padding:6px 0}
  .index li.on{padding-left:0}.index li.on::before{display:none}
  .index ul.open li.group{padding-bottom:6px}
  .index li.sub,.index li.sub.on{padding-left:0;font-size:15px}
  .index li.sub small{display:none}
  .index ul:not(.open) li.sub{display:none}
  .index li.sub::before{display:none}
  .index li.on{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
  main{margin:0;padding:48px var(--m) 80px}
  .line{position:static;display:block;padding:0 var(--m) var(--m)}
  .home .index ul{display:block;margin-top:clamp(12px,2.2vh,26px)}   /* the home on a phone: the menu is a vertical list, as on the desktop, and uses the band under the brand name */
  .home .index li{font-size:clamp(17px,2.9vh,26px);line-height:1.2;padding:clamp(4px,.9vh,10px) 0}
  .home .index li.sub,.home .index li.sub.on{font-size:clamp(15px,2.4vh,20px);padding-left:14px}
  .home .line{position:fixed;padding:0}   /* on the home, the line stays at the foot of the screen, under the controls and the animation */
  .sheet{--rh:150px;gap:6px}
  .gals{gap:4px 18px}
  .pf-facts{grid-template-columns:1fr}
  .pf-sec{grid-template-columns:1fr;margin-top:72px}
  .pf-lab{position:static;padding:0 0 8px}
  .pf-lead{font-size:20px}
  .plist a{flex-wrap:wrap;gap:6px 18px}.pm{margin-left:0}
  .viewer .stage{inset:56px var(--m) 84px}
  .viewer img{pointer-events:none;-webkit-touch-callout:none;max-width:calc(100vw - 2 * var(--m));max-height:calc(100vh - 150px)}
  .viewer .close{left:auto;right:0;top:auto;bottom:100%;margin:0 0 12px}
  .shelf{overflow-x:auto;min-height:300px}
  .list li{grid-template-columns:2em 1fr;}.list li .t{grid-column:2}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* TEST 2026-10-10: the blog's language menu, framed like the blog's search box */
.head .gtranslate_wrapper{position:absolute;right:0;top:4px}   /* the language menu: top right of the content, on the first row */
.pf-top .gtranslate_wrapper{margin-left:auto}
.gtranslate_wrapper select.gt_selector{height:34px;padding:0 12px;border:1px solid var(--fg);border-radius:0;background:transparent;color:var(--fg);font:300 13px "Jost",sans-serif;letter-spacing:.01em;opacity:var(--t2)}
.gtranslate_wrapper select.gt_selector:hover,.gtranslate_wrapper select.gt_selector:focus{opacity:1}
@media (max-width:759px){.head .gtranslate_wrapper{position:static;margin-top:18px}}
