/* Approved reading palette, 6 November 2026. Scoped to prose surfaces. */
.reading-surface {
  color-scheme: light;
  background: #F5EEDD !important;
  color: #111111 !important;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
  border-color: #d7cbb4;
}
.reading-surface :where(p, li, dd, dt, blockquote, figcaption, small, label) {
  color: #111111 !important;
  line-height: 1.85;
}
.reading-surface :where(p, li, dd, dt, blockquote):not([lang="ar"]):not(.arabic):not(.quran-arabic) {
  font-size: inherit;
}
.reading-surface :where(p, blockquote) { max-inline-size: 72ch; }
.reading-surface p { margin-block: .85em 1.1em; }
.reading-surface :where(li + li) { margin-block-start: .45em; }
.reading-surface :where(h1, h2, h3, h4, h5, h6) {
  color: #080808 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.35;
  text-wrap: pretty;
  margin-block: 1.2em .6em;
}
.reading-surface > :is(h1, h2, h3):first-child { margin-block-start: 0; }
.reading-surface :where(strong, b) { font-weight: 750; }
/* Nested prose panels use the same palette; brand buttons keep their own styles. */
.reading-surface :where(.card, .panel, .content, .entry, .note, .notice, .sample, .step, .quran-tools, .review-note, .original-language-note, .attribution-followup-note, .warning, .muted, .detail, .lead) {
  background-color: #F5EEDD !important;
  background-image: none !important;
  color: #111111 !important;
}
.reading-surface :where(.muted, .detail, .lead, .review-note, .notice, .note) :where(p, li, small) { color: #111111; }
.reading-surface :where(a:not([class]):not([role="button"])) {
  color: #00616a !important;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.reading-surface :where(blockquote) {
  margin-inline: 0;
  padding-inline-start: 1.1em;
  border-inline-start: 3px solid #9b8b70;
}
.reading-surface :where([lang="ar"], .quran-arabic, .arabic) {
  font-family: "Noto Naskh Arabic", Amiri, "Traditional Arabic", serif;
  font-size: clamp(1.8rem, 1.35rem + 2vw, 2.6rem) !important;
  line-height: 2.3 !important;
  letter-spacing: normal;
  color: #111111;
}
.reading-surface ::selection { background: #d9c49b; color: #080808; }
@media (max-width: 600px) {
  .reading-surface { font-size: 1.0625rem; line-height: 1.85; }
  .reading-surface :where(h1) { font-size: clamp(1.8rem, 7vw, 2.25rem); }
  .reading-surface :where(h2) { font-size: clamp(1.5rem, 6vw, 1.85rem); }
}
@media print {
  .reading-surface { background: white !important; color: #111111 !important; }
}
/* Leave comfortable insets around standalone long articles. */
article.reading-surface:not(.card):not(.panel):not(.item):not(.entry) {
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: 14px;
}
