/* Fonts System */
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/eb-garamond-latin-700-italic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Serif Devanagari';
  src: url('fonts/noto-serif-devanagari.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Promesse Jauhar — memorial site
   Matched to the printed book: Garamond, white interior, ornamental rule,
   bracket-corner frame, Sri Aurobindo emblem — with gold accents. Offline. */








:root{
  --page:#ffffff;
  --ink:#211d15;
  --ink-soft:#544c3d;
  --ink-faint:#8c8474;
  --gold:#b0851f;
  --gold-deep:#8a6512;
  --gold-bright:#cfa73f;
  --olive-1:#8b8637;
  --olive-2:#b3ab60;
  --line:#e8e1cf;
  --line-soft:#f0ebde;
  --maxread:40rem;
  --serif:'EB Garamond',Georgia,'Times New Roman',serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;overflow-x:clip}
body{
  margin:0;background:var(--page);color:var(--ink);
  font-family:var(--serif);font-size:20px;line-height:1.62;font-weight:400;
  text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;
}

/* ---------- emblem ---------- */
.emblem{display:inline-block;object-fit:contain;vertical-align:middle}
/* ---------- top bar ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
body.dark-mode .site-head {
  background-color: rgba(18, 18, 18, 0.88);
}
body.sepia-mode .site-head {
  background-color: rgba(244, 236, 216, 0.88);
}

.site-head .inner {
  max-width: var(--maxread);
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
  transition: padding 0.3s ease;
}
.site-head .emblem {
  width: 30px;
  height: 30px;
  justify-self: start;
}

/* ---------- header contents menu ---------- */
.chmenu {
  position: relative;
  justify-self: end;
}
.chmenu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.4rem 0.1rem;
  user-select: none;
  outline: none;
}
.chmenu summary::-webkit-details-marker {
  display: none;
}
.chmenu summary .lbl {
  display: none;
}
.chmenu summary::after {
  display: none;
}
.chmenu summary::before {
  content: "";
  display: block;
  width: 22px;
  height: 14px;
  background: linear-gradient(var(--gold), var(--gold)) left top/22px 2.5px no-repeat,
              linear-gradient(var(--gold), var(--gold)) left center/22px 2.5px no-repeat,
              linear-gradient(var(--gold), var(--gold)) left bottom/22px 2.5px no-repeat;
  transition: opacity 0.2s ease;
}
.chmenu summary:hover::before {
  opacity: 0.75;
}

