:root{
  --cream:#FBF6EC; --parchment:#F3E9D7; --chip:#F0E7D3;
  --brown:#6D4C2F; --gold:#B08D3E;
  --ink:#3E2C1A; --ink2:#6B5943; --muted:#8A7355; --rule:#E2D6BE;
  --measure:38rem;
}
@media (prefers-color-scheme:dark){
  :root{
    --cream:#1E1610; --parchment:#2F2216; --chip:#2A1E14;
    --brown:#E4BE72; --gold:#D9AE56;
    --ink:#EDE0C8; --ink2:#CBB899; --muted:#A08F72; --rule:#3A2B1C;
  }
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--cream); color:var(--ink);
  font-family:'EB Garamond',Georgia,serif; font-size:19px; line-height:1.6;
}
a{color:inherit}
main{max-width:52rem; margin:0 auto; padding:0 1.5rem 4rem}

header.site{
  max-width:52rem; margin:0 auto; padding:1.1rem 1.5rem;
  display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid var(--rule);
}
.wordmark{font-size:1.15rem; text-decoration:none; letter-spacing:.01em}
.wordmark .dot{display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--gold); margin-left:.45rem; vertical-align:middle}
header.site nav a{
  font-family:system-ui,sans-serif; font-size:.82rem; color:var(--ink2);
  text-decoration:none; margin-left:1.15rem;
}
header.site nav a.on{color:var(--brown); border-bottom:1px solid var(--gold); padding-bottom:2px}

.eyebrow{
  font-family:system-ui,sans-serif; font-size:.7rem; letter-spacing:.15em;
  text-transform:uppercase; color:var(--gold); margin:0 0 .7rem;
}
h1{font-size:2.15rem; line-height:1.2; font-weight:400; margin:0 0 .8rem}
h2{font-size:1.5rem; line-height:1.3; font-weight:400; margin:2rem 0 .6rem}
h3{font-size:1.05rem; font-weight:400; margin:.6rem 0 .35rem}
.lede{font-family:system-ui,sans-serif; font-size:.98rem; line-height:1.7; color:var(--ink2); max-width:34rem; margin:0 0 1.4rem}
.note{font-family:system-ui,sans-serif; font-size:.85rem; color:var(--muted); margin:.4rem 0}
.prose{font-size:1.02rem; line-height:1.75; color:var(--ink2); margin:0 0 1rem}

.hero{padding:3.5rem 0 2.5rem; text-align:center; border-bottom:1px solid var(--rule)}
.hero h1{max-width:26rem; margin-inline:auto}
.hero .lede{margin-inline:auto; text-align:center}
.cta{
  display:inline-block; background:var(--brown); color:var(--cream);
  padding:.7rem 1.4rem; border-radius:8px; text-decoration:none; font-size:.95rem;
}
@media (prefers-color-scheme:dark){ .cta{color:#241A10} }

.featured{display:grid; grid-template-columns:1.15fr 1fr; gap:2rem; padding:2.2rem 0; border-bottom:1px solid var(--rule)}
.featured h2{margin:0 0 .6rem} .featured h2 a{text-decoration:none}
.tags{display:flex; flex-wrap:wrap; gap:.4rem; margin:0}
.tags span{font-family:system-ui,sans-serif; font-size:.75rem; background:var(--chip); color:var(--brown); padding:.3rem .65rem; border-radius:8px}
.panel{background:var(--parchment); border-radius:12px; padding:1.1rem 1.2rem}

.row{display:flex; align-items:baseline; gap:.8rem; padding:.6rem 0; border-bottom:1px solid var(--rule); text-decoration:none}
.row:last-child{border-bottom:0}
.row .n{color:var(--gold); font-size:.85rem; min-width:1rem}
.row .t{flex:1; font-size:1rem}
.row .s,.row .d{font-family:system-ui,sans-serif; font-size:.78rem; color:var(--muted)}
.row.more .t{color:var(--muted)} .row.more .d{color:var(--gold)}
.row:hover .t{color:var(--brown)}

.pillars{display:grid; grid-template-columns:repeat(auto-fit,minmax(13rem,1fr)); gap:1.6rem; padding:2.2rem 0}
.pillars p{font-family:system-ui,sans-serif; font-size:.88rem; line-height:1.65; color:var(--ink2); margin:0}

.bookhead,.parthead{padding:2.6rem 0 1.4rem}
.movement{padding:1.4rem 0}
.mq{font-style:italic; color:var(--ink2); margin:0 0 .6rem; font-size:1rem}

.player{
  position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:.9rem;
  background:var(--parchment); border-radius:12px; padding:.7rem .9rem; margin:.5rem 0 .4rem;
}
.pp{
  width:2.3rem; height:2.3rem; border-radius:50%; border:0; cursor:pointer;
  background:var(--brown); color:var(--cream); font-size:.85rem; line-height:1; flex:none;
}
@media (prefers-color-scheme:dark){ .pp{color:#241A10} }
.bar{flex:1; height:4px; background:var(--rule); border-radius:2px; cursor:pointer}
.fill{width:0; height:4px; background:var(--gold); border-radius:2px}
.time,.rate{font-family:system-ui,sans-serif; font-size:.75rem; color:var(--muted); white-space:nowrap}
.rate{background:none; border:1px solid var(--rule); border-radius:6px; padding:.2rem .45rem; cursor:pointer}
.hint{font-family:system-ui,sans-serif; font-size:.75rem; color:var(--muted); margin:0 0 1.6rem}

.reading{max-width:var(--measure)}
.reading .sect{
  font-family:system-ui,sans-serif; font-size:.7rem; letter-spacing:.14em;
  color:var(--gold); margin:2rem 0 .6rem;
}
.reading .seg{
  margin:0 0 1.15rem; line-height:1.78; cursor:pointer;
  border-left:3px solid transparent; padding-left:1rem; transition:background .15s;
}
.reading .seg:hover{background:var(--chip)}
.reading .seg.on{background:var(--parchment); border-left-color:var(--gold)}

.partnav{display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-top:3rem; padding-top:1.2rem; border-top:1px solid var(--rule); font-family:system-ui,sans-serif; font-size:.85rem}
.partnav a{color:var(--brown); text-decoration:none}

.prose-block{max-width:var(--measure)}
.prose-block p{font-size:1.02rem; line-height:1.78; color:var(--ink2); margin:0 0 1rem}
.prose-block strong{font-weight:500; color:var(--ink)}

footer.site{
  max-width:52rem; margin:0 auto; padding:1.4rem 1.5rem 3rem;
  border-top:1px solid var(--rule);
  display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap;
  font-family:system-ui,sans-serif; font-size:.78rem; color:var(--muted);
}
footer.site a{color:var(--muted)}
.disclosure{color:var(--muted)}

@media (max-width:640px){
  body{font-size:18px}
  .featured{grid-template-columns:1fr}
  h1{font-size:1.75rem}
  .reading .seg{padding-left:.7rem}
}
