:root {
  --ink: #111;
  --muted: #8a8a8a;
  --body: #5c5c5c;
  --line: #e6e6e6;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 32px;
}
.top nav { display: flex; gap: 24px; }
.wordmark {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
}
.wordmark:hover { text-decoration: none; }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 0 16px;
  text-align: center;
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.nowrap { white-space: nowrap; }

/* Post list on the home page */
.posts {
  width: min(560px, 100%);
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.posts li { border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
}
.posts a:hover { text-decoration: none; }
.posts a:hover .posts-title { text-decoration: underline; text-underline-offset: 3px; }
.posts-title {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.2;
}
.posts time { flex: none; color: var(--muted); }

/* Blog post: the header scrolls away instead of sitting over the text */
.post { padding: 120px 24px 160px; }
.post-page .top { position: absolute; }
.post-header {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.post-date { color: var(--muted); }
.post h1 {
  margin-top: 12px;
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s;
}
.pill:hover { border-color: var(--ink); text-decoration: none; }

.prose {
  max-width: 680px;
  margin: 56px auto 0;
  font-size: 14px;
  line-height: 1.8;
  color: #2b2b2b;
}
.prose p { margin: 0 0 1.4em; }
.prose h2 {
  margin: 2.4em 0 0.7em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prose ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.prose li { margin-bottom: 0.9em; padding-left: 0.3em; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose figure { margin: 2.6em 0; }
.prose a {
  text-decoration: underline;
  text-decoration-color: #c8c8c8;
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: currentColor; }

.references {
  margin-top: 4em;
  padding-top: 0.5em;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--body);
}
.references h2 { margin-top: 1.4em; font-size: 28px; }
.references ol { padding-left: 2.4em; }
.references li { margin-bottom: 0.7em; padding-left: 0.4em; }
.references li::marker { content: "[" counter(list-item) "]  "; color: var(--muted); }
.prose img,
.prose video {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .top { padding: 20px; }
  .home .top .wordmark { display: none; }
  .home .top { justify-content: flex-end; }
  .post { padding-top: 96px; }
  .prose { margin-top: 40px; }
  .prose h2 { font-size: 30px; }
  .posts a { flex-direction: column; gap: 4px; }
}
