/* riso — two spot inks on grainy paper, slightly off-register. Pointing at something
   pulls its plates into register. The name's plates slide in once on load. */
:root {
  --paper: #F6F6F1;
  --text: #232323;
  --muted: #5C5C57;
  --rule: #D9D9D0;
  --pink: #FF48B0;
  --yellow: #FFE800;
  --display: "Anybody", "Arial Narrow", sans-serif;
  --font: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 3.2vw, 48px);
  --off: 0.035em;   /* resting misregistration of display type */
  --plate: 6px;     /* resting misregistration of image plates */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .14 0 0 0 0 .14 2.2 0 0 0 -1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.55 var(--font); overflow-x: hidden; }
/* paper grain over everything, multiplied like ink on stock */
body::after { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none;
  background: var(--grain); opacity: .3; mix-blend-mode: multiply; }
::selection { background: var(--yellow); color: var(--text); }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--pink); text-decoration-thickness: 4px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.defs { position: absolute; width: 0; height: 0; }
.skip { position: absolute; left: var(--gut); top: -60px; z-index: 30; background: var(--text); color: var(--paper); padding: 8px 16px; }
.skip:focus { top: 12px; }

/* top line: one click to every section and to the email */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 18px var(--gut) 0; font-size: 15px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.top a { text-decoration-thickness: 1px; }

main, .contact, .plain-foot { padding-left: var(--gut); padding-right: var(--gut); }

/* The name: accent plate underneath, pink plate multiplied on top, a hair out of register. */
.name { position: relative; margin: clamp(12px, 2vw, 28px) 0 0;
  font: 800 clamp(3.4rem, 12.5vw, 12.5rem)/.84 var(--display); font-stretch: 78%;
  letter-spacing: -.025em; color: var(--accent); overflow-wrap: anywhere; filter: url(#riso-rough); }
.name > span, .name::after { display: block; transform: translate(calc(var(--off) * -1), 0); }
.name::after { content: attr(data-ink); content: attr(data-ink) / ""; position: absolute; inset: 0;
  color: var(--pink); mix-blend-mode: multiply; transform: translate(var(--off), calc(var(--off) * .6)); }
.name:hover > span, .name:hover::after { transform: none; }

.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); row-gap: 28px;
  padding-bottom: clamp(36px, 5vw, 64px); }
.intro { grid-column: 1 / -1; }
.intro-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); margin-top: clamp(20px, 2.6vw, 36px); }
.who { grid-column: 1 / span 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.photo { width: 104px; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.role { font: 650 clamp(1.25rem, 1.9vw, 1.6rem)/1.15 var(--display); font-stretch: 112%; }
.location { display: block; margin-top: 6px; font: 400 17px/1.4 var(--font); color: var(--muted); }
.lede { grid-column: 5 / -1; display: grid; gap: 10px; max-width: 40ch; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; }
.facts { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 14px 24px; }
.facts div { border-top: 2px solid var(--text); padding-top: 6px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-weight: 500; }

/* Work: a big typographic index. Each title is a <details>. */
.work { border-top: 3px solid var(--text); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 14px 0 6px; }
h2 { font: 700 clamp(1.6rem, 2.6vw, 2.4rem)/1.05 var(--display); font-stretch: 90%; letter-spacing: -.01em; }
.work-head p { color: var(--muted); font-size: 15px; }

.project { border-bottom: 1px solid var(--rule); }
.project:last-child { border-bottom: 3px solid var(--text); }
summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center; gap: 12px clamp(16px, 2.4vw, 32px); padding: clamp(10px, 1.4vw, 18px) 0; }
summary::-webkit-details-marker { display: none; }
summary:focus-visible { outline-offset: -3px; }
.t { margin: 0; position: relative; font: 750 clamp(2rem, 5.6vw, 5.2rem)/.98 var(--display); font-stretch: 86%; letter-spacing: -.02em; }
.t > span { position: relative; z-index: 1; }
.t::after { content: attr(data-ink); content: attr(data-ink) / ""; position: absolute; inset: 0; z-index: 2;
  color: var(--pink); mix-blend-mode: multiply; transform: translate(var(--off), calc(var(--off) * -.5)); }
.meta { color: var(--muted); font-size: 15px; text-align: right; white-space: nowrap; }
.sign { font: 500 2.6rem/1 var(--display); width: 1ch; text-align: center; }
details[open] .sign { transform: rotate(45deg); }
details[open] .t { color: var(--accent); }
summary:hover .t::after, summary:focus-visible .t::after, details[open] .t::after { transform: none; }

/* Image plates: a pink and an accent plate behind each picture, peeking out off-register. */
.plate { position: relative; isolation: isolate; display: block; }
.plate::before, .plate::after { content: ""; position: absolute; inset: 0; z-index: -1; mix-blend-mode: multiply; }
.plate::before { background: var(--pink); transform: translate(var(--plate), var(--plate)); }
.plate::after { background: var(--accent); transform: translate(calc(var(--plate) * -1), calc(var(--plate) * -.5)); }
.plate:hover::before, .plate:hover::after, summary:hover .plate::before, summary:hover .plate::after,
summary:focus-visible .plate::before, summary:focus-visible .plate::after { transform: none; }
.plate img { background: var(--rule); }

.thumb { --plate: 4px; width: clamp(84px, 9vw, 132px); }
.thumb img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: 50% 30%; }
details[open] .thumb { visibility: hidden; }

