:root{
  --paper:#f3f3f0;
  --ink:#0a0a0a;
  --mute:rgba(10,10,10,.6);
  --text:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
  --disp:-apple-system,BlinkMacSystemFont,"SF Pro Display","Inter Display",Inter,"Segoe UI","Helvetica Neue",Helvetica,Arial,sans-serif;
  --n:44px;             /* the name; the layout sets it */
  --b:17px;--bl:24px;   /* reading: role, opening line, contact */
  --s:15px;--sl:21px;   /* quiet: the links, the headings, the line about the channels */
  --l:15px;--ll:21px;   /* the career, on the core or in the key */
  --yc:3.3em;           /* the year column on the core */
  --yk:6.2em;           /* the year column in the key (years are ranges there) */
  --r:17px;--rl:25px;   /* below the first screen: how I work, the skills, the notes */
  --side:20px;          /* the side gutters of the flowing layouts; the layout sets them */
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--paper);color:var(--ink)}
body{font:400 var(--b)/var(--bl) var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;text-size-adjust:100%}
h1,h2,p,ol,ul,li,dl,dt,dd{margin:0;padding:0;font:inherit}
ol,ul{list-style:none}
a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
a:hover{text-decoration-thickness:2px}
::selection{background:var(--ink);color:var(--paper)}
:focus{outline:none}
:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:1px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer}

/* ---------- type ---------- */
#name{font:500 var(--n)/.93 var(--disp);letter-spacing:-.035em;margin-left:-.055em}
#name .w{white-space:nowrap}
#role{color:var(--mute)}
html.fit #role{margin-top:max(10px,calc(var(--n) * .15))}
#open{text-wrap:pretty}
.nw{white-space:nowrap}
#top,#contact .links,#again,#notes .all{font-size:var(--s);line-height:var(--sl)}
#top{display:flex;justify-content:flex-end;gap:0 1.6em}
#top a,#contact .links a,#notes .all a{display:inline-block}
#contact .lead,#work li,#skills dd{text-wrap:pretty}
#contact .act{display:flex;flex-wrap:wrap;align-items:center;gap:12px 1.15em;margin-top:calc(var(--bl) * .55)}
#contact .mail{font-weight:500}
#contact .links{margin-top:calc(var(--sl) * .7)}
#contact .links a+a{margin-left:1.25em}
.ch,#next{font-size:var(--l);line-height:var(--ll)}
.ch .y,#next h2{color:var(--mute);font-variant-numeric:tabular-nums;white-space:nowrap}
.ch .co{font-weight:500}
.ch .nt{display:block;color:var(--mute)}
#again{color:var(--mute);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
#again:hover{color:var(--ink)}
/* the booking link: a board like the ones on the forest's signpost, pointing on */
.book{position:relative;z-index:0;display:inline-flex;align-items:center;height:2.2em;padding:0 1.45em 0 .85em;font-weight:500;text-decoration:none;white-space:nowrap;color:var(--ink)}
.book::before,.book::after{content:'';position:absolute;z-index:-1;inset:0;background:var(--ink);clip-path:polygon(0 0,calc(100% - .7em) 0,100% 50%,calc(100% - .7em) 100%,0 100%)}
.book::after{inset:1.25px;background:var(--paper)}
.book:hover,.book:focus-visible{color:var(--paper);text-decoration:none}
.book:hover::after,.book:focus-visible::after{background:var(--ink)}
.book:focus-visible{outline-offset:3px}
/* below the first screen: how I work, the skills, the latest field notes */
#more{font-size:var(--r);line-height:var(--rl)}
#more h2{color:var(--mute);font-size:var(--s);line-height:var(--sl);margin-bottom:calc(var(--sl) * .5)}
#work .sig{font-weight:500}
#skills dt{font-weight:500}
#skills dl>div+div{margin-top:calc(var(--rl) * .55)}
#notes li+li{margin-top:calc(var(--rl) * .3)}
#notes li a{display:grid;grid-template-columns:5.3em minmax(0,1fr);text-decoration:none}
#notes .d{color:var(--mute);font-variant-numeric:tabular-nums;white-space:nowrap}
#notes .t{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em;text-wrap:pretty}
#notes li a:hover .t{text-decoration-thickness:2px}
#notes .all{margin-top:calc(var(--rl) * .75)}
/* in two columns: how I work and the notes under it on the left, the skills on the right */
html.js #more.two{grid-template-areas:"work skills" "notes skills";grid-template-rows:auto 1fr}
html.js #more.two>#work{grid-area:work}
html.js #more.two>#skills{grid-area:skills}
html.js #more.two>#notes{grid-area:notes}
/* on touch screens the quiet links get a finger-sized target, without moving a pixel; it reaches past the words, so a focus ring still hugs them */
@media (pointer:coarse){
  #top a,#contact .links a,#notes .all a{position:relative}
  #top a::before,#contact .links a::before,#notes .all a::before{content:'';position:absolute;inset:-11px 0}
  #notes li a{padding:7px 0;margin:-7px 0}
}

