:root {
  color-scheme: light;
  --ink: #20382e;
  --deep: #182e28;
  --ivory: #f7efd9;
  --brass: #dec58b;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Trebuchet MS', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font: 1.125rem/1.55 var(--serif); }
p, figure, h1, h2, blockquote { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #be873a; outline-offset: 4px; }
.wrap { width: min(88%, 73rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: .6rem; left: .8rem; padding: .6rem .9rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.masthead { color: var(--ivory); background: #132720; border-bottom: 1px solid #c7aa7066; }
.masthead nav, .colophon { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.masthead nav { min-height: 4.3rem; }
.wordmark, .case-link, .excerpt-link, .colophon a { display: inline-flex; align-items: center; min-height: 44px; }
.wordmark { text-decoration: none; font: small-caps 1.6rem/1 var(--serif); letter-spacing: -.025em; }
.wordmark small { margin: .35em 0 0 .65em; color: var(--brass); font: 700 .62rem/1 var(--sans); text-transform: uppercase; letter-spacing: .18em; }
.case-link, .excerpt-link, .colophon a { font: 600 .9rem/1.35 var(--sans); }
.case-link { color: #e6dec9; }
.desk { position: relative; background: radial-gradient(ellipse at 73% 45%, #394a36, transparent 53%), var(--deep); color: var(--ivory); }
.spread { display: grid; grid-template-areas: "title envelope" "intro envelope"; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-content: center; gap: 1.7rem 3rem; padding-block: clamp(3.7rem, 6.8vw, 6.6rem); }
.title-block { grid-area: title; align-self: end; }
.kicker { font: 700 .74rem/1.45 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.title-block .kicker { color: var(--brass); }
h1 { margin-top: 1rem; font: 400 clamp(3.75rem, 6.5vw, 6.1rem)/.97 var(--serif); letter-spacing: -.05em; }
h1 em { font-weight: 400; color: #edd49e; }
.intro { grid-area: intro; max-width: 28rem; }
.intro p { font-size: clamp(1.1rem, 1.43vw, 1.28rem); line-height: 1.51; }
.intro p + p { margin-top: .8rem; }
.excerpt-link { margin-top: 1.15rem; gap: .65rem; color: #f0d8a1; text-decoration: none; border-bottom: 1px solid #bda572; }
.excerpt-link:hover { border-color: currentColor; }
.envelope { grid-area: envelope; width: 100%; max-width: 39rem; justify-self: center; align-self: center; }
.envelope img { display: block; width: 100%; height: auto; transform: rotate(3deg); filter: drop-shadow(.4rem 1.25rem .6rem #07140e75); }
.letter-paper { border-block: 1px solid #b5a27c; background: #f2e9d2; }
.extract { display: grid; grid-template-columns: minmax(10rem, .52fr) minmax(0, 1.5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding-block: clamp(2.8rem, 5.1vw, 5.2rem); }
.letter-label { border-top: 1px solid #a09572; max-width: 14rem; padding-top: .7rem; }
.letter-label h2 { color: #685534; font-size: .7rem; }
.letter-label p { font-size: 1rem; line-height: 1.5; margin-top: .8rem; }
.letter-label i { color: #5a5a48; }
.extract + .extract { border-top: 1px solid #b5a27c; }
.manuscript { min-width: 0; }
.scan { display: block; position: relative; cursor: zoom-in; }
.paper-fragment { display: block; filter: drop-shadow(0 2px 2px #50381240) drop-shadow(0 8px 9px #4b391e17); }
.scan img { width: 100%; height: auto; display: block; clip-path: polygon(.12% .5%, 24% .08%, 61% .22%, 83% 0, 99.9% .47%, 99.72% 54%, 100% 99.46%, 73% 99.83%, 50% 99.6%, 23% 100%, .05% 99.65%, .25% 53%); }
.enlarge { position: absolute; top: calc(100% + .55rem); right: 0; z-index: 1; min-height: 44px; display: inline-flex; align-items: center; gap: .48rem; padding: .25rem .55rem; color: #495344; font: 600 .83rem/1.4 var(--sans); }
.enlarge b { font: 400 1.05rem/1 var(--sans); }
.scan:hover .enlarge, .scan:focus-visible .enlarge { text-decoration: underline; text-underline-offset: .2em; }
.transcription { margin-top: .55rem; }
.transcription summary { width: fit-content; min-height: 44px; padding-block: .8rem; cursor: pointer; font: 600 .83rem/1.4 var(--sans); color: #495344; }
.transcription summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.transcription blockquote { max-width: 56ch; padding-left: 1rem; margin: .25rem 0 .4rem; border-left: 2px solid #b5a27c; font-size: 1.13rem; line-height: 1.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.art-viewer { padding: 0; width: min(86rem, 96vw); max-width: 96vw; max-height: 96vh; max-height: 96dvh; margin: auto; border: 1px solid #796b4d; background: var(--deep); color: var(--ivory); }
.art-viewer::backdrop { background: #0d1815df; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .25rem .8rem .25rem 1rem; }
.viewer-toolbar h2 { font: 500 1rem/1.3 var(--serif); }
.close-viewer { min-height: 44px; padding: .45rem .65rem; cursor: pointer; border: 0; background: transparent; color: var(--ivory); font: 600 .875rem/1.25 var(--sans); text-decoration: underline; text-underline-offset: .2em; }
.viewer-viewport { overflow: auto; max-height: calc(96vh - 3.6rem); max-height: calc(96dvh - 3.6rem); overscroll-behavior: contain; background: #f5e8c5; }
.viewer-image { display: block; width: 100%; min-width: 59rem; height: auto; }
.art-viewer:has(.viewer-image[src*="letter-b"]) { width: min(65rem, 96vw); }
.art-viewer:has(.viewer-image[src*="letter-b"]) .viewer-image { min-width: 43rem; }
.colophon { min-height: 5rem; padding-block: .75rem; font: .82rem/1.45 var(--sans); color: #495747; }
@media (max-width: 760px) {
  .wrap { width: min(100% - 2.5rem, 36rem); }
  .spread { grid-template-areas: "title" "envelope" "intro"; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; padding-block: 2.4rem 2.7rem; }
  h1 { font-size: clamp(3.5rem, 10.8vw, 4.8rem); margin-top: .65rem; }
  .envelope { width: min(100%, 28rem); }
  .intro { max-width: none; }
  .extract { grid-template-columns: 1fr; gap: 1.2rem; }
  .letter-label { border: 0; max-width: none; padding: 0; }
  .letter-label p { margin-top: .4rem; }
  .letter-label br { display: none; }
  .letter-label i { margin-left: .25em; }
}
@media (max-width: 460px) {
  .masthead nav { gap: .7rem; min-height: 3.7rem; }
  .wordmark { font-size: 1.3rem; }
  .wordmark small { font-size: .52rem; margin-left: .45em; }
  .case-link { font-size: .78rem; }
  .colophon { flex-wrap: wrap; gap: 0 .8rem; padding-block: .8rem; }
}
@media (max-width: 360px) {
  .masthead nav { width: calc(100% - 1.5rem); gap: .45rem; }
  .wordmark { font-size: 1.14rem; white-space: nowrap; }
  .case-link { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
