/* read-index.css: the contents page of "Read the book" (read/index.html), in the landing page's look.
   16 Nov 2026 (Jed: landing-page look; no arrows on buttons). Everything is namespaced .rx- so no other page is touched. */
body:has(> .rx-hero) { margin: 0; background: #fbf7ee; }
.rx-hero, .rx-pills, .rx-main { font-family: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif; }

/* ---- hero: the title page ---- */
.rx-hero { background: linear-gradient(160deg, #1c2a3f 0%, #141f30 100%); color: #f6f1e7; padding: 1.6rem 1.25rem 2.6rem; text-align: center; }
.rx-hero .rx-brow { margin: 0 0 1.7rem; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: #d8b366; font-weight: 600; }
.rx-hero .rx-brow a { color: #d8b366; text-decoration: none; }
.rx-hero .rx-brow a:hover { text-decoration: underline; }
.rx-hero .rx-brow span { opacity: 0.65; margin: 0 0.5em; }
.rx-mast { display: grid; grid-template-columns: auto minmax(0, 34rem); gap: 2.4rem; align-items: center; justify-content: center; text-align: left; max-width: 56rem; margin: 0 auto; }
.rx-portrait { width: 150px; height: auto; border: 3px solid #d8b366; border-radius: 3px; box-shadow: 0 6px 26px rgba(0, 0, 0, 0.55); display: block; }
.rx-hero h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.12; font-weight: 700; letter-spacing: 0.012em; color: #f6f1e7; text-wrap: balance; }
.rx-hero .rx-sub { margin: 0.7rem 0 0; font-style: italic; font-size: 1.12rem; color: #e9dfc8; }
.rx-hero .rx-by { margin: 0.5rem 0 0; font-size: 0.86rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d8b366; }
.rx-sig { display: block; width: min(17rem, 80%); height: auto; margin: 1.1rem auto 0; }   /* sigcenter40: auto side margins center it in the hero column at every width (it sat at the column's left edge on desktop) */
.rx-signote { margin: 0.2rem 0 0; font-size: 0.78rem; color: #c8b896; }
.rx-stand { max-width: 37rem; margin: 2rem auto 0; font-style: italic; font-size: 1.14rem; line-height: 1.6; color: #e9dfc8; text-wrap: pretty; }
.rx-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin: 1.6rem 0 0; }
.rx-btn { display: inline-block; padding: 0.68rem 1.4rem; border-radius: 4px; border: 1px solid #d8b366; font-weight: 700; font-size: 1rem; text-decoration: none; letter-spacing: 0.01em; }
.rx-btn-gold { background: #d8b366; color: #141f30; }
.rx-btn-gold:hover { background: #e8cd8a; border-color: #e8cd8a; }
.rx-btn-line { background: rgba(255, 250, 240, 0.05); color: #e8cd8a; }
.rx-btn-line:hover { background: rgba(216, 179, 102, 0.14); }
.rx-btn:focus-visible, .rx-pills a:focus-visible, .rx-row a:focus-visible, .rx-ref a:focus-visible { outline: 2px solid #e8cd8a; outline-offset: 3px; }
.rx-meta { max-width: 40rem; margin: 1.5rem auto 0; font-size: 0.84rem; line-height: 1.55; color: #c8b896; }
.rx-meta a { color: #e8cd8a; }

/* ---- pill row: stays under the menu while the page scrolls ---- */
.rx-pills { position: sticky; top: var(--rx-navh, 0px); z-index: 900; background: #141f30; border-top: 1px solid rgba(216, 179, 102, 0.3); border-bottom: 1px solid rgba(216, 179, 102, 0.55); }
.rx-pills ul { list-style: none; margin: 0 auto; padding: 0.6rem 1rem; max-width: 60rem; display: flex; gap: 0.55rem; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.rx-pills ul::-webkit-scrollbar { display: none; }
.rx-pills li { margin: 0; flex: none; }
.rx-pills a { display: block; padding: 0.36rem 0.95rem; border: 1px solid rgba(216, 179, 102, 0.5); border-radius: 999px; color: #f6f1e7; text-decoration: none; font-size: 0.92rem; font-weight: 600; white-space: nowrap; }
.rx-pills a:hover { border-color: #d8b366; background: rgba(216, 179, 102, 0.12); }
.rx-pills a[aria-current="true"] { background: #d8b366; border-color: #d8b366; color: #141f30; }

/* ---- the contents, set like a printed contents page ---- */
.rx-main { max-width: 47rem; margin: 0 auto; padding: 1rem 1.25rem 4rem; color: #2c2620; font-size: 1.05rem; line-height: 1.5; }
.rx-part { padding-top: 2.6rem; scroll-margin-top: calc(var(--rx-navh, 0px) + 3.4rem); }
.rx-part-head { border-bottom: 1px solid rgba(190, 150, 70, 0.7); padding-bottom: 0.7rem; margin-bottom: 0.5rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.rx-kicker { display: block; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: #8a6420; font-weight: 700; margin-bottom: 0.25rem; }
.rx-part-head h2 { margin: 0; font-size: 1.62rem; line-height: 1.2; font-weight: 700; color: #1c2a3f; border: 0; padding: 0; }
.rx-part-note { margin: 0; font-size: 0.82rem; font-style: italic; color: #6a5a42; text-align: right; flex: none; max-width: 15rem; }
.rx-toc { list-style: none; margin: 0; padding: 0; }
.rx-row { margin: 0; border-bottom: 1px solid rgba(190, 150, 70, 0.22); }
.rx-row a { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 0.4rem; padding: 0.82rem 0.5rem 0.86rem 0.2rem; text-decoration: none; color: inherit; border-radius: 3px; }
.rx-row a:hover { background: rgba(216, 179, 102, 0.13); }
.rx-num { font-size: 1.42rem; line-height: 1.25; font-weight: 600; color: #a67c2e; font-variant-numeric: oldstyle-nums; text-align: right; padding-right: 0.7rem; }
.rx-label { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8a6420; font-weight: 700; margin-bottom: 0.1rem; }
.rx-line { display: flex; align-items: baseline; gap: 0.55rem; }
.rx-title { font-size: 1.14rem; font-weight: 600; color: #1c2a3f; line-height: 1.3; }
.rx-row a:hover .rx-title { color: #7a5514; }
.rx-dots { flex: 1 1 1.5rem; min-width: 1.5rem; border-bottom: 2px dotted rgba(138, 100, 32, 0.5); transform: translateY(-0.28em); }
.rx-years { flex: none; font-size: 0.95rem; color: #5a4c38; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rx-tag { flex: none; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; white-space: nowrap; min-width: 4.9rem; text-align: center; padding: 0.16rem 0; border-radius: 999px; border: 1px solid transparent; }
.rx-tag-full { background: #d8b366; color: #141f30; border-color: #c9a24a; }
.rx-tag-sum { color: #7b6c54; border-color: rgba(123, 108, 84, 0.4); font-weight: 600; }
.rx-teaser { display: block; margin-top: 0.2rem; font-size: 0.96rem; line-height: 1.45; color: #5a4c38; max-width: 36rem; text-wrap: pretty; }
.rx-ref { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rx-ref a { display: block; padding: 0.45rem 1.05rem; border: 1px solid rgba(138, 100, 32, 0.55); border-radius: 999px; color: #1c2a3f; text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.rx-ref a:hover { background: rgba(216, 179, 102, 0.2); border-color: #8a6420; }

/* ---- dark theme ---- */
html.theme-dark body:has(> .rx-hero) { background: #131d2b; }
html.theme-dark .rx-main { color: #e9dfc8; }
html.theme-dark .rx-part-head h2, html.theme-dark .rx-title { color: #f6f1e7; }
html.theme-dark .rx-kicker, html.theme-dark .rx-label, html.theme-dark .rx-num { color: #d8b366; }
html.theme-dark .rx-row a:hover .rx-title { color: #e8cd8a; }
html.theme-dark .rx-teaser, html.theme-dark .rx-years, html.theme-dark .rx-part-note { color: #c8b896; }
html.theme-dark .rx-tag-sum { color: #c8b896; border-color: rgba(200, 184, 150, 0.4); }
html.theme-dark .rx-dots { border-bottom-color: rgba(216, 179, 102, 0.45); }
html.theme-dark .rx-ref a { color: #f6f1e7; border-color: rgba(216, 179, 102, 0.5); }
html.theme-dark .rx-row a:hover { background: rgba(216, 179, 102, 0.09); }

/* ---- phone ---- */
@media (max-width: 640px) {
  .rx-hero { padding: 1.2rem 1rem 2rem; }
  .rx-mast { grid-template-columns: 1fr; gap: 1.2rem; text-align: center; justify-items: center; }
  .rx-portrait { width: 112px; }
  .rx-sig { margin-left: auto; margin-right: auto; }
  .rx-pills ul { justify-content: flex-start; }
  .rx-main { padding: 0.4rem 1rem 3rem; }
  .rx-part-head { display: block; }
  .rx-part-note { text-align: left; max-width: none; margin-top: 0.3rem; }
  .rx-row a { grid-template-columns: 2rem minmax(0, 1fr); }
  .rx-num { font-size: 1.2rem; padding-right: 0.5rem; }
  .rx-line { flex-wrap: wrap; row-gap: 0.15rem; }
  .rx-dots { display: none; }
  .rx-title { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) { html:has(.rx-hero) { scroll-behavior: smooth; } }
@media print { .rx-pills, .rx-actions { display: none; } .rx-hero { background: #fff; color: #000; } }

.rx-btn[hidden] { display: none; }
