:root {
  --gutter: clamp(20px, 5vw, 80px);
  --measure: 1216px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.5 var(--serif);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
summary { cursor: pointer; }
svg, img { display: block; }
::selection { color: #fff; background: #252525; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.shell {
  width: min(var(--measure), calc(100% - var(--gutter) - var(--gutter)));
  margin-inline: auto;
}
.skip-link:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link:focus-visible {
  position: absolute;
  z-index: 32;
  top: 10px;
  left: var(--gutter);
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
}
/* The opening frames the photographed page and its original ink. */
.opening {
  --sheet-width: min(92vw, 1240px, 118vh);
  --crop-width: 1845;
  --crop-height: 1310;
  --padding-pixels: 352;
  --outer-paper: 224;
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #afb3af;
  place-items: center;
}
@supports (height: 100dvh) {
  .opening { --sheet-width: min(92vw, 1240px, 118dvh); }
}
.opening-stock {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* Keep a collar of untouched paper around the writing. Only the outer blank
   margin expands on long screens, in the same coordinates as the canvas. */
.opening-stock::before {
  content: "";
  position: absolute;
  --outer-size: calc(var(--sheet-width) * var(--outer-paper) / var(--crop-width));
  --master-width: calc(var(--sheet-width) * (var(--crop-width) + 2 * var(--padding-pixels)) / var(--crop-width));
  --master-height: calc(var(--sheet-width) * (var(--crop-height) + 2 * var(--padding-pixels)) / var(--crop-width));
  top: min(0px, calc((100% - var(--master-height)) / 2));
  left: min(0px, calc((100% - var(--master-width)) / 2));
  width: max(100%, var(--master-width));
  height: max(100%, var(--master-height));
  border-style: solid;
  border-color: transparent;
  border-width: max(var(--outer-size), calc((100dvh - var(--master-height)) / 2 + var(--outer-size)))
    max(var(--outer-size), calc((100vw - var(--master-width)) / 2 + var(--outer-size)));
  border-image: url("assets/grr-sheet.e64ca5efdc84f861.webp") var(--outer-paper) fill / 1 / 0 stretch;
}
.opening-enter {
  position: absolute;
  inset: 0;
  z-index: 28;
  -webkit-tap-highlight-color: transparent;
}
.opening-enter:focus-visible { outline-offset: -4px; }
.opening-ready .opening-enter { position: fixed; pointer-events: auto; }
.opening[data-frame] .opening-enter { display: none; }
.opening-sheet {
  --crop-left: 35;
  --crop-top: 45;
  position: relative;
  overflow: hidden;
  width: var(--sheet-width);
  aspect-ratio: var(--crop-width) / var(--crop-height);
}
.opening-photo {
  /* The nine-slice image also paints the center, including fractional screen pixels. */
  opacity: 0;
  position: absolute;
  left: calc(-100% * var(--padding-pixels) / var(--crop-width));
  top: calc(-100% * var(--padding-pixels) / var(--crop-height));
  width: calc(100% * (var(--crop-width) + 2 * var(--padding-pixels)) / var(--crop-width));
  height: calc(100% * (var(--crop-height) + 2 * var(--padding-pixels)) / var(--crop-height));
}
.profile-page {
  --paper: #1c1e20;
  --ink: #fff;
  --display: var(--mono);
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--paper);
  font: 400 1.025rem/1.68 var(--display);
  scroll-margin-top: -22px;
  outline: none;
}
.opening-burn { display: none; }
.opening-ready:not(.opening-complete) {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pinch-zoom;
}
.opening-ready:not(.opening-complete) body {
  height: 100vh;
  height: 100dvh;
  overflow: clip;
  touch-action: pinch-zoom;
}
.opening-ready .opening {
  height: 0;
  background: transparent;
  pointer-events: none;
}
.opening-ready :is(.opening-stock, .opening-sheet, .opening-burn) {
  position: fixed;
  z-index: 25;
}
.opening-ready .opening-stock { height: 100dvh; }
.opening-ready .opening-sheet { z-index: 26; }
.opening-ready .opening-sheet {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}
.opening-ready .opening-burn {
  z-index: 27;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}
.opening-ready .profile-page { background-color: #92918b; }
.opening-ready .profile-photo { opacity: var(--city-opacity, 0); }
.opening-ready .profile-copy { opacity: var(--profile-opacity, 0); }
.opening-ready:not(.opening-complete) .profile-page { pointer-events: none; }
.opening-ready .opening[data-frame] :is(.opening-sheet, .opening-stock) { visibility: hidden; }
.opening-ready .opening[data-stock]:not([data-frame]) .opening-burn,
.opening-ready .opening:is([data-frame="burn"], [data-frame="ash"]) .opening-burn {
  display: block;
}

.profile-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.profile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 4% 100%, rgb(13 15 17 / .73) 0%,
    rgb(13 15 17 / .53) 25%, transparent 66%);
}
.profile-document {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(42px, 9vh, 108px);
  outline: none;
}
.site-header { margin-bottom: clamp(22px, 3vw, 35px); }
.site-header h1 {
  font: 400 clamp(2.65rem, 5.2vw, 4.85rem)/1.02 var(--display);
  letter-spacing: -.055em;
}
.profile-copy { max-width: 39rem; text-shadow: 0 1px 12px rgb(0 0 0 / .38); }
@media (forced-colors: active) {
  .profile-copy { color: CanvasText; background: Canvas; }
}
.profile-intro p { max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.55; }
#research, #notes { margin-top: clamp(1.5rem, 3vh, 2.15rem); }
.profile-copy details > summary {
  display: flex;
  align-items: center;
  gap: .5em;
  font: 500 1.1rem/1.4 var(--mono);
}
.profile-copy details > summary::-webkit-details-marker { display: none; }
.section-marker {
  font: 400 .85em/1 Arial, sans-serif;
  transform-origin: 40% 36%;
}
.profile-copy details[open] > summary .section-marker { transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) {
  .section-marker {
    transition: transform 400ms cubic-bezier(.48, 0, .32, 1.18);
    transition-timing-function: linear(
      0, .04 8%, .18 16%, .48 25%, .81 34%, 1.04 43%, 1.10 51%,
      1.06 59%, 1.01 67%, .982 75%, .988 84%, 1 94% 100%
    );
  }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .profile-copy details { interpolate-size: allow-keywords; }
    .profile-copy details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 240ms ease, content-visibility 240ms allow-discrete;
    }
    .profile-copy details[open]::details-content { block-size: auto; }
  }
}
.research-papers { display: grid; gap: 1rem; padding: 0; list-style: none; }
.research-papers:not(:empty) { margin-top: .8rem; }
.research-papers a {
  font-size: 1rem;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / .65);
  text-underline-offset: .19em;
}
.research-papers p { margin-top: .23rem; font-size: .82rem; line-height: 1.5; }
@media (max-width: 690px) {
  .profile-photo img { object-position: 48% 50%; }
  .profile-photo::after {
    background: linear-gradient(0deg, rgb(13 15 17 / .72), rgb(13 15 17 / .62) 32%,
      rgb(13 15 17 / .53) 55%, rgb(13 15 17 / .12) 78%, transparent);
  }
  .profile-document { padding-bottom: max(42px, 8vh, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
