:root{
  --paper0:#f7f1e6;
  --paper1:#efe3c7;
  --paper2: rgba(255,255,255,.72);
  --ink:#171514;
  --muted:rgba(23,21,20,.72);
  --hair:rgba(23,21,20,.14);
  --gold:#b8893e;

  --max: 1040px;
  --r: 18px;

  --fontSacred: "Cinzel", Georgia, serif;
  --fontBody: "Cardo", Georgia, serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color: var(--ink);
  font-family: var(--fontBody);
  line-height: 1.82;
  overflow-x:hidden;
  background: var(--paper0);
}

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 80% 10%, rgba(184,137,62,.14), rgba(184,137,62,0) 60%),
    radial-gradient(760px 520px at 18% 0%, rgba(0,0,0,.06), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, var(--paper0), var(--paper1));
  transform: translateZ(0);
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events:none;
  opacity:.08;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, rgba(0,0,0,0) 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, rgba(0,0,0,0) 1px 4px);
  mix-blend-mode: multiply;
}

a{ color:inherit; text-decoration:none; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 22px 18px 70px; }

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 2px 18px;
}
.brand{
  font-family: var(--fontSacred);
  font-weight: 600;
  letter-spacing: .35px;
  font-size: 18px;
  color: rgba(23,21,20,.92);
}
.topActions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(23,21,20,.18);
  background: rgba(255,255,255,.55);
  font-family: var(--fontSacred);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2px;
  cursor:pointer;
  transition: transform .05s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
  backdrop-filter: blur(6px);
}
.btn:hover{ background: rgba(255,255,255,.74); border-color: rgba(23,21,20,.28); }
.btn:active{ transform: translateY(1px); }

.btn.primary{
  background: rgba(184,137,62,.16);
  border-color: rgba(184,137,62,.55);
}
.btn.primary:hover{
  background: rgba(184,137,62,.22);
  border-color: rgba(184,137,62,.70);
}
.btn.ghost{
  background: transparent;
  border-color: rgba(23,21,20,.18);
}

.sheet{
  border-radius: var(--r);
  border: 1px solid rgba(23,21,20,.14);
  background: rgba(255,255,255,.44);
  box-shadow: 0 28px 80px rgba(0,0,0,.16);
  overflow:hidden;
  padding: 45px 0;
}

.hero{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  padding: 26px;
  align-items:center;
}

.heroMedia{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 6px;
}
.heroMedia img{
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(23,21,20,.18);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  transform: translateZ(0) scale(1.02);
  transform-origin:center;
  cursor: zoom-in;
  transition: transform .18s ease;
}
.heroMedia img:hover{ transform: translateZ(0) scale(1.04); }

.heroCopy{ padding: 2px 4px; }
.title{
  font-family: var(--fontSacred);
  font-size: 44px;
  line-height: 1.08;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: .35px;
}
.subtitle{
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
  max-width: 70ch;
}

.ctaCard{
  border-radius: 16px;
  border: 1px solid rgba(23,21,20,.14);
  background: rgba(255,255,255,.55);
  padding: 14px;
  max-width: 560px;
}
.ctaRow{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.note{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(23,21,20,.58);
}

.hr{
  margin: 45px auto;
  height:1px;
  background: linear-gradient(90deg, rgba(23,21,20,0) 0%, rgba(23,21,20,.18) 22%, rgba(23,21,20,.28) 50%, rgba(23,21,20,.18) 78%, rgba(23,21,20,0) 100%);
}

.section{ padding: 26px; }
.h{
  font-family: var(--fontSacred);
  font-weight: 600;
  letter-spacing: .35px;
  font-size: 18px;
  margin: 0 0 10px;
  color: rgba(23,21,20,.92);
  text-align:center;
}

.reading{
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(23,21,20,.12);
  background: rgba(255,255,255,.40);
}

.prose{
  font-size: 18px;
  text-align: center;
  padding: 45px 25px;
  color: rgba(23,21,20,.88);
}
.prose p{ margin: 0 0 14px; }

.fade-sep{
  height: 1px;
  width: min(540px, 86%);
  margin: 45px auto;
  background: linear-gradient(
    90deg,
    rgba(23,21,20,0) 0%,
    rgba(23,21,20,.12) 18%,
    rgba(23,21,20,.34) 50%,
    rgba(23,21,20,.12) 82%,
    rgba(23,21,20,0) 100%
  );
  filter: drop-shadow(0 0 6px rgba(184,137,62,.12));
}

.actionsRow{
  display:flex;
  justify-content:center;
  margin-top: 14px;
}

footer{
  margin-top: 45px;
  text-align:center;
  color: rgba(23,21,20,.55);
  font-size: 12px;
}

/* ===== Modal: UPDATED to match light theme ===== */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(23,21,20,.32);     /* lighter overlay */
  backdrop-filter: blur(10px);
  z-index: 999;
}
.modal[aria-hidden="false"]{ display:flex; }

.modalPanel{
  width: min(980px, calc(100vw - 24px));
  max-height: 90vh;
  border-radius: 18px;
  border: 1px solid rgba(23,21,20,.18);
  background: rgba(255,255,255,.74); /* parchment panel */
  box-shadow: 0 40px 120px rgba(0,0,0,.22);
  overflow:hidden;
  display:flex;
  flex-direction: column;
}

.modalTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(23,21,20,.14);
  color: rgba(23,21,20,.92);
  background: rgba(255,255,255,.60);
}

.modalTitle{
  font-family: var(--fontSacred);
  font-weight:600;
  font-size: 16px;
  letter-spacing:.35px;
}

.modalBody{
  padding: 14px;
  overflow:auto;
}

.modalBody img{
  width: 99%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(23,21,20,.18);
  display:block;
  transform: scale(1.03);
  transform-origin: center;
  margin: 0 auto;
  box-shadow: 0 24px 70px rgba(0,0,0,.18);
  background: rgba(255,255,255,.40);
}

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .title{ font-size: 38px; }
  .heroMedia{ order:-1; }
  .heroMedia img{ max-width: 420px; }
}
