/* Readability layer. Load after styles.css; display titles and the image viewer stay unchanged. */
:root {
  --readable-body: 18px;
  --readable-meta: 14px;
  --readable-label: 13px;
  --readable-caption: 14px;
  --readable-muted: #c0c8b6;
  --readable-secondary: #b5c0a6;
}
body { font-size: var(--readable-body); }

/* Navigation and actions remain readable without enlarging the display wordmark. */
.site-header nav .nav-link { font-size: 14px; color: #c2c9b8; }
.site-header nav .nav-link:hover,
.site-header nav .nav-link.active { color: var(--text); }
.header-label { font-size: 12px; color: var(--readable-secondary); }
.button { font-size: 16px; min-height: 48px; line-height: 1.4; }
.text-link,
.archive-sidebar .text-link,
.concept-art figcaption > a,
.story-artwork figcaption > a { font-size: 16px; line-height: 1.5; }
.breadcrumbs { font-size: var(--readable-meta); line-height: 1.6; }
.breadcrumbs a { color: #d1d8c5; }
.breadcrumbs > span[aria-hidden] { color: #a7b095; }

/* Short labels and metadata: never the previous 6–10 px microtype. */
.eyebrow,
.hero-eyebrow,
.code-heading .eyebrow,
.history-copy .eyebrow,
.history-heading .eyebrow,
.archive-sidebar .eyebrow,
.story-teaser-copy .eyebrow,
.story-narrative .eyebrow,
.empty-copy > .eyebrow,
.closing > .eyebrow,
.section-index,
.case-index .section-index,
.story-page > .section-index,
.small-stamp {
  font-size: var(--readable-label);
  line-height: 1.6;
  letter-spacing: .08em;
}
.section-index,
.closing > .eyebrow { color: var(--readable-secondary); }
.small-stamp { color: #dbc18b; }
.hero-tagline { font-size: 16px; line-height: 1.65; color: #e0e4d6; }
.hero-side { font-size: 12px; color: #cdd3bc; }
.hero-bottom { gap: 24px; }
.hero-bottom > p,
.hero-bottom > a { font-size: 12px; line-height: 1.7; letter-spacing: .04em; }
.hero-bottom > p { flex-wrap: wrap; color: #cdd3c1; }
.hero-bottom .muted { color: #c0c8b6; }
.rule-number { font-size: var(--readable-meta); color: #b4c19f; }
.rule-seal { color: #b2be9d; }
.rule-seal > i { font-size: 12px; line-height: 1.2; letter-spacing: 0; max-width: 78px; text-align: center; }
.archive-count p { font-size: var(--readable-label); line-height: 1.6; color: var(--readable-muted); }
.archive-principles p { font-size: var(--readable-meta); color: var(--readable-muted); }
.archive-principles span { font-size: 12px; color: #cbb98e; }
.empty-corner,
.graphic-caption { font-size: 12px; line-height: 1.5; color: var(--readable-secondary); }

/* Reading copy: a real body-text scale rather than expanded display lettering. */
.hero-description,
.purpose-copy > p:not(.lead),
.history-copy > p:not(.eyebrow),
.code-heading > p:not(.eyebrow),
.rule-body p,
.empty-copy > p:last-child,
.archive-method > div,
.index-intro > div:not(.archive-count) > p:last-child,
.archive-sidebar > p:not(.eyebrow),
.case-card-excerpt,
.case-facts dd,
.case-dossier .case-facts dd,
.case-visible-record,
.case-dossier .case-visible-record,
.story-teaser-copy > p:not(.eyebrow),
.story-page-intro > p:last-child,
.story-prose > p,
.archive-empty-note {
  font-size: var(--readable-body);
  line-height: 1.8;
  color: var(--readable-muted);
}
.rule h3 { font-size: 20px; line-height: 1.35; }
.rule-body p { max-width: 52ch; }
.archive-method summary { font-size: 16px; line-height: 1.6; }
.archive-sidebar li { font-size: 16px; line-height: 1.7; align-items: flex-start; }
.archive-sidebar li > span { font-size: 13px; line-height: 1.9; flex-shrink: 0; }
.archive-sidebar .archive-boundary {
  font-size: 14px !important;
  line-height: 1.8 !important;
  color: var(--readable-secondary) !important;
}

/* Archive cards and dossier metadata can wrap rather than shrink. */
.case-card-meta,
.case-card-footer,
.case-dossier-meta,
.case-encounter-heading,
.case-dossier .case-encounter-heading {
  font-size: var(--readable-meta);
  line-height: 1.6;
  color: var(--readable-muted);
  letter-spacing: .02em;
  flex-wrap: wrap;
  row-gap: 12px;
}
.case-card-storytitle { font-size: 20px; line-height: 1.5; color: #d5dcc9; }
.case-card-body { min-width: 0; }
.case-card-meta > *,
.case-card-footer > *,
.case-dossier-meta > * { max-width: 100%; }
.case-card-art-label,
.case-card-art figcaption {
  font-size: var(--readable-caption);
  line-height: 1.55;
  letter-spacing: 0;
  right: 13px;
  max-width: calc(100% - 26px);
  width: max-content;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #e0e6d5;
  background: #10150df0;
  padding: 6px 9px;
}
.case-file-id,
.case-card-meta .case-file-id,
.case-dossier-label,
.case-dossier-id { font-size: var(--readable-label); line-height: 1.6; letter-spacing: .07em; }
.case-count,
.case-card-footer .case-count,
.case-dossier-meta .case-count { font-size: var(--readable-meta); line-height: 1.6; }
.case-status,
.case-card-footer .case-status,
.case-dossier-meta .case-status { font-size: 13px; line-height: 1.6; letter-spacing: .04em; color: #c4d3b1; }
.case-rule { font-size: 13px; line-height: 1.5; white-space: nowrap; }
.case-facts dt,
.case-dossier .case-facts dt { font-size: var(--readable-meta); line-height: 1.6; color: #d0dbc1; }
.case-file h4,
.case-dossier h4,
.case-timeline-title { font-size: var(--readable-label); line-height: 1.6; letter-spacing: .08em; }
.case-scope,
.case-dossier > .case-scope,
.case-dossier-header .case-scope,
.case-no-evidence { font-size: var(--readable-meta); line-height: 1.8; color: var(--readable-secondary); }
.case-dossier-meta { align-items: center; }
.case-encounter-heading { align-items: center; }

/* Captions and disclaimers remain legible, but quieter than the story. */
.case-image figcaption,
.case-dossier .case-image figcaption,
.concept-art figcaption,
.story-artwork figcaption {
  font-size: var(--readable-caption);
  line-height: 1.7;
  color: var(--readable-secondary);
  letter-spacing: .01em;
  overflow-wrap: anywhere;
  flex-wrap: wrap;
}
.case-image figcaption a { font-size: var(--readable-caption); line-height: 1.7; color: #dce3ce; }
.story-teaser-visual > span {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .03em;
  right: 17px;
  color: #eef0e4;
  text-shadow: 0 1px 5px #000, 0 1px 12px #000;
}
.site-footer { flex-wrap: wrap; align-items: flex-start; }
.site-footer > p { font-size: 14px; line-height: 1.8; color: var(--readable-secondary); }
.footer-note { font-size: 13px; line-height: 1.7; color: var(--readable-secondary); }

@media (max-width: 760px) {
  :root { --readable-body: 16px; --readable-label: 12px; }
  .site-header {
    height: auto;
    min-height: 116px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 7px;
    padding: 18px 22px 0;
  }
  .site-header nav {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 48px;
    justify-content: space-between;
    gap: 10px;
  }
  .site-header nav .nav-link {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1.5;
    padding: 13px 0 17px;
  }
  .nav-link.active::after { bottom: 7px; }
  .header-label { display: none; }
  .hero-tagline { font-size: 14px; line-height: 1.7; }
  .hero-actions { flex-wrap: wrap; gap: 12px 24px; }
  .button { font-size: 15px; min-height: 48px; }
  .text-link,
  .archive-sidebar .text-link,
  .concept-art figcaption > a,
  .story-artwork figcaption > a { font-size: 15px; }
  .hero-bottom { gap: 12px; align-items: flex-end; }
  .hero-bottom > p { font-size: 12px; line-height: 1.7; gap: 5px 8px; max-width: calc(100% - 40px); }
  .hero-bottom > a { font-size: 12px; flex-shrink: 0; }
  .hero-bottom .separator { display: none; }
  .hero-bottom .muted { flex-basis: 100%; margin-left: 13px; color: var(--readable-muted); }
  .section-index,
  .case-index .section-index,
  .story-page > .section-index { gap: 15px; align-items: flex-start; }
  .section-index > span:first-child { min-width: 0; }
  .rule h3 { font-size: 18px; }
  .rule-number { font-size: 14px; min-width: 38px; }
  .rule-body { padding-left: 38px; padding-right: 0; }
  .rule-seal > i { font-size: 12px; }
  .archive-count p { font-size: 12px; }
  .case-card-storytitle { font-size: 18px; }
  .case-card-meta,
  .case-card-footer,
  .case-dossier-meta,
  .case-encounter-heading,
  .case-dossier .case-encounter-heading { font-size: 14px; }
  .case-card-footer { align-items: center; gap: 12px; }
  .case-card-footer .case-status { flex-basis: auto; }
  .case-card-art-label,
  .case-card-art figcaption { font-size: 14px; padding: 5px 8px; }
  .case-image figcaption,
  .case-dossier .case-image figcaption,
  .concept-art figcaption,
  .story-artwork figcaption { font-size: 14px; gap: 10px; }
  .story-teaser-visual > span { font-size: 12px; }
  .breadcrumbs { font-size: 14px; gap: 10px; }
  .site-footer { display: block; }
  .site-footer > p { font-size: 14px; }
  .footer-note { font-size: 13px; }
}