/* ---------- the key: the career as a list (no JavaScript, phones, short windows) ---------- */
.ch,#next{display:grid;grid-template-columns:var(--yk) minmax(0,1fr)}
.ch+.ch{margin-top:calc(var(--ll) * .4)}
.ch .tx{text-wrap:pretty}
.ch.now{display:none}
#next{margin-top:calc(var(--ll) * 1.1)}
#next p{text-wrap:pretty}

/* ---------- without JavaScript: the mark, then one quiet column ---------- */
#page{max-width:34em;margin:0 auto;padding:5vh 24px 12vh}
html.nojs #top{margin-bottom:6vh}
.still{display:block;width:96px;height:96px;margin:0 0 40px -2px}
html.nojs #who,html.nojs #slice,html.nojs #more>section,html.nojs #contact{margin-bottom:44px}
#role,#open{margin-top:10px}
#disc,#again{display:none}

/* ---------- with JavaScript ---------- */
html.js #page{position:relative;max-width:none;margin:0;padding:0}
html.js .still{display:none}
html.js #disc{display:block}
html.js #wood,html.js #rings{position:absolute;left:0;top:0}
html.js #again{display:block;transition:opacity .6s,visibility .6s}
html.js #again[hidden]{opacity:0;visibility:hidden}   /* kept in the layout, so it can be measured before it shows */
/* the first screen: every block is placed by the layout; the rest of the page follows it */
html.fit #top,html.fit #who,html.fit #contact,html.fit #slice,html.fit #again,html.fit #disc,html.fit #more{position:absolute;margin:0}
html.fit #disc{left:0;top:0}
html.fit #top{z-index:2}   /* above the strip's slice, which covers the window */
html.fit #more{display:grid;grid-template-columns:repeat(var(--mc,3),minmax(0,1fr));gap:44px var(--g,48px);padding:var(--mp,72px) 0 var(--mb,96px)}
/* the career on the core of the slice */
html.core .ch,html.core #next{display:block;position:absolute;left:0;top:0;margin:0;white-space:nowrap;
  text-shadow:0 0 1px var(--paper),0 0 1px var(--paper),0 0 2px var(--paper),0 0 2px var(--paper),0 0 3px var(--paper),0 0 4px var(--paper)}
