:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #202b35;
  --muted: #52606a;
  --rule: #d4d6ce;
  --accent: #893c23;
  --panel: #eeeee5;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.75 Georgia, "Times New Roman", serif; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.masthead, footer { max-width: 1060px; margin: auto; padding: 24px 28px; font: 14px/1.6 system-ui, sans-serif; }
.masthead { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--rule); }
.masthead span, footer { color: var(--muted); }
main { max-width: 820px; margin: 70px auto 80px; padding: 0 28px; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.08; font-weight: 500; letter-spacing: -0.035em; margin: 16px 0 22px; }
h2 { font-size: clamp(1.65rem, 4vw, 2.2rem); line-height: 1.2; font-weight: 500; margin: 12px 0 24px; }
h3 { font-size: 1.25rem; line-height: 1.4; margin-top: 32px; }
.subtitle { font-size: 1.35rem; line-height: 1.5; color: var(--muted); }
.lead { font-size: 1.2rem; }
.eyebrow, .label, .byline { font-family: system-ui, sans-serif; font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.byline, .label { color: var(--muted); }
.notice { background: var(--panel); padding: 22px 24px; font: 15px/1.7 system-ui, sans-serif; margin: 30px 0; }
.notice strong { display: block; margin-bottom: 6px; }
nav { display: flex; flex-wrap: wrap; gap: 10px 20px; font: 14px/1.6 system-ui, sans-serif; padding-bottom: 30px; }
section { border-top: 1px solid var(--rule); padding-top: 35px; margin-top: 30px; scroll-margin-top: 20px; }
.finding { padding: 24px 0; border-block: 1px solid var(--rule); margin: 28px 0; }
.number { font-size: 2.6rem; line-height: 1; }
.finding p { font: 15px/1.8 system-ui, sans-serif; margin-bottom: 0; }
.excerpt { border-left: 2px solid var(--rule); padding: 4px 0 12px 24px; margin: 30px 0; }
.excerpt h3 { margin-top: 12px; }
.reading { font-size: 1.5rem; line-height: 1.4; margin: 10px 0; }
.excerpt > p:not(.reading):not(.label) { font-size: 16px; }
.literal { background: var(--panel); padding: 12px 16px; }
.literal span { display: block; font: 12px/1.6 system-ui, sans-serif; color: var(--muted); margin-bottom: 5px; }
.translation { font-weight: bold; color: var(--accent); }
.source-panel { padding: 22px 24px; background: var(--panel); border: 1px solid var(--rule); }
.source-panel h3 { margin-top: 0; }
.small-note, .source-panel p { font: 15px/1.7 system-ui, sans-serif; }
.small-note { color: var(--muted); }
.decoding-steps { padding-left: 28px; }
.decoding-steps li { padding: 0 0 18px 14px; border-bottom: 1px solid var(--rule); }
.decoding-steps li::marker { color: var(--accent); font-weight: bold; }
.decoding-steps h3 { margin-top: 20px; margin-bottom: 10px; }
.decoding-steps p { margin-block: 10px; }
.cipher-run { display: block; background: var(--panel); padding: 16px; }
.technical { padding: 18px 20px; border: 1px solid var(--rule); margin-top: 26px; }
.technical summary { font-size: 16px; color: var(--ink); }
.technical p { font-size: 15px; }
a { overflow-wrap: anywhere; }
.button { max-width: 100%; }
details { font: 13px/1.7 system-ui, sans-serif; }
summary { cursor: pointer; color: var(--muted); margin-bottom: 6px; }
code { font: 0.85em/1.7 Consolas, monospace; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; background: var(--panel); padding: 18px; }
li { padding-left: 6px; margin-bottom: 12px; }
.sources { padding-left: 20px; font-size: 16px; }
.button { display: inline-block; background: var(--ink); color: white; padding: 12px 22px; text-decoration: none; font: 15px/1.6 system-ui, sans-serif; }
footer { border-top: 1px solid var(--rule); }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: 16px; top: 10px; background: var(--paper); padding: 10px; }
@media (max-width: 600px) {
  .masthead { flex-direction: column; gap: 4px; }
  main { margin-top: 40px; padding-inline: 22px; }
  body { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; color: black; }
  main { max-width: none; margin: 20px auto; }
  nav, .button, .skip { display: none; }
  .excerpt { break-inside: avoid; }
  .source-panel .button { display: inline; color: black; background: none; padding: 0; text-decoration: underline; }
}
