:root {
  color-scheme: light;
  --background: #faf9f6;
  --border: #d9d4ca;
  --muted: #68635d;
  --text: #24211f;
  --accent: #7a1832;
  --accent-hover: #4d0e20;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  max-width: 45em;
  margin: 1em auto;
  padding: 0 0.6em 4em;
  color: var(--text);
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.05px;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.13em;
}

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

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

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5em;
  font-size: 14px;
  line-height: 1.4;
}

.site-header a {
  text-decoration: none;
}

.site-header a:hover,
.site-header a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-name {
  flex: none;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-header nav {
  color: var(--muted);
  text-align: right;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0.67em 0;
  font-size: 1.8em;
  font-weight: 600;
}

h2 {
  margin: 1.4em 0 0.6em;
  font-size: 1.4em;
  font-weight: 550;
}

h3 {
  margin: 1em 0 0.6em;
  font-size: 1.1em;
  font-weight: 500;
}

p,
ul,
ol,
blockquote {
  margin-top: 0.6em;
  margin-bottom: 0.6em;
}

li + li {
  margin-top: 5px;
}

sup,
sub {
  line-height: 0;
  font-size: 75%;
}

.section-label {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label a {
  color: inherit;
  text-decoration: none;
}

.aliases {
  margin: -0.4em 0 1.2em;
  color: var(--muted);
  font-size: 0.875em;
  line-height: 1.4;
}

.aliases span {
  font-weight: 600;
}

.article > p:not(.section-label):not(.aliases) {
  text-indent: 1em;
}

.article blockquote {
  margin-left: 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border);
  color: var(--muted);
}

.article code {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 85%;
}

.article pre {
  max-width: 100%;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 85%;
  line-height: 1.4;
}

.sources-heading {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.sources-heading ~ ul,
.footnotes {
  color: #4f4a45;
  font-size: 11pt;
  line-height: 1.4;
}

.footnotes {
  margin-top: 2.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.footnotes-sep {
  display: none;
}

.footnote-backref {
  text-decoration: none;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3em;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78em;
}

.page-introduction {
  margin-bottom: 2em;
}

.page-introduction > p {
  color: var(--muted);
  font-size: 0.95em;
}

.home-introduction {
  margin-bottom: 2.5em;
}

.directory-section + .directory-section {
  margin-top: 2.5em;
}

.directory-section > h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.directory-section h2 a {
  color: var(--text);
  text-decoration: none;
}

.directory-section h2 span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.letter-group {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.7rem 0;
}

.letter-group h3 {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.73em;
  letter-spacing: 0.08em;
}

.article-index {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-index li + li {
  margin-top: 0.25rem;
}

.index-aliases {
  color: var(--muted);
  font-size: 0.76em;
}

@media (max-width: 620px) {
  body {
    margin-top: 0.75em;
    padding: 0 0.75em 3em;
  }

  .site-header {
    display: block;
    margin-bottom: 2em;
  }

  .site-header nav {
    margin-top: 0.65rem;
    text-align: left;
  }

  .article-footer {
    display: block;
  }

  .article-footer a {
    display: block;
    margin-top: 0.75rem;
  }
}
