:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #171717;
  --muted: #606060;
  --line: #dedede;
  --accent: #a32923;
  --reading-width: 46rem;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 6.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1875rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: .06em; text-underline-offset: .16em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button, summary { -webkit-tap-highlight-color: transparent; }
::selection { background: #f2d4d1; color: #171717; }

.skip-link { position: fixed; top: -7rem; left: 1rem; z-index: 10; padding: .65rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  min-height: 4.75rem;
  max-width: 87rem;
  margin: 0 auto;
  padding: .65rem clamp(1.25rem, 4vw, 4rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.wordmark {
  font: 700 1.15rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: -.055em;
  text-decoration: none;
  color: var(--ink);
}
.language-switch { display: flex; align-items: center; gap: .25rem; font: 600 .875rem/1 Arial, Helvetica, sans-serif; }
.language-switch a {
  display: grid;
  place-items: center;
  min-width: 3rem;
  min-height: 2.75rem;
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.language-switch a:hover { border-color: var(--ink); }
.language-switch a[aria-current='page'] { color: white; background: var(--ink); border-color: var(--ink); }

main { max-width: var(--reading-width); margin: 0 auto; padding: 4.25rem 0 5rem; }
.essay-header { margin-bottom: 2.75rem; }
.eyebrow { margin: 0 0 1.5rem; font: 600 .8125rem/1.5 Arial, Helvetica, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
h1 {
  margin: 0 0 1.4rem;
  max-width: 18ch;
  font-size: clamp(2.55rem, 5.6vw, 4rem);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.subtitle { margin: 0 0 1.65rem; font-size: 1.375rem; line-height: 1.4; max-width: 36ch; }
.byline { margin: 0 0 .35rem; font: 600 .9375rem/1.6 Arial, Helvetica, sans-serif; }
.date { margin: 0; color: var(--muted); font: .875rem/1.6 Arial, Helvetica, sans-serif; }

.abstract { padding-top: 1.7rem; padding-bottom: .3rem; border-top: 1px solid var(--ink); }
.abstract h2 { margin-top: 0; font: 700 .875rem/1.4 Arial, Helvetica, sans-serif; letter-spacing: .035em; }
.abstract p { font-size: 1.0625rem; line-height: 1.65; }
.contents { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.65rem 0 3.3rem; padding: .9rem 0; font: .9375rem/1.55 Arial, Helvetica, sans-serif; }
.contents summary { cursor: pointer; font-weight: 600; }
.contents ol { padding-left: 1.3rem; margin: .9rem 0 .4rem; }
.contents li { padding: .2rem 0; }
.contents a { color: var(--ink); }
.essay-section { margin: 0 0 3.2rem; }
h2 { margin: 2.75rem 0 1.2rem; font-size: 1.625rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0 0 1.2rem; }
.reference { font: .68em/0 Arial, Helvetica, sans-serif; vertical-align: super; white-space: nowrap; }
.reference a { text-decoration: none; padding: .1em .18em; }
.reference a:hover { text-decoration: underline; }
.research-note { margin-top: 3rem; color: var(--muted); font: italic .9375rem/1.6 Georgia, 'Times New Roman', serif; }
.sources { border-top: 1px solid var(--ink); margin-top: 3rem; padding-top: 1.7rem; }
.sources h2 { margin: 0 0 1.75rem; }
.notes { margin: 0; padding-left: 1.8rem; font: .9375rem/1.65 Arial, Helvetica, sans-serif; overflow-wrap: anywhere; }
.notes li { padding: .3rem 0 1.2rem .35rem; margin-bottom: .85rem; border-bottom: 1px solid var(--line); scroll-margin-top: 6.5rem; }
.notes li::marker { font-weight: 700; color: var(--accent); }
.notes p { margin: 0 0 .6rem; }
.note-links { font-size: .875rem; }
.note-backlink { display: inline-block; margin-top: .2rem; font-size: .875rem; color: var(--muted); }
.notes li:target { background: #fdf4f2; outline: .55rem solid #fdf4f2; }
.reference a:target { background: #f2d4d1; outline: 3px solid #f2d4d1; }
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 1.25rem 2.25rem; color: var(--muted); font: .875rem/1.6 Arial, Helvetica, sans-serif; }
.site-footer-inner { max-width: var(--reading-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.site-footer a { color: inherit; }

@media (max-width: 52rem) {
  main { padding: 3rem 1.4rem 4rem; }
  .masthead-inner { min-height: 4.25rem; padding-left: 1.4rem; padding-right: 1.4rem; }
}
@media (max-width: 35rem) {
  body { font-size: 1.0625rem; line-height: 1.68; }
  main { padding-top: 2.5rem; }
  h1 { font-size: clamp(2.35rem, 9.2vw, 3.1rem); max-width: 19ch; }
  h2 { font-size: 1.5rem; }
  .subtitle { font-size: 1.2rem; }
  .byline { font-size: .875rem; }
  .abstract p { font-size: 1rem; }
  .site-footer-inner { flex-direction: column; gap: .6rem; }
}

@page { margin: 19mm 18mm; }
@media print {
  .masthead, .contents, .site-footer, .skip-link, .note-backlink { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; line-height: 1.4; }
  main { padding: 0; max-width: none; }
  .essay-header { margin-bottom: 1.5rem; }
  .eyebrow { margin-bottom: .8rem; font-size: 9pt; }
  h1 { max-width: none; font-size: 26pt; letter-spacing: -.02em; }
  .subtitle { max-width: none; font-size: 15pt; }
  .byline, .date { font-size: 10pt; }
  .abstract p { font-size: 10.5pt; }
  .essay-section { margin-bottom: 1.5rem; }
  h2 { font-size: 15pt; break-after: avoid; margin-top: 1.5rem; }
  p { orphans: 3; widows: 3; margin-bottom: .7rem; }
  a { color: #000; text-decoration: none; }
  .notes, .note-links { font-size: 9pt; line-height: 1.4; }
  .notes li { padding-bottom: .6rem; margin-bottom: .6rem; }
  .notes li::marker { color: #000; }
  .research-note { font-size: 9pt; }
  .sources { break-before: page; }
  .notes li:target { background: none; outline: 0; }
}
