@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #27252b;
  --muted: #606169;
  --mint: #7be4d5;
  --pink: #ff487a;
  --link: #a62658;
  --rule: #e7e5e8;
  --rainbow: linear-gradient(95deg, #ad4f14, #ba3d58 24%, #945292 45%, #465ca5 63%, #167787 80%, #16704e);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: .5rem;
  background: var(--mint);
  z-index: 2;
}
::selection { background: #c5f3eb; color: #16161a; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: #126f6a; }
:focus-visible { outline: 3px solid #097777; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: .8rem;
  left: 1rem;
  z-index: 3;
  padding: .5rem .8rem;
  background: white;
}

.layout {
  max-width: 67.5rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 9.375rem minmax(0, 45rem);
  align-items: start;
  gap: 3.125rem;
  padding: 3.125rem clamp(1.5rem, 4vw, 3.125rem) 5rem;
}
.profile {
  position: sticky;
  top: 3.125rem;
  text-align: center;
}
.portrait { display: block; border-radius: 50%; }
.portrait img { width: 100%; height: auto; border-radius: 50%; }
.name {
  display: inline-block;
  margin-top: .85rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: #15141a;
}
.profile nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: .85rem;
  gap: .12rem;
}
.profile nav a {
  display: inline-block;
  padding: .25rem .55rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.profile nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--pink); }
.profile nav a:hover, .name:hover { color: var(--link); text-decoration: underline; }
main { min-width: 0; }
main:focus { outline: none; }

