@font-face { font-family: Newsreader; src: url(/fonts/newsreader.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url(/fonts/newsreader-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Code Pro"; src: url(/fonts/source-code-pro.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --paper: #FDFDFC;
  --ink: #161616;
  --muted: #6B6B6B;
  --rule: #E3E3E0;
  --green: #1E6B4F;
  --tint: #E4EFE9;
  --code-bg: #F4F4F0;
  --serif: Newsreader, Georgia, serif;
  /* The posts' interactives draw software screens, so they keep a sans. */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Source Code Pro", ui-monospace, Menlo, monospace;
  --page: 872px;
  --gutter: 56px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 19px/1.6 var(--serif); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; }
a:hover { background: var(--tint); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
code { font: 500 0.82em var(--font-mono); background: var(--code-bg); padding: 2px 5px; border-radius: 4px; }
pre { font-family: var(--font-mono); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

.top { max-width: var(--page); margin: 0 auto; padding: 32px var(--gutter) 0; display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.top a { text-decoration: none; }
.top a:hover { background: none; text-decoration: underline; text-decoration-color: var(--green); }
.top .home { font-weight: 500; white-space: nowrap; }
.top nav { display: flex; gap: 28px; color: var(--muted); }

.bio { margin: 0; padding: 150px 0 0; font-size: 46px; line-height: 1.3; letter-spacing: -0.012em; font-weight: 380; max-width: 21em; }
.bio .quiet { color: var(--muted); }

.writing { margin-top: 120px; }
.writing h2 { margin: 0 0 6px; font-size: 19px; font-weight: 500; font-style: italic; color: var(--muted); }
.writing h2 + .row, .writing > .row:first-child { border-top: 1px solid var(--rule); }
.h-rows > .row:first-child { padding-top: 4px; }
.writing h2 a { text-decoration-thickness: 1px; }
.row { display: grid; grid-template-columns: 132px 1fr auto; gap: 4px 28px; align-items: baseline; padding: 20px 0 22px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.row:hover { background: none; }
.row:hover .t { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.row .th { grid-row: 1 / span 2; grid-column: 1; align-self: start; width: 132px; height: 88px; object-fit: cover; border-radius: 4px; }
.row .t { grid-column: 2; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
.row .s { grid-column: 2; font-style: italic; color: var(--muted); font-size: 18px; }
.row .m { grid-row: 1; grid-column: 3; color: var(--muted); font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row .p { grid-column: 3; grid-row: 2; justify-self: end; font-size: 15px; font-style: italic; color: var(--muted); }

.h-wrap .bio { padding-top: 96px; font-size: 36px; }
.h-sec { margin-top: 96px; padding-top: 26px; border-top: 1px solid var(--rule); }
.h-label { margin: 0 0 18px; font-size: 17px; font-weight: 500; font-style: italic; color: var(--muted); }

.page-head { padding: 120px 0 0; }
.page-head h1 { margin: 0; font-weight: 400; font-size: 56px; line-height: 1.08; letter-spacing: -0.018em; }
.page-head p { margin: 18px 0 0; font-size: 22px; font-style: italic; color: #4A4A4A; max-width: 32em; }

.site-foot { max-width: var(--page); margin: 120px auto 0; padding: 26px var(--gutter) 40px; display: flex; flex-wrap: wrap; gap: 28px; font-size: 17px; color: var(--muted); }
.site-foot span { margin-left: auto; }

@media (max-width: 760px) {
  :root { --gutter: 22px; }
  .h-wrap .bio { padding-top: 56px; font-size: 28px; }
  .h-sec { margin-top: 64px; }
  .top { padding-top: 22px; flex-wrap: wrap; gap: 6px 18px; }
  .top nav { flex-wrap: wrap; gap: 4px 18px; }
  .bio { padding-top: 72px; font-size: 30px; }
  .writing { margin-top: 72px; }
  .row { grid-template-columns: 84px 1fr auto; column-gap: 16px; }
  .row .th { width: 84px; height: 56px; }
  .row .t { font-size: 22px; }
  .page-head { padding-top: 64px; }
  .page-head h1 { font-size: 40px; }
  .site-foot { padding-top: 24px; padding-bottom: 36px; gap: 18px; margin-top: 80px; }
  .site-foot span { margin-left: 0; width: 100%; }
}