.body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem); gap: 24px var(--gut); padding: 8px 0 clamp(32px, 4vw, 56px); }
.pics { display: grid; gap: 28px; justify-items: start; }
.cover { --plate: 9px; }
.cover img { width: auto; height: auto; max-width: 100%; max-height: min(78vh, 820px); }
.extras { display: flex; flex-wrap: wrap; gap: 22px; }
.extras img { height: clamp(150px, 18vw, 260px); width: auto; max-width: 100%; object-fit: cover; }
.text { display: grid; gap: 14px; align-content: start; }
.summary { display: grid; gap: 10px; font-size: 1.15rem; line-height: 1.5; max-width: 52ch; }
.credits { color: var(--muted); font-size: 15px; }
.link a { font-weight: 600; }

/* About and CV */
.rest { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); row-gap: 48px;
  padding: clamp(48px, 7vw, 96px) 0; }
.about { grid-column: 1 / span 7; display: grid; gap: 18px; align-content: start; }
.cv { grid-column: 8 / -1; display: grid; gap: 12px; align-content: start; }
.about:only-child, .cv:only-child { grid-column: 1 / span 8; }
.prose { display: grid; gap: 14px; max-width: 58ch; font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.5; }
.cv h3 { font: 600 17px/1.3 var(--font); margin-top: 10px; }
.cv li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.cv strong { font-weight: 500; }
.years { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Contact: a full flood of ink (the accent, or accent overprinted with pink). --on reads on it. */
.contact { background: var(--flood); color: var(--on); padding-top: clamp(40px, 6vw, 80px); padding-bottom: 32px;
  display: grid; gap: 22px; position: relative; }
.contact a { text-decoration-color: currentColor; }
.contact a:hover { text-decoration-color: var(--pink); }
.mail { justify-self: start; font: 750 clamp(1.7rem, 6.4vw, 5.5rem)/1 var(--display); font-stretch: 80%;
  letter-spacing: -.02em; overflow-wrap: anywhere; text-decoration-thickness: .06em !important; text-underline-offset: .12em; }
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 18px; }
.signoff { font-size: 15px; padding-top: 22px; margin-top: 18px; border-top: 1px solid currentColor; }
.plain-foot { padding-top: 24px; padding-bottom: 32px; color: var(--muted); font-size: 15px; }

@media (prefers-reduced-motion: no-preference) {
  /* the one orchestrated moment: both plates of the name slide in from opposite sides */
  .name > span { animation: plate-a .9s cubic-bezier(.2, .7, .2, 1) both; }
  .name::after { animation: plate-b .9s .08s cubic-bezier(.2, .7, .2, 1) both; }
  .name > span, .name::after, .t::after, .plate::before, .plate::after, .sign {
    transition: transform .22s cubic-bezier(.3, .7, .3, 1); }
}
@keyframes plate-a { from { transform: translate(-.3em, .06em); } }
@keyframes plate-b { from { transform: translate(.3em, -.04em); opacity: 0; } }

@media (max-width: 900px) {
  .who { grid-column: 1 / -1; margin-bottom: 14px; }
  .photo { width: 96px; }
  .lede, .facts { grid-column: 1 / -1; }
  .body { grid-template-columns: 1fr; }
  .about, .cv, .about:only-child, .cv:only-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .name { font-size: 17vw; line-height: .86; }
  summary { grid-template-columns: minmax(0, 1fr) auto auto; row-gap: 2px; }
  .t { grid-column: 1; grid-row: 1; }
  .meta { grid-column: 1; grid-row: 2; text-align: left; }
  .thumb { grid-column: 2; grid-row: 1 / span 2; width: 76px; }
  .sign { grid-column: 3; grid-row: 1 / span 2; }
  .facts { grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); gap: 12px 16px; }
  .cover img { max-height: 70vh; }
  .text { order: -1; }
  .extras { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .extras img { height: auto; width: 100%; }
  .extras .plate { --plate: 4px; }
}
@media print {
  body::after { display: none; }
  .top, .skip { display: none; }
}
