:root {
  --bg: #fffdf7;
  --paper: #ffffff;
  --ink: #252330;
  --muted: #615c69;
  --lavender: #f1edf5;
  --deep: #5b536f;
  --gold: #b59459;
  --line: rgba(69, 62, 82, .12);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--serif); font-size: 19px; line-height: 1.76; transition: color .3s, background .3s; }
body.night { --bg: #272532; --paper: #302d3c; --ink: #f3eee5; --muted: #c2bac7; --lavender: #423d50; --deep: #d4c7e0; --gold: #d0b176; --line: rgba(255,255,255,.13); }
a { color: inherit; }
.progress { position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 3px; background: transparent; }
.progress span { display: block; width: 0; height: 100%; background: var(--gold); }
.reader-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 0 5vw; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 93%, transparent); backdrop-filter: blur(12px); font-family: var(--sans); }
.reader-logo { text-decoration: none; font-family: var(--serif); font-size: 16px; }
.reader-logo span { margin-right: 6px; color: var(--gold); }
.reader-tools { display: flex; align-items: center; gap: 14px; }
.reading-time { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.theme-toggle { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; }
.guide { width: min(100% - 40px, 740px); margin: auto; }
.guide-opening { padding: clamp(55px, 9vw, 95px) 0 55px; text-align: center; }
.collection, .section-number, .practice-label { color: var(--deep); font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { font-weight: 400; line-height: 1.08; letter-spacing: -.04em; }
h1 { margin: 18px auto; font-size: clamp(3.1rem, 8vw, 5.5rem); }
h2 { margin: 10px 0 22px; font-size: clamp(2.35rem, 5.5vw, 3.7rem); }
h3 { font-size: 2rem; }
.dek { max-width: 580px; margin: auto; color: var(--muted); font-size: 1.15em; font-style: italic; }
.opening-symbol { margin: 34px 0; color: var(--gold); }
.welcome { max-width: 620px; margin: 0 auto 16px; text-align: left; }
.guide-nav { display: grid; gap: 9px; margin-bottom: 62px; padding: 23px 26px; border: 1px solid var(--line); background: var(--paper); }
.guide-nav p { margin: 0 0 8px; color: var(--deep); font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.guide-nav a { color: var(--muted); text-decoration-color: var(--line); text-underline-offset: 4px; font-size: .88em; }
section { padding: 26px 0 54px; }
section p { margin: 0 0 21px; }
.lead { color: var(--deep); font-size: 1.3em; font-style: italic; line-height: 1.55; }
aside, blockquote { margin: 30px 0; padding: 23px 26px; border-left: 2px solid var(--gold); background: var(--lavender); font-size: 1.1em; font-style: italic; }
aside span { display: block; margin-bottom: 8px; color: var(--deep); font-family: var(--sans); font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
blockquote { border-left: 0; background: transparent; color: var(--deep); font-size: 1.7em; text-align: center; }
.practice, .journal { margin: 30px 0; padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.practice h3 { margin: 7px 0 20px; }
.practice-words { color: var(--deep); font-size: 1.15em; font-style: italic; }
.today-list { padding: 0; list-style: none; }
.today-list li { display: grid; grid-template-columns: 34px 1fr; gap: 15px; padding: 18px 0; border-top: 1px solid var(--line); }
.today-list span { color: var(--gold); font-family: var(--sans); font-size: 10px; font-weight: 700; }
.today-list p { margin: 0; }
.closing { margin: 20px 0 55px; padding: 40px; background: var(--lavender); }
.journal p:not(.practice-label) { padding-bottom: 17px; border-bottom: 1px solid var(--line); font-style: italic; }
.guide-footer { padding: 32px 0 100px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--sans); font-size: 11px; line-height: 1.7; }
.guide-footer a { display: inline-block; margin-top: 15px; color: var(--deep); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.book-shelf { padding-top: 48px; border-top: 1px solid var(--line); }
.book-shelf-secondary { margin-top: 30px; }
.shelf-intro { max-width: 570px; color: var(--muted); font-style: italic; }
.book-grid { display: grid; gap: 12px; margin: 30px 0 24px; }
.book-card { display: grid; grid-template-columns: 125px 1fr; min-height: 185px; border: 1px solid var(--line); background: var(--paper); }
.book-spine { display: flex; flex-direction: column; justify-content: space-between; padding: 22px; color: var(--ink); background: var(--lavender); }
.book-spine span { color: var(--gold); font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.book-spine strong { font-size: 1.05em; font-weight: 400; line-height: 1.15; }
.book-cover { display: grid; place-items: center; padding: 15px; overflow: hidden; background: var(--lavender); }
.book-cover img { display: block; width: 100%; max-height: 165px; object-fit: contain; filter: drop-shadow(0 7px 7px rgba(44, 38, 52, .18)); transition: transform .25s; }
.book-cover:hover img { transform: translateY(-3px) rotate(-1deg); }
.book-cover-placeholder { position: relative; display: block; min-height: 100%; overflow: hidden; color: #fffdf8; background: linear-gradient(155deg, #77708d, #b49ab1); text-decoration: none; }
.book-cover-placeholder::before { position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.38); content: ""; }
.book-cover-placeholder::after { position: absolute; width: 78px; height: 78px; right: -29px; bottom: -24px; border-radius: 50%; background: rgba(255,255,255,.16); content: ""; }
.placeholder-2 { background: linear-gradient(155deg, #82958c, #c4b895); }
.placeholder-3 { background: linear-gradient(155deg, #9c8277, #d2b79b); }
.placeholder-4 { background: linear-gradient(155deg, #777c98, #b2a5c2); }
.placeholder-number { position: absolute; top: 21px; left: 22px; font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.placeholder-orbit { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; border: 1.5px solid rgba(255,255,255,.82); border-radius: 50%; box-shadow: 0 0 22px rgba(255,255,255,.2); transform: translate(-50%, -50%); }
.placeholder-orbit::before, .placeholder-orbit::after { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; content: ""; transform: translate(-50%, -50%); }
.placeholder-orbit::before { width: 34px; height: 34px; }
.placeholder-orbit::after { width: 82px; height: 25px; transform: translate(-50%, -50%) rotate(-25deg); }
.placeholder-star { position: absolute; top: 50%; left: 50%; font-size: 24px; text-shadow: 0 0 14px rgba(255,255,255,.55); transform: translate(-50%, -50%); }
.placeholder-mark { position: absolute; right: 20px; bottom: 19px; left: 20px; font-family: var(--sans); font-size: 7px; font-weight: 700; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.book-copy { padding: 19px 23px; }
.book-copy h3 { margin: 6px 0 10px; font-size: 1.5rem; }
.book-copy > p:not(.book-author) { margin: 0 0 13px; color: var(--muted); font-size: .8em; line-height: 1.5; }
.book-author { margin: 0; color: var(--deep); font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.book-copy a { color: var(--deep); font-family: var(--sans); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-underline-offset: 4px; }
.affiliate-note { color: var(--muted); font-family: var(--sans); font-size: 10px; line-height: 1.6; }
.reader-bottom { position: fixed; z-index: 10; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 13px max(20px, calc((100vw - 720px) / 2)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); font-family: var(--sans); font-size: 11px; }
.reader-bottom a, .reader-bottom button { color: var(--deep); font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.reader-bottom button { border: 0; background: none; cursor: pointer; }
@media (max-width: 560px) {
  body { font-size: 17px; line-height: 1.62; }
  .reading-time { display: none; }
  .guide { width: min(100% - 34px, 720px); }
  .guide-opening { padding-top: 48px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.45rem; }
  .guide-nav { padding: 21px; margin-bottom: 48px; }
  section { padding-bottom: 38px; }
  .closing { margin-inline: -17px; padding: 34px 25px; }
  aside, .practice, .journal { margin-inline: -5px; padding: 22px; }
  .book-card { grid-template-columns: 90px 1fr; min-height: 170px; }
  .book-spine { padding: 17px; }
  .book-spine strong { font-size: .86em; }
  .book-copy { padding: 19px; }
  .book-copy h3 { font-size: 1.32rem; }
  .book-copy > p:not(.book-author) { font-size: .77em; }
}