.archive-group { margin: 1rem 0 2.25rem; }
.archive-group:first-of-type { margin-top: .7rem; }
.archive-group h2 {
  margin: 0 0 .65rem;
  padding-left: .62rem;
  border-left: .5rem solid var(--pink);
  font-size: 1.375rem;
  line-height: 1.15;
}
.archive-group h2 span, .article-heading h1 {
  color: #8d345c;
}
@supports (background-clip: text) {
  .archive-group h2 span, .article-heading h1 {
    background: var(--rainbow);
    background-clip: text;
    color: transparent;
  }
}
.post-list { list-style: none; padding: 0; margin: 0; }
.post-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .45rem .2rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.45;
}
.thumb {
  width: 4.5rem;
  height: 2.8rem;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--rule);
}
.post-name {
  justify-self: start;
  text-decoration: underline dotted #a7a3aa 1px;
  text-underline-offset: .3em;
}
.post-row:hover .post-name, .post-row:focus-visible .post-name {
  text-decoration: underline solid currentColor;
}
.archive-date, .dateline {
  font-size: .8rem;
  color: var(--muted);
  letter-spacing: .075em;
  text-transform: uppercase;
}
.archive-date { white-space: nowrap; }
.article-heading { margin: .6rem 0 2rem; }
.dateline { margin: 0 0 .75rem; line-height: 1.7; }
.dateline span { margin: 0 .35rem; color: #8b8a91; }
.dateline a { color: inherit; }
.article-heading h1 {
  display: inline;
  margin: 0;
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.deck, .credit { margin: .7rem 0 0; line-height: 1.5; }
.deck { font-size: 1.08rem; }
.credit { font-size: .875rem; color: var(--muted); }
.prose { font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.prose :where(p, ul, ol, pre, blockquote) { margin: 0 0 1.2rem; }
.prose :where(ul, ol) { padding-left: 1.7rem; }
.prose li + li { margin-top: .36rem; }
.prose h2 { margin: 2.65rem 0 1.1rem; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.035em; }
.prose h2::after { content: ""; display: block; width: 2.55rem; height: .3rem; margin-top: .45rem; background: var(--pink); }
.prose h3 { margin: 1.5rem 0 .65rem; font-size: 1.1rem; line-height: 1.4; }
.prose a { font-weight: 700; }
.prose code { font-family: inherit; font-size: .92em; background: #eff6f4; border-radius: .2em; padding: .05em .22em; }
.prose pre { overflow: auto; padding: .85rem 1rem; border-left: .3rem solid var(--mint); background: #f7f7f8; font-size: .9rem; white-space: pre-wrap; }
.prose blockquote { border-left: .3rem solid var(--mint); margin: 1.5rem 0; padding: .85rem 1.2rem; background: #eefaf7; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose figure { margin: 1.65rem 0 2rem; }
.prose figure a:has(img) { display: block; }
.prose figure img { margin-inline: auto; height: auto; }
.prose figcaption { margin-top: .55rem; font-size: .83rem; color: var(--muted); line-height: 1.55; }
.prose .divider { margin: 1.65rem 0; }
.prose .divider img { width: 100%; height: auto; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.photo-grid img { width: 100%; height: 100% !important; aspect-ratio: 1.25; object-fit: cover; }
.pixel-grid, .severance-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: .65rem; }
.pixel-screen { image-rendering: pixelated; }
.severance-gallery a { background: #f4f4f4; }
.severance-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.editorial-cut { color: var(--muted); font-size: .85rem; }
.thread-count { color: var(--muted); white-space: nowrap; font-size: .85em; }
.article-footer { border-top: 3px solid var(--mint); margin-top: 3rem; padding-top: 1rem; font-size: .9rem; }
.article-footer a { color: var(--ink); font-weight: 700; }

.flow-figure, .stats-figure {
  padding: 1.1rem;
  border: 1px solid #cce3dc;
  border-radius: 3px;
  background: #f2faf7;
}
.flow-figure ol, .stats-figure dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-figure .diagram { width: 100%; margin-bottom: 1rem; }
.flow-figure ol > li, .stats-figure dl > div {
  border-top: 3px solid #67cbb9;
  margin: 0;
  padding-top: .55rem;
  font-size: .9rem;
}
.flow-figure li:nth-child(2), .stats-figure dl > div:nth-child(2) { border-color: #db799d; }
.flow-figure li:nth-child(3), .stats-figure dl > div:nth-child(3) { border-color: #9996cc; }
.flow-figure li strong { display: block; }
.stats-figure dt { font-size: .82rem; }
.stats-figure dd { margin: .2rem 0 0; font-size: clamp(1rem, 2.4vw, 1.5rem); font-weight: 700; }
.prose .timeline { list-style: none; margin: 1.4rem 0; padding: 0 0 0 1.2rem; border-left: 3px solid var(--mint); }
.timeline li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .75rem; position: relative; padding: .25rem 0 .65rem; }
.timeline li p { margin: .15rem 0 0; }
.timeline li::before { content: ""; position: absolute; left: -1.53rem; top: .78rem; width: .45rem; height: .45rem; background: var(--pink); border-radius: 50%; }
.timeline time { color: var(--muted); font-size: .82rem; }

@media (max-width: 44rem) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; padding: 2rem 1.25rem 3rem; }
  .profile { position: static; display: flex; align-items: center; gap: 1.15rem; text-align: left; }
  .portrait { width: clamp(4.75rem, 21vw, 6.6rem); flex: none; }
  .name { margin: 0; }
  .profile nav { flex-direction: row; flex-wrap: wrap; justify-content: start; margin-top: .3rem; column-gap: .9rem; }
  .profile nav a { padding: .25rem 0; }
  .archive-group { margin-bottom: 1.75rem; }
  .archive-group:first-of-type, .article-heading { margin-top: 0; }
  .post-row { grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: .7rem; padding-block: .46rem; }
  .thumb { width: 3.6rem; height: 2.5rem; }
}
@media (max-width: 32rem) {
  .post-row { grid-template-columns: 3.6rem minmax(0, 1fr); grid-template-rows: auto auto; gap: .15rem .8rem; }
  .post-row .thumb { grid-row: span 2; }
  .archive-date { grid-column: 2; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-figure ol { grid-template-columns: 1fr; gap: .7rem; }
  .stats-figure dl { gap: .5rem; }
  .timeline li { grid-template-columns: 1fr; gap: .15rem; }
}
@media (forced-colors: active) {
  .archive-group h2 span, .article-heading h1 { color: CanvasText; background: none; }
}
@media print {
  body::before, .profile, .article-footer, .skip-link { display: none; }
  .layout { display: block; padding: 0; }
  .article-heading h1, .archive-group h2 span { color: black; background: none; }
  .prose figure { break-inside: avoid; }
}
