:root {
  color-scheme: light;
  --ink: #182027;
  --muted: #53616e;
  --accent: #184ecc;
  --rule: #d8dee5;
  --surface: #f2f5f9;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.12em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.site-shell { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.site-header { padding: 3rem 0 1.5rem; }
.wordmark { font: 700 clamp(2rem, 6vw, 3.6rem)/1.1 Georgia, serif; letter-spacing: -0.055em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--accent); }
.site-header > p { color: var(--muted); margin: 1rem 0; }
nav { display: flex; gap: 1.5rem; font-size: 0.9375rem; }
nav a { color: var(--ink); }
nav [aria-current="page"] { font-weight: 700; }
main { padding-block: 2.5rem 3rem; min-height: 18rem; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.025em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0.5rem 0 1rem; }
h2 { font-size: 1.8rem; }
.section-title { font: 600 0.875rem/1.4 system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 2rem; }
.post-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  column-width: 17rem;
  column-gap: 1.25rem;
}
.post-grid > li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 1.25rem;
  min-width: 0;
  width: 100%;
  display: inline-block;
}
.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: 0.35rem;
  height: auto;
}
.source-domain { margin: 0; font-size: 0.8125rem; }
.source-domain a {
  color: var(--muted);
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.source-domain a:hover { color: var(--accent); text-decoration: underline; }
.post-card h2 { font-size: 1.25rem; margin: 0; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); text-decoration: underline; }
.card-blurb { margin: 0; color: var(--muted); flex: 1; }
.note-link { margin: 0.25rem 0 0; font-size: 0.875rem; }
.note-link a { color: var(--muted); }
.note-link a:hover { color: var(--accent); }
.eyebrow, .byline { font-size: 0.875rem; color: var(--muted); }
.post-header { border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.post-description { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.source { font-size: 0.9375rem; overflow-wrap: anywhere; }
.prose { max-width: 68ch; font-size: 1.125rem; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose li + li { margin-top: 0.5rem; }
.prose img { display: block; max-width: 100%; height: auto; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); color: var(--muted); }
code { font-size: 0.9em; background: var(--surface); padding: 0.1em 0.25em; border-radius: 0.2rem; }
pre { overflow: auto; background: var(--surface); padding: 1rem; border: 1px solid var(--rule); }
pre code { padding: 0; background: none; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 0.5rem 0.75rem; text-align: left; }
.back-link { margin-top: 3rem; }
.site-footer { border-top: 1px solid var(--rule); padding-block: 1.5rem 2.5rem; color: var(--muted); font-size: 0.875rem; }
.footer-nav { display: flex; gap: 1.5rem; margin-bottom: 0.75rem; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.footer-nav [aria-current="page"] { font-weight: 700; color: var(--ink); }
.skip-link { position: absolute; top: -6rem; left: 1rem; background: #fff; padding: 0.75rem; z-index: 1; }
.skip-link:focus { top: 1rem; }
@media (max-width: 35rem) {
  .site-shell { width: calc(100% - 2rem); }
  .site-header { padding-top: 2rem; }
  main { padding-top: 2rem; }
  .post-grid { column-count: 1; column-width: auto; }
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.kind-badge {
  display: inline-block;
  font: 600 0.6875rem/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: #fff;
  color: var(--muted);
}
.post-card.kind-paper {
  border-color: #c9d4e8;
  background: #eef3fb;
}
.post-card.kind-paper .kind-badge {
  border-color: #b7c6e3;
  background: #e2eaf8;
  color: #1e3a6e;
}
.post-card.kind-field-note {
  border-color: var(--rule);
  background: var(--surface);
}
.post-card.kind-field-note .kind-badge {
  border-color: #d2d8de;
  background: #fff;
  color: #4a5966;
}
.post-header .kind-badge {
  vertical-align: middle;
}

.post-card.kind-editorial {
  border-color: #e0c9a0;
  background: #fbf6ec;
}
.post-card.kind-editorial .kind-badge {
  border-color: #d4b57a;
  background: #f3e6cc;
  color: #6b4e16;
}
.post-card.kind-editorial .card-blurb.editorial-summary,
.editorial-summary {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.55;
  font-family: Georgia, "Times New Roman", serif;
}
.post-card.kind-editorial h2 {
  font-size: 1.45rem;
}
