/* One screen: the photograph, full bleed; the name top left; the apps bottom left; the research bottom right.
   Sizes are set so that at a 1376 x 768 window the page matches the original picture. */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/IBMPlexMono-Regular.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #0b0f0e;
  --ink: #e6e4de;
  --ink-sub: #dedcd5;
  --ink-item: rgba(236, 234, 227, .93);
  --ink-num: rgba(228, 226, 220, .34);
  --fs-title: clamp(20px, 1.833vw, 36px);
  --fs-sub: clamp(13px, 1.148vw, 22px);
  --fs-list: clamp(12px, .945vw, 18px);
  --x-name: clamp(18px, 2.91vw, 56px);
  --x-list: clamp(16px, 2.66vw, 52px);
  --top: clamp(16px, 2.83vw, 54px);
  --bottom: clamp(18px, 2.25vw, 44px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); }
body { color: var(--ink); font-family: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 400;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }

.frame { position: relative; height: 100vh; height: 100svh; min-height: 300px; overflow: hidden; background: var(--ground); }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }

.name { position: absolute; top: max(var(--top), env(safe-area-inset-top, 0px)); left: max(var(--x-name), env(safe-area-inset-left, 0px)); }
.name h1 { margin: 0; font-weight: 400; font-size: var(--fs-title); line-height: 1.2; letter-spacing: 0; color: var(--ink); }
.name p { margin: .1em 0 0; font-size: var(--fs-sub); line-height: 1.3; color: var(--ink-sub); }

.corners { position: absolute; bottom: max(var(--bottom), env(safe-area-inset-bottom, 0px));
  left: max(var(--x-list), env(safe-area-inset-left, 0px)); right: max(var(--x-list), env(safe-area-inset-right, 0px));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2em; }
.index { margin: 0; padding: 0; list-style: none; font-size: var(--fs-list); line-height: 1.385; color: var(--ink-item); white-space: nowrap; }
.research { text-align: right; }
.n { color: var(--ink-num); }

/* a phone held upright: the two lists stack, apps on the left above research on the right */
@media (max-width: 720px) {
  .corners { flex-direction: column; align-items: stretch; gap: 1.15em; }
  .index { font-size: 12.5px; line-height: 1.5; }
}
