/* reading: see workshop/docs/architecture.md. */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --desk-deep: #d0c5a4;
  --gutter: 0rem;
  --air: 1.25rem;
}

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--work);
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

.sentence-block {
  grid-column: 1;
  padding: 0 0 var(--air);
  max-width: 100%;
}

.head {
  padding: 0 0 var(--air) var(--gutter);
}

.sequence {
  margin: 0 0 var(--air);
  font-family: var(--apparatus);
  font-size: .72rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-far);
}

.head .subtitle {
  margin: .3rem 0 0;
  font-family: var(--apparatus);
  font-size: .95rem;
  letter-spacing: .01em;
  color: var(--verdigris);
}

.head h1 {
  margin: 0 0 var(--air);
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.35rem;
  line-height: 1.14;
  letter-spacing: -.005em;
  text-wrap: balance;
  max-width: var(--measure);
}

.placement {
  padding-top: 0;
}

.placement .sentence {
  margin-bottom: calc(var(--air) * .8);
}

.placement:last-child .sentence:last-child {
  margin-bottom: 0;
}

.sentence {
  margin: 0 0 var(--air) var(--gutter);
  max-width: var(--measure);
  hyphens: auto;
}

.window {
  margin: calc(var(--air) * .8) calc(var(--margin) * -1);
  padding: 0 var(--margin) 0 calc(var(--margin) + var(--gutter) * .5);
  font-family: var(--work);
  font-size: 1rem;
  line-height: 1.62;
  quotes: none;
  display: flow-root;
}

.window p {
  margin: 0;
  max-width: calc(var(--measure) + var(--gutter) * .5);
}

.inset {
  quotes: none;
}

.foreign-quote {
  quotes: none;
}

.locus-ref {
  font-family: var(--apparatus);
  font-size: .72rem;
  letter-spacing: .07em;
  color: var(--verdigris);
  white-space: nowrap;
}

.window .locus-ref {
  display: block;
  width: fit-content;
  margin: .5rem 0 0 auto;
  max-width: calc(var(--measure) + var(--gutter) * .5);
}

a.locus-ref {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  padding-bottom: .05em;
  transition: border-bottom-color .15s, color .15s;
}

a.locus-ref:hover, a.locus-ref:focus-visible {
  border-bottom-style: solid;
  outline: none;
}

a.locus-ref:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: .18em;
}

@media (prefers-reduced-motion: reduce) {
  a.locus-ref {
    transition: none;
  }
}

.plate + .plate {
  margin-top: var(--air);
  padding-top: var(--air);
  border-top: 1px solid var(--rule);
}

.citation-key {
  margin: 0 0 .55rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--verdigris);
}

.citation dl {
  display: grid;
  grid-template-columns: minmax(4rem, max-content) minmax(0, 1fr);
  column-gap: 1.1rem;
  row-gap: .34rem;
  margin: 0;
}

.citation dt {
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-far);
  padding-top: .18em;
}

.citation dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.citation .italic {
  font-style: italic;
}


.italic {
  font-style: italic;
}

a {
  color: var(--verdigris);
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 700px) {
  .head h1 {
    font-size: 1.85rem;
  }
}

@media (max-width: 700px) {
  .window {
    margin-left: calc(var(--margin) * -1);
    margin-right: calc(var(--margin) * -1);
    padding-left: var(--margin);
    font-size: 1.04rem;
  }
}

@media (min-width: 1180px) {
  .strata {
    align-items: start;
    min-height: 100vh;
  }
}

@media (min-width: 1180px) {
  .strata:not(:has(> .source-column)) {
    min-height: 0;
  }
}

@media (min-width: 1180px) {
  .sentence-block {
    grid-column: 1;
    width: auto;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 1180px) {
  .sentence-block .sentence, .sentence-block h2, .sentence-block h3 {
    max-width: var(--measure);
  }
}

@media (min-width: 1180px) {
  .source-column {
    grid-column: 2;
    border-left: 1px solid var(--rule-fine);
    align-self: start;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--rule) transparent;
  }
}

@media (min-width: 1180px) {
  .source-column-inner {
    padding: calc(var(--air) * 1.6) 0 var(--air) 26px;
    max-width: none;
  }
}

@media (max-width: 1179px) {
  .source-column {
    grid-column: 1 / -1;
    border-top: 1px solid var(--rule-fine);
  }
}

@media (max-width: 1179px) {
  .source-column-inner {
    padding: var(--air) 0 calc(var(--air) * 2);
  }
}

.source + .source {
  margin-top: calc(var(--air) * 1.6);
  padding-top: calc(var(--air) * 1.6);
  border-top: 1px solid var(--rule);
}

.source-mark {
  margin: 0 0 .2rem;
  font-family: var(--apparatus);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-far);
}

.source-head {
  margin: 0 0 var(--air);
  font-family: var(--work);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.35;
  text-wrap: balance;
}

