/* draft-workshop: theme only; shared components live in transcription.css. */
:root {
  --gold-light: #c9971f;
  --measure: 680px;
  --margin: 4.4rem;
}

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

html {
  font-size: 19px;
}

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--work);
}

#work {
  padding: 56px 0 90px 60px;
  scroll-behavior: smooth;
  overflow-wrap: break-word;
}

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

.work-section {
  box-sizing: border-box;
  max-width: calc(var(--measure) + var(--margin));
  margin: 0;
  padding-left: var(--margin);
}

.chapter {
  margin: 5rem 0 2.6rem;
  padding-top: 40px;
  border-top: 1px solid var(--rule-fine);
  scroll-margin-top: calc(var(--masthead-height, 0px) + 1rem);
}

.work-section:first-of-type .chapter {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.chapter h2 {
  margin: 0;
  font-weight: normal;
  text-wrap: balance;
}

.chapter-count {
  display: block;
  margin-bottom: 6px;
  font-family: var(--apparatus);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}

.chapter-title {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.15;
}

.paragraph {
  position: relative;
  margin: 3.2rem 0 1.1rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 21px;
  font-weight: normal;
  line-height: 1.3;
  color: var(--ink);
  scroll-margin-top: 2rem;
  text-wrap: balance;
}

.paragraph-page {
  position: absolute;
  left: calc(var(--margin) * -1 + 1.4rem);
  top: 1.85em;
  width: 3rem;
  font-family: var(--apparatus);
  font-style: normal;
  font-size: .62rem;
  line-height: 1;
  letter-spacing: .06em;
  color: var(--ink-far);
}

.paragraph-page .print-page::before {
  content: "S. ";
}

.paragraph-page .print-page {
  float: none;
  width: auto;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.paragraph-sign, .paragraph-number {
  font-family: var(--display);
  font-weight: normal;
  color: var(--verdigris);
}

.paragraph-sign {
  position: absolute;
  left: calc(var(--margin) * -1);
  width: 1.1rem;
  text-align: right;
  opacity: .5;
}

.paragraph-number {
  position: absolute;
  left: calc(var(--margin) * -1 + 1.3rem);
  width: 2.6rem;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.05;
}

.work-section > p {
  margin: 0 0 1.1em;
  font-size: 18.5px;
  line-height: 1.62;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

.work-section em {
  font-style: italic;
}

.work-section strong {
  font-weight: 600;
}

.list {
  margin: 0 0 1.3em;
  padding-left: 1.2em;
  font-size: 1.05rem;
  line-height: 1.58;
}

.note {
  position: relative;
  margin: 2rem 0 2.2rem;
  padding-top: 1.1rem;
}

.note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 7rem;
  height: 1px;
  background: var(--ink-far);
}

.note p {
  margin: 0 0 .8em;
  font-size: 1.04rem;
  line-height: 1.6;
  color: #453f37;
  text-align: left;
  overflow-wrap: break-word;
}

.note p:last-child {
  margin-bottom: 0;
}

.note p:first-of-type .footnote-sign {
  float: left;
  width: var(--margin);
  margin-left: calc(var(--margin) * -1);
  padding-right: .9rem;
  text-align: right;
  vertical-align: baseline;
  font-size: 1em;
}

.footnote-sign {
  display: inline-block;
  color: var(--verdigris);
  font-family: var(--apparatus);
  font-size: .82em;
  vertical-align: .35em;
  padding: 0 .1em;
}

.plate {
  margin: 3rem 0 3.4rem calc(var(--margin) * -1);
  padding: 22px;
  border: 1px solid var(--rule-fine);
  text-align: center;
}

.plate--small {
  margin-inline: 0;
  padding: 1rem;
}

.plate-button img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 24rem;
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

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

.plate figcaption {
  margin-top: 1rem;
  font-family: var(--apparatus);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--verdigris);
}

.work-section--titlepage {
  margin-bottom: 4rem;
}

.work-section--titlepage > .titlepage-author {
  margin: 0 0 22px;
  font-family: var(--apparatus);
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--verdigris);
}

.titlepage-title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: normal;
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}

.titlepage-title em {
  font-style: italic;
}

.titlepage-flow {
  display: flow-root;
}

.titlepage-flow > .titlepage-subtitle {
  margin: 0;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--ink-quiet);
  text-wrap: pretty;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.work-section--titlepage .plate {
  float: left;
  width: 170px;
  margin: .3rem 2rem .6rem 0;
  padding: 10px;
  box-sizing: border-box;
}

.work-section--titlepage .plate-button img {
  max-height: none;
  width: 100%;
}

.work-section--titlepage > .titlepage-imprint {
  clear: both;
  margin: 28px 0 0;
  font-family: var(--apparatus);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--ink-far);
}

@media (max-width: 46rem) {
  .work-section--titlepage .plate {
    float: none;
    width: 200px;
    margin: 0 0 1.2rem;
  }
}

.chapter-h1 {
  margin: 4.5rem 0 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.14;
  text-wrap: balance;
}

.work-section--version > .chapter-h1:first-child {
  margin-top: 0;
}

.work-section h4 {
  margin: 2rem 0 .7rem;
  font-family: var(--apparatus);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-quiet);
  text-wrap: balance;
}

.work-section li {
  margin-bottom: .45em;
  font-size: 1.06rem;
  line-height: 1.58;
}

.work-section--version strong {
  font-weight: 600;
}

.turn {
  color: var(--verdigris);
}

@media (max-width: 1499px) {
  #work {
    padding-top: 5.5rem;
  }
}

@media (max-width: 1499px) {
  .work-section {
    margin-inline: auto;
  }
}

@media (max-width: 1080px) {
  #work {
    padding: 5.5rem 20px 8rem;
  }
}

@media (max-width: 1080px) {
  .work-section {
    padding-left: 0;
  }
}

@media (max-width: 1080px) {
  .paragraph {
    padding-left: 3.4rem;
  }
}

@media (max-width: 1080px) {
  .paragraph-sign {
    left: 0;
  }
}

@media (max-width: 1080px) {
  .paragraph-number {
    left: 1.3rem;
  }
}

@media (max-width: 1080px) {
  .chapter-title {
    font-size: 1.9rem;
  }
}

@media (max-width: 1080px) {
  .plate {
    margin-inline: -20px;
  }
}

.taken-up {
  margin: -.35rem 0 1.5rem;
  font-family: var(--apparatus);
  font-size: .78rem;
  color: var(--ink-far);
}

.taken-up > summary {
  padding: .1rem 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}

.taken-up > summary::before {
  transition: transform .18s;
}

.taken-up > summary:hover, .taken-up > summary:focus-visible {
  color: var(--verdigris);
  border-bottom-color: var(--rule);
  outline: none;
}

.taken-up-count {
  color: var(--ink-far);
}

.taken-up > ul {
  border-left: 1px solid var(--rule-fine);
}

.taken-up li a {
  color: var(--verdigris);
  border-bottom: 1px solid var(--rule);
}

.taken-up li a:hover {
  border-bottom-color: var(--verdigris);
}

.taken-up-tier {
  color: var(--ink-far);
}

@media (prefers-reduced-motion: reduce) {
  .taken-up > summary, .taken-up > summary::before {
    transition: none;
  }
}
