:root {
  --paper: #ffffff;
  --ink: #17181a;
  --muted: #6a6f76;
  --rule: #e4e6e8;
  --link: #1b4e8c;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Charter", "Bitstream Charter", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.6rem;
}

.site-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

nav.site a {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.1rem;
}

nav.site a:first-child { margin-left: 0; }

nav.site a:hover,
nav.site a[aria-current="page"] { color: var(--ink); }

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 1.1rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2.4rem 0 0.8rem;
}

p { margin: 0 0 1.1rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
a:hover { text-decoration-thickness: 2px; }

.lede { font-size: 1.125rem; }

/* notes list: dates hang in a narrow column, collapse on small screens */
ol.notes {
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.notes li {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 0.2rem 1.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

ol.notes li:last-child { border-bottom: 0; }

ol.notes time {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.18rem;
}

ol.notes a { text-decoration: none; }
ol.notes a:hover { text-decoration: underline; }

ol.notes p {
  grid-column: 2;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

footer.site {
  margin-top: 3.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site a { color: var(--muted); }

article.post p { margin-bottom: 1.15rem; }

article.post .post-date {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

@media (max-width: 34rem) {
  .wrap { padding-top: 3rem; }
  ol.notes li { grid-template-columns: 1fr; }
  ol.notes p { grid-column: 1; }
}
