/* Shared by every page: tokens, type, the header, and the one centred column everything lives in. */
:root {
  --bg: #fff; --fg: #000; --mute: #888; --line: #e4e4e4;
  --pad: 33px; --col: 520px;
  --ease: cubic-bezier(.3, .7, .2, 1);
  color-scheme: light;
}
@media (max-width: 640px) { :root { --pad: 16px; } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 13px/20px Inter, system-ui, sans-serif; letter-spacing: -.15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { all: unset; cursor: pointer; }
a:hover, button:hover { color: var(--mute); }
:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }
.mute { color: var(--mute); }
.u { border-bottom: 1px solid var(--line); }
.u:hover { border-color: var(--mute); }

/* one column in the middle of the page */
.col { max-width: calc(var(--col) + var(--pad) * 2); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.top { padding-top: 96px; }
.top .bio { margin-top: 20px; max-width: 380px; }
.top .bio p + p { margin-top: 20px; }
.top nav { display: flex; gap: 22px; margin-top: 20px; }
.top nav [aria-current] { color: var(--mute); }
@media (max-width: 640px) { .top { padding-top: 56px; } .top nav { gap: 16px; } }

/* the essay list: hairlines between rows, date on the right */
.list { list-style: none; }
.list li { border-top: 1px solid var(--line); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; padding: 10px 0; }
.list .t { font-weight: 500; }
.list .s, .list .d { color: var(--mute); }
.list .d { font-variant-numeric: tabular-nums; white-space: nowrap; }
.list a.row:hover, .list a.row:hover .s, .list a.row:hover .d { color: var(--mute); }
.list span.row, .list span.row .t { color: var(--mute); }
.nw { white-space: nowrap; }
