:root{
  --bg:#f4f0e7;
  --paper:#fbf8f2;
  --ink:#2c241c;
  --muted:#6b5b48;
  --line:#d8cdb8;
  --accent:#8d6740;
  --accent-soft:#efe4d1;
  --max:1100px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Georgia, "Times New Roman", serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.72;
  font-size:20px;
}
img{max-width:100%; height:auto}
a{color:#5c4627; text-decoration:none}
a:hover{text-decoration:underline}

.site-header{
  border-bottom:1px solid var(--line);
  background:rgba(251,248,242,.92);
  position:sticky;
  top:0;
  backdrop-filter: blur(6px);
  z-index:10;
}
.header-inner,
.footer-inner,
main{
  width:min(var(--max), calc(100% - 2rem));
  margin:0 auto;
}
.header-inner{
  display:flex;
  gap:1rem;
  align-items:center;
  justify-content:space-between;
  padding:1rem 0;
}
.brand{
  font-weight:700;
  font-size:1.18rem;
  color:var(--ink);
}
nav{
  display:flex;
  flex-wrap:wrap;
  gap:.9rem 1.2rem;
  font-family:system-ui, sans-serif;
  font-size:.95rem;
}
nav a{
  color:var(--muted);
}
nav a[aria-current="page"]{
  color:var(--ink);
  font-weight:600;
}

main{padding:2rem 0 3rem}
section{
  padding:1.5rem 0;
  border-top:1px solid var(--line);
}
h1,h2,h3{
  line-height:1.2;
  margin:.2rem 0 .7rem;
  font-weight:700;
}
h1{font-size:2.3rem}
h2{font-size:1.55rem}
h3{font-size:1.18rem}
p{margin:.55rem 0 0}
blockquote{
  margin:0;
  padding-left:1rem;
  border-left:3px solid var(--line);
  color:#3e3227;
}
.eyebrow{
  margin:0 0 .3rem;
  font-family:system-ui,sans-serif;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:.72rem;
  color:var(--accent);
}
.lead{
  font-size:1.22rem;
  color:#3d3127;
  max-width:46rem;
}
.meta,.note{
  color:var(--muted);
  font-size:.98rem;
  font-family:system-ui,sans-serif;
}

.hero{
  padding-top:0;
  border-top:0;
}
.actions{
  margin-top:1.2rem;
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
}
.button{
  display:inline-block;
  border:1px solid var(--line);
  padding:.72rem 1rem;
  border-radius:999px;
  background:var(--paper);
  font-family:system-ui,sans-serif;
  font-size:.95rem;
  color:var(--ink);
}
.button.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}

.grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:1.25rem;
}
.span-7{grid-column:span 7}
.span-5{grid-column:span 5}

.card,.teaser,.voice-panel{
  background:var(--paper);
  border:1px solid var(--line);
  padding:1.1rem 1.2rem;
}
.voice-panel{
  padding:1.5rem 1.6rem;
}
.voice-panel .lead{margin-bottom:0}

.character-card{
  display:grid;
  grid-template-columns:minmax(180px, 250px) minmax(0,1fr);
  gap:1.35rem;
  align-items:start;
  background:var(--paper);
  border:1px solid var(--line);
  padding:1rem;
}
.category h2{
  margin-bottom:1rem;
}
.portrait{
  margin:0;
  background:#f7f2e8;
  border:1px solid var(--line);
  padding:.45rem;
}
.details-body{
  margin-top:.8rem;
}
.details-body p{
  margin:.5rem 0;
}
.compact-excerpt{
  line-height:1.48;
}
.compact-excerpt p{
  margin:.28rem 0;
}
details{
  margin-top:.85rem;
}
summary{
  cursor:pointer;
  font-family:system-ui,sans-serif;
  font-size:.93rem;
  color:var(--muted);
}

.pendants-note{
  margin:1rem 0 1.15rem;
  padding:.9rem 1rem;
  background:#faf7ef;
  border:1px solid var(--line);
}
.pendants-note p{
  margin:.15rem 0 .8rem;
}
.pendants-grid{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem;
  align-items:flex-start;
}
.pendant-item{
  width:100px;
  margin:0;
}
.pendant-item img,
.object-signature img{
  width:100%;
  display:block;
  background:var(--paper);
  border:1px solid var(--line);
  padding:.35rem;
}
.pendant-item figcaption,
.object-signature figcaption{
  margin-top:.28rem;
  font-family:system-ui,sans-serif;
  font-size:.82rem;
  line-height:1.35;
  color:var(--muted);
}
.object-signature{
  margin:1rem 0 1.15rem;
  max-width:110px;
}

.place-section{
  max-width:1000px;
}
.place-intro{
  max-width:48rem;
  margin-bottom:1.25rem;
}
.place-card{
  margin:1.5rem 0 2rem;
  background:var(--paper);
  border:1px solid var(--line);
}
.place-figure{
  margin:0;
  padding:.55rem;
  background:#eee7dc;
  border-bottom:1px solid var(--line);
}
.place-figure img{
  display:block;
  width:100%;
  height:auto;
}
.place-copy{
  padding:1rem 1.2rem 1.25rem;
}
.place-copy h3{
  margin-top:0;
}

.site-footer{
  border-top:1px solid var(--line);
  padding:1.25rem 0 1.6rem;
  background:rgba(251,248,242,.92);
}
.footer-inner{
  color:var(--muted);
  font-family:system-ui,sans-serif;
  font-size:.92rem;
}

@media (max-width: 860px){
  body{font-size:18px}
  .grid{grid-template-columns:1fr}
  .span-7,.span-5{grid-column:auto}
  .character-card{
    grid-template-columns:1fr;
  }
  .header-inner{
    display:block;
  }
  nav{
    margin-top:.65rem;
  }
}

.zoomable-image{
  cursor:zoom-in;
}
.zoomable-image:focus{
  outline:2px solid var(--accent);
  outline-offset:3px;
}
.image-lightbox{
  max-width:94vw;
  max-height:94vh;
  margin:auto;
  padding:2.5rem 1rem 1rem;
  border:1px solid #5b5146;
  background:#171513;
  color:#f4efe6;
  box-shadow:0 1rem 3rem rgba(0,0,0,.45);
}
.image-lightbox::backdrop{
  background:rgba(0,0,0,.78);
}
.image-lightbox img{
  display:block;
  max-width:88vw;
  max-height:80vh;
  width:auto;
  height:auto;
  margin:0 auto;
}
.lightbox-close{
  position:absolute;
  top:.35rem;
  right:.55rem;
  border:0;
  background:transparent;
  color:#f4efe6;
  font-size:2rem;
  line-height:1;
  cursor:pointer;
}
.lightbox-caption{
  margin:.65rem 0 0;
  text-align:center;
  font-family:system-ui,sans-serif;
  font-size:.9rem;
  color:#ddd4c7;
}


.collective-card{
  grid-template-columns:minmax(260px, 360px) minmax(0,1fr);
}
.collective-card .portrait figcaption{
  margin-top:.38rem;
  font-family:system-ui,sans-serif;
  font-size:.82rem;
  line-height:1.35;
  color:var(--muted);
}
@media(max-width:860px){
  .collective-card{grid-template-columns:1fr}
}


.book-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:1.25rem;
  margin-top:1.15rem;
}
.book-card{
  display:flex;
  flex-direction:column;
  background:var(--paper);
  border:1px solid var(--line);
  padding:1.4rem 1.5rem;
}
.book-card h3{font-size:1.4rem}
.book-link{margin-top:auto;padding-top:1.1rem}
@media(max-width:700px){
  .book-grid{grid-template-columns:1fr}
}
