@font-face {
  font-family: "ETBook";
  src: url("/fonts/et-book/et-book-roman-old-style-figures.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ETBook";
  src: url("/fonts/et-book/et-book-display-italic-old-style-figures.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "ETBook";
  src: url("/fonts/et-book/et-book-semi-bold-old-style-figures.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ETBook";
  src: url("/fonts/et-book/et-book-bold-line-figures.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --article-width: 34rem;
  --annotation-gap: 2rem;
  --annotation-width: 14rem;
  --site-grid-width: calc(var(--article-width) + var(--annotation-gap) + var(--annotation-width));
  --page-background: #fffff8;
  --text-color: #111;
  --muted-color: #6f6a60;
  --rule-color: #d8d3c7;
  --link-color: #a3487c;
  --link-underline-color: #a3487c;
  --visited-link-color: #7b5268;
  --metadata-font: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  --metadata-accent-color: #9b3f72;
}

html {
  font-size: 18px;
}

body {
  background: var(--page-background);
  color: var(--text-color);
  font-family: "ETBook", Georgia, "Times New Roman", serif;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

.site-shell {
  margin: 0 auto;
  padding: 1.2rem 0 0;
  width: min(calc(100% - 2rem), var(--site-grid-width));
}

.site-header {
  align-items: baseline;
  border-bottom: 1px solid var(--rule-color);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  margin: 0 auto 2.4rem;
  max-width: var(--site-grid-width);
  padding-bottom: 0.75rem;
}

.site-title {
  font-weight: 600;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-nav,
.post-date,
.topic-links,
.topic-meta,
.home-section-meta,
.home-section h2,
.topic-index small,
.topic-list time,
.recent-list time {
  font-family: var(--metadata-font);
}

.site-main {
  margin: 0 auto;
  max-width: var(--article-width);
  width: 100%;
}

.site-main > article,
.site-main > .page-title {
  max-width: var(--article-width);
}

.page-title {
  margin-bottom: 0.45rem;
}

.page-title + article > header {
  margin-bottom: 2rem;
}

.page-title + article > header p:not(.post-date) {
  margin-bottom: 0 !important;
}

.site-footer {
  border-top: 1px solid var(--rule-color);
  color: var(--muted-color);
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 3rem auto 0;
  max-width: var(--article-width);
  padding: 1rem 0 2rem;
  width: min(calc(100% - 2rem), var(--article-width));
}

body a {
  color: var(--link-color);
  text-decoration-color: var(--link-underline-color);
  text-decoration-line: none;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.16em;
}

body a:visited {
  color: var(--visited-link-color);
}

body a:hover,
body a:focus-visible {
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.08em;
}

.quiet-link,
.quiet-link:visited,
.topic-links a,
.topic-links a:visited {
  text-decoration-line: none;
}

.quiet-link {
  color: var(--link-color);
}

.quiet-link:visited {
  color: var(--visited-link-color);
}

.quiet-link:hover,
.quiet-link:focus-visible,
.topic-links a:hover,
.topic-links a:focus-visible {
  text-decoration-line: underline;
}

.site-title,
.site-title:visited {
  color: var(--text-color);
}

.site-nav a,
.site-nav a:visited {
  color: var(--muted-color);
}

.site-footer a,
.site-footer a:visited {
  color: inherit;
}

.site-main > article.home-page,
.home-page {
  max-width: var(--site-grid-width);
}

.home-intro {
  font-size: 1.28rem;
  line-height: 1.45;
  margin-bottom: 2.4rem;
  max-width: var(--article-width);
}

.home-intro p {
  margin: 0 0 1rem;
}

.home-section {
  margin-top: 2.8rem;
}

.home-section h2,
.topic-index h2,
.topic-list h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.home-section-meta h2 {
  color: var(--text-color);
  margin-bottom: 0.35rem;
}

.home-section-meta p {
  color: var(--muted-color);
  font-size: 0.86rem;
  line-height: 1.35;
  margin: 0 0 0.9rem;
}

.home-link-list {
  display: grid;
  gap: 0.75rem;
}

.home-link-list a {
  display: grid;
  gap: 0.1rem;
}

.home-link-list span,
.topic-grid h3 {
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.2;
}

.topic-grid h3 {
  color: var(--text-color);
}

.home-link-list small,
.topic-grid small,
.topic-grid p,
.topic-index p,
.topic-index small,
.topic-list time,
.topic-list p {
  color: var(--muted-color);
  font-size: 0.86rem;
  line-height: 1.35;
}

.topic-grid {
  display: grid;
  gap: 1.8rem;
}

.topic-grid section,
.topic-index article,
.topic-list article {
  break-inside: avoid;
}

.topic-grid h3 {
  margin: 0 0 0.35rem;
}

.topic-grid h3 a {
  color: var(--metadata-accent-color);
}

.topic-meta p {
  margin: 0 0 0.65rem;
}

.topic-grid ul,
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic-grid li {
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.topic-grid li a {
  display: grid;
  gap: 0.1rem;
}

.recent-list {
  display: grid;
  gap: 0.45rem;
}

.recent-list li {
  display: grid;
  gap: 0.1rem;
}

.post-date {
  color: var(--muted-color);
  font-size: 0.92rem;
  line-height: 1.25;
  margin: 0 0 0.28rem;
}

.recent-list time {
  color: var(--muted-color);
  font-size: 0.78rem;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  line-height: 1.25;
  margin: 0 0 1.35rem;
}

.topic-links a {
  color: var(--metadata-accent-color);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.topic-index,
.topic-list {
  display: grid;
  gap: 1.1rem;
}

.topic-index article,
.topic-list article {
  padding-top: 0.8rem;
}

.topic-index article {
  border-top: 1px solid var(--rule-color);
}

.topic-index h2,
.topic-list h2 {
  margin-bottom: 0.25rem;
}

.topic-index p,
.topic-list p {
  margin: 0.2rem 0;
}

h1 {
  font-family: "ETBook", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.05;
}

.text-gray-400,
.text-gray-600 {
  color: var(--muted-color) !important;
}

.border-t {
  border-color: var(--rule-color) !important;
}

.prose,
.prose-lg,
.prose-xl {
  color: var(--text-color);
  font-family: "ETBook", Georgia, "Times New Roman", serif !important;
  max-width: var(--article-width);
}

.prose-xl {
  font-size: 1.28rem !important;
  line-height: 1.52 !important;
}

.prose-lg {
  font-size: 1.14rem !important;
  line-height: 1.55 !important;
}

.prose :where(p, ul, ol, blockquote):not(:where([class~="not-prose"] *)),
.prose-lg :where(p, ul, ol, blockquote):not(:where([class~="not-prose"] *)),
.prose-xl :where(p, ul, ol, blockquote):not(:where([class~="not-prose"] *)) {
  margin-bottom: 1.05em;
  margin-top: 0;
}

.prose :where(h2, h3, h4):not(:where([class~="not-prose"] *)),
.prose-lg :where(h2, h3, h4):not(:where([class~="not-prose"] *)),
.prose-xl :where(h2, h3, h4):not(:where([class~="not-prose"] *)) {
  color: var(--text-color);
  font-family: "ETBook", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
}

.prose :where(h2):not(:where([class~="not-prose"] *)),
.prose-lg :where(h2):not(:where([class~="not-prose"] *)),
.prose-xl :where(h2):not(:where([class~="not-prose"] *)) {
  font-size: 1.42em;
  margin-bottom: 0.65em;
  margin-top: 1.55em;
}

.prose :where(h3):not(:where([class~="not-prose"] *)),
.prose-lg :where(h3):not(:where([class~="not-prose"] *)),
.prose-xl :where(h3):not(:where([class~="not-prose"] *)) {
  font-size: 1.12em;
  font-weight: 600;
  margin-bottom: 0.45em;
  margin-top: 1.25em;
}

.prose :where(strong):not(:where([class~="not-prose"] *)),
.prose-lg :where(strong):not(:where([class~="not-prose"] *)),
.prose-xl :where(strong):not(:where([class~="not-prose"] *)) {
  color: var(--text-color);
  font-weight: 600;
}

.prose :where(blockquote):not(:where([class~="not-prose"] *)),
.prose-lg :where(blockquote):not(:where([class~="not-prose"] *)),
.prose-xl :where(blockquote):not(:where([class~="not-prose"] *)) {
  border-left-color: var(--rule-color);
  color: var(--text-color);
  font-style: italic;
  font-weight: 400;
  overflow-wrap: anywhere;
  padding-left: 1rem;
}

.prose figure,
.prose-lg figure,
.prose-xl figure {
  margin-bottom: 1.8rem;
  margin-top: 1.8rem;
  position: relative;
}

.image-caption,
.prose .image-caption,
.prose-lg .image-caption,
.prose-xl .image-caption {
  color: var(--muted-color) !important;
  font-size: 0.78rem !important;
  font-style: italic !important;
  font-weight: 400 !important;
  line-height: 1.32 !important;
  margin-top: 0.35rem !important;
}

.image-caption p {
  margin: 0;
}

.sidenote-ref {
  color: var(--muted-color);
  font-size: 0.68em;
  font-weight: 600;
  line-height: 0;
  margin-left: 0.1em;
  vertical-align: super;
}

.sidenote {
  color: var(--muted-color);
  display: block;
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.32;
  margin: 0.35rem 0 1rem;
}

.bio-note p,
.bio-aside p,
.footer-links {
  margin: 0;
}

.bio-note strong {
  color: var(--text-color);
  font-weight: 600;
}

.bio-aside {
  align-items: flex-start;
  display: flex;
  gap: 0.7rem;
}

.bio-avatar {
  border-radius: 999px;
  display: block;
  flex: 0 0 auto;
  height: 2.7rem;
  width: 2.7rem;
}

.footer-links {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.site-footer.site-footer-content .footer-links {
  display: grid;
  gap: 0.2rem;
}

.sidenote p {
  margin: 0;
}

.sidenotes-enhanced .footnotes {
  display: none;
}

.prose figure > a,
.prose-lg figure > a,
.prose-xl figure > a {
  align-self: start;
  margin: 0;
}

.prose :where(a):not(:where([class~="not-prose"] *)),
.prose-lg :where(a):not(:where([class~="not-prose"] *)),
.prose-xl :where(a):not(:where([class~="not-prose"] *)) {
  color: var(--link-color) !important;
  font-weight: inherit !important;
  overflow-wrap: anywhere;
  text-decoration-color: var(--link-underline-color) !important;
  text-decoration-line: none !important;
  text-decoration-thickness: 0.055em !important;
  text-underline-offset: 0.16em !important;
}

.prose :where(a:hover, a:focus-visible):not(:where([class~="not-prose"] *)),
.prose-lg :where(a:hover, a:focus-visible):not(:where([class~="not-prose"] *)),
.prose-xl :where(a:hover, a:focus-visible):not(:where([class~="not-prose"] *)) {
  text-decoration-color: currentColor !important;
  text-decoration-line: underline !important;
  text-decoration-thickness: 0.08em !important;
}

.prose :where(a:visited):not(:where([class~="not-prose"] *)),
.prose-lg :where(a:visited):not(:where([class~="not-prose"] *)),
.prose-xl :where(a:visited):not(:where([class~="not-prose"] *)) {
  color: var(--visited-link-color) !important;
}

.prose :where(code):not(:where([class~="not-prose"] *)),
.prose-lg :where(code):not(:where([class~="not-prose"] *)),
.prose-xl :where(code):not(:where([class~="not-prose"] *)) {
  color: var(--text-color);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72em;
  font-weight: 400;
}

.prose :where(pre code):not(:where([class~="not-prose"] *)),
.prose-lg :where(pre code):not(:where([class~="not-prose"] *)),
.prose-xl :where(pre code):not(:where([class~="not-prose"] *)) {
  font-size: 0.78rem;
}

.prose :where(img):not(:where([class~="not-prose"] *)),
.prose-lg :where(img):not(:where([class~="not-prose"] *)),
.prose-xl :where(img):not(:where([class~="not-prose"] *)) {
  display: block;
  height: auto;
  margin-bottom: 1.2rem;
  margin-top: 1.2rem;
  max-width: 100%;
}

.prose figure > a > img,
.prose-lg figure > a > img,
.prose-xl figure > a > img {
  margin-top: 0;
}

nav,
footer,
.text-xs,
.text-sm {
  letter-spacing: 0;
}

@media (max-width: 767px) {
  html {
    font-size: 17px;
  }

  .prose,
  .prose-lg,
  .prose-xl {
    max-width: none;
  }

  .prose-xl {
    font-size: 1.16rem !important;
  }

  .site-footer.site-footer-content .bio-aside {
    margin-top: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .site-main {
    max-width: var(--site-grid-width);
  }

  .site-footer.site-footer-content {
    column-gap: var(--annotation-gap);
    display: grid;
    grid-template-columns: minmax(0, var(--article-width)) var(--annotation-width);
    max-width: var(--site-grid-width);
    width: min(calc(100% - 2rem), var(--site-grid-width));
  }

  .site-footer.site-footer-content .bio-note {
    grid-column: 1;
  }

  .site-footer.site-footer-content .bio-aside {
    grid-column: 2;
  }

  .site-footer.site-footer-home {
    max-width: var(--site-grid-width);
    width: min(calc(100% - 2rem), var(--site-grid-width));
  }

  .home-page {
    width: var(--site-grid-width);
  }

  .home-section {
    display: grid;
    column-gap: var(--annotation-gap);
    grid-template-columns: minmax(0, var(--article-width)) var(--annotation-width);
  }

  .home-section > h2 {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0.15rem;
  }

.home-link-list,
.topic-grid,
.recent-list {
  grid-column: 1;
}

  .home-section-meta {
    grid-column: 2;
    grid-row: 1;
  }

  .home-topics {
    display: block;
  }

  .topic-grid {
    gap: 2rem;
    width: var(--site-grid-width);
  }

  .topic-grid section {
    column-gap: var(--annotation-gap);
    display: grid;
    grid-template-columns: minmax(0, var(--article-width)) var(--annotation-width);
  }

  .topic-grid .topic-meta {
    grid-column: 2;
    grid-row: 1;
  }

  .topic-grid ul {
    grid-column: 1;
    grid-row: 1;
  }

  .topic-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prose figure:has(.image-caption),
  .prose-lg figure:has(.image-caption),
  .prose-xl figure:has(.image-caption) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--annotation-width);
    column-gap: var(--annotation-gap);
    width: calc(100% + var(--annotation-gap) + var(--annotation-width));
  }

  .prose figure:has(.image-caption) > a,
  .prose-lg figure:has(.image-caption) > a,
  .prose-xl figure:has(.image-caption) > a {
    grid-column: 1;
    grid-row: 1;
  }

  .prose figure:has(.image-caption) > .image-caption,
  .prose-lg figure:has(.image-caption) > .image-caption,
  .prose-xl figure:has(.image-caption) > .image-caption {
    align-self: start;
    grid-column: 2;
    grid-row: 1;
    margin-top: 0 !important;
  }
}

@media (min-width: 1180px) {
  .sidenote {
    clear: right;
    float: right;
    margin: 0.2rem calc(-1 * (var(--annotation-gap) + var(--annotation-width))) 0.8rem var(--annotation-gap);
    width: var(--annotation-width);
  }
}
