:root {
  color-scheme: light;
  --paper: #ece5d5;
  --sheet: #f7f1e4;
  --ink: #29271f;
  --muted: #655e50;
  --red: #8d3930;
  --line: #b8ab91;
  font-family: "Delo Text", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 15% 0%, #f4eddd, transparent 65%); }
a { color: var(--red); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #56241e; text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 3; padding: .7rem 1rem; background: var(--sheet); }
.skip-link:focus { top: 1rem; }
.case-header, main, .case-footer { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.case-header { padding: 28px 0 22px; border-bottom: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 24px; align-items: baseline; font-family: "Delo Mono", "Courier New", monospace; font-size: .78rem; }
.case-header p { margin: 0; text-transform: uppercase; letter-spacing: .09em; }
.case-header p span { color: var(--muted); }
.back-link { text-decoration: none; }
.document-header { padding: 54px 0 36px; max-width: 1000px; }
.eyebrow { margin: 0 0 17px; font-family: "Delo Mono", "Courier New", monospace; font-size: .78rem; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
h1, h2, h3 { font-family: "Delo Display", Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(2.25rem, 4.8vw, 4rem); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.025em; }
h2 { font-size: 1.65rem; line-height: 1.25; margin: 0 0 18px; }
h3 { font-size: 1.3rem; line-height: 1.3; margin: 30px 0 10px; }
p { margin: 0 0 1em; }
.original-title { color: var(--muted); max-width: 780px; margin: 22px 0 0; font-size: .9rem; line-height: 1.6; }
.source-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr); gap: 44px; align-items: start; }
.excerpt-sheet { padding: 28px 30px 24px; border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--sheet); box-shadow: 5px 7px 0 #c5b89d33; }
.sheet-topline { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; border-bottom: 1px solid var(--line); margin-bottom: 22px; padding-bottom: 13px; }
.sheet-topline h2 { margin: 0; font-size: 1.3rem; }
.sheet-topline span, .sheet-label, .locator { font-family: "Delo Mono", "Courier New", monospace; font-size: .78rem; line-height: 1.7; }
.sheet-topline span { color: var(--red); white-space: nowrap; }
.sheet-label { text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
blockquote { margin: 0; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; }
blockquote p { margin: 0; }
.text-source blockquote { font-family: "Delo Mono", "Courier New", monospace; font-size: 1.02rem; line-height: 1.75; }
.translation { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 19px; }
.translation > p:last-child { font-size: 1.13rem; line-height: 1.55; margin-bottom: 0; }
.locator { padding-top: 22px; margin: 23px 0 0; border-top: 1px solid var(--line); color: var(--muted); }
.bibliography { padding: 7px 0 0; }
.bibliography h2 { font-size: 1.3rem; }
dl { margin: 0; }
dt { font-family: "Delo Mono", "Courier New", monospace; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 22px 0 6px; }
dd { margin: 0; font-size: .85rem; line-height: 1.65; }
.reading-note { max-width: 850px; margin: 54px 0 52px; padding-left: 27px; border-left: 2px solid var(--red); }
.reading-note p:last-child { margin-bottom: 0; }
.reading-note h2 { margin-bottom: 14px; }
.scan-section { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--ink); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 25px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; }
.section-heading a { font-family: "Delo Mono", "Courier New", monospace; font-size: .78rem; }
.scan-sheet { margin: 0; padding: 18px; background: #d4c8ae; border: 1px solid var(--line); }
.scan-sheet > a { display: block; max-width: 1000px; margin: auto; }
.scan-sheet img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid #b8ad98; }
figcaption { padding: 16px 4px 0; font-family: "Delo Mono", "Courier New", monospace; font-size: .78rem; line-height: 1.7; max-width: 950px; }
.materials { margin-top: 58px; padding-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; border-top: 1px solid var(--ink); }
.materials .eyebrow { margin-bottom: 9px; }
.materials p { font-size: .88rem; }
.file-list { margin: 0; padding: 0; list-style: none; }
.file-list li { border-top: 1px solid var(--line); }
.file-list li:last-child { border-bottom: 1px solid var(--line); }
.file-link { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 19px 2px; text-decoration: none; font-size: 1rem; line-height: 1.5; }
.file-link > span:first-child { grid-column: 1; }
.file-link > span:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.file-type { color: var(--muted); font-family: "Delo Mono", "Courier New", monospace; font-size: .78rem; grid-column: 1; }
.origin { margin: 33px 0 50px; padding-top: 22px; border-top: 1px solid var(--line); }
.origin h2 { font-size: 1.3rem; margin-bottom: 12px; }
.origin ul { padding: 0; margin: 0; list-style: none; }
.origin li { margin: 9px 0; font-size: .85rem; overflow-wrap: anywhere; }
.case-footer { margin-top: 20px; padding: 27px 0 42px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--ink); }
.return-button { display: inline-block; border: 1px solid var(--red); padding: 12px 18px; font-family: "Delo Mono", "Courier New", monospace; font-size: .78rem; text-decoration: none; }
.return-button:hover { background: #e4d5c3; }
.case-footer > span { font-family: "Delo Mono", "Courier New", monospace; font-size: .78rem; color: var(--muted); }
@media (max-width: 850px) {
  .case-header, main, .case-footer { width: calc(100% - 48px); }
  .source-grid { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .bibliography { border-top: 1px solid var(--line); padding-top: 25px; }
  .bibliography dl { display: grid; grid-template-columns: 145px 1fr; gap: 14px; }
  dt { margin: 0; padding-top: 3px; }
  dd { font-size: .9rem; }
  .materials { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-bottom: 12px; }
}
@media (max-width: 520px) {
  :root { font-size: 18px; }
  .case-header, main, .case-footer { width: calc(100% - 36px); }
  .case-header { padding: 20px 0 17px; flex-direction: column; gap: 15px; font-size: .78rem; }
  .document-header { padding: 35px 0 28px; }
  h1 { font-size: 2.25rem; }
  .eyebrow { font-size: .78rem; }
  .excerpt-sheet { padding: 22px 19px; }
  .sheet-topline { display: block; }
  .sheet-topline h2 { margin-bottom: 9px; }
  blockquote { font-size: 1.22rem; }
  .text-source blockquote { font-size: 1rem; }
  .bibliography dl { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  dt:not(:first-child) { margin-top: 15px; }
  .reading-note { margin: 37px 0; padding-left: 17px; }
  .scan-section { margin-top: 38px; }
  .scan-sheet { padding: 7px; }
  figcaption { font-size: .78rem; padding: 13px 4px 6px; }
  .materials { margin-top: 35px; }
  .case-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
  .return-button { padding: 13px 16px; }
}
@media print {
  body { background: #fff; }
  .case-header, .case-footer, .skip-link { display: none; }
  main { width: 100%; }
  .excerpt-sheet, .scan-sheet { box-shadow: none; background: #fff; }
  .document-header { padding-top: 0; }
  .scan-section { break-before: page; }
}
.local-reading { margin: 46px 0 0; padding-top: 28px; border-top: 1px solid var(--ink); }
.local-reading .eyebrow { margin-bottom: 10px; }
.reading-format { max-width: 850px; font-size: .88rem; }
.reading-sheet { margin-top: 25px; background: var(--sheet); border: 1px solid var(--line); box-shadow: 5px 7px 0 #c5b89d33; }
.reading-sheet summary { color: var(--red); cursor: pointer; font-family: "Delo Mono", "Courier New", monospace; font-size: .85rem; padding: 22px 26px; }
.reading-sheet summary:hover { background: #e4d5c366; }
.reading-sheet summary:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
.reading-sheet[open] summary { border-bottom: 1px solid var(--line); }
.reading-body { max-width: 900px; padding: 35px 38px 20px; font-size: 1rem; line-height: 1.85; }
.reading-body > p { margin-bottom: 1.2em; }
.reading-body > .sheet-label { border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 26px; }
@media (max-width: 520px) {
  .reading-sheet summary { padding: 19px 17px; }
  .reading-body { padding: 25px 19px 12px; font-size: 1rem; }
}
.document-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 28px; }
.gallery-sheet { margin: 0; padding: 12px; border: 1px solid var(--line); background: #e5dbc7; }
.gallery-sheet > a { display: block; background: #d4c8ae; }
.gallery-sheet img { display: block; width: 100%; height: 280px; object-fit: contain; }
.gallery-sheet figcaption { padding: 15px 3px 3px; }
.gallery-sheet figcaption p { margin-bottom: 8px; }
@media (max-width: 650px) {
  .document-gallery { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 20px; }
  .gallery-sheet img { height: 240px; }
}
