/* Reading and archive navigation. */
[hidden] { display: none !important; }
#wrap { max-width: 1040px; }
#site-years { animation: none; }
:focus-visible { outline: 3px solid #7a212e; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 18px; background: #fff; color: #7a212e; border: 2px solid currentColor; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.archive-eyebrow { color: #765c2b; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 10px; }
.archive-intro { padding: 8px 0 25px; margin-bottom: 24px; border-bottom: 1px solid #e5dfd3; }
.archive-intro h1 { font-family: var(--serif); font-size: clamp(27px, 3.4vw, 36px); line-height: 1.22; color: #162234; margin-bottom: 15px; font-weight: 700; }
.archive-intro > p:not(.archive-eyebrow), .archive-lead { font-size: 17px; line-height: 1.75; color: #475569; }
.archive-shortcuts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; }
.archive-shortcuts a { font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1px solid #cbbca1; padding-bottom: 2px; }
.archive-shortcuts span { margin-left: 6px; font-size: 12px; }
.featured-book-banner { padding: 24px; gap: 24px; }
.fbb-cover img { height: auto; }
.fbb-title { font-size: 25px; }
.fbb-text { font-size: 15px; }
.fbb-kicker { font-size: 10px; letter-spacing: 1px; }
.fbb-btn-primary, .fbb-btn-secondary { font-size: 13px; padding: 9px 13px; }
.archive-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; border-bottom: 1px solid #d7c9b0; padding-bottom: 9px; margin: 25px 0 12px; }
.archive-section-heading h2, .archive-media h2, .foundation-page h2 { font-family: var(--serif); font-size: 24px; line-height: 1.3; color: #1e293b; }
.archive-section-heading > a, .archive-section-heading > span { font-size: 12px; }
.archive-context { font-size: 12px; color: #64748b; line-height: 1.65; margin: 12px 0 20px; }
.archive-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; margin: 0 0 4px; background: #faf9f6; border: 1px solid #e5dfd3; border-radius: 3px; }
.archive-sort label { color: #475569; font-size: 13px; }
.archive-sort select, .archive-sort button { font: inherit; font-size: 13px; color: #5f2430; background: #fff; border: 1px solid #cbbfa9; border-radius: 3px; min-height: 36px; padding: 6px 9px; }
.archive-sort select { margin-left: auto; cursor: pointer; }
.archive-sort button { cursor: pointer; }
.reference-card { margin: 18px 12px 16px; padding: 14px 12px; background: linear-gradient(135deg, #fffdf8, #f1ebdf); border: 1px solid #d9ccb2; border-top: 3px solid #94783e; border-radius: 3px; }
.reference-eyebrow { display: block; color: #765c2b; font-size: 9px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 8px; }
.reference-link { display: block; text-decoration: none; }
.reference-link strong { display: block; font-family: var(--serif); font-size: 17px; line-height: 1.4; color: #58232d; }
.reference-link strong span { font-family: Georgia, serif; font-size: 13px; margin-left: 3px; }
.reference-link > span:not(.visually-hidden) { display: block; font-size: 10px; color: #765c2b; margin-top: 8px; }
.reference-link:hover strong { color: #7a212e; text-decoration: underline; text-underline-offset: 3px; }
.reference-card p { color: #59616c; font-size: 11px; line-height: 1.65; margin-top: 10px; }
.archive-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.archive-card { padding: 20px 0; border-bottom: 1px solid #e2e8f0; display: flex; flex-direction: column; align-items: flex-start; }
.archive-card-meta { font-size: 10px; color: #765c2b; letter-spacing: .7px; text-transform: uppercase; margin-bottom: 8px; }
.archive-card-meta span { color: #64748b; white-space: nowrap; }
.archive-card h3 { font-family: var(--serif); font-size: 19px; line-height: 1.4; margin-bottom: 9px; }
.archive-card h3 a { color: #253247; text-decoration: none; }
.archive-card h3 a:hover { color: #7a212e; text-decoration: underline; }
.archive-card > p:not(.archive-card-meta) { font-size: 14px; line-height: 1.75; color: #475569; margin-bottom: 14px; }
.archive-read-link { font-size: 13px; font-weight: 700; margin-top: auto; text-decoration: none; }
.archive-read-link span { margin-left: 6px; }
.archive-media { margin-top: 30px; padding: 24px; background: #f6f5f1; border: 1px solid #e7e2d7; }
.archive-media > p:not(.archive-eyebrow) { font-size: 14px; margin: 8px 0 16px; }
.archive-media .yt-wrap { margin-bottom: 0; }
.archive-article, .foundation-page { max-width: 70ch; margin-inline: auto; }
.article-header .contentheading { font-size: clamp(25px, 3vw, 32px); line-height: 1.35; padding-bottom: 15px; text-transform: none; overflow-wrap: anywhere; }
.archive-date { color: #64748b; font-size: 12px; margin: 0 0 18px; }
.reader-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 1px solid #e3ddd1; border-radius: 4px; background: #faf9f6; padding: 10px; margin: 15px 0; }
.reader-toolbar > span { font-size: 12px; color: #475569; margin-right: 4px; }
.reader-toolbar button, .resume-reading button { cursor: pointer; font: inherit; font-size: 13px; line-height: 1.4; border: 1px solid #cbbfa9; border-radius: 3px; background: #fff; color: #5f2430; padding: 7px 10px; min-height: 36px; }
.reader-toolbar button:hover, .resume-reading button:hover { background: #f0e9dd; }
.reader-toolbar button:disabled { opacity: .45; cursor: default; }
.reader-status { color: #7a212e; font-size: 12px; margin-bottom: 12px; }
.reader-status:empty { display: none; }
.reader-body { font-size: calc(18px * var(--reader-scale, 1)); line-height: 1.85; overflow-wrap: break-word; word-break: normal; }
.reader-prose { text-align: justify; text-align-last: start; text-wrap: pretty; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; hyphenate-limit-lines: 2; }
.reader-prose :where(p, div):not([align="center"], [align="right"], [style*="text-align: center"], [style*="text-align:center"], [style*="text-align: right"], [style*="text-align:right"]) { text-align: justify !important; text-align-last: start; }
.reader-prose :where(h1, h2, h3, h4), .reader-poetry, .reader-prose blockquote { text-align: left; text-align-last: auto; hyphens: none; }
.reader-prose blockquote :where(p, div) { text-align: inherit !important; }
.reader-prose :where([align="center"], [style*="text-align: center"], [style*="text-align:center"]) { text-align-last: auto; hyphens: none; }
.reader-prose :where([align="right"], [style*="text-align: right"], [style*="text-align:right"]) { text-align-last: auto; hyphens: none; }
.reader-prose .archive-indented { text-indent: 1.25em; }
.reader-prose.polish-hyphenation { -webkit-hyphens: manual; hyphens: manual; }
.reader-body :where(p, div, span, li, td, font) { font-size: inherit !important; line-height: inherit; }
.reader-body img { height: auto; }
.reader-body table { max-width: 100%; }
.reader-body h1, .reader-body h2, .reader-body h3 { line-height: 1.4; }
.reader-body h2 { font-size: 1.2em; }
.reader-body h3 { font-size: 1.1em; }
.reader-body a { text-underline-offset: 3px; }
.book-navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; border-block: 1px solid #e2d8c7; padding: 16px 0; margin: 22px 0; }
.book-navigation a { text-decoration: none; }
.book-navigation a:hover strong, .book-toc:hover { text-decoration: underline; }
.book-navigation a > span { display: block; font-size: 11px; color: #765c2b; margin-bottom: 5px; }
.book-navigation strong { display: block; font-size: 13px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
.book-next { text-align: right; }
.book-toc { background: #f4efe5; border: 1px solid #e1d6c1; border-radius: 3px; padding: 7px 10px; white-space: nowrap; font-size: 12px; }
.book-boundary { font-size: 11px; color: #64748b; }
.book-boundary:last-child { text-align: right; }
.book-contents { list-style: none; counter-reset: chapter; margin: 0; padding: 0; }
.book-contents li { counter-increment: chapter; border-bottom: 1px solid #e2e8f0; }
.book-contents li a { display: flex; align-items: baseline; gap: 15px; padding: 15px 12px; color: #253247; text-decoration: none; font-size: 16px; line-height: 1.6; }
.book-contents li a::before { content: counter(chapter, decimal-leading-zero); color: #94783e; font-size: 12px; font-variant-numeric: tabular-nums; }
.book-contents li a span:first-child { flex: 1; }
.book-contents li a span:last-child { color: #94783e; }
.book-contents li a:hover { background: #f9f6ef; color: #7a212e; }
.citation-box { padding: 14px 16px; margin: 24px 0 12px; border: 1px solid #e2e8f0; border-left: 3px solid #94783e; background: #f8fafc; font-size: 13px; }
.citation-box summary { cursor: pointer; color: #5e2933; font-weight: 700; }
.citation-box p { overflow-wrap: anywhere; margin-top: 12px; user-select: all; }
.resume-reading { display: flex; gap: 14px; justify-content: space-between; align-items: center; background: #f7f5ee; border: 1px solid #ded4bf; border-left: 3px solid #94783e; padding: 14px 16px; margin-bottom: 24px; }
.resume-reading .archive-eyebrow, .resume-reading strong, .resume-reading small { display: block; }
.resume-reading .archive-eyebrow { font-size: 9px; margin-bottom: 4px; }
.resume-reading strong { font-size: 15px; line-height: 1.5; }
.resume-reading small { color: #64748b; font-size: 11px; margin-top: 4px; }
.resume-reading a { flex-shrink: 0; font-size: 13px; font-weight: 700; }
.article-resume { font-size: 13px; }
.foundation-page > p { margin: 16px 0; font-size: 16px; }
.foundation-page h2 { margin: 26px 0 12px; font-size: 22px; }
.foundation-people { background: #faf8f3; border-block: 1px solid #e2d8c7; padding: 0 20px 16px; margin: 24px 0; }
.foundation-people p { margin: 12px 0; font-size: 15px; }
.foundation-links { padding-left: 20px; font-size: 16px; }
.foundation-links li { padding: 5px 0; }
#archive-search { min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  .archive-cards { grid-template-columns: 1fr; }
  .archive-card { padding-block: 18px; }
}
@media (max-width: 680px) {
  #wrap { margin: 0; border: 0; border-radius: 0; }
  #content { padding: 24px 18px; }
  #sidebar { align-items: flex-start; }
  #side-nav { min-width: 0; }
  #side-nav .reference-card { width: calc(100% - 24px); }
  #side-nav .sn-link { width: 50%; min-height: 36px; padding-block: 8px; font-size: 12px; }
  #most-read { border-top: 1px solid #e2e8f0; }
  #most-read .sb-head { font-size: 10px; padding-block: 5px; }
  #most-read a { font-size: 11px; }
  #most-read li:nth-child(n+4) { display: none; }
  #site-tagline { letter-spacing: 1.1px; }
  #top-nav ul { padding-inline: 6px; }
  #top-nav a { padding: 9px 10px; font-size: 10px; }
  .archive-intro { padding-top: 0; }
  .featured-book-banner { flex-direction: row; align-items: flex-start; padding: 18px; gap: 16px; }
  .fbb-cover { width: 78px; }
  .fbb-title { font-size: 21px; }
  .fbb-kicker { font-size: 9px; }
  .fbb-text { font-size: 14px; }
  .fbb-links { gap: 8px; }
  .fbb-btn-primary, .fbb-btn-secondary { font-size: 12px; }
  .archive-media { padding: 18px; }
  .resume-reading { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  #photo-wrap { width: 82px; }
  #site-title { white-space: normal; }
  #site-years { white-space: nowrap; }
  .featured-book-banner { display: block; }
  .fbb-cover { float: left; margin: 4px 15px 8px 0; width: 75px; }
  .fbb-body { display: contents; }
  .fbb-links { clear: both; padding-top: 10px; }
  .fbb-title { font-size: 20px; }
  .fbb-kicker { letter-spacing: .3px; }
  .book-navigation { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .book-toc { grid-row: 1; grid-column: 1 / -1; justify-self: center; }
  .book-prev, .book-next, .book-boundary { grid-row: 2; }
  .book-next, .book-boundary:last-child { grid-column: 2; }
  .reader-toolbar > span { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  @page { margin: 18mm; }
  body, #wrap, #content { background: #fff !important; color: #000 !important; margin: 0; padding: 0; max-width: none; width: 100%; box-shadow: none; border: 0; overflow: visible; }
  #site-header, #sidebar, #breadcrumb, #site-footer, .skip-link, .reader-toolbar, .reader-status, .resume-reading, .book-navigation, .back_button, .archive-context { display: none !important; }
  #layout, #content { display: block; }
  .archive-article { max-width: none; }
  .article-header .contentheading { font-size: 21pt; }
  .reader-body { font-size: 11pt !important; line-height: 1.6; }
  .reader-body p { orphans: 3; widows: 3; }
  h1, h2, h3 { break-after: avoid; }
  a { color: #000; }
  .citation-box { break-inside: avoid; font-size: 9pt; background: #fff; }
}
