:root {
  color-scheme: light;
  --paper: #fdfdfc;
  --ink: #171717;
  --secondary: #595959;
  --rule: #d8d8d8;
  --serif: "Benne", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.55;
}

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

a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
::selection { background: #e8e8e8; }

.site {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--rule);
}

.name {
  font-size: 2.125rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--sans);
  font-size: .9375rem;
  line-height: 1.5;
}

nav a {
  padding: 8px 0;
  text-decoration: none;
}

nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }

.introduction {
  margin: 38px 0 39px;
  font-size: 1.1875rem;
  line-height: 1.55;
  font-weight: 400;
}

.introduction h1, .introduction p { margin: 0; font: inherit; }
.introduction > * + * { margin-top: 12px; }

.index-section { margin-top: 35px; scroll-margin-top: 24px; }

.section-label {
  margin: 0 0 13px;
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.5;
}

.entries, .profile-links { list-style: none; margin: 0; padding: 0; }
.entries { border-top: 1px solid var(--rule); }

.entry {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--rule);
}

.entry > div { min-width: 0; }
.entry-title { margin: 0; font-size: 1.25rem; line-height: 1.45; font-weight: 400; }
.entry-description { margin: 2px 0 0; font-size: 1.1875rem; line-height: 1.45; }

.entry-meta, .article-meta {
  color: var(--secondary);
  font-family: var(--sans);
  font-size: .875rem;
  line-height: 1.6;
}

.entry-meta { flex-shrink: 0; white-space: nowrap; }

.empty-state {
  margin: 0;
  padding: 13px 0 15px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--secondary);
  font-size: 1.125rem;
}

.empty-research {
  height: 60px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: var(--sans);
  font-size: .9375rem;
}

.profile-links li { display: flex; align-items: center; gap: 12px; }
.profile-links span { color: var(--secondary); }
.profile-links a { display: inline-block; padding: 4px 0; }

.archive { margin-top: 38px; }
.archive-header { margin-bottom: 24px; }
.archive h1 { margin: 0; font-size: 2rem; font-weight: 400; line-height: 1.2; }

.article { max-width: 670px; margin: 44px auto 0; }
.article-header { margin-bottom: 30px; }
.article-header .section-label { margin-bottom: 17px; }
.article h1 { margin: 0; font-size: 2.625rem; font-weight: 400; line-height: 1.15; overflow-wrap: anywhere; }
.article-subtitle { margin: 12px 0; font-size: 1.5rem; line-height: 1.4; }
.article-meta { margin: 14px 0 0; }
.article-meta span { padding: 0 6px; }
.prose { overflow-wrap: break-word; }
.prose p { margin: 0 0 1em; }
.prose h2 { margin: 1.6em 0 .45em; font-size: 1.75rem; font-weight: 400; line-height: 1.25; }
.prose h3 { margin: 1.5em 0 .4em; font-size: 1.375rem; font-family: var(--serif); font-weight: 400; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .3em; }
.prose blockquote { margin: 1.25em 0; border-left: 2px solid var(--rule); padding-left: 1em; color: var(--secondary); }
.prose img, .prose video { display: block; max-width: 100%; height: auto; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { margin-top: .7em; color: var(--secondary); font: .875rem/1.6 var(--sans); }
.prose pre { max-width: 100%; overflow: auto; padding: 16px; background: #f6f6f6; font-size: .875rem; line-height: 1.6; }
.prose code { font-size: .78em; }
.prose pre code { font-size: inherit; }
.back-link { display: inline-block; margin-top: 24px; padding: 8px 0; font: .9375rem/1.5 var(--sans); }

.skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  transform: translateY(-200%);
  background: var(--paper);
  padding: 8px 12px;
  font: 1rem/1.5 var(--sans);
}
.skip-link:focus { transform: none; }

@media (max-width: 700px) {
  .site { padding: 30px 24px 60px; }
  .site-header { flex-wrap: wrap; gap: 14px; padding-bottom: 15px; }
  .name { font-size: 2rem; }
  nav { width: 100%; gap: 26px; }
  .introduction { margin-top: 30px; }
  .archive { margin-top: 30px; }
  .article { margin-top: 32px; }
}

@media (max-width: 480px) {
  .site { padding: 25px 20px 52px; }
  .name { font-size: 1.875rem; white-space: normal; }
  .entry { flex-direction: column; align-items: flex-start; gap: 6px; }
  .article h1 { font-size: 2.25rem; }
  .article-subtitle { font-size: 1.375rem; }
}

@media print {
  .site { max-width: none; padding: 0; }
  nav, .skip-link, .back-link { display: none; }
  .article { max-width: none; }
  a { text-decoration: none; }
}
