:root {
  color-scheme: light;
  --ink: #1f2e2b;
  --paper: #f6f5ee;
  --line: #d9dfd8;
  --accent: #174f43;
  --muted: #5b6863;
  --font: Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

a:hover {
  opacity: 0.8;
}

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

.skip {
  position: absolute;
  left: -10000px;
}

.skip:focus {
  top: 0.9375rem;
  left: 1.25rem;
  z-index: 20;
  padding: 0.625rem;
  background: #fff;
}

.edition {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.125rem;
  padding: 0.625rem 4%;
  border-bottom: 1px solid var(--line);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
}

.edition > :first-child:not(:last-child) {
  text-transform: uppercase;
}

.edition > :last-child {
  white-space: nowrap;
}

body > header,
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.875rem;
  padding: 1.875rem 4%;
  border-bottom: 1px solid var(--line);
}

.brand {
  max-width: 24.375rem;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.brand small {
  display: block;
  margin-top: 0.4375rem;
  color: var(--accent);
  font-family: system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

body > header > nav,
.site-header > nav {
  display: flex;
  align-items: center;
  gap: 1.5625rem;
  font-size: 0.8125rem;
}

body > header > nav a,
.site-header > nav a {
  text-decoration: none;
}

.cta {
  flex-shrink: 0;
  padding-block: 0.4375rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
}

main {
  width: 100%;
  max-width: 90.625rem;
  margin-inline: auto;
  padding: 1.875rem 4% 5rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.6875rem;
}

.crumbs li + li::before {
  margin-right: 0.5rem;
  content: " / ";
  color: #929d97;
}

.crumbs a {
  color: inherit;
}

.grid {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) 14.0625rem;
  gap: 2.75rem;
}

.rail {
  padding-right: 1.25rem;
  border-right: 1px solid var(--line);
  font-size: 0.75rem;
}

.rail a {
  display: block;
  margin-block: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.rail strong,
.eyebrow {
  color: var(--accent);
  font-family: system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

article,
.grid > * {
  min-width: 0;
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 500;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0.625rem 0 1.625rem;
  font-size: clamp(2.1875rem, 4.3vw, 4.0625rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 1.25rem;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.375rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1.1875rem;
}

article > section,
.article-body > section {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.answer {
  padding-block: 1.5625rem;
  border-top: 3px solid var(--accent);
  font-size: 1.25rem;
  line-height: 1.55;
}

.answer p {
  margin-block: 0.625rem;
}

.note {
  color: var(--muted);
  font-size: 0.75rem;
}

.toc {
  margin-block: 1.75rem 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  font-size: 0.75rem;
}

.toc ol {
  columns: 2;
  column-gap: 1.5rem;
  margin-bottom: 0;
  padding-left: 1rem;
}

.toc li {
  margin: 0;
  padding-block: 0.1875rem;
  padding-right: 0.75rem;
  break-inside: avoid;
}

.record {
  align-self: start;
  width: 100%;
  padding-top: 1.25rem;
  border-top: 3px solid var(--ink);
  font-size: 0.75rem;
}

.record h2 {
  font-size: 2.1875rem;
}

.record dl {
  margin-block: 0 1.25rem;
}

.record dt {
  margin-top: 1.25rem;
  color: #61716a;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.record dd {
  margin: 0.3125rem 0 0;
}

.record :where(a, dd) {
  overflow-wrap: anywhere;
}

.directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.75rem;
}

.entry {
  display: block;
  min-width: 0;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.entry h3 {
  margin-block: 0.5rem 0.75rem;
}

.entry p {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}

.entry small {
  color: var(--accent);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.paths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.paths a {
  border: 1px solid var(--line);
  padding: 0.625rem 0.9375rem;
  font-size: 0.8125rem;
  text-decoration: none;
}

.source-list,
.download-list,
.network-list {
  margin-block: 1rem;
  padding-left: 2.5rem;
}

.source-list li,
.download-list li,
.network-list li {
  margin-block: 0;
}

.source-list :where(a, code),
.citation {
  overflow-wrap: anywhere;
}

.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.75rem;
}

.resource-list > a {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
}

.resource-list h3 {
  margin-block: 0.75rem;
  font-size: 1.5625rem;
}

.resource-list p {
  color: var(--ink);
}

.resource-list > a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.search-label {
  display: block;
  margin-block: 1.5rem 0.5rem;
  font-weight: 600;
}

#entry-search {
  width: 100%;
  padding: 1rem;
  border: 1px solid #9baba7;
  border-radius: 2px;
  background: #fff;
  color: #192c27;
  font: inherit;
}

details {
  padding-block: 1.0625rem;
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 550;
  line-height: 1.4;
}

details p {
  margin: 0.875rem 0 0;
  font-size: 0.875rem;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

caption {
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-align: left;
}

th,
td {
  padding: 0.75rem 0.625rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.graph {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 1.25rem;
}

.graph svg {
  display: block;
  width: 100%;
  min-width: 35rem;
  color: var(--accent);
}

.graph :where(rect, circle) {
  fill: var(--paper);
  stroke: var(--accent);
}

.graph text {
  fill: var(--ink);
  font: 0.8125rem system-ui, sans-serif;
}

.graph :where(path, line, polyline) {
  stroke: currentColor;
}

.graph-caption {
  font-size: 0.8125rem;
  text-align: center;
}

img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 1.5rem 0;
}

blockquote {
  margin: 1.5625rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
}

code {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

body > footer,
.site-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 2.375rem 4%;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

body > footer nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.125rem;
}

body > footer p,
.site-footer p {
  grid-column: 1 / -1;
  max-width: 56.25rem;
  color: #63716b;
}

@media (max-width: 68.75rem) {
  body > header,
  .site-header {
    flex-wrap: wrap;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr) 13.125rem;
    gap: 1.875rem;
  }

  .rail {
    display: none;
  }


}

@media (max-width: 45rem) {
  .edition {
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0.5625rem 5%;
    font-size: 0.5625rem;
  }

  .edition > :first-child:not(:last-child) {
    display: none;
  }

  body > header,
  .site-header {
    gap: 1.25rem;
    padding: 1.5rem 5%;
  }

  .brand {
    max-width: 100%;
    font-size: 1.4375rem;
  }

  body > header > nav,
  .site-header > nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem 1.125rem;
  }

  .cta {
    margin-left: auto;
  }

  main {
    padding: 1.5rem 5% 3.125rem;
  }

  .crumbs ol {
    margin-bottom: 1.5625rem;
  }

  .grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .grid > article {
    order: 1;
    width: 100%;
  }

  .record {
    order: 2;
    width: 100%;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.6875rem;
  }

  .answer {
    font-size: 1.125rem;
  }

  .toc ol {
    columns: 1;
  }

  .directory,
  .resource-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .graph svg {
    min-width: 31.25rem;
  }

  body > footer,
  .site-footer {
    display: block;
    padding: 1.75rem 5%;
  }

  body > footer nav,
  .site-footer nav {
    justify-content: flex-start;
    margin-block: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
