/* Audio Letter reading edition · 2026-11-10 · no external dependencies */
:root {
  --reader-font-size: 20px;
  --page: #f7f5f0;
  --paper: #fffefa;
  --ink: #192e3d;
  --muted: #617078;
  --line: #dedfd8;
  --navy: #142b40;
  --accent: #89672e;
  --link: #235c70;
  --soft: #eeeee7;
  --focus: #a36715;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --book: Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body[data-theme="dark"] {
  --page: #14212c;
  --paper: #1b2a35;
  --ink: #e9ece6;
  --muted: #afbbb9;
  --line: #3a4b53;
  --accent: #d5b77a;
  --link: #a7d2d9;
  --soft: #253640;
  --focus: #eccb86;
  color-scheme: dark;
}
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button, select { color: inherit; }
button, summary { cursor: pointer; }
button { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .4; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
img, svg, video { max-width: 100%; }
::selection { background: #d9e5d8; color: #142b40; }
.shell { width: min(1180px, calc(100% - 72px)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 16px; z-index: 100;
  padding: 12px 20px; background: var(--paper); color: var(--ink);
  border: 2px solid var(--accent); border-radius: 4px;
  transform: translateY(-180%); font-weight: 700;
}
.skip-link:focus { transform: none; }

/* Compact archive masthead. */
.site-header { background: var(--navy); color: #f6f3e9; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding-block: 15px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  flex: 0 0 46px; display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid #a99467; color: #e3d1a3; font-family: var(--book); font-size: 23px;
}
.brand-name { display: block; font-family: var(--book); font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.brand-subtitle { display: block; margin-top: 5px; color: #bccbd0; font-size: 10px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
.header-nav { display: flex; align-items: center; justify-content: flex-end; gap: 25px; flex-wrap: wrap; font-size: 13px; }
.header-nav a { color: #dce6e6; text-decoration: none; padding-block: 7px; }
.header-nav a:hover { color: #fff; text-decoration: underline; }
.header-nav a:focus-visible { outline-color: #e2c98f; }
.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 27px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: inherit; }

/* Title and issue navigation. */
.letter-hero { padding: 35px 0 29px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 10px; line-height: 1.6; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.letter-hero h1 { margin: 0 0 18px; font-family: var(--book); font-weight: 400; font-size: clamp(42px, 5.8vw, 76px); line-height: 1.1; letter-spacing: -.045em; }
.letter-number { color: var(--accent); white-space: nowrap; }
.letter-meta { display: flex; align-items: center; gap: 9px 24px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.letter-meta time { color: var(--ink); font-weight: 650; }
.hero-description { max-width: 66ch; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.letter-switcher {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  gap: 20px; align-items: center; padding: 16px 0;
  border-block: 1px solid var(--line);
}
.letter-step { width: fit-content; max-width: 100%; min-height: 44px; text-decoration: none; line-height: 1.35; overflow-wrap: anywhere; }
.letter-step small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.letter-step strong { display: block; margin-top: 4px; font-size: 14px; font-weight: 650; }
.letter-step:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.letter-step.next { justify-self: end; text-align: right; }
.jump-container { min-width: 0; text-align: center; }
.letter-jump { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.letter-jump label { color: var(--muted); font-size: 12px; }
.letter-jump select { max-width: 100%; min-width: 70px; min-height: 38px; padding: 7px 29px 7px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; font-size: 13px; }
.letter-jump button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); font-size: 12px; font-weight: 650; }
.letter-jump button:hover { border-color: var(--accent); }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 15px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; font-weight: 650; text-decoration: none; }
.button-link:hover { border-color: var(--accent); text-decoration: none; }

/* Reading column and unobtrusive contextual rail. */
.reader-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 46px; align-items: start; margin-top: 34px; }
.reader-sidebar { min-width: 0; position: sticky; top: 24px; padding-bottom: 24px; }
.sidebar-section { border-top: 2px solid var(--accent); padding-top: 17px; }
.sidebar-section h2, .listen-panel summary { margin: 0 0 17px; color: var(--ink); font-family: var(--ui); font-size: 11px; line-height: 1.5; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.contents-list { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: contents; }
.contents-list li { border-bottom: 1px solid var(--line); }
.contents-list a { display: block; padding: 12px 0; color: var(--muted); text-decoration: none; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.contents-list a:hover { color: var(--link); }
.contents-list a[aria-current="location"] { color: var(--link); font-weight: 650; }
.topic-number { display: block; margin-bottom: 3px; color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.listen-panel { margin-top: 25px; border-bottom: 1px solid var(--line); }
.listen-panel summary { margin: 0; padding: 14px 0; line-height: 1.8; }
.listen-inner { padding: 0 0 18px; min-width: 0; }
.audio-part { margin: 0 0 20px; min-width: 0; }
.audio-part:last-child { margin-bottom: 0; }
.audio-part h3 { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.audio-part audio { display: block; width: 100%; min-width: 0; height: 40px; margin: 7px 0 10px; }
.audio-part a, .listen-inner > a { display: inline-block; margin: 2px 12px 3px 0; font-size: 11px; }
.sidebar-link { display: block; width: fit-content; max-width: 100%; padding-block: 8px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.reading-column { min-width: 0; }
.reading-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; min-height: 36px; }
.reading-label { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.reader-actions, .enhanced-controls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.reader-actions button, .enhanced-controls button {
  min-width: 36px; min-height: 36px; padding: 6px 10px;
  color: var(--muted); background: transparent; border: 1px solid var(--line);
  border-radius: 3px; font-size: 12px; line-height: 1.4;
}
.reader-actions button:hover:not(:disabled), .enhanced-controls button:hover:not(:disabled) { color: var(--ink); border-color: var(--accent); background: var(--paper); }
.reader-actions button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: var(--soft); }
#font-status { min-width: 24px; color: var(--muted); text-align: center; font-size: 10px; }
.transcript {
  min-width: 0; padding: 41px 47px 45px; border: 1px solid var(--line);
  background: var(--paper); font-family: var(--book); font-size: var(--reader-font-size);
  line-height: 1.8; overflow-wrap: break-word; text-align: left;
  box-shadow: 0 3px 13px rgba(37, 44, 33, .025);
}
.transcript:focus { outline: none; }
.transcript:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.transcript-header { margin: 0 0 30px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.transcript-header .eyebrow { font-family: var(--ui); margin-bottom: 7px; }
.transcript-header h2 { margin: 0; color: var(--ink); font-size: 26px; line-height: 1.35; font-weight: 400; letter-spacing: -.02em; }
.transcript-header, #transcript-text { max-width: 68ch; margin-inline: auto; }
.transcript p { margin: 0 0 1.2em; }
.transcript p:last-child { margin-bottom: 0; }
.coordinates { display: block; }
.transcript .archive-license { color: var(--muted); font-family: var(--ui); font-size: 11px; line-height: 1.8; }
.transcript .archive-address { color: var(--muted); font-size: .85em; font-style: italic; }
.transcript hr { height: 1px; margin: 1.8em 0; border: 0; background: var(--line); }
.transcript .topic-heading { margin: 2em 0 .9em; padding-top: 1.1em; border-top: 1px solid var(--line); color: var(--ink); font-family: var(--ui); font-size: .88em; line-height: 1.65; font-weight: 700; letter-spacing: .01em; scroll-margin-top: 32px; }
.transcript .topic-summary { font-family: var(--ui); font-size: .78em; line-height: 1.8; color: var(--link); padding-left: 16px; border-left: 2px solid var(--accent); }
.source-note { max-width: 75ch; padding: 22px 4px 30px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.source-note small { font-size: inherit; }
.source-note a { color: inherit; }
.reading-column > .letter-switcher { margin-top: 6px; }

/* The full catalogue stays available without JavaScript. */
.letter-catalog { margin: 44px 0 48px; border-block: 1px solid var(--line); }
.letter-catalog summary { padding: 18px 0; color: var(--ink); font-size: 13px; font-weight: 650; }
.letter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 8px; padding: 4px 0 22px; }
.letter-grid a { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 5px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.letter-grid a:hover { border-color: var(--accent); background: var(--paper); color: var(--ink); }
.letter-grid a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 750; }
.site-footer { padding: 28px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.8; }
.site-footer .shell { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 48px); }
  .reader-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
  .transcript { padding: 34px 32px 38px; }
}
@media (max-width: 900px) {
  .reader-layout { grid-template-columns: 1fr; gap: 26px; }
  .reader-sidebar { position: static; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0 35px; padding: 0; }
  .sidebar-section { grid-row: span 3; }
  .listen-panel { align-self: start; margin-top: 0; border-top: 2px solid var(--accent); }
  .sidebar-link { align-self: start; }
  .contents-list { margin-bottom: 0; }
  .contents-list a { padding: 9px 0; }
  .transcript { padding: 38px 9%; }
  .letter-hero { padding-top: 28px; }
  .header-nav { gap: 18px; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 78px; gap: 15px; padding-block: 16px; align-items: flex-start; }
  .brand { gap: 10px; }
  .brand-mark { flex-basis: 37px; width: 37px; height: 42px; font-size: 20px; }
  .brand-name { max-width: 14ch; font-size: 18px; line-height: 1.2; }
  .brand-subtitle { font-size: 8px; letter-spacing: .13em; margin-top: 5px; }
  .header-nav { font-size: 11px; gap: 2px 12px; flex-direction: column; align-items: flex-end; }
  .header-nav a { padding-block: 3px; }
  .breadcrumb { padding-top: 20px; font-size: 10px; gap: 7px; }
  .letter-hero { padding: 27px 0 25px; }
  .letter-hero h1 { font-size: clamp(39px, 10.5vw, 62px); margin-bottom: 17px; }
  .letter-meta { gap: 6px 16px; font-size: 12px; }
  .hero-description { font-size: 13px; line-height: 1.75; }
  .letter-switcher { gap: 12px; padding-block: 14px; }
  .letter-step small { font-size: 9px; letter-spacing: .06em; }
  .letter-step strong { font-size: 12px; }
  .letter-jump { gap: 5px; flex-wrap: wrap; max-width: 138px; }
  .letter-jump label { flex-basis: 100%; text-align: center; font-size: 10px; }
  .letter-jump select { min-width: 63px; min-height: 36px; padding-left: 7px; padding-right: 19px; font-size: 12px; }
  .letter-jump button { min-height: 36px; padding: 6px 9px; font-size: 11px; }
  .reader-layout { margin-top: 26px; gap: 27px; }
  .reader-sidebar { display: block; }
  .sidebar-section { padding-top: 14px; }
  .sidebar-section h2 { margin-bottom: 6px; font-size: 10px; }
  .contents-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .contents-list a { padding-block: 10px; font-size: 12px; line-height: 1.65; }
  .topic-number { display: inline; margin-right: 7px; font-size: 9px; }
  .listen-panel { margin-top: 16px; border-top: 0; }
  .listen-panel summary { font-size: 10px; }
  .listen-inner { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .audio-part { margin-bottom: 12px; }
  .sidebar-link { display: inline-block; margin-right: 16px; font-size: 11px; padding-block: 8px; }
  .reading-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .reader-actions, .enhanced-controls { gap: 5px; }
  .reader-actions button, .enhanced-controls button { min-height: 40px; min-width: 38px; }
  .transcript { padding: 27px 21px 30px; line-height: 1.75; }
  .transcript-header { margin-bottom: 23px; padding-bottom: 21px; }
  .transcript-header h2 { font-size: 23px; }
  .transcript .archive-license { font-size: 10px; line-height: 1.85; }
  .transcript .topic-heading { font-size: .83em; }
  .source-note { padding: 20px 0 23px; font-size: 11px; }
  .button-link { padding-inline: 10px; font-size: 10px; text-align: center; }
  .letter-catalog { margin-block: 32px; }
  .letter-grid { grid-template-columns: repeat(auto-fit, minmax(43px, 1fr)); gap: 6px; }
  .letter-grid a { font-size: 12px; }
  .site-footer { padding: 23px 0 30px; font-size: 11px; }
  .site-footer .shell { display: block; }
  .site-footer p + p { margin-top: 8px; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .header-inner { gap: 8px; }
  .brand-name { font-size: 17px; }
  .brand-subtitle { font-size: 7px; }
  .header-nav { font-size: 10px; }
  .letter-switcher { gap: 7px; }
  .letter-step strong { font-size: 11px; }
  .letter-jump { max-width: 112px; }
  .transcript { padding-inline: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  @page { margin: 17mm 18mm 19mm; }
  :root, body, body[data-theme="dark"] { --page: #fff; --paper: #fff; --ink: #000; --muted: #333; --line: #bbb; --accent: #333; --link: #000; color-scheme: light; }
  body { background: #fff; color: #000; }
  .shell { width: 100%; max-width: none; }
  .site-header, .breadcrumb, .letter-switcher, .reader-sidebar, .reading-toolbar,
  .letter-catalog, .site-footer, .skip-link, .enhanced-controls { display: none !important; }
  .letter-hero { padding: 0 0 18pt; }
  .letter-hero h1 { font-size: 28pt; margin-bottom: 10pt; }
  .letter-hero .eyebrow { font-size: 8pt; }
  .letter-meta { font-size: 9pt; }
  .hero-description { display: none; }
  .reader-layout { display: block; margin-top: 0; }
  .transcript { padding: 0; border: 0; box-shadow: none; font-size: 11pt; line-height: 1.55; }
  .transcript-header { margin-bottom: 16pt; padding-bottom: 12pt; }
  .transcript-header, #transcript-text { max-width: none; }
  .transcript-header h2 { font-size: 16pt; }
  .transcript .archive-license { font-size: 8pt; }
  .transcript p { orphans: 3; widows: 3; margin-bottom: 10pt; }
  .transcript .topic-heading { break-after: avoid; page-break-after: avoid; font-size: 11pt; }
  .transcript hr { background: #bbb; }
  .source-note { padding: 16pt 0 0; font-size: 8pt; }
  a { color: #000; text-decoration: none; }
}
