:root {
  color-scheme: light dark;
  --paper: light-dark(#fcfbf7, #202020);
  --panel: light-dark(#f1f0ea, #191919);
  --ink: light-dark(#282923, #ecebe5);
  --muted: light-dark(#64665c, #b8bab0);
  --line: light-dark(#d9d9cf, #45463e);
  --accent: light-dark(#685223, #e4c688);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.65 system-ui,
    -apple-system,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
header,
main,
footer {
  max-width: 1280px;
  margin: auto;
}
header {
  padding: 0 36px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font:
    28px/1.3 Georgia,
    serif;
}
.rainbow {
  display: block;
  width: 24px;
  height: 14px;
  border: 2px solid var(--accent);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
}
.preview-label,
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
nav {
  display: flex;
  align-items: center;
  gap: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
nav a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
nav a[aria-current='page'] {
  border-color: var(--accent);
  color: var(--accent);
}
nav .account-link {
  margin-left: auto;
}
main {
  padding: 38px 36px 64px;
  min-height: 70vh;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: 36px;
  line-height: 1.22;
  max-width: 28ch;
  margin: 8px 0 16px;
}
h2 {
  font-size: 23px;
  line-height: 1.4;
  margin: 6px 0 14px;
}
h3 {
  font-size: 19px;
  line-height: 1.4;
}
p {
  margin: 0 0 16px;
}
.intro {
  color: var(--muted);
  max-width: 65ch;
  margin-bottom: 28px;
}
.search {
  display: flex;
  align-items: end;
  gap: 12px;
  background: var(--panel);
  padding: 18px 20px;
  margin: 28px 0 22px;
}
.search label {
  margin: 0;
  flex: 1;
  font-size: 13px;
}
.search input {
  display: block;
  margin-top: 6px;
  width: 100%;
}
.search button {
  margin: 0;
  min-height: 45px;
  padding: 10px 25px;
  background: var(--ink);
  color: var(--paper);
}
input,
textarea,
button {
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 3px;
  max-width: 100%;
}
button,
summary {
  cursor: pointer;
}
button {
  margin: 4px;
}
button:hover {
  border-color: var(--accent);
}
label {
  display: block;
  margin: 16px 0;
}
textarea {
  width: 100%;
  min-height: 160px;
}
input:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.results-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.collection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 40px;
  border-top: 1px solid var(--line);
}
article {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.collection h2 a {
  text-decoration: none;
}
.collection h2 a:hover {
  text-decoration: underline;
}
.eyebrow {
  margin-bottom: 9px;
}
.eyebrow span {
  letter-spacing: 0;
  text-transform: none;
}
.excerpt {
  font:
    17px/1.75 Georgia,
    serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}
.read-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.read-link:hover {
  text-decoration: underline;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.back-link {
  display: inline-block;
  margin-bottom: 30px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.source-meta {
  max-width: 76ch;
  margin: 26px 0 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.source-meta p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.source-meta a {
  font:
    19px/1.5 Georgia,
    serif;
  color: var(--ink);
}
.reader {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
blockquote {
  margin: 0;
  font:
    21px/1.85 Georgia,
    serif;
  max-width: 65ch;
}
aside {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  min-width: 0;
}
.margin-heading h2 {
  font-size: 22px;
}
.margin-heading p {
  line-height: 1.6;
}
details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  font-size: 14px;
  line-height: 1.6;
}
details[open] > summary {
  color: var(--accent);
  margin-bottom: 18px;
}
aside .text {
  font:
    16px/1.8 Georgia,
    serif;
}
aside p,
aside a {
  overflow-wrap: anywhere;
}
aside p {
  font-size: 13px;
}
.link-basis {
  border-left: 2px solid var(--line);
  font-style: italic;
  padding-left: 8px;
}
.note-witness {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 8px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 36px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
[role='alert'] {
  border: 1px solid var(--accent);
  padding: 16px;
}
@media (max-width: 700px) {
  header {
    padding: 0 20px;
  }
  .masthead {
    padding: 22px 0;
  }
  .brand {
    font-size: 24px;
  }
  .preview-label {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  nav {
    gap: 20px;
    font-size: 13px;
  }
  main {
    padding: 28px 20px 44px;
  }
  h1 {
    font-size: 30px;
  }
  .collection {
    grid-template-columns: 1fr;
  }
  .search {
    padding: 14px;
    gap: 8px;
  }
  .search button {
    padding: 10px 14px;
  }
  .reader {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  blockquote {
    font-size: 19px;
  }
  aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }
  input,
  textarea {
    font-size: 16px;
  }
  footer {
    padding: 20px;
    flex-direction: column;
    gap: 6px;
  }
}

/* Original supplied artwork, arranged without changing its pixels. */
.brand {
  gap: 14px;
  padding: 10px 14px;
  background: #fcfbf7;
  border-radius: 4px;
}
.brand-emblem {
  display: block;
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  flex: none;
}
.brand-emblem img {
  position: absolute;
  width: 119px;
  height: 119px;
  max-width: none;
  left: -27px;
  top: -11px;
}
.brand-wordmark {
  display: block;
  position: relative;
  width: 188px;
  height: 76px;
  overflow: hidden;
  flex: none;
}
.brand-wordmark img {
  position: absolute;
  width: 280px;
  height: 280px;
  max-width: none;
  left: -51px;
  top: -176px;
}
.footer-brand {
  display: block;
  flex: none;
  width: 114px;
  height: 132px;
  background: #fcfbf7;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.footer-brand img {
  position: absolute;
  width: 158px;
  height: 158px;
  max-width: none;
  left: -22px;
  top: -14px;
}
footer {
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
}
.footer-title {
  font:
    19px/1.4 Georgia,
    serif;
  color: var(--ink);
  margin-bottom: 6px;
}
.footer-top {
  margin-left: auto;
  white-space: nowrap;
  color: var(--accent);
}
@media (max-width: 700px) {
  .brand-emblem {
    width: 52px;
    height: 52px;
  }
  .brand-emblem img {
    width: 97px;
    height: 97px;
    left: -22px;
    top: -9px;
  }
  .brand-wordmark {
    width: 162px;
    height: 65px;
  }
  .brand-wordmark img {
    width: 240px;
    height: 240px;
    left: -44px;
    top: -151px;
  }
  .brand {
    gap: 10px;
    padding: 8px 12px;
  }
  footer {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-brand {
    width: 90px;
    height: 108px;
  }
  .footer-brand img {
    width: 128px;
    height: 128px;
    left: -19px;
    top: -10px;
  }
  footer > div {
    flex: 1;
    min-width: 150px;
  }
  .footer-title {
    font-size: 17px;
  }
  .footer-top {
    margin-left: 0;
  }
  .preview-label {
    max-width: 65px;
    text-align: right;
  }
}
.browse-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px;
  background: var(--panel);
  margin: 26px 0;
}
.browse-filters label {
  margin: 0;
  display: grid;
  gap: 5px;
  font-size: 13px;
  min-width: 150px;
}
.browse-filters .query-field {
  flex: 1;
  min-width: 220px;
}
.browse-filters input,
.browse-filters select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 3px;
}
.browse-filters button {
  margin: 0;
  padding: 10px 22px;
}
.results-bar,
.entry-bottom {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
}
.results-bar > a {
  font-size: 13px;
  color: var(--accent);
}
.entry-bottom .muted {
  font-size: 11px;
}
.match-note {
  font-size: 13px;
  color: var(--muted);
}
.pagination {
  justify-content: center;
  gap: 28px;
  margin-top: 30px;
}
.pagination span {
  font-size: 13px;
}
.view-tabs,
.passage-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.view-tabs a,
.passage-tabs a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
}
.view-tabs a[aria-current],
.passage-tabs a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}
.edition-entry {
  margin: 15px 0;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 65px;
  margin-top: 30px;
}
.about-copy {
  max-width: 72ch;
  font-size: 16px;
}
.about-copy h2 {
  margin-top: 32px;
}
.about-aside {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.about-aside dt {
  color: var(--muted);
  font-size: 13px;
}
.about-aside dd {
  font:
    32px Georgia,
    serif;
  margin: 4px 0 22px;
}
.annotated-text {
  color: inherit;
  background: transparent;
  border-bottom: 2px dotted var(--accent);
  cursor: pointer;
}
.annotated-text:hover,
.annotated-text:focus {
  background: var(--panel);
}
.selected-note {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}
header nav {
  flex-wrap: wrap;
  gap: 22px;
}
@media (max-width: 700px) {
  header nav {
    gap: 16px;
    row-gap: 0;
  }
  .browse-filters {
    gap: 12px;
  }
  .browse-filters label,
  .browse-filters .query-field {
    flex: 1;
    min-width: 130px;
  }
  .browse-filters .query-field {
    flex-basis: 100%;
  }
  .browse-filters button {
    width: 100%;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .about-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0;
  }
  .passage-tabs {
    max-height: 190px;
    overflow: auto;
  }
  header nav .account-link {
    margin-left: 0;
  }
}

#selection-composer textarea[readonly] {
  min-height: 5rem;
}
#selection-composer select {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.recovery-code code {
  overflow-wrap: anywhere;
}
#connection-fields select {
  width: 100%;
}

.entity-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.entity-links a {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
}
main > form select {
  max-width: 100%;
  width: 100%;
}
main > form textarea {
  width: 100%;
}
.bibliography-list {
  grid-template-columns: 1fr;
}
.bibliography-list article {
  max-width: 72rem;
}
.work-description {
  max-width: 68ch;
}
.availability {
  font-size: 0.85rem;
  color: var(--muted);
}
.library-citations {
  margin-top: 1rem;
}
.library-citation {
  margin: 0.8rem 0;
  overflow-wrap: anywhere;
}
.library-citation details {
  margin-top: 0.35rem;
  font-size: 0.85rem;
}
.library-citation details p {
  margin: 0.4rem 0;
}

.source-facsimile {
  margin: 1rem 0;
}
.source-facsimile img {
  display: block;
  width: 100%;
  height: auto;
}
.source-facsimile figcaption {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
/* One row of the timeline's life-lines on a passage page. Kind colours match timeline.css. */
.rw-lifeline {
  --k-origin: light-dark(#2a78d6, #3987e5);
  --k-prediction: light-dark(#eb6834, #d95926);
  --k-event: light-dark(#1baf7a, #199e70);
  --k-interpretation: light-dark(#4a3aa7, #9085e9);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 20px;
}
.rw-lifeline h2 {
  font-size: 22px;
  margin: 0 0 10px;
}
.rw-lifeline .tl-lane {
  display: block;
  width: 100%;
  height: auto;
}
.rw-lifeline text {
  fill: var(--muted);
  font-size: 11px;
}
.rw-lifeline .tl-grid {
  stroke: var(--line);
  stroke-dasharray: 2 4;
}
.rw-lifeline .tl-life {
  stroke: var(--line);
  stroke-width: 2;
}
.rw-lifeline .tl-mark {
  stroke: var(--paper);
  stroke-width: 1.5;
}
.rw-lifeline .k-origin {
  fill: var(--k-origin);
}
.rw-lifeline .k-prediction {
  fill: var(--k-prediction);
}
.rw-lifeline .k-event {
  fill: var(--k-event);
}
.rw-lifeline .k-interpretation {
  fill: var(--k-interpretation);
}
.rw-lifeline .tl-shape {
  width: 12px;
  height: 12px;
  flex: none;
}
.rw-lifeline-dates {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.rw-lifeline-dates li {
  display: grid;
  grid-template-columns: minmax(0, 13em) minmax(0, 1fr);
  gap: 2px 18px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.rw-lifeline-when {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.rw-lifeline-dates small,
.rw-lifeline-relation {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.rw-lifeline summary {
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.rw-lifeline-more {
  font-size: 14px;
}
@media (max-width: 700px) {
  .rw-lifeline-dates li {
    grid-template-columns: 1fr;
  }
}