.chmenu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .6rem);
  width: 20rem;
  max-width: calc(100vw - 2rem);
  max-height: min(72vh, 36rem);
  overflow: auto;
  background: linear-gradient(180deg,#fffdf9,#fdf9f0);
  border: 1px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0,0,0,.16);
  padding: .55rem 0;
  z-index: 101;
}
.chmenu-panel a {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  padding: .42rem 1.15rem;
  text-decoration: none;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.45;
}
.chmenu-panel a .n {
  flex: none;
  min-width: 1.25rem;
  text-align: right;
  font-size: .83rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.chmenu-panel a:hover {
  background: rgba(176,133,31,.08);
}
.chmenu-panel a.cur {
  color: var(--gold-deep);
  font-weight: 700;
  background: rgba(176,133,31,.10);
}
.chmenu-panel .sep {
  height: 1px;
  background: var(--line-soft);
  margin: .45rem .9rem;
}

@media (max-width:640px) {
  .site-head .inner {
    padding: .45rem 1.5rem;
    gap: .45rem;
  }
  .site-head .emblem {
    width: 26px;
    height: 26px;
  }
  .chmenu summary {
    padding: .35rem .1rem;
  }
  .chmenu summary::before {
    width: 20px;
    height: 13px;
    background: linear-gradient(var(--gold), var(--gold)) left top/20px 2.2px no-repeat,
                linear-gradient(var(--gold), var(--gold)) left center/20px 2.2px no-repeat,
                linear-gradient(var(--gold), var(--gold)) left bottom/20px 2.2px no-repeat;
  }
  .brand b {
    font-size: 1.05rem;
    letter-spacing: .08em;
  }
  .brand span {
    font-size: .75rem;
  }
}

.brand {
  font-family: var(--serif);
  text-decoration: none;
  text-align: center;
  line-height: 1.15;
}
.brand b {
  display: block;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand span {
  display: block;
  color: var(--gold-deep);
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: none;
  font-style: italic;
  margin-top: .06rem;
}

/* ---------- generic layout ---------- */
.wrap{max-width:var(--maxread);margin:0 auto;padding:0 1.5rem}
.page{padding-top:2.6rem;padding-bottom:1.4rem}
a{color:var(--gold-deep);text-underline-offset:2px;text-decoration-color:rgba(176,133,31,.4)}
a:hover{color:var(--gold)}

/* ---------- home hero (echoes the book cover) ---------- */
/* ---------- home hero (echoes the book cover) ---------- */
.cover {
  background: linear-gradient(158deg, var(--olive-1), var(--olive-2));
  color: #fff;
  text-align: center;
  padding: 2.8rem 1.5rem 3.5rem;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.cover .emblem {
  width: 52px;
  height: 52px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.2rem;
}
.cover h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.02em;
}
.cover .sub {
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0.5rem 0 0;
  color: #fdfcf4;
  font-style: italic;
}
.cover .dates {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0.8rem 0 0;
}
.cover .portrait {
  display: block;
  width: 190px;
  height: auto;
  margin: 1.6rem auto 1.3rem;
  border: 2px solid var(--gold-bright);
  border-radius: 1px;
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px rgba(207, 167, 63, 0.55), 0 8px 24px rgba(0, 0, 0, 0.3);
}
.cover .compiled {
  font-weight: 500;
  font-size: 1.05rem;
  color: #ffffff;
  margin: 0.2rem 0 0;
  letter-spacing: 0.01em;
}

/* Staggered load animations for the cover */
.cover h1, .cover .sub, .cover .dates, .cover .portrait, .cover .compiled, .scroll-indicator {
  opacity: 0;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.cover h1 { animation-delay: 0.2s; }
.cover .sub { animation-delay: 0.4s; }
.cover .dates { animation-delay: 0.6s; }
.cover .portrait { animation-delay: 0.8s; }
.cover .compiled { animation-delay: 1s; }

.scroll-indicator {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  pointer-events: none;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards, scrollPulse 2s infinite 2.4s;
}
.scroll-indicator span {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
}
.scroll-indicator .chevron {
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(45deg);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUpScroll {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
  to {
    opacity: 0.8;
    transform: translate(-50%, 0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.95; }
}

/* ---------- ornamental rule (line – diamond – line) ---------- */
.ornrule{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--gold)}
.ornrule::before,.ornrule::after{content:"";height:1px;width:74px;background:currentColor;opacity:.75}
.ornrule i{width:7px;height:7px;background:currentColor;transform:rotate(45deg);flex:none}

/* ---------- memorial line under hero ---------- */
.memorial{max-width:34rem;margin:2.4rem auto 0;padding:0 1.5rem;text-align:center}
.memorial blockquote{font-style:italic;font-size:1.2rem;line-height:1.65;color:var(--ink-soft);margin:1.3rem 0 0}

/* ---------- contents (bracket-corner frame, like the INDEX page) ---------- */
.contents{max-width:40rem;margin:2.4rem auto 0;padding:0 1.5rem}
.contents .frame{position:relative;border:1px solid rgba(176,133,31,.5);padding:2.4rem 2.2rem 1.8rem}
.contents .frame span.c{position:absolute;width:15px;height:15px;border:2px solid var(--gold)}
.frame .tl{top:-3px;left:-3px;border-right:0;border-bottom:0}
.frame .tr{top:-3px;right:-3px;border-left:0;border-bottom:0}
.frame .bl{bottom:-3px;left:-3px;border-right:0;border-top:0}
.frame .br{bottom:-3px;right:-3px;border-left:0;border-top:0}
.contents .c-emblem{width:34px;height:34px;display:block;margin:0 auto .5rem}
.contents h2{text-align:center;font-weight:700;font-size:1.5rem;letter-spacing:.12em;margin:0 0 1.4rem}
.grp{font-style:italic;color:var(--ink-faint);text-align:center;font-size:.9rem;letter-spacing:.02em;margin:1.3rem 0 .5rem}
.grp:first-of-type{margin-top:0}
.toc{list-style:none;margin:0;padding:0}
.toc li{border-bottom:1px solid var(--line-soft)}
.toc a{display:flex;align-items:baseline;gap:.8rem;padding:.55rem .2rem;text-decoration:none}
.toc .num{font-size:.95rem;color:var(--gold);min-width:1.7rem;text-align:right;flex:none}
.toc .ttl{font-size:1.08rem;color:var(--ink)}
.toc a::after{content:"\2192";margin-left:auto;flex:none;color:var(--gold-deep);opacity:0;transform:translateX(-4px);transition:opacity .15s ease,transform .15s ease}
.toc a:hover::after{opacity:.9;transform:none}
.toc a:hover .ttl{color:var(--gold-deep)}

/* ---------- chapter frontispiece (full-page photo plate + handwritten name) ---------- */
.frontispiece{max-width:23rem;margin:1.3rem auto .95rem;text-align:center}
.frontispiece .fp-photo{display:block;width:100%;height:auto;border:2px solid var(--gold);border-radius:2px;box-shadow:0 0 0 4px #fff,0 0 0 5px rgba(176,133,31,.38),0 5px 15px rgba(60,45,15,.18)}
/* handwritten name (in the Mother's hand) on a white, gold-framed plate */
.sig-plate{max-width:23rem;margin:0 auto 2.7rem;background:#fff;border:1.5px solid var(--gold);border-radius:4px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),0 3px 13px rgba(60,45,15,.10);padding:1.05rem 1.3rem}
.sig-plate img{display:block;width:90%;max-width:16.5rem;height:auto;margin:0 auto}
@media (max-width:640px){.frontispiece,.sig-plate{max-width:17rem}}

/* ---------- chapter / text pages ---------- */
.masthead{text-align:center;margin:0 0 2rem}
.mast-name{font-style:italic;font-size:1rem;color:var(--ink-soft);letter-spacing:.02em;margin-bottom:.5rem}
.ch-title{font-weight:700;font-size:2.15rem;line-height:1.18;text-align:center;margin:1.6rem 0 0}
.ch-caps{text-transform:uppercase;letter-spacing:.1em;font-size:1.7rem}
.ch-sub{font-style:italic;font-weight:400;color:var(--ink-soft);text-align:center;font-size:1.2rem;margin:.5rem 0 0}
.prose{margin-top:2rem}
.prose p{margin:0 0 .62rem;text-indent:1.6em;text-align:justify;hyphens:auto}
.prose p.flush{text-indent:0}
.prose em{font-style:italic}
blockquote.q{font-style:italic;color:var(--ink-soft);margin:1.1rem 1.6rem;text-align:justify;hyphens:auto}
blockquote.q p{text-indent:0;margin:0 0 .5rem;text-align:justify}
blockquote.q .sig{display:block;font-style:normal;text-align:right;color:var(--ink-faint);font-size:.95rem;margin-top:.2rem}
.signoff{font-style:italic;color:var(--ink-soft);text-indent:0;margin-top:1.4rem}

/* article with a painting floated left within gold frame (Ch.3 "On The Mother") */
.article-frame::after {
  content: "";
  display: block;
  clear: both;
}
.article-frame .art-painting {
  float: left;
  width: 36%;
  max-width: 13.5rem;
  margin: 0.2rem 1.8rem 1rem 0;
}
.article-frame .art-painting img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(176,133,31,.6);
  border-radius: 2px;
  box-shadow: 0 2px 11px rgba(60,45,15,.20);
}
@media (max-width:640px){
  .article-frame .art-painting {
    float: left;
    width: 34%;
    max-width: 8.5rem;
    margin: 0.2rem 0.8rem 0.6rem 0;
  }
}

/* golden double frame — sacred / significant passages (Ch.4 "The Magic Circle") */
.sacred{position:relative;border:2px solid var(--gold);padding:2rem 2.1rem 1.6rem;margin:1.6rem 0 2.6rem;background:linear-gradient(180deg,#fffdf8,#fcf7ec);box-shadow:0 4px 18px rgba(60,45,15,.10)}
.sacred::before{content:"";position:absolute;inset:5px;border:1px solid rgba(176,133,31,.55);pointer-events:none}
.sacred .sacred-title{text-align:center;font-weight:700;font-size:1.5rem;color:var(--gold-deep);margin:.1rem 0 .3rem;text-indent:0;letter-spacing:.01em}
.sacred .sacred-orn{margin:.5rem 0 1.2rem;color:var(--gold)}
.sacred .lead{text-indent:0;text-align:center;font-style:italic;color:var(--ink-soft)}
.sacred blockquote.q{margin:1.1rem .4rem 0}
@media (max-width:640px){.sacred{padding:1.3rem 1.2rem 1rem}}

/* ---------- photos (book style: centred, thin frame, italic caption) ---------- */
figure.photo{margin:2rem auto;text-align:center;max-width:30rem}
figure.photo .ph{border:1px solid var(--line);background:#fbfaf6;border-radius:3px;min-height:220px;display:flex;align-items:center;justify-content:center;color:var(--ink-faint);box-shadow:0 1px 4px rgba(60,45,15,.06)}
figure.photo.wide{max-width:34rem}
figure.photo.wide .ph{min-height:150px}
figure.photo .ph .lbl{font-size:.62rem;letter-spacing:.16em;text-transform:uppercase}
figure.photo img{display:block;width:100%;height:auto;margin:0 auto 0;border:2px solid var(--gold);border-radius:2px;box-shadow:0 0 0 4px #fff,0 0 0 5px rgba(176,133,31,.38),0 4px 12px rgba(60,45,15,.16)}
figure.photo img + img{margin-top:1rem}
figure.photo figcaption{font-style:italic;font-size:1rem;color:var(--ink-soft);margin-top:.6rem;line-height:1.5}
figure.photo .duo{display:flex;gap:18px;align-items:flex-start;justify-content:center}
figure.photo .duo img{width:calc(50% - 9px);margin-top:0}
.sec-head{font-weight:700;font-size:1.4rem;text-align:center;margin:2.8rem 0 .8rem;text-indent:0}
.sec-intro{text-align:center;font-style:italic;color:var(--ink-soft);max-width:32rem;margin:0 auto 1.4rem;text-indent:0}
/* letter exchanges — handwriting + translation held together in one shared frame */
.exch{max-width:56rem;margin:2.7rem auto;display:flex;gap:1.6rem;align-items:center;
  padding:1.5rem 1.65rem;background:linear-gradient(180deg,#fdfbf6,#fbf6ed);
  border:1.5px solid var(--gold);border-radius:5px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 3px 14px rgba(0,0,0,.07)}
.letter-scan{flex:0 0 40%;margin:0;align-self:center}
.letter-scan img{width:100%;height:auto;display:block;background:#fff;border:1px solid rgba(176,133,31,.55);border-radius:2px;box-shadow:0 1px 6px rgba(0,0,0,.16)}
.letter-scan img+img{margin-top:.9rem}
.exch-text{flex:1 1 auto;min-width:0}
.exch .date{text-align:right;font-size:.82rem;letter-spacing:.04em;color:var(--gold-deep);font-style:italic;margin:0 0 .35rem}
@media (max-width:620px){.exch{flex-direction:column;gap:1.15rem;padding:1.15rem;align-items:stretch}
  .letter-scan{flex:none;width:82%;max-width:20rem;margin:0 auto}}
.lc{border-radius:9px;padding:1.05rem 1.35rem}
.lc p{text-indent:0;margin:0 0 .6rem;line-height:1.62}
.lc p:last-child{margin-bottom:0}
.lc .sig{display:block;text-align:right;font-style:italic;color:var(--ink-soft);margin-top:.35rem}
.from-child{background:#fbf4e6;border:1px solid #ecdfc4}
.reply{margin-top:.7rem;background:#fbf0ef;border:1px solid #f0dcdb;border-radius:9px;padding:1.05rem 1.35rem}
.reply .rl{font-weight:600;font-size:.8rem;letter-spacing:.05em;color:var(--gold-deep);margin:0 0 .35rem;text-indent:0}
.reply p{text-indent:0;margin:0 0 .5rem;line-height:1.62;font-style:italic;color:var(--ink-soft)}
.reply p:last-child{margin-bottom:0}
/* birthday card sets */
figure.photo .cardset{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;align-items:flex-start}
figure.photo .cardset img{max-height:370px;width:auto;max-width:100%;margin:0 auto}
/* each year's cards + message held together in one shared frame */
figure.photo.bday{max-width:35rem;padding:1.5rem 1.6rem;background:linear-gradient(180deg,#fdfbf6,#fbf6ed);border:1.5px solid var(--gold);border-radius:5px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 3px 14px rgba(0,0,0,.07)}
figure.photo.bday .cardset img{border:1px solid rgba(176,133,31,.55);border-radius:2px;box-shadow:0 1px 6px rgba(0,0,0,.16)}
figure.photo.bday figcaption{margin-top:1rem}
@media (max-width:620px){figure.photo.bday{padding:1.1rem}}
/* two linked images held together in one shared frame */
figure.photo.framed{max-width:37rem;padding:1.5rem 1.6rem;background:linear-gradient(180deg,#fdfbf6,#fbf6ed);border:1.5px solid var(--gold);border-radius:5px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 3px 14px rgba(0,0,0,.07)}
figure.photo.framed .duo{align-items:center}
figure.photo.framed img{border:1px solid rgba(176,133,31,.55);border-radius:2px;box-shadow:0 1px 6px rgba(0,0,0,.16)}
figure.photo.framed figcaption{margin-top:1rem}
@media (max-width:620px){figure.photo.framed{padding:1.1rem}}
figcaption .bdate{font-style:normal;font-weight:500;color:var(--gold-deep);letter-spacing:.03em}
figure.photo figcaption .rows{display:block;font-style:normal;font-size:.8rem;color:var(--ink-faint);margin-top:.25rem;line-height:1.6}
/* ---------- chapter epigraph (framed photo + quotation) ---------- */
.epigraph{max-width:33rem;margin:1.6rem auto 2.8rem;padding:1.5rem 1.6rem 1.7rem;background:linear-gradient(180deg,#fdfbf6,#fbf6ed);border:1.5px solid var(--gold);border-radius:5px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 3px 14px rgba(0,0,0,.07)}
.epigraph img{width:100%;height:auto;display:block;border:1px solid rgba(176,133,31,.55);border-radius:2px;box-shadow:0 1px 6px rgba(0,0,0,.16)}
.epigraph blockquote{margin:1.3rem .2rem 0;font-style:italic;color:var(--ink-soft);text-align:justify;hyphens:auto;font-size:1.08rem;line-height:1.62}
.epigraph blockquote p{text-indent:0;margin:0}
.epigraph cite{display:block;font-style:italic;text-align:right;color:var(--gold-deep);margin-top:.55rem;font-size:.98rem}
@media (max-width:620px){.epigraph{padding:1.1rem}.epigraph blockquote{text-align:left;hyphens:none}}
/* framed single object with a descriptive caption (Ch.9 wristwatch) */
.epigraph.obj{max-width:26rem}
.epigraph.obj img{max-width:19rem;margin:0 auto}
.epigraph.obj blockquote,.epigraph.obj blockquote p{text-align:center}
.epigraph .obj-cap{font-style:italic;text-align:center;color:var(--ink-soft);text-indent:0;margin:1.1rem .3rem 0;line-height:1.6}
@media (max-width:620px){.epigraph.obj img{max-width:15rem}}

/* ---------- dated letter excerpts ---------- */
.ltr-date{text-align:right;font-size:.86rem;letter-spacing:.05em;color:var(--gold-deep);font-style:italic;text-indent:0;margin:1.9rem 0 .5rem}
.ltr-sign{text-align:right;font-style:italic;color:var(--ink-soft);text-indent:0;margin-top:.5rem;line-height:1.5}
.ltr-note{font-style:italic;color:var(--ink-soft);text-indent:0;max-width:34rem;margin:2.2rem auto .5rem;text-align:justify;border-top:1px solid var(--line-soft);padding-top:1.1rem}
/* each dated letter held in its own gold frame, set a little apart */
.letter{margin:2.1rem 0;padding:1.4rem 1.7rem 1.5rem;background:linear-gradient(180deg,#fdfbf6,#fbf6ed);border:1.5px solid var(--gold);border-radius:5px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 3px 14px rgba(0,0,0,.07)}
.letter .ltr-date{margin-top:0}
.letter p:last-child{margin-bottom:0}
@media (max-width:620px){.letter{padding:1.1rem 1.2rem}}

/* chapter-opener framed portrait with intro text (Ch.7) */
.epigraph.opener{max-width:29rem}
.epigraph .intro{font-style:normal;text-indent:0;text-align:justify;hyphens:auto;margin:1.2rem .2rem 0;line-height:1.62}
@media (max-width:620px){.epigraph .intro{text-align:left;hyphens:none}}

/* ---------- Ch.10 family album — one centred column, photos in book sequence ---------- */
.famcol{margin:1.8rem auto 0}
.famcol figure{margin:0 auto 1.7rem;text-align:center;background:linear-gradient(180deg,#fdfbf6,#fbf6ed);border:1.5px solid var(--gold);border-radius:5px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 3px 14px rgba(0,0,0,.07);padding:.9rem .9rem 1rem}
.famcol figure.land{max-width:36rem}
.famcol figure.port{max-width:26rem}
.famcol figure img{width:100%;height:auto;display:block;border:1px solid rgba(176,133,31,.55);border-radius:2px;box-shadow:0 1px 6px rgba(0,0,0,.16)}
.famcol figcaption{font-style:italic;font-size:.9rem;color:var(--ink-soft);margin-top:.6rem;line-height:1.5}
@media (max-width:640px){.famcol figure.land,.famcol figure.port{max-width:100%}}

/* ---------- Ch.8 photo galleries — a page's photos grouped in one gold frame with a shared caption ---------- */
figure.photo.gallery{max-width:40rem;padding:1.5rem 1.6rem;background:linear-gradient(180deg,#fdfbf6,#fbf6ed);border:1.5px solid var(--gold);border-radius:5px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 3px 14px rgba(0,0,0,.07)}
figure.photo.gallery .gal-body{display:flex;flex-direction:column;gap:15px}
figure.photo.gallery .duo{display:flex;gap:15px;align-items:center;justify-content:center;margin:0}
figure.photo.gallery .duo img{width:calc(50% - 7.5px);margin:0}
figure.photo.gallery img{display:block;width:100%;height:auto;margin:0;border:1px solid rgba(176,133,31,.55);border-radius:2px;box-shadow:0 1px 6px rgba(0,0,0,.16)}
figure.photo.gallery figcaption{margin-top:1rem}
@media (max-width:620px){figure.photo.gallery{padding:1.1rem}figure.photo.gallery .duo{flex-direction:column;gap:15px}figure.photo.gallery .duo img{width:100%}}
/* epigraph two-up portrait row */
.epigraph .duo{display:flex;gap:14px;justify-content:center;margin:0}
.epigraph .duo img{width:calc(50% - 7px);margin:0}
@media (max-width:620px){.epigraph .duo{flex-direction:column;gap:14px}.epigraph .duo img{width:100%}}

/* ---------- Ch.7 father–son correspondence ---------- */
:root{--corr-green:#1e6b43}
.corr{max-width:40rem;margin:1.6rem auto;padding:1.3rem 1.6rem 1.35rem;background:linear-gradient(180deg,#fdfbf6,#fbf6ed);border:1.5px solid var(--gold);border-radius:5px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 3px 14px rgba(0,0,0,.07)}
.corr::after{content:"";display:block;clear:both}
.corr .ltr-date{margin:0 0 .15rem;color:inherit;opacity:.85}
.corr .avatar{float:left;width:64px;height:64px;border-radius:50%;object-fit:cover;margin:.15rem .9rem .3rem 0;border:1px solid rgba(176,133,31,.5);box-shadow:0 0 0 3px #fff,0 1px 5px rgba(0,0,0,.2)}
.corr .salut{text-indent:0;margin:0 0 .35rem}
.corr p{text-indent:1.5em;margin:0 0 .55rem;text-align:justify;hyphens:auto}
.corr p.salut,.corr p.flush{text-indent:0}
.corr .ltr-sign{text-align:right;font-style:italic;text-indent:0;color:inherit;margin-top:.55rem;line-height:1.5;clear:both}
.corr .ps{text-indent:0;font-size:.94rem;margin:.55rem 0 0;clear:both}
.corr.from-father{color:var(--corr-green)}
/* special blocks inside a letter */
.corr .poem{border:1px solid var(--line);border-radius:12px;padding:1.15rem 1.4rem;margin:1.15rem auto;max-width:25rem;text-align:center;font-style:italic;line-height:1.9}
.corr .poem p{text-indent:0;text-align:center;margin:0 0 1rem}
.corr .poem p:last-child{margin:0}
.corr .verse{text-align:center;font-style:italic;margin:1rem 0;text-indent:0;line-height:1.85}
.corr .verse.plain{font-style:normal}
.corr .verse.plain em{font-style:italic}
.corr .subhead{text-indent:0;text-align:center;font-weight:700;letter-spacing:.05em;font-size:.9rem;text-transform:uppercase;margin:.1rem 0 .7rem}
.corr .msg{font-style:italic;margin:1rem 1.1rem;text-indent:0}
.corr .msg p{text-indent:0;text-align:justify;margin:0 0 .5rem;font-style:italic}
.corr .msg .by{display:block;text-align:right;margin-top:.2rem;font-style:italic}
.corr .lytable{margin:.9rem auto;border-collapse:collapse;font-size:.9rem}
.corr .lytable td{padding:.12rem .8rem;text-indent:0;border:none}
.corr .lytable td:first-child{text-align:right;white-space:nowrap;font-style:italic}
@media (max-width:620px){.corr{padding:1rem 1.05rem}.corr p,.corr .msg p{text-align:left;hyphens:none}.corr .avatar{width:54px;height:54px}}

/* ---------- Ch.13 Glowing Tributes ---------- */
.memorial{max-width:23rem;margin:1.6rem auto .5rem;text-align:center;padding:1.4rem 1.4rem 1.5rem;background:linear-gradient(180deg,#fdfbf6,#fbf6ed);border:1.5px solid var(--gold);border-radius:5px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 3px 14px rgba(0,0,0,.07)}
.memorial > img{width:100%;height:auto;display:block;border:1px solid rgba(176,133,31,.55);border-radius:2px;box-shadow:0 1px 6px rgba(0,0,0,.16)}
.memorial .dates{font-style:italic;color:var(--gold-deep);letter-spacing:.06em;margin-top:.9rem;font-size:1.02rem}
.trib-title{font-weight:700;font-size:1.42rem;text-align:center;margin:3.2rem 0 .15rem;text-indent:0;line-height:1.25}
.trib-sub{text-align:center;font-style:italic;color:var(--ink-soft);text-indent:0;margin:0}
.trib-by{text-align:right;font-style:italic;color:var(--gold-deep);text-indent:0;margin:.1rem 0 .8rem;font-size:1.02rem;letter-spacing:.02em}
/* the contributor's own photo — full rectangular box, floated left, text wraps beside it (as in the book) */
.av-box{float:left;width:38%;max-width:11.5rem;margin:.25rem 1.3rem .55rem 0}
.av-box img{width:100%;height:auto;display:block;border:1px solid rgba(176,133,31,.55);border-radius:3px;box-shadow:0 1px 6px rgba(0,0,0,.16)}
@media (max-width:620px){.av-box{width:42%;max-width:8.5rem;margin-right:1rem}}
.trib-epi{text-align:center;font-style:italic;color:var(--ink-soft);text-indent:0;margin:0 0 1rem;line-height:1.6}
.trib-epi .src{display:block;font-style:normal;margin-top:.2rem}
.trib-verse{text-align:center;font-style:italic;color:var(--corr-green);text-indent:0;margin:1.4rem 0;line-height:1.85}
.trib-verse .en{display:block;font-style:italic;color:var(--ink-soft);font-size:.95rem;margin-top:.5rem}
.trib-foot{font-size:.82rem;color:var(--ink-faint);text-indent:0;border-top:1px solid var(--line-soft);margin-top:1.6rem;padding-top:.7rem;line-height:1.5}
.trib-sign{text-align:right;font-style:italic;color:var(--ink-soft);text-indent:0;margin-top:.7rem}
.trib-close{font-style:italic;color:var(--ink-soft);text-indent:0;margin-top:.9rem;font-size:1.05rem}
/* these classes are <p>/<div> inside .prose, so raise specificity above `.prose p{text-align:justify}` */
.prose .trib-sub,.prose .trib-epi,.prose .trib-close{text-align:center}
.prose .trib-sign{text-align:right}
.prose .trib-foot{text-align:left}
/* the Ashram prayer-meeting note sits in a bordered box */
.trib-box{border:1px solid var(--line);padding:1.3rem 1.6rem .4rem;margin:1.9rem 0 .5rem}
.trib-box .trib-box-title{font-weight:700;text-indent:0;text-align:left;margin:0 0 .8rem;font-size:1.05rem}
/* each person's tribute in its own gold frame */
.tribute{margin:2.4rem 0;padding:1.6rem 1.9rem 1.4rem;background:linear-gradient(180deg,#fdfbf6,#fbf6ed);border:1.5px solid var(--gold);border-radius:6px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65),0 3px 16px rgba(0,0,0,.07)}
.tribute::after{content:"";display:block;clear:both}
.tribute .trib-title{margin-top:.2rem}
.tribute figure.photo{margin:1.4rem auto;clear:both}
.tribute .trib-close,.tribute .trib-sign{clear:both}
.tribute figure.photo img{border:1px solid rgba(176,133,31,.55);border-radius:2px;box-shadow:0 1px 6px rgba(0,0,0,.16)}
@media (max-width:620px){.tribute{padding:1.05rem 1.05rem .9rem}}
.finale{max-width:30rem;margin:3.5rem auto 0;text-align:center}
.finale img{width:100%;height:auto;display:block;border:1.5px solid var(--gold);border-radius:3px;box-shadow:0 0 0 4px #fff,0 0 0 5px rgba(176,133,31,.38),0 4px 14px rgba(60,45,15,.18)}

/* ---------- Samvit panel (gilded cut-corner double frame) ---------- */
.samvit{max-width:26rem;margin:2.8rem auto 0}
.oct{clip-path:polygon(var(--cut) 0,calc(100% - var(--cut)) 0,100% var(--cut),100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,var(--cut) 100%,0 calc(100% - var(--cut)),0 var(--cut))}
.sv-l1{--cut:27px;background:var(--gold);padding:2.5px}
.sv-l2{--cut:25px;background:#fffdf8;padding:5px}
.sv-l3{--cut:22px;background:var(--gold);padding:1.3px}
.sv-l4{--cut:21px;background:#fffdf8;padding:2.1rem 1.6rem 1.9rem}
.prose .samvit p,.samvit p{text-indent:0;text-align:center;hyphens:none}
.samvit .sv-head{font-weight:700;font-size:1.5rem;line-height:1.3;margin:0}
.samvit .sv-sub{font-weight:700;font-size:1.18rem;margin:.15rem 0 0}
.samvit .sv-dv{font-size:1.1rem;margin:1.35rem 0 .35rem;color:var(--ink);line-height:1.8}
.samvit .sv-en{font-style:italic;font-size:1.06rem;color:var(--ink-soft);margin:.15rem 0 .55rem;line-height:1.55}
.samvit .sv-src{font-size:.9rem;color:var(--ink-faint);font-style:italic;margin:.3rem 0 0;line-height:1.7}
.samvit .sv-src .dev{font-style:normal;font-size:.84rem}
.ornrule.small::before,.ornrule.small::after{width:44px}
.sv-lotus{display:block;margin:1.4rem auto 0;width:86px;height:auto}

/* ---------- chapter nav ---------- */
.ch-nav{display:flex;align-items:baseline;gap:1rem;margin-top:2.8rem;padding-top:1.3rem;border-top:1px solid var(--line-soft);font-size:1rem}
.ch-nav a{text-decoration:none}
.ch-nav a:first-child{flex:1 1 0;text-align:left}
.ch-nav a:last-child{flex:1 1 0;text-align:right}
.ch-nav .home{flex:0 0 auto;text-align:center}

/* closing lotus ornament at the foot of each reading page */
.end-lotus{text-align:center;margin:2.1rem 0 .4rem}
.end-lotus img{width:56px;height:auto;opacity:.9}
@media (max-width:640px){.end-lotus{margin:1.7rem 0 .3rem}.end-lotus img{width:48px}}

/* ---------- footer ---------- */
.site-foot{border-top:1px solid var(--line);margin-top:.9rem;padding:1.5rem 1.4rem;text-align:center;color:var(--ink-faint);font-size:.85rem;line-height:1.9}
.site-foot .emblem{width:22px;height:22px;margin-bottom:.4rem;opacity:.9}

@media (max-width:640px){
  body{font-size:18px}
  .cover{padding:1.8rem 1rem 2.4rem;}
  .cover h1{font-size:2.4rem}
  .cover .portrait{margin:1.2rem auto 0.9rem;width:170px;}
  .ch-title{font-size:1.8rem}
  .prose p,blockquote.q,blockquote.q p{text-align:left;hyphens:none}
  .ornrule::before,.ornrule::after{width:52px}
}
@media print{
  .site-head{position:static}
  .ch-nav,.chmenu{display:none}
  body{font-size:12pt}
  .cover{background:none;color:#000}
  .cover .compiled{color:#000}
  .reading-progress-bar, .back-to-top, .lightbox-overlay, .chmenu-backdrop, .lightbox-close, .lightbox-prev, .lightbox-next {
    display: none !important;
  }
}

.dev{font-family:'Noto Serif Devanagari','Nirmala UI','Mangal',sans-serif}

/* ---------- Page Transition ---------- */
body {
  opacity: 0;
  transition: opacity 0.3s ease;
}
body.loaded {
  opacity: 1;
}

/* ---------- Reading Progress Bar ---------- */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-deep));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ---------- Back-to-Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}
.back-to-top:hover {
  background: var(--gold-deep);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Photo Lightbox Overlay ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-image {
  max-width: 90vw;
  max-height: 72vh;
  object-fit: contain;
  border: 3px solid #fff;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  border-radius: 2px;
}
.lightbox-caption {
  color: #f1ebd9;
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  margin-top: 1rem;
  text-align: center;
  max-width: 600px;
  line-height: 1.4;
}
.lightbox-caption .rows {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.2rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100001;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  opacity: 1;
}
.lightbox-close {
  top: 1.5rem;
  right: 2rem;
  font-size: 3rem;
}
.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
}
.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
}
.lightbox-prev:active { transform: translateY(-50%) scale(0.9); }
.lightbox-next:active { transform: translateY(-50%) scale(0.9); }

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile Menu Overlay Backdrop ---------- */
.chmenu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  z-index: 98;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.chmenu-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.chmenu {
  position: relative;
  z-index: 100; /* Place details above backdrop */
}
body.menu-open {
  overflow: hidden;
}

/* ---------- Additional Responsive Touches ---------- */
@media (max-width: 768px) {
  .lightbox-prev { left: 0.5rem; font-size: 3rem; }
  .lightbox-next { right: 0.5rem; font-size: 3rem; }
  .lightbox-close { top: 0.5rem; right: 1rem; }
  .back-to-top { bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; }
}
/* ---------- Accessibility Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold-deep);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000000;
  transition: top 0.2s ease;
  text-decoration: none;
  font-weight: bold;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.skip-link:focus {
  top: 0;
}

/* ---------- Theme Variable Overrides ---------- */
body.sepia-mode {
  --page: #f4ecd8;
  --ink: #433422;
  --ink-soft: #5f4b32;
  --ink-faint: #8a7355;
  --line: #e4d7ba;
  --line-soft: #ebdcb9;
}
body.dark-mode {
  --page: #121212;
  --ink: #e0d9cc;
  --ink-soft: #b0a696;
  --ink-faint: #7a7061;
  --line: #2d2922;
  --line-soft: #38332b;
  --gold: #e0b443;
  --gold-deep: #ffd359;
}

/* Adjustments for Dark Mode elements */
body.dark-mode .chmenu-panel {
  background: linear-gradient(180deg, #1a1a1a, #161616);
  border-color: var(--gold-deep);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}
body.dark-mode .chmenu-panel a {
  color: var(--ink);
}
body.dark-mode .chmenu-panel a:hover {
  background: rgba(224, 180, 67, 0.08);
}
body.dark-mode .chmenu-panel a.cur {
  background: rgba(224, 180, 67, 0.12);
  color: var(--gold-bright);
}
body.dark-mode .sacred {
  background: linear-gradient(180deg, #181714, #1f1d17);
}
body.dark-mode .exch,
body.dark-mode figure.photo.bday,
body.dark-mode figure.photo.framed,
body.dark-mode .epigraph,
body.dark-mode .letter,
body.dark-mode .famcol figure,
body.dark-mode figure.photo.gallery,
body.dark-mode .corr,
body.dark-mode .memorial {
  background: linear-gradient(180deg, #161512, #1b1915);
}
body.dark-mode .lc.from-child {
  background: #25211a;
  border-color: #3f372a;
}
body.dark-mode .reply {
  background: #271f1e;
  border-color: #443231;
}
body.dark-mode .sig-plate {
  background: #1a1a1a;
  border-color: var(--gold);
}
body.dark-mode .sig-plate img {
  filter: invert(0.9) hue-rotate(180deg);
}

/* Adjustments for Sepia Mode elements */
body.sepia-mode .chmenu-panel {
  background: linear-gradient(180deg, #f7f1e1, #efe7d3);
  box-shadow: 0 12px 36px rgba(67, 52, 34, 0.15);
}
body.sepia-mode .chmenu-panel a:hover {
  background: rgba(138, 101, 18, 0.06);
}
body.sepia-mode .chmenu-panel a.cur {
  background: rgba(138, 101, 18, 0.1);
}
body.sepia-mode .sacred {
  background: linear-gradient(180deg, #f7f0e0, #fcf7ec);
}
body.sepia-mode .exch,
body.sepia-mode figure.photo.bday,
body.sepia-mode figure.photo.framed,
body.sepia-mode .epigraph,
body.sepia-mode .letter,
body.sepia-mode .famcol figure,
body.sepia-mode figure.photo.gallery,
body.sepia-mode .corr,
body.sepia-mode .memorial {
  background: linear-gradient(180deg, #f7f1e1, #f1e9d5);
}
body.sepia-mode .lc.from-child {
  background: #f9f2e3;
  border-color: #e5d9c2;
}
body.sepia-mode .reply {
  background: #f9edea;
  border-color: #e8d0ce;
}
body.sepia-mode .sig-plate {
  background: #faf6eb;
}

/* ---------- Sticky Header Polish ---------- */
.site-head {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-head .inner {
  transition: padding 0.3s ease;
}
.site-head.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-color: transparent;
  background-color: rgba(255, 255, 255, 0.93) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-head.scrolled .inner {
  padding: 0.35rem 1.2rem;
}
body.dark-mode .site-head.scrolled {
  background-color: rgba(18, 18, 18, 0.93) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
body.sepia-mode .site-head.scrolled {
  background-color: rgba(244, 236, 216, 0.93) !important;
  box-shadow: 0 4px 20px rgba(67, 52, 34, 0.08);
}

/* ---------- Photo Gallery Grid Polish ---------- */
figure.photo.gallery .gal-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}
figure.photo.gallery .duo {
  display: contents; /* removes block wrappers and aligns elements directly to grid */
}
figure.photo.gallery img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
figure.photo.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(176, 133, 31, 0.3);
  z-index: 1;
}

/* ---------- Ch.3 "On The Mother" gold frame wrapper ---------- */
.article-frame {
  margin: 2.8rem 0;
  padding: 2.2rem 2.2rem 1.6rem;
  background: linear-gradient(180deg, #fdfbf6, #fbf6ed);
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 3px 14px rgba(0, 0, 0, 0.07);
}
.article-frame h2.piece:first-child {
  margin-top: 0;
}
.article-frame .attrib {
  margin-top: 1.1rem;
  margin-bottom: 0;
  clear: both;
}

/* Dark and Sepia Mode overrides for article-frame */
body.dark-mode .article-frame {
  background: linear-gradient(180deg, #161512, #1b1915);
}
body.sepia-mode .article-frame {
  background: linear-gradient(180deg, #f7f1e1, #f1e9d5);
}

@media (max-width: 640px) {
  .article-frame {
    padding: 1.3rem 1.3rem 0.95rem;
  }
}

/* ---------- Fix for Sticky Header in Menu Open State ---------- */
body.menu-open .site-head {
  position: fixed;
  left: 0;
  right: 0;
}

