@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ZillaSlab-500.woff2") format("woff2");
}

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ZillaSlab-600.woff2") format("woff2");
}

@font-face {
  font-family: "Zilla Slab";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ZillaSlab-700.woff2") format("woff2");
}

@font-face {
  font-family: "Piazzolla";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/Piazzolla-roman.woff2") format("woff2");
}

@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/FragmentMono-400.woff2") format("woff2");
}

:root {
  --paper: #eaeef4;
  --panel: #ffffff;
  --well: #e5eaf1;
  --line: #d1d8e3;
  --text: #141821;
  --head: #080c14;
  --muted: #5c6675;
  --muted-2: #333c4b;
  --accent: #1b52c9;
  --red:#c8102e;
  --display: "Zilla Slab", "Rockwell", Georgia, serif;
  --body: "Piazzolla", Georgia, "Iowan Old Style", serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --shell: 68rem;
  --measure: 50rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--panel);
  color: var(--text);
}

body {
  margin: 0;
  min-width: 0;
  background: var(--panel);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.68;
  font-optical-sizing: auto;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  font-weight: 400;
  text-decoration: none;
}

a:hover {
  color: #123f9b;
}

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

.site-shell {
  width: min(100% - 44px, var(--shell));
  margin: 0 auto;
}

.prose {
  width: min(100% - 44px, var(--measure));
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-search {
  position: relative;
}

.site-search summary {
  display: grid;
  width: 28px;
  height: 44px;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.site-search summary::-webkit-details-marker {
  display: none;
}

.site-search summary:hover,
.site-search[open] summary {
  color: var(--accent);
}

.site-search summary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.site-search__form {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  width: min(23rem, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 8px 24px rgb(20 24 33 / 10%);
}

.site-search__form label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-search__form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.site-search__form input,
.site-search__form button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.site-search__form input {
  min-width: 0;
  padding: 7px 9px;
  border-right: 0;
}

.site-search__form button {
  padding-inline: 12px;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-name,
.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.site-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.social-navigation a {
  flex: 0 0 auto;
  width: 24px;
  color: var(--text);
  justify-content: center;
}

.social-navigation a:hover {
  color: var(--accent);
}

.social-navigation svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-navigation path {
  fill: currentColor;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  min-height: 58px;
  align-items: center;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

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

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

.site-content,
.prose {
  padding-block: 52px 76px;
}

.home-introduction,
.listing-header,
.article-header {
  max-width: var(--measure);
}

.home-introduction {
  max-width: none;
}

.home-introduction {
  position: relative;
  padding-left: 24px;
}

.home-introduction::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  background: var(--red);
  content: "";
}

.eyebrow.home-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.eyebrow.home-eyebrow::before {
  width: 26px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.eyebrow,
.meta,
.entry-row__meta,
.chapter-row span:first-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  color: var(--head);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(29px, 7vw, 40px);
  line-height: 1.06;
}

h2 {
  margin: 0;
  font-size: clamp(20px, 5vw, 25px);
  line-height: 1.14;
}

.lede {
  max-width: 44rem;
  margin: 0;
  color: var(--muted-2);
  font-size: 19px;
  line-height: 1.5;
}

.home-introduction .lede {
  max-width: none;
}

.featured-publication {
  margin-top: 54px;
  padding-block: 24px;
  border-block: 1px solid var(--line);
}

.featured-publication h2,
.featured-publication p,
.entry-row p {
  margin-block: 0 10px;
}

.featured-publication h2 a,
.entry-row h2 a {
  color: var(--accent);
  font-weight: 500;
}

.publication-stream {
  margin-top: 42px;
}

.publication-stream > h2,
.chapter-list > h2 {
  margin-bottom: 14px;
}

.year-group + .year-group {
  margin-top: 26px;
}

.year-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.year-heading::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.year-heading + .entry-row {
  border-top: 0;
}

.entry-row:last-child {
  border-bottom: 1px solid var(--line);
}

.entry-row__meta {
  display: grid;
  grid-template-columns: 4.5rem 6.25rem;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: right;
  white-space: nowrap;
}

.entry-row h2 {
  min-width: 0;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.entry-row h2 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.article-kicker {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.article-kicker time::before {
  margin-right: 9px;
  content: "·";
}

.article-header .lede {
  font-size: 16px;
  line-height: 1.45;
}

.tag-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 13px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.tag-links a + a::before {
  margin-inline: 7px;
  color: var(--muted);
  content: "·";
}

.article-body {
  min-width: 0;
  margin-top: 24px;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin-block: 0 18px;
}

.article-body h2,
.article-body h3 {
  margin-top: 38px;
  margin-bottom: 10px;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body blockquote {
  margin: 24px 0;
  padding-left: 18px;
  border-left: 2px solid #42506b;
  color: var(--muted-2);
}

.article-body pre,
.article-body code {
  font-family: var(--mono);
}

.article-body pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--well);
  border: 1px solid var(--line);
}

.article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.article-figure {
  width: min(var(--shell), calc(100vw - 44px));
  margin: 30px 50%;
  transform: translateX(-50%);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--well);
}

.article-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
}

.article-body :not(pre) > code {
  padding: 1px 4px;
  background: var(--well);
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 38rem;
  margin: 28px 0;
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field label {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.contact-field textarea {
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 2px rgb(27 82 201 / 12%);
}

.contact-honeypot {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-submit {
  justify-self: start;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 9px 14px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.contact-submit:hover {
  background: #123f9b;
}

.contact-submit:disabled {
  border-color: var(--line);
  background: var(--well);
  color: var(--muted);
  cursor: not-allowed;
}

.contact-configuration-note,
.contact-status {
  color: var(--muted);
  font-size: 14px;
}

.contact-status {
  display: none;
  margin: 24px 0;
  padding-left: 12px;
  border-left: 3px solid var(--line);
}

.contact-status:target {
  display: block;
}

.contact-status--success {
  border-left-color: var(--accent);
}

.contact-status--error {
  border-left-color: var(--red);
}

.reader-link {
  margin: 30px 0 0;
  font-family: var(--mono);
  font-size: 13px;
}

.reader-link a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 400;
}

.reader-link a:hover {
  border-color: #123f9b;
  background: #123f9b;
  color: #ffffff;
}

.reader-outline {
  max-width: var(--measure);
  margin-top: 38px;
}

.reader-outline h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.reader-outline dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.reader-outline dl > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 18px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.reader-outline dt {
  color: var(--head);
  font-family: var(--display);
  font-weight: 600;
}

.reader-outline dt span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reader-outline dd {
  margin: 0;
  color: var(--muted-2);
}

.chapter-list {
  margin-top: 46px;
}

.library-groups {
  margin-top: 42px;
}

.library-group {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 22px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.library-group:last-child {
  border-bottom: 1px solid var(--line);
}

.library-group h2 {
  font-size: 18px;
}

.library-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.library-row + .library-row {
  margin-top: 15px;
}

.library-row h3,
.library-row p {
  margin: 0;
}

.library-row h3 {
  font-size: 17px;
  line-height: 1.3;
}

.library-row p {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.5;
}

.search-page-form {
  max-width: 42rem;
  margin-top: 34px;
}

.search-page-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-page-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.search-page-form input,
.search-page-form button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.search-page-form input {
  min-width: 0;
  padding: 8px 10px;
  border-right: 0;
}

.search-page-form button {
  padding-inline: 15px;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.search-results {
  margin-top: 28px;
}

.search-result {
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.search-result:last-child {
  border-bottom: 1px solid var(--line);
}

.search-result h2,
.search-result p {
  margin: 0;
}

.search-result h2 {
  font-size: 18px;
  line-height: 1.3;
}

.search-result__meta,
.search-result__tags {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.search-result p.search-result__meta {
  margin-top: 3px;
  text-transform: uppercase;
}

.search-result p.search-result__summary {
  max-width: 48rem;
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.5;
}

.search-result p.search-result__tags {
  margin-top: 7px;
}

.tag-index {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.tag-index-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
}

.tag-index-row span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.chapter-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}

.chapter-row:last-child {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 480px) {
  .site-shell {
    width: calc(100% - 36px);
  }

  .site-header__inner {
    min-height: 58px;
    padding-block: 6px;
    gap: 6px;
  }

  .site-name {
    font-size: 13px;
    white-space: nowrap;
  }

  .site-header nav {
    gap: 4px;
    font-size: 9px;
  }

  .site-header__links {
    min-width: 0;
    gap: 5px;
  }

  .site-search summary {
    width: 28px;
    height: 44px;
  }

  .site-search__form {
    right: -62px;
  }

  .site-name,
  .site-header nav a {
    min-height: 32px;
  }

  .social-navigation a {
    width: 24px;
    min-height: 44px;
  }

  .social-navigation svg {
    width: 13px;
    height: 13px;
  }

  .site-header .site-shell {
    width: calc(100% - 20px);
  }

  .article-figure {
    width: calc(100vw - 36px);
  }

  .entry-row {
    gap: 8px;
  }

  .entry-row h2 {
    font-size: 15px;
  }

  .entry-row__meta {
    grid-template-columns: 3.5rem 5.4rem;
    gap: 4px;
    font-size: 9px;
  }

  .reader-outline dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .year-group + .year-group {
    margin-top: 22px;
  }

  .site-content,
  .prose {
    padding-block: 42px 64px;
  }

  .home-introduction {
    padding-left: 18px;
  }

  .lede {
    font-size: 18px;
  }

  .library-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .site-header .social-navigation {
    display: none;
  }

  .site-search__form {
    right: -15px;
    width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