html.core .ch{background:var(--paper);box-shadow:0 0 0 4px var(--paper);border-radius:2px}   /* a knock-out: no word sits on the grain */
html.core .ch .y,html.core #next h2{display:inline-block;width:var(--yc)}
html.core .ch .to{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html.core .span{text-align:right}
html.core .ch:not(.span) .nt{padding-left:calc(var(--l) * 3.3)}
html.core .ch .tx,html.core .ch .nt{white-space:nowrap;text-wrap:nowrap}
html.core .ch .nt{font-size:max(13px,calc(var(--l) - 2px));line-height:16px}
html.core .span .y{display:block;width:auto}
html.core .span .to{position:static;width:auto;height:auto;overflow:visible;clip-path:none}
html.core .now{display:block;text-align:right}
html.core .now .y{width:auto}
html.core #next{display:flex;white-space:normal}
html.core #next h2{flex:none}
html.core #next p{width:20.5em;text-wrap:balance}
/* the key: the slice carries the same marks as the core, the years alone; the list beside or below it is their legend */
.tag{display:none}
html.key .tag{display:block;position:absolute;left:0;top:0;font-size:var(--tg,12px);line-height:1.2;color:var(--mute);font-variant-numeric:tabular-nums;white-space:nowrap;
  background:var(--paper);box-shadow:0 0 0 3px var(--paper);border-radius:2px;
  text-shadow:0 0 1px var(--paper),0 0 1px var(--paper),0 0 2px var(--paper),0 0 2px var(--paper),0 0 3px var(--paper),0 0 4px var(--paper)}
/* on phones each year names its job too, so the slice reads on its own; the list under it gives the rest */
.tag .tc{display:none}
html.phone .tag .tc{display:inline;margin-left:.4em;color:var(--ink);font-weight:500}
html.phone .tag[data-to]{text-align:right}
html.phone .tag[data-to] .tc{display:block;margin:0}
/* the key beside the slice */
html.strip #career{position:absolute;left:0;top:0}
html.strip #next{margin-top:calc(var(--ll) * .9)}

/* ---------- the flowing layouts: phones, tablets, landscape phones. They scroll, and the side gutters keep clear of a notch ---------- */
html.flow #page{padding:max(6px,env(safe-area-inset-top)) max(var(--side),env(safe-area-inset-right)) 64px max(var(--side),env(safe-area-inset-left))}
html.flow #top{min-height:44px;align-items:center}
html.flow #top a{position:relative}
html.flow #top a::before{content:'';position:absolute;inset:-11px 0}
html.flow #more>section{min-width:0}
/* phones: one long column; the slice comes right after the name */
html.phone #page{display:flex;flex-direction:column}
html.phone #who,html.phone #slice,html.phone #more{display:contents}
html.phone #top{order:0;margin:0 0 6px}
html.phone #name{order:1}
html.phone #role{order:2;margin-top:8px}
html.phone #disc{order:3;position:relative;margin:22px 0 0}
html.phone #again{order:4;align-self:flex-end;margin-top:4px}
html.phone #open{order:5;margin-top:22px}
html.phone #career{order:6;margin-top:30px}
html.phone #next{order:7}
html.phone #work{order:8;margin-top:48px}
html.phone #skills{order:9;margin-top:40px}
html.phone #notes{order:10;margin-top:40px}
html.phone #contact{order:11;margin-top:52px;padding-top:28px;border-top:1px solid rgba(10,10,10,.14)}
html.phone.narrow .ch,html.phone.narrow #next{grid-template-columns:minmax(0,1fr)}   /* the smallest phones: the years above the words */
html.phone.narrow .ch .y{font-size:13px;line-height:18px}
/* tablets: the name and the opening, the slice with the career on its core, the forest under it, then two columns */
html.folio #page{display:flex;flex-direction:column}
html.folio #top{margin:0 0 10px}
html.folio #who{max-width:40em}
html.folio #role{margin-top:12px}
html.folio #open{margin-top:16px}
html.folio #slice{position:relative;align-self:center;margin-top:28px}
html.folio #disc{position:absolute;left:0;top:0}
html.folio #again{align-self:flex-end;margin-top:6px}
html.folio #more{display:grid;grid-template-columns:repeat(var(--mc,2),minmax(0,1fr));gap:44px var(--g,40px);margin-top:56px}
html.folio #contact{margin-top:64px;padding-top:32px;border-top:1px solid rgba(10,10,10,.14)}
/* landscape phones and short windows: the slice at the left, its words at the right, the forest under both */
html.duo #page{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:var(--g,32px);align-items:start}
html.duo #who,html.duo #slice{display:contents}
html.duo #disc{grid-column:1;grid-row:1 / span 7;position:relative;margin-top:8px}
html.duo #top{grid-column:2;grid-row:1}
html.duo #name{grid-column:2;grid-row:2}
html.duo #role{grid-column:2;grid-row:3;margin-top:6px}
html.duo #open{grid-column:2;grid-row:4;margin-top:14px}
html.duo #career{grid-column:2;grid-row:5;margin-top:22px}
html.duo #next{grid-column:2;grid-row:6}
html.duo #again{grid-column:1 / -1;grid-row:9;justify-self:end;margin-top:4px}
html.duo #more{grid-column:1 / -1;grid-row:10;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px var(--g,32px);margin-top:44px}
html.duo #contact{grid-column:1 / -1;grid-row:11;margin-top:56px;padding-top:28px;border-top:1px solid rgba(10,10,10,.14)}

/* the lockup for the banners (&lock): the slice at rest, the name, and the role or the short line */
html.lock #top,html.lock #more,html.lock #open,html.lock #career,html.lock #next,html.lock #contact,html.lock #again{display:none}
html.lock #name{line-height:.92}
html.lock #role,html.lock #short{font-size:var(--lk);line-height:1.28;margin-top:calc(var(--n) * .2)}
html.lock #short span{display:block;text-wrap:balance}
html.lock #role+#short{margin-top:calc(var(--lk) * .35)}
html.lines1 #name{white-space:nowrap}
/* ---------- the forest: a band along the floor (not without JavaScript, not with ?forest=0) ---------- */
#fband,#soon{display:none}
html.forest #fband{display:block;position:absolute;left:0;top:0;margin:0;will-change:transform}
#fcv{position:absolute;left:0;top:0}
#sign{position:absolute;left:0;top:0;font-size:13px;line-height:17px}
#sign .bd{position:relative;z-index:0;display:block;width:max-content;padding:1px 14px 2px 8px;color:var(--ink);text-decoration:none;white-space:nowrap}
#sign .bd::before,#sign .bd::after{content:'';position:absolute;z-index:-1;inset:0;background:rgba(10,10,10,.7);clip-path:polygon(0 0,calc(100% - 8px) 0,100% 50%,calc(100% - 8px) 100%,0 100%)}
#sign .bd::after{inset:1px;background:var(--paper);clip-path:polygon(0 0,calc(100% - 7.6px) 0,100% 50%,calc(100% - 7.6px) 100%,0 100%)}
#sign .bd+.bd{margin-top:5px}
#sign a.bd:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em}
#sign .yt{color:var(--mute);padding:1px 8px 2px 14px}
#sign .yt::before{background:rgba(10,10,10,.42);clip-path:polygon(8px 0,100% 0,100% 100%,8px 100%,0 50%)}
#sign .yt::after{clip-path:polygon(7.6px 0,100% 0,100% 100%,7.6px 100%,0 50%)}
html.small #sign{font-size:12px;line-height:15px}   /* on phones the boards come down a size, so they stay smaller than the trees */
html.small #sign .bd{padding:1px 12px 1px 7px}
html.small #sign .yt{padding:1px 7px 1px 12px}
html.small #sign .bd+.bd{margin-top:4px}
html.forest #soon,html.nojs #soon{display:block;color:var(--mute);margin-top:calc(var(--sl) * .6);font-size:var(--s);line-height:var(--sl);text-wrap:pretty}
html.strip #soon{display:none}
/* in a flowing layout the band is a block of its own, as wide as the window */
html.flow.forest #fband{position:relative;height:var(--fbh);margin:var(--fbt,-12px) calc(-1 * max(var(--side),env(safe-area-inset-right))) 0 calc(-1 * max(var(--side),env(safe-area-inset-left)))}
html.phone.forest #fband{order:3}
html.duo.forest #fband{grid-column:1 / -1;grid-row:8}
html.lines2 #name .w{display:block}