.source-sentence {
  margin: 0 0 var(--air);
  font-family: var(--work);
  font-size: .95rem;
  line-height: 1.66;
  color: #443e33;
  hyphens: auto;
}

.place-what {
  margin: 0 0 var(--air);
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--apparatus);
}

.place-kind {
  display: block;
  font-size: .7rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--verdigris);
}

.place-who {
  display: block;
  margin-top: .2rem;
  font-size: .74rem;
  color: var(--ink-far);
}

.place-title {
  display: block;
  margin-top: .2rem;
  font-family: var(--work);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
}

.place-back {
  margin: 0 0 var(--air);
}

.place-back button, .source-marker {
  font: inherit;
  color: var(--verdigris);
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  padding: 0;
  cursor: pointer;
}

.source-marker {
  font-family: var(--apparatus);
  font-size: .68rem;
  letter-spacing: .02em;
  border-bottom: 0;
  vertical-align: super;
  line-height: 0;
  padding: .35em .15em;
  margin-inline: -.05em;
  white-space: nowrap;
  color: var(--ink-quiet);
}

.source-marker:hover, .source-marker:focus-visible, .source-marker[aria-pressed="true"] {
  color: var(--verdigris);
}

.source-marker:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.place-back button:hover {
  color: var(--gold);
}

.place-back button {
  font-family: var(--apparatus);
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.entrance {
  background: var(--sheet);
}

.plate-mark {
  display: block;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-size: .68rem;
  color: var(--verdigris);
}

.entrance .sentence-block {
  padding-top: calc(var(--air) * .8);
}

h2.section {
  margin: calc(var(--air) * 1.8) 0 calc(var(--air) * .6) var(--gutter);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--ink);
}

h2.section:first-child {
  margin-top: var(--air);
}

h3.subsection {
  margin: calc(var(--air) * 1.4) 0 calc(var(--air) * .45) var(--gutter);
  font-family: var(--apparatus);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--verdigris);
}

hr.divider {
  margin: calc(var(--air) * 2) 0 var(--air);
  border: 0;
  border-top: 1px solid var(--rule);
}

.running-plate {
  margin: 0;
}

.plate-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.plate-open:focus-visible img {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.running-plate img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(26rem, 52vh);
  margin-inline: auto;
  height: auto;
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: .5rem;
}

.running-plate a:focus-visible img {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.contents {
  border-top: 1px solid var(--rule);
  box-sizing: border-box;
  padding: 0 var(--page-edge) calc(var(--air) * 3);
  max-width: var(--page);
  margin: 0 auto;
}

.contents .sentence {
  max-width: none;
  color: var(--ink-quiet);
}

.source-link {
  font-family: var(--apparatus);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--verdigris);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

a.source-link:hover {
  color: var(--gold);
  border-bottom-color: currentColor;
}

a.source-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.thought {
  scroll-margin-top: calc(var(--masthead-height, 0px) + var(--bar));
}

.titlepage + .thought, .titlepage + .contents {
  border-top: 0;
}

.thought .head {
  padding-top: 0;
  display: flow-root;
}

.thought .head h2 {
  margin: 0 0 var(--air);
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.14;
  letter-spacing: -.005em;
  text-wrap: balance;
  max-width: var(--measure);
}

.references {
  font-family: var(--apparatus);
}

.references-mark {
  margin: 0 0 .6rem;
  font-size: .7rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--verdigris);
}

.references ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ink-quiet);
}

.references li {
  display: flex;
  gap: .7rem;
  align-items: baseline;
}

.references .locus-ref {
  flex: none;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  padding-bottom: .05em;
}

.reference-title {
  font-family: var(--work);
  font-style: italic;
  font-size: .92rem;
  color: var(--ink-quiet);
}

.part-head .head {
  border-bottom: 0;
}

.part-head .head h2 {
  font-size: 2.6rem;
}

.thought.part .head h2 {
  font-size: 2.6rem;
}

@media (min-width: 1180px) {
  .thought .source-column {
    top: calc(var(--masthead-height, 0px) + var(--bar));
    height: calc(100vh - var(--masthead-height, 0px) - var(--bar));
  }
}

#top, #introduction {
  scroll-margin-top: calc(var(--masthead-height, 0px) + var(--bar));
}

.next {
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--masthead-height, 0px) + var(--bar));
}

.next .sentence-block {
  padding-top: calc(var(--air) * 2);
  padding-bottom: calc(var(--air) * 2.4);
}

.next h2 {
  margin: .2rem 0 var(--air);
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.14;
  letter-spacing: -.005em;
  max-width: calc(var(--measure) - var(--margin) * 2);
}

.next h2 a {
  color: inherit;
  text-decoration-color: var(--rule);
  text-underline-offset: .16em;
}

.next h2 a:hover {
  text-decoration-color: currentColor;
}

.next .sentence {
  max-width: var(--measure);
}

@media (min-width: 901px) {
  .sentence-block .section, .sentence-block .subsection {
    clear: both;
  }
}
