:root {
  color-scheme: light;
  --ink: #191919;
  --muted: #747474;
  --measure: 42.5rem;
}

* { box-sizing: border-box; }
html { font-size: 17px; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

.shell {
  width: min(calc(100% - 3rem), var(--measure));
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.3rem 0 6.5rem;
  font-size: .88rem;
}

header a { text-decoration: none; }
nav { display: flex; gap: 1.5rem; }
main { min-height: calc(100vh - 15rem); }
.intro { margin-bottom: 5.3rem; }

h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 1.62rem; font-weight: 500; letter-spacing: -.025em; }

.intro p {
  max-width: 33rem;
  margin: 1rem 0 0;
  color: #5f5f5f;
}

.posts { max-width: 100%; }

.post-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: .62rem 0;
  text-decoration: none;
}

.post-row:hover span { text-decoration: underline; text-underline-offset: .25em; }
.post-row time { color: var(--muted); font-size: .82rem; }
article { padding-bottom: 2rem; }
.post-head { margin-bottom: 3.8rem; }
.post-head h1 { max-width: 23ch; font-size: 2rem; line-height: 1.2; }

.post-meta {
  display: block;
  margin-top: .85rem;
  color: var(--muted);
  font-size: .78rem;
}

.prose {
  max-width: 40rem;
  font-size: 1.06rem;
  line-height: 1.78;
}

.prose p { margin: 0 0 1.55em; }
.prose h2 { margin: 2.8em 0 .75em; font-size: 1.06rem; font-weight: 600; }
.prose h3 { margin: 2.5em 0 .7em; font-size: 1rem; font-weight: 600; }
.prose blockquote { margin: 2em 0; padding-left: 1.2rem; border-left: 1px solid #aaa; color: #555; }
.prose pre { overflow-x: auto; padding: 1rem; background: #f5f5f3; font: .8rem/1.55 ui-monospace, monospace; }
.prose code { font: .84em ui-monospace, monospace; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 6rem 0 2.8rem;
  color: var(--muted);
  font-size: .76rem;
}

@media (max-width: 34rem) {
  html { font-size: 16px; }
  .shell { width: min(calc(100% - 2.25rem), var(--measure)); }
  header { padding: 2rem 0 4.5rem; }
  .intro { margin-bottom: 4rem; }
  .post-row { grid-template-columns: 1fr; gap: 0; padding: .9rem 0; }
  .post-row time { font-size: .75rem; }
  .post-head { margin-bottom: 3rem; }
  .post-head h1 { font-size: 1.75rem; }
}
