:root {
  color-scheme: light;
  --paper: #f5ead3;
  --page: #fff9ec;
  --ink: #263c35;
  --muted: #5c6555;
  --teal: #a4d5c6;
  --teal-strong: #315b4f;
  --gold: #a17a30;
  --line: #c9b888;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal-strong); outline-offset: 4px; }
::selection { background: #bbd9b5; color: var(--ink); }
.skip-link { position: absolute; left: 1rem; top: -6rem; padding: .8rem 1rem; background: var(--ink); color: var(--page); z-index: 10; }
.skip-link:focus { top: 1rem; }
.reader-site-header, .reader-site-footer, .wisdom-app { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.reader-site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.35rem; border-bottom: 1px solid var(--line); font-family: system-ui, sans-serif; font-size: .82rem; }
.reader-wordmark { font-family: Georgia, serif; font-size: 1.2rem; font-weight: 700; text-decoration: none; letter-spacing: -.035em; }
.reader-site-header nav { display: flex; gap: 1.6rem; }
.reader-site-header nav a { display: flex; align-items: center; min-height: 40px; text-decoration: none; }
.reader-site-header nav a:hover { text-decoration: underline; }
.wisdom-intro { display: flex; justify-content: space-between; align-items: center; gap: 3rem; padding: 3.2rem 0 2.8rem; }
.reader-eyebrow { font-family: system-ui, sans-serif; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; margin: 0 0 .8rem; }
.wisdom-intro h1 { font-size: clamp(3.1rem, 6vw, 5.25rem); font-weight: 400; line-height: .98; letter-spacing: -.052em; margin: 0; }
.title-stop { color: var(--gold); }
.intro-aside { display: flex; align-items: center; gap: 1.4rem; padding-right: 1rem; }
.intro-aside p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; font-style: italic; }
.wisdom-owl { width: 72px; height: 82px; color: var(--teal-strong); flex: none; }
.reader-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 2.8rem; align-items: start; }
.reading-column { min-width: 0; }
.reading-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .85rem; font-family: system-ui, sans-serif; font-size: .78rem; }
.reading-toolbar a { min-height: 44px; display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.reading-toolbar a:hover { color: var(--teal-strong); text-decoration: underline; }
.page-turn span[aria-hidden] { font-size: 1.4rem; font-family: Georgia, serif; }
.today-link { font-weight: 650; }
.wisdom-page { position: relative; border: 1px solid var(--gold); outline: 1px solid var(--line); outline-offset: 5px; background: var(--page); padding: 0 2.6rem; }
.reading-head { margin: 0 -2.6rem 2.2rem; padding: 1.8rem 2.6rem 1rem; text-align: center; background: var(--teal); border-bottom: 1px solid var(--gold); }
.reading-head .reader-eyebrow { margin-bottom: .35rem; font-size: .62rem; }
.reading-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 400; letter-spacing: -.035em; margin: 0; line-height: 1.2; }
.wisdom-sprig { width: 86px; height: 28px; color: var(--gold); }
.reading-head .wisdom-sprig { color: var(--teal-strong); margin-top: .5rem; }
.reading-opening { font-size: clamp(1.38rem, 2.2vw, 1.65rem); line-height: 1.5; font-style: italic; letter-spacing: -.015em; }
.reading-opening p { margin: 0 0 2rem; }
.reading-quotes { font-size: 1.075rem; line-height: 1.8; }
.wisdom-quotation { margin: 0; padding-block: 1.35rem; border-top: 1px solid #ddd0ac; }
.wisdom-quotation blockquote { margin: 0; }
.wisdom-quotation p { margin: 0; }
.wisdom-quotation p + p { margin-top: .85rem; }
.wisdom-quotation figcaption { margin-top: .8rem; font-family: system-ui, sans-serif; font-size: .64rem; font-weight: 600; line-height: 1.6; letter-spacing: .08em; color: var(--muted); }
.reading-closing { padding-block: 1rem 1.6rem; text-align: center; font-style: italic; font-size: 1.06rem; line-height: 1.75; }
.reading-closing p { margin: .65rem 0 0; }
.reading-footer { display: flex; gap: 1rem; justify-content: space-between; align-items: center; border-top: 1px solid #ddd0ac; font-family: system-ui, sans-serif; font-size: .65rem; color: var(--muted); padding-block: .6rem; }
.text-button { border: 0; background: none; color: var(--teal-strong); padding: .6rem 0 .6rem .5rem; min-height: 44px; font-family: system-ui, sans-serif; font-size: .7rem; text-decoration: underline; text-underline-offset: 3px; }
.reader-status { min-height: 1.5rem; margin: .8rem 0 0; font-family: system-ui, sans-serif; font-size: .75rem; line-height: 1.5; color: var(--muted); }
.reader-shelf { padding-top: 1rem; }
.shelf-heading { padding-bottom: 1rem; }
.shelf-heading h2 { margin: 0 0 .3rem; max-width: 14ch; font-size: 1.4rem; font-weight: 400; line-height: 1.25; letter-spacing: -.025em; }
.shelf-heading .wisdom-sprig { width: 60px; height: 18px; }
.field-label { display: block; margin-bottom: .5rem; font-family: system-ui, sans-serif; font-size: .7rem; font-weight: 600; }
select, input[type=search] { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--gold); border-radius: 0; color: var(--ink); background: transparent; padding: .5rem .65rem; font-family: system-ui, sans-serif; font-size: .85rem; }
.day-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: .8rem; }
.day-grid a { display: flex; align-items: center; justify-content: center; min-height: 36px; font-size: .85rem; text-decoration: none; border: 1px solid transparent; }
.day-grid a:hover { border-color: var(--gold); background: #efe1bd; }
.day-grid a[aria-current=date] { background: var(--teal-strong); color: var(--page); border-color: var(--teal-strong); }
.day-grid .source-gap { color: var(--muted); text-decoration: line-through; }
.wander-button { display: flex; justify-content: space-between; align-items: center; gap: .5rem; width: 100%; min-height: 44px; padding: .7rem 0; margin-top: .8rem; border: 0; border-top: 1px solid var(--line); background: none; color: var(--teal-strong); font-family: system-ui, sans-serif; font-size: .75rem; text-align: left; }
.book-search, .about-reader { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-block: .6rem; font-family: system-ui, sans-serif; }
.book-search summary, .about-reader summary { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: .5rem; cursor: pointer; list-style: none; font-size: .77rem; font-weight: 600; }
.book-search summary::-webkit-details-marker, .about-reader summary::-webkit-details-marker { display: none; }
.book-search[open] summary, .about-reader[open] summary { margin-bottom: .8rem; }
.about-reader[open] summary span { transform: rotate(45deg); }
.about-reader p, .no-script-note { font-family: system-ui, sans-serif; font-size: .75rem; line-height: 1.7; color: var(--muted); }
.about-reader p:last-child { margin-bottom: 0; }
.search-count { font-size: .7rem; line-height: 1.6; color: var(--muted); }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: Georgia, serif; }
.search-results strong { display: block; font-family: system-ui, sans-serif; font-size: .72rem; margin-bottom: .3rem; }
.search-results span { font-size: .82rem; line-height: 1.5; color: var(--muted); }
.search-results a:hover strong { text-decoration: underline; }
.wisdom-missing { padding-block: 1rem 3rem; font-size: 1.1rem; line-height: 1.7; }
.reader-site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; margin-bottom: 1rem; border-top: 1px solid var(--line); padding-block: 1rem; color: var(--muted); font-size: .85rem; font-style: italic; }
.reader-site-footer a { min-height: 44px; display: inline-flex; align-items: center; font-size: .72rem; font-family: system-ui, sans-serif; font-style: normal; }
@media (max-width: 900px) {
  .reader-site-header, .reader-site-footer, .wisdom-app { width: calc(100% - 48px); }
  .reader-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 2rem; }
  .wisdom-intro { gap: 1.5rem; }
  .intro-aside { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 0; }
  .wisdom-owl { width: 44px; height: 50px; }
  .intro-aside p { font-size: .9rem; }
  .wisdom-page { padding-inline: 1.6rem; }
  .reading-head { margin-inline: -1.6rem; padding-inline: 1.6rem; }
}
@media (max-width: 680px) {
  .reader-site-header, .reader-site-footer, .wisdom-app { width: calc(100% - 36px); }
  .reader-site-header { padding-block: .75rem; }
  .reader-site-header nav { gap: 1rem; font-size: .72rem; }
  .reader-wordmark { font-size: 1.05rem; }
  .wisdom-intro { position: relative; padding: 2rem 0 1.5rem; align-items: flex-start; gap: .5rem; }
  .wisdom-intro h1 { font-size: clamp(2.75rem, 10vw, 4rem); }
  .wisdom-intro .reader-eyebrow { font-size: .59rem; letter-spacing: .1em; }
  .intro-aside { align-items: flex-end; padding-top: 1.8rem; }
  .intro-aside p { display: none; }
  .wisdom-owl { width: 50px; height: 60px; }
  .reader-layout { display: flex; flex-direction: column; gap: 1.6rem; }
  .reading-column, .reader-shelf { width: 100%; }
  .wisdom-page { margin-inline: 5px; padding-inline: 1.25rem; }
  .reading-head { margin-inline: -1.25rem; margin-bottom: 1.6rem; padding: 1.4rem 1.25rem .7rem; }
  .reading-head h2 { font-size: 2.7rem; }
  .reading-quotes { font-size: 1.04rem; line-height: 1.75; }
  .reading-opening { font-size: 1.36rem; }
  .reading-opening p { margin-bottom: 1.5rem; }
  .reading-toolbar { margin-bottom: .7rem; }
  .reader-shelf { padding: 1.2rem 5px 0; border-top: 1px solid var(--line); }
  .shelf-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: .7rem; }
  .shelf-heading h2 { max-width: none; font-size: 1.35rem; }
  .shelf-heading .wisdom-sprig { width: 75px; }
  .day-grid { gap: 4px; }
  .day-grid a { min-height: 44px; font-size: 1rem; }
  .about-reader p, .no-script-note { font-size: .8rem; }
  .reader-site-footer { margin-top: 2rem; font-size: .8rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .wisdom-page { animation: page-appear 220ms ease-out; }
  @keyframes page-appear { from { opacity: .7; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

.wisdom-passage { margin: 0; padding-top: 1.25rem; }
.wisdom-passage + .wisdom-passage { padding-top: 1rem; }
.reading-credit { font-family: system-ui, sans-serif; font-size: .64rem; font-weight: 600; font-style: normal; line-height: 1.6; letter-spacing: .065em; color: var(--muted); margin: .65rem 0 1.1rem; }
.reading-opening .reading-credit { font-size: .64rem; margin-top: -1.1rem; }
.reading-quotes { border-top: 1px solid #ddd0ac; }
.source-emphasis { font-style: italic; }

.mobile-browse { display: none; }
@media (max-width: 640px) {
  .mobile-browse { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .5rem; gap: .5rem; font: .8rem system-ui, sans-serif; }
  #book-browser { scroll-margin-top: 1rem; }
}
