/* ==========================================================================
   Vivek Sinha · Bande Mataram — site stylesheet
   Palette taken from the book itself: the cover's ink-green and saffron sky,
   the gilt lettering, the back cover's aged parchment and maroon attributions.
   ========================================================================== */

@font-face { font-family: "Libre Caslon Display"; src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("../fonts/mukta-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tiro Devanagari Hindi"; src: url("../fonts/tiro-devanagari-hindi-devanagari-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  /* Indian tricolour, slightly softened to sit with the palette */
  --tc-saffron: #f28c28;
  --tc-white: #f7f3ea;
  --tc-green: #1f7a3a;
  --tc-navy: #1d3a7a;
  --ink: #10291f;
  --ink-2: #163629;
  --forest: #1f4a39;
  --gilt: #c9a04e;
  --gilt-light: #e6c67c;
  --gilt-dark: #9c7a32;
  --saffron: #d9822b;
  --saffron-deep: #a9561a;
  --parchment: #e8d9b5;
  --paper: #f3ead6;
  --paper-light: #faf5ea;
  --maroon: #8c1d18;
  --maroon-dark: #6f1511;
  --text: #241d14;
  --muted: #65584a;
  --on-dark: #efe6d2;
  --on-dark-muted: #b9c2b4;
  --line: rgba(36, 29, 20, 0.16);
  --line-dark: rgba(233, 217, 181, 0.18);

  --f-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --f-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --f-sans: "Mukta", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-deva: "Tiro Devanagari Hindi", "Nirmala UI", "Kohinoor Devanagari", serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 3px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .26 0 0 0 0 .12 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure, blockquote { margin: 0; }
main { display: block; outline: none; }
[hidden] { display: none !important; }
::selection { background: var(--gilt-light); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--gilt); color: var(--ink); padding: .7rem 1rem; font-family: var(--f-sans); font-weight: 600; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 2px; }

/* Paper sections carry a faint printed-grain texture */
.paper { position: relative; background-color: var(--paper); isolation: isolate; }
.paper::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .5; mix-blend-mode: multiply; pointer-events: none; z-index: -1; }
.paper--light { background-color: var(--paper-light); }
.paper--light::before { opacity: .28; }

/* ---------- Type helpers ---------- */
.section-h {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: .55em;
}
.section-h--light { color: var(--on-dark); }
.kicker-h { font-family: var(--f-display); font-size: 1.75rem; color: var(--maroon); margin-bottom: .6em; }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.28rem); line-height: 1.65; }
.text-link {
  font-family: var(--f-sans); font-weight: 600; font-size: 1rem; color: var(--maroon);
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .35s var(--ease);
}
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }
.text-link--light { color: var(--gilt-light); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper-light); --btn-bd: var(--btn-bg);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.55em; min-height: 48px;
  font-family: var(--f-sans); font-weight: 600; font-size: 1.02rem; line-height: 1.1; letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: var(--radius);
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn::after { /* a single gilt sheen that passes across on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%);
  transform: translateX(-110%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(16, 41, 31, .55); }
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn .icon { flex: none; }
.btn--gilt { --btn-bg: var(--gilt); --btn-fg: var(--ink); background-image: linear-gradient(180deg, var(--gilt-light), var(--gilt) 60%, var(--gilt-dark)); border-color: var(--gilt-dark); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper-light); }
.btn--ink:hover { --btn-bg: var(--forest); }
.btn--maroon { --btn-bg: var(--maroon); --btn-fg: #fff6ea; }
.btn--maroon:hover { --btn-bg: var(--maroon-dark); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--outline:hover { --btn-bg: var(--ink); --btn-fg: var(--paper-light); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(230, 198, 124, .6); }
.btn--ghost-light:hover { --btn-bd: var(--gilt-light); --btn-fg: var(--gilt-light); }
.btn--sm { min-height: 40px; padding: .6em 1.1em; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: .95em 1.8em; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; margin-top: 1.8rem; }

.link-btn { display: inline-flex; align-items: center; gap: .35em; padding: .3em 0; background: none; border: 0; font-family: var(--f-sans); font-size: .92rem; color: var(--muted); cursor: pointer; }
.link-btn:hover { color: var(--maroon); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: inherit; border-radius: 50%; cursor: pointer; transition: background-color .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
.round-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.round-btn:hover { background: var(--gilt); border-color: var(--gilt); color: var(--ink); }
.round-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .35s, box-shadow .35s, height .35s var(--ease);
}
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 20, 15, .55), transparent); pointer-events: none; transition: opacity .35s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-dark), 0 12px 30px -20px rgba(0, 0, 0, .6); --header-h: 68px; }
/* The scrolled background (and its blur) lives on a separate layer. Putting backdrop-filter on the header
   itself would make the header the containing block for the fixed mobile menu and squash the menu. */
.site-header::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(16, 41, 31, .94); opacity: 0; transition: opacity .35s; pointer-events: none; }
.site-header.is-scrolled::after { opacity: 1; }
@supports (backdrop-filter: blur(10px)) { .site-header::after { background: rgba(16, 41, 31, .84); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2); } }
.site-header.is-scrolled::before { opacity: 0; }
.site-header__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.wordmark__name { font-family: var(--f-display); font-size: 1.62rem; color: var(--gilt-light); letter-spacing: .01em; }
.wordmark__sub { font-family: var(--f-sans); font-size: .78rem; font-weight: 500; letter-spacing: .08em; color: var(--on-dark-muted); margin-top: .3rem; }

.primary-nav__list { display: flex; align-items: center; gap: .2rem; list-style: none; }
.primary-nav__item { position: relative; display: flex; align-items: center; }
.primary-nav__link {
  position: relative; display: block; padding: .5rem .72rem; text-decoration: none;
  font-family: var(--f-sans); font-size: 1rem; font-weight: 500; color: var(--on-dark);
  transition: color .2s;
}
.primary-nav__link::after { content: ""; position: absolute; left: .72rem; right: .72rem; bottom: .2rem; height: 1px; background: var(--gilt-light); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.primary-nav__link:hover, .primary-nav__link[aria-current="page"] { color: var(--gilt-light); }
.primary-nav__link:hover::after, .primary-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.sub-toggle { display: grid; place-items: center; width: 26px; height: 32px; margin-left: -.55rem; padding: 0; border: 0; background: none; color: var(--on-dark); cursor: pointer; }
.sub-toggle .icon { transition: transform .25s var(--ease); }
.has-sub.is-open .sub-toggle .icon { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; list-style: none; padding: .55rem;
  background: var(--paper-light); border: 1px solid rgba(201, 160, 78, .45); border-radius: var(--radius);
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.sub-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: .6rem .8rem; color: var(--ink); text-decoration: none; font-family: var(--f-sans); font-weight: 500; border-radius: 2px; }
.sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--parchment); color: var(--maroon); }
.primary-nav__cta-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; color: var(--on-dark); }
.menu-toggle__bars { display: grid; gap: 5px; width: 24px; margin: auto; }
.menu-toggle__bars span { display: block; height: 1.6px; background: currentColor; border-radius: 1px; transition: transform .35s var(--ease), opacity .2s; }
.menu-toggle__bars span:nth-child(3) { width: 65%; }
.menu-open .menu-toggle__bars span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__bars span:nth-child(3) { width: 100%; transform: translateY(-6.6px) rotate(-45deg); }

/* ---------- Hero (home): the archival photograph, with the book as the subject ---------- */
.hero {
  --hero-h: max(640px, min(56.25vw, 100svh));
  --tx: -50%; --ty: -50%;
  position: relative; height: var(--hero-h); display: flex; align-items: center;
  color: var(--on-dark); background: #0d0b07; overflow: hidden; isolation: isolate;
}
.hero__media {
  position: absolute; left: 50%; top: 50%; z-index: -3;
  width: max(100%, calc(var(--hero-h) * 16 / 9)); aspect-ratio: 16 / 9;
  transform: translate(var(--tx), var(--ty)); transform-origin: 70% 50%;
}
.hero__media picture, .hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.js .hero__media { animation: kenBurns 26s ease-in-out infinite alternate; }
@keyframes kenBurns { from { transform: translate(var(--tx), var(--ty)) scale(1); } to { transform: translate(var(--tx), var(--ty)) scale(1.06); } }
.hero::before { /* legibility veil on the text side only; the book side stays untouched */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 9, 6, .92) 0%, rgba(10, 9, 6, .78) 28%, rgba(10, 9, 6, .35) 46%, rgba(10, 9, 6, 0) 58%),
    linear-gradient(180deg, rgba(10, 9, 6, .55) 0%, rgba(10, 9, 6, 0) 22%, rgba(10, 9, 6, 0) 78%, rgba(10, 9, 6, .7) 100%);
}
.hero__glow { position: absolute; left: 56%; top: 8%; width: 32%; height: 84%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 170, 70, .28), transparent 70%); mix-blend-mode: screen; opacity: .0; }
.js .hero__glow { animation: glowPulse 7s ease-in-out 1.6s infinite; }
@keyframes glowPulse { 0%, 100% { opacity: .15; } 50% { opacity: .65; } }
.hero__sweep { /* a band of light that crosses the book cover */
  position: absolute; left: 54.5%; top: 5.8%; width: 30%; height: 85.6%; overflow: hidden; pointer-events: none;
  clip-path: polygon(0 6.9%, 100% 0, 100% 99%, 0 100%);
}
.hero__sweep::before { content: ""; position: absolute; top: -10%; bottom: -10%; width: 38%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 236, 196, .38) 45%, rgba(255, 250, 235, .55) 50%, rgba(255, 236, 196, .38) 55%, transparent); transform: skewX(-12deg); mix-blend-mode: soft-light; }
.js .hero__sweep::before { animation: sweep 7.5s var(--ease) 2.2s infinite; }
@keyframes sweep { 0% { left: -60%; } 38%, 100% { left: 130%; } }
.hero__dust { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__dust span { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 214, 150, .75); box-shadow: 0 0 6px rgba(255, 190, 110, .8); opacity: 0; }
.js .hero__dust span { animation: dust 14s linear infinite; }
.hero__dust span:nth-child(1) { left: 52%; animation-delay: 0s; animation-duration: 15s; }
.hero__dust span:nth-child(2) { left: 61%; animation-delay: 2s; width: 2px; height: 2px; }
.hero__dust span:nth-child(3) { left: 70%; animation-delay: 4.5s; animation-duration: 17s; }
.hero__dust span:nth-child(4) { left: 78%; animation-delay: 1s; width: 2px; height: 2px; }
.hero__dust span:nth-child(5) { left: 86%; animation-delay: 6s; }
.hero__dust span:nth-child(6) { left: 92%; animation-delay: 3s; animation-duration: 19s; width: 4px; height: 4px; opacity: .6; }
.hero__dust span:nth-child(7) { left: 57%; animation-delay: 8s; width: 2px; height: 2px; }
.hero__dust span:nth-child(8) { left: 66%; animation-delay: 10s; animation-duration: 16s; }
.hero__dust span:nth-child(9) { left: 74%; animation-delay: 7s; width: 2px; height: 2px; }
.hero__dust span:nth-child(10) { left: 82%; animation-delay: 11s; }
.hero__dust span:nth-child(11) { left: 89%; animation-delay: 5s; width: 2px; height: 2px; animation-duration: 18s; }
.hero__dust span:nth-child(12) { left: 48%; animation-delay: 9s; width: 2px; height: 2px; }
.hero__dust span:nth-child(13) { left: 95%; animation-delay: 12s; }
.hero__dust span:nth-child(14) { left: 64%; animation-delay: 13s; width: 4px; height: 4px; }
@keyframes dust { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate(-60px, -90vh); opacity: 0; } }
.hero__inner { position: relative; width: 100%; }
.hero__copy { max-width: 560px; padding-top: calc(var(--header-h) * .6); }
.hero__deva {
  margin: 0 0 .1em -.03em; font-family: var(--f-deva); font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1.2;
  background: linear-gradient(100deg, #a9772c 0%, #f6dc98 22%, #c9a04e 40%, #a9772c 60%, #f1d58f 80%, #a9772c 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(217, 130, 43, .3));
}
.js .is-loaded .hero__deva, .is-loaded .hero__deva { animation: inkReveal 1.4s var(--ease) .15s forwards, shimmer 9s linear 1.8s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
.hero__title { display: flex; flex-direction: column; gap: .35rem; }
.hero__title-main { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; color: #fbf3e1; letter-spacing: -.015em; }
.hero__title-sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.7rem); color: var(--gilt-light); }
.hero__tagline { margin: 1.4rem 0 .8rem; font-family: var(--f-display); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; color: #fbf3e1; }
.hero__intro { max-width: 48ch; color: #d6cdb8; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: block; width: 26px; height: 44px; border: 1px solid rgba(230, 198, 124, .55); border-radius: 14px; }
.hero__scroll-line { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; border-radius: 1px; background: var(--gilt-light); animation: scrollCue 2s var(--ease) infinite; }
@keyframes scrollCue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* Load sequence */
.js .hero__deva, .js .hero__title, .js .hero__tagline, .js .hero__intro, .js .hero__actions { opacity: 0; transform: translateY(18px); }
.js .hero__deva { clip-path: inset(-40% 100% -40% -10%); transform: none; }
.is-loaded .hero__title { animation: rise .9s var(--ease) .5s forwards; }
.is-loaded .hero__tagline { animation: rise .9s var(--ease) .65s forwards; }
.is-loaded .hero__intro { animation: rise .9s var(--ease) .78s forwards; }
.is-loaded .hero__actions { animation: rise .9s var(--ease) .9s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes inkReveal { 0% { opacity: 1; clip-path: inset(-40% 100% -40% -10%); } 100% { opacity: 1; clip-path: inset(-40% -10% -40% -10%); } }

/* ---------- The Book (home) ---------- */
.book-feature { padding: var(--section) 0; overflow: hidden; }
.book-feature__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.book-feature__visual { position: sticky; top: calc(var(--header-h) + 2rem); padding-top: 1rem; }
.book-feature__stack { position: relative; max-width: 600px; aspect-ratio: 1 / 1.12; margin: 0 auto; }
.book-feature__stack::before { content: ""; position: absolute; inset: 8% 4% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(217, 130, 43, .26), transparent 75%); z-index: 0; }
.book-feature__stack::after { content: ""; position: absolute; left: 10%; right: 6%; bottom: 2%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(36, 29, 20, .35), transparent 75%); filter: blur(4px); z-index: 0; }
.book-feature__stack picture { position: absolute; z-index: 1; transition: transform .8s var(--ease); }
.book-feature__stack picture:first-child { left: 0; top: 13%; width: 54%; transform: rotate(-6deg); }
.book-feature__stack picture:last-child { right: 0; top: 2%; width: 58%; transform: rotate(3deg); z-index: 2; }
.book-feature__stack img { filter: drop-shadow(0 28px 26px rgba(36, 29, 20, .38)); }
.js .book-feature__stack picture:first-child img { animation: floatY 7s ease-in-out infinite; }
.js .book-feature__stack picture:last-child img { animation: floatY 7s ease-in-out -3.5s infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.book-feature__stack:hover picture:first-child { transform: rotate(-9deg) translateX(-14px); }
.book-feature__stack:hover picture:last-child { transform: rotate(5deg) translateX(10px); }
.pull-line { margin: 0 0 1.4rem; font-family: var(--f-display); font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.18; color: var(--ink); }
.pull-line span { display: block; color: var(--maroon); font-size: .8em; margin-top: .15rem; }
.muted-p { color: #4a4034; }
.book-feature .formats { margin-top: 2rem; }
.book-feature__more { margin: 1.4rem 0 0; }

/* Format chooser on light backgrounds */
.on-light .formats__legend, .on-light .format-card__name { color: var(--ink); }
.on-light .format-card { border-color: rgba(36, 29, 20, .2); background: #fffaf0; }
.on-light .format-card:hover { border-color: var(--gilt-dark); }
.on-light .format-card:has(input:checked) { border-color: var(--gilt-dark); background: #fbf0d6; box-shadow: inset 0 0 0 1px var(--gilt-dark); }
.on-light .format-card__icon { color: var(--saffron-deep); }
.on-light .format-card__note, .on-light .format-card__isbn { color: var(--muted); }
.on-light .format-card__price { color: var(--maroon); }
.on-light .format-card__buy { color: var(--ink); border-color: rgba(36, 29, 20, .22); background: var(--paper-light); }
.on-light .format-card__buy:hover { background: var(--saffron-deep); border-color: var(--saffron-deep); color: #fff; }
.on-light .formats__note { color: var(--muted); }

/* ---------- Inside the Book (home) ---------- */
.inside { padding: var(--section) 0; }
.inside__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.inside__head .section-h { margin: 0; }
.inside__head .lead { margin: 0; max-width: 44ch; }
.themes { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.theme { position: relative; padding: 2rem 1.6rem 1.9rem; background: #fffaf0; border: 1px solid rgba(156, 122, 50, .32); border-top: 3px solid var(--gilt); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.theme:hover { transform: translateY(-6px); border-top-color: var(--saffron); box-shadow: 0 26px 44px -30px rgba(36, 29, 20, .5); }
.js .theme.reveal { transition-delay: var(--d, 0ms); }
.theme__ch { margin: 0 0 .9rem; font-family: var(--f-sans); font-weight: 600; font-size: .92rem; color: var(--saffron-deep); }
.theme__title { margin-bottom: .55rem; font-family: var(--f-display); font-size: clamp(1.45rem, 2vw, 1.75rem); color: var(--ink); }
.theme p:last-child { margin: 0; font-size: 1rem; line-height: 1.6; color: #3b3226; }
.inside__quote { position: relative; max-width: 920px; margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding-top: 2.8rem; text-align: center; }
.inside__quote::before { content: "“"; position: absolute; top: -.4rem; left: 50%; transform: translateX(-50%); font-family: var(--f-display); font-size: 5.5rem; line-height: 1; color: var(--gilt); }
.inside__quote p { margin: 0; font-family: var(--f-display); font-size: clamp(1.35rem, 2.5vw, 1.95rem); line-height: 1.4; color: var(--ink); }
.inside__quote figcaption { margin-top: 1rem; font-family: var(--f-sans); color: var(--muted); }
.inside__cta { margin: 2.2rem 0 0; text-align: center; }

/* ---------- Newspaper (home) ---------- */
.np-feature { position: relative; padding: var(--section) 0; background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.np-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 26% 50%, rgba(217, 130, 43, .22), transparent 70%), radial-gradient(50% 50% at 100% 100%, rgba(31, 74, 57, .8), transparent 70%); }
.np-feature__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.np-feature__img { position: relative; margin: 0; justify-self: center; transform: translateY(var(--py, 0px)) rotate(-2.5deg); transition: transform .8s var(--ease); }
.np-feature__img::before { /* paper tape */ content: ""; position: absolute; z-index: 2; top: -14px; left: 50%; width: 120px; height: 28px; transform: translateX(-50%) rotate(-3deg); background: rgba(233, 217, 181, .55); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.np-feature__img img { width: min(440px, 80vw); filter: sepia(.28) contrast(1.04); box-shadow: 0 44px 70px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06); }
.np-feature__img:hover { transform: translateY(var(--py, 0px)) rotate(0) scale(1.02); }
.np-feature__years { margin: -.6rem 0 1rem; font-family: var(--f-serif); font-style: italic; font-size: 1.25rem; color: var(--gilt-light); }
.np-feature .lead { color: #e2d8c3; }
.mini-timeline { list-style: none; margin: 1.8rem 0 2.2rem; border-left: 1px solid var(--gilt-dark); }
.mini-timeline li { position: relative; display: grid; grid-template-columns: 10.5rem 1fr; gap: 1rem; padding: .55rem 0 .55rem 1.5rem; }
.mini-timeline li::before { content: ""; position: absolute; left: -5px; top: 1.05rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-light); border: 2px solid var(--saffron); }
.mini-timeline time { font-family: var(--f-sans); font-weight: 600; font-size: .95rem; color: var(--ink); padding-top: .12rem; }
.mini-timeline--dark li::before { background: var(--ink); }
.mini-timeline--dark time { color: var(--gilt-light); }
.mini-timeline--dark span { color: var(--on-dark); }

/* ---------- Donate card (end of author section) ---------- */
.donate-card { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; margin-top: clamp(3.5rem, 7vw, 5.5rem); padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.6rem, 4vw, 3rem); background: linear-gradient(115deg, #5e120e, #8c1d18 45%, #a9561a); color: #fff4e2; overflow: hidden; isolation: isolate; }
.donate-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .35; mix-blend-mode: soft-light; }
.donate-card::after { content: "बन्दे मातरम्"; position: absolute; right: -1rem; bottom: -2.2rem; z-index: -1; font-family: var(--f-deva); font-size: 7rem; line-height: 1; color: rgba(255, 228, 180, .08); pointer-events: none; }
.donate-card__h { margin-bottom: .35rem; font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff4e2; }
.donate-card p { margin: 0; max-width: 62ch; color: rgba(255, 244, 226, .88); }

/* Scroll progress line */
.progress { position: fixed; top: 0; left: 0; z-index: 70; height: 3px; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--tc-saffron) 0 33.33%, var(--tc-white) 33.33% 66.66%, var(--tc-green) 66.66% 100%) 0 0 / 100vw 100% no-repeat; pointer-events: none; }

/* ---------- Praise (styled after the back cover panel) ---------- */
.praise { position: relative; padding: var(--section) 0; background: var(--ink); overflow: hidden; isolation: isolate; }
.praise::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 110%, rgba(31, 74, 57, .9), transparent 70%), radial-gradient(40% 40% at 12% 8%, rgba(217, 130, 43, .12), transparent 70%); }
.jacket {
  --jp: clamp(1.5rem, 6vw, 5rem); position: relative; max-width: 1040px; margin: 0 auto; padding: clamp(3.4rem, 6vw, 4.6rem) var(--jp) clamp(2.5rem, 5vw, 3.6rem);
  background-color: #e9d9b2;
  background-image: var(--grain), radial-gradient(120% 90% at 50% 0%, #f1e4c3 0%, #e4d0a3 70%, #d7bf8c 100%);
  color: var(--text); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(201, 160, 78, .5);
}
.jacket::after { /* the cover's green wash rising from the bottom edge */ content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(0deg, rgba(31, 74, 57, .55), transparent); pointer-events: none; }
.ribbon { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 0; width: max-content; max-width: 92%; }
.ribbon span {
  position: relative; display: block; padding: .55rem 1.7rem; font-family: var(--f-display); font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--gilt-light);
  background: linear-gradient(180deg, #1f4a39, #10291f); border: 1px solid var(--gilt); border-radius: 999px; box-shadow: 0 0 0 3px var(--ink), 0 0 0 4px rgba(201, 160, 78, .6);
}
.ribbon::before, .ribbon::after { content: ""; width: clamp(40px, 10vw, 140px); height: 1px; background: linear-gradient(90deg, transparent, var(--gilt)); }
.ribbon::after { background: linear-gradient(90deg, var(--gilt), transparent); }
.praise__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.praise__item { padding: 2rem clamp(1rem, 3vw, 2.4rem); }
.praise__item:nth-child(odd) { border-right: 1px solid rgba(140, 29, 24, .22); }
.praise__item:nth-child(-n+2) { border-bottom: 1px solid rgba(140, 29, 24, .22); }
.praise__item blockquote p { margin: 0; font-family: var(--f-serif); font-weight: 700; font-size: clamp(1.12rem, 1.7vw, 1.3rem); line-height: 1.5; color: #231c12; }
.praise__item figcaption { margin-top: 1rem; text-align: right; font-family: var(--f-serif); font-style: italic; font-weight: 700; color: var(--maroon); font-size: 1.05rem; }
.jacket__foot { position: relative; z-index: 1; margin: 2.2rem 0 0; text-align: center; font-family: var(--f-serif); font-weight: 700; font-size: 1.15rem; color: #1b160f; }
.jacket__foot::before { content: ""; display: block; width: min(420px, 70%); height: 1px; margin: 0 auto 1.4rem; background: linear-gradient(90deg, transparent, var(--saffron-deep), transparent); }
.praise__more { text-align: center; margin: 2.4rem 0 0; }

/* ---------- Author ---------- */
.author { padding: var(--section) 0; }
.author__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.frame { position: relative; max-width: 440px; }
.frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gilt-dark); z-index: 0; }
.frame picture, .frame img { position: relative; z-index: 1; width: 100%; background: #fff; }
.frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.note-quote { margin: 2rem 0 2.2rem; padding-left: 1.5rem; border-left: 2px solid var(--saffron); }
.note-quote p { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.35; color: var(--ink); margin: 0; }
.note-quote figcaption { margin-top: .7rem; font-family: var(--f-sans); color: var(--muted); }

/* ---------- Quote cards (Testimonials page) ---------- */
.voice { scroll-snap-align: start; display: flex; flex-direction: column; padding: 1.6rem 1.6rem 1.8rem; background: linear-gradient(180deg, rgba(31, 74, 57, .55), rgba(22, 54, 41, .3)); border: 1px solid var(--line-dark); transition: border-color .3s, transform .4s var(--ease); }
.voice:hover { border-color: rgba(230, 198, 124, .55); transform: translateY(-4px); }
.voice__portrait { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin-bottom: 1.3rem; box-shadow: 0 0 0 1px var(--gilt), 0 0 0 5px var(--ink), 0 0 0 6px rgba(201, 160, 78, .35); background: #2a4c3d; display: grid; place-items: center; }
.voice__portrait picture, .voice__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: sepia(.45) contrast(1.05) brightness(.95); }
.voice__initials { font-family: var(--f-display); font-size: 1.6rem; color: var(--gilt-light); }
.voice__title { font-family: var(--f-sans); font-weight: 600; font-size: .95rem; color: var(--saffron); margin-bottom: .6rem; }
.voice blockquote p { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.4; color: #fbf3e1; margin: 0 0 1.2rem; }
.voice figcaption { margin-top: auto; font-family: var(--f-sans); font-size: .95rem; line-height: 1.45; color: var(--on-dark-muted); }
.voice figcaption strong { color: var(--on-dark); font-weight: 600; }

/* ---------- Format chooser (Amazon referral) ---------- */
.formats__options { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.formats__legend { padding: 0; margin-bottom: 1rem; font-family: var(--f-sans); font-weight: 600; font-size: 1.02rem; color: inherit; }
.format-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 255, 255, .03); transition: border-color .25s, background-color .25s, box-shadow .25s, transform .25s var(--ease); }
.format-card:hover { border-color: rgba(230, 198, 124, .55); transform: translateY(-2px); }
.format-card__pick { position: relative; display: grid; gap: .15rem; align-content: start; flex: 1; padding: 1.15rem 1.2rem 1rem; cursor: pointer; }
.format-card--info .format-card__pick { cursor: default; }
.format-card__pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.format-card:has(input:checked) { border-color: var(--gilt); background: rgba(201, 160, 78, .12); box-shadow: inset 0 0 0 1px var(--gilt); }
.format-card:has(input:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 3px; }
.format-card:has(input:checked) .format-card__pick::after { content: ""; position: absolute; top: .9rem; right: .9rem; width: 20px; height: 20px; border-radius: 50%; background: var(--gilt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310291f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.format-card__top { display: flex; align-items: center; gap: .6rem; margin-bottom: .2rem; }
.format-card__icon { color: var(--gilt-light); display: inline-flex; }
.format-card__name { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.1; }
.format-card__note { font-family: var(--f-sans); font-size: .92rem; color: var(--on-dark-muted); }
.format-card__isbn { font-family: var(--f-sans); font-size: .8rem; color: var(--on-dark-muted); opacity: .85; }
.format-card__price { margin-top: .55rem; font-family: var(--f-sans); font-weight: 700; font-size: 1.35rem; color: var(--gilt-light); }
.format-card__buy { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: .45rem; margin: 0 .7rem .7rem; padding: .6rem .8rem; border: 1px solid var(--line-dark); border-radius: var(--radius); font-family: var(--f-sans); font-weight: 600; font-size: .95rem; color: var(--on-dark); text-decoration: none; transition: background-color .2s, border-color .2s, color .2s; }
.format-card__buy:hover { background: var(--saffron); border-color: var(--saffron); color: #fff; }
.formats__cta { margin-top: 1.5rem; }
.formats__cta .btn { width: 100%; }
.formats__cta .btn.is-swapped { animation: swapPulse .5s var(--ease); }
@keyframes swapPulse { 0% { transform: scale(1); } 40% { transform: scale(1.02); } 100% { transform: scale(1); } }
.formats__note { margin: .8rem 0 0; font-family: var(--f-sans); font-size: .92rem; color: var(--on-dark-muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: #0b1f17; color: var(--on-dark-muted); font-family: var(--f-sans); font-size: 1rem; overflow: hidden; }
.site-footer__crest { padding-top: clamp(3.5rem, 6vw, 5rem); padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 3rem; flex-wrap: wrap; }
.site-footer__deva { margin: 0; font-family: var(--f-deva); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.2; color: transparent; background: linear-gradient(180deg, #f1d58f, #a77a2d); -webkit-background-clip: text; background-clip: text; }
.site-footer__line { margin: 0; font-family: var(--f-display); font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--on-dark); max-width: 32ch; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; }
.site-footer__h { font-family: var(--f-display); font-size: 1.25rem; color: var(--on-dark); margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; color: var(--on-dark-muted); transition: color .2s; }
.site-footer a:hover { color: var(--gilt-light); }
.site-footer__about p { margin: 1rem 0 .4rem; max-width: 34ch; }
.site-footer__publisher { color: var(--gilt); font-style: italic; font-family: var(--f-serif); }
.site-footer__about .btn { margin-top: 1.2rem; }
.wordmark--footer { margin: 0; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; }
.contact-list .icon { color: var(--gilt); margin-top: .2rem; }
.contact-list a, .contact-list span { overflow-wrap: anywhere; }
.site-footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; padding-bottom: 1.6rem; border-top: 1px solid var(--line-dark); font-size: .92rem; }
.site-footer__base p { margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 4.5rem); color: var(--on-dark); background: var(--ink); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; opacity: .4; }
.page-hero__bg picture, .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: left 70%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 41, 31, .55), rgba(16, 41, 31, .9) 55%, var(--ink)); }
.page-hero__inner { display: grid; gap: .5rem; max-width: 900px; }
.crumbs { display: flex; flex-wrap: wrap; gap: .3rem .55rem; list-style: none; margin-bottom: 1.1rem; font-family: var(--f-sans); font-size: .93rem; color: var(--on-dark-muted); }
.crumbs li + li::before { content: "/"; margin-right: .55rem; opacity: .5; }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: var(--gilt-light); }
.page-hero__title { font-family: var(--f-display); font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.02; color: #fbf3e1; letter-spacing: -.015em; }
.page-hero__sub { margin: .8rem 0 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--gilt-light); max-width: 46ch; }
.page-hero--compact { padding-bottom: 2.6rem; }
.page-hero--compact .page-hero__title { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }

.section { padding: var(--section) 0; }
.section--tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.25rem); color: var(--ink); margin: 2.2rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.1em; }
.prose a { color: var(--maroon); }

/* ---------- About page ---------- */
.about-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.about-intro .frame { position: sticky; top: calc(var(--header-h) + 2rem); }
.about-intro .prose > p:first-of-type { font-size: clamp(1.15rem, 1.7vw, 1.3rem); }
.pull { margin: 2.6rem 0; padding: 2rem 0; border-top: 1px solid var(--gilt-dark); border-bottom: 1px solid var(--gilt-dark); }
.pull p { margin: 0; font-family: var(--f-display); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.3; color: var(--ink); }
.pull figcaption { margin-top: .9rem; font-family: var(--f-sans); color: var(--muted); }
.connect-rows { list-style: none; margin-top: 1.2rem; border-top: 1px solid var(--line); }
.connect-rows li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.connect-rows span:first-child { font-family: var(--f-sans); font-weight: 600; color: var(--muted); }
.connect-rows a { color: var(--maroon); }
.split-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem 4rem; }

/* ---------- Book page ---------- */
.book-hero { position: relative; padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3.5rem, 7vw, 5.5rem); background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.book-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 65% at 25% 55%, rgba(217, 130, 43, .28), transparent 70%), radial-gradient(60% 60% at 100% 0%, rgba(31, 74, 57, .7), transparent 70%); }
.book-hero__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.book-hero__visual { display: grid; place-items: center; }
.book-stage { position: relative; display: grid; place-items: center; width: 100%; min-height: 680px; }
.book-stage::before { content: ""; position: absolute; inset: 6% 2% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(217, 130, 43, .3), transparent 72%); }
.book-stage::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 3%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent 75%); filter: blur(5px); }
.book-stage__item { grid-area: 1 / 1; position: relative; z-index: 1; margin: 0; display: grid; justify-items: center; gap: 1.1rem; opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .55s var(--ease), transform .7s var(--ease); pointer-events: none; }
.book-stage__item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.book-stage__item img { width: auto; max-height: 620px; filter: drop-shadow(0 40px 38px rgba(0, 0, 0, .6)); }
.js .book-stage__item.is-active img { animation: floatY 7s ease-in-out infinite; }
.book-stage__item--ebook img { max-height: 560px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.book-stage__item figcaption { font-family: var(--f-sans); font-size: .95rem; color: var(--on-dark-muted); }
.book-hero .crumbs { margin-bottom: 1.4rem; }
.book-hero__title { font-family: var(--f-display); font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.04; color: #fbf3e1; }
.book-hero__title span { display: block; font-family: var(--f-serif); font-style: italic; font-size: .5em; color: var(--gilt-light); margin-top: .5rem; }
.book-hero__by { margin: 1.2rem 0 1.4rem; font-family: var(--f-sans); color: var(--on-dark-muted); font-size: 1.05rem; }
.book-hero__by strong { color: var(--on-dark); font-weight: 600; }
.book-hero__tagline { font-family: var(--f-display); font-size: 1.3rem; color: #fbf3e1; margin-bottom: 2rem; max-width: 36ch; }

.book-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.book-body aside { position: sticky; top: calc(var(--header-h) + 2rem); }
.excerpt-card { margin: 2.6rem 0; padding: 2rem 2.2rem; background: var(--ink); color: var(--on-dark); position: relative; }
.excerpt-card::before { content: "“"; position: absolute; top: -.35em; left: 1.2rem; font-family: var(--f-display); font-size: 5rem; color: var(--gilt); line-height: 1; }
.excerpt-card p { font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; margin: 0; color: #fbf3e1; }
.excerpt-card figcaption { margin-top: 1rem; font-family: var(--f-sans); font-size: .95rem; color: var(--gilt-light); }
.check-list { list-style: none; display: grid; gap: .1rem; border-top: 1px solid var(--line); }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.check-list .icon { color: var(--saffron-deep); margin-top: .3rem; }
.details-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.details-table th, .details-table td { text-align: left; vertical-align: top; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.details-table th { width: 44%; padding-right: 1rem; font-family: var(--f-sans); font-weight: 600; color: var(--muted); }
.side-card { padding: 1.8rem; background: var(--paper-light); border: 1px solid rgba(156, 122, 50, .4); }
.side-card h2 { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink); margin-bottom: 1rem; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; cursor: pointer; list-style: none; font-family: var(--f-display); font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--ink); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform .35s var(--ease); color: var(--saffron-deep); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--maroon); }
.faq .faq__a { padding: 0 0 1.4rem; max-width: 64ch; color: #3b3226; }
.faq .faq__a p { margin: 0; }

/* ---------- Chapters (Inside the Book) ---------- */
.chapters { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--line); counter-reset: none; }
.chapter { display: grid; grid-template-columns: 3.6rem 1fr; gap: 1rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.chapter__n { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; color: var(--saffron-deep); }
.chapter h3 { font-family: var(--f-display); font-size: 1.42rem; color: var(--ink); margin-bottom: .35rem; }
.chapter p { margin: 0; color: #3b3226; font-size: 1rem; }
.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.also > div { padding: 1.7rem; border: 1px solid rgba(201, 160, 78, .45); background: rgba(255, 255, 255, .03); }
.also h3 { font-family: var(--f-display); font-size: 1.4rem; color: var(--gilt-light); margin-bottom: .5rem; }
.also p { margin: 0; color: var(--on-dark-muted); font-size: 1rem; }
.dark-section { background: var(--ink); color: var(--on-dark); }

/* ---------- Newspaper page ---------- */
.np-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.np-intro .lead:first-child::first-letter { float: left; font-family: var(--f-display); font-size: 4.6em; line-height: .8; padding: .08em .1em 0 0; color: var(--maroon); }
.np-figure { position: sticky; top: calc(var(--header-h) + 2rem); }
.np-figure picture { transform: rotate(2deg); filter: drop-shadow(0 26px 26px rgba(36, 29, 20, .3)); }
.np-figure figcaption { margin-top: 1.6rem; font-family: var(--f-sans); font-size: .92rem; color: var(--muted); text-align: center; }
.np-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); margin-top: 3rem; border-top: 2px solid var(--ink); }
.np-sections article { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.np-sections h2 { font-family: var(--f-display); font-size: clamp(1.6rem, 2.6vw, 2rem); color: var(--ink); margin-bottom: .6rem; }
.np-sections p:last-child { margin-bottom: 0; }
.timeline { position: relative; list-style: none; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 12.2rem; top: .5rem; bottom: .5rem; width: 1px; background: linear-gradient(180deg, transparent, var(--gilt) 6%, var(--gilt) 94%, transparent); }
.timeline li { position: relative; display: grid; grid-template-columns: 11rem 1fr; gap: 2.4rem; padding: 1.1rem 0; }
.timeline li::before { content: ""; position: absolute; left: calc(12.2rem - 6px); top: 1.55rem; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--gilt); transition: background-color .3s, transform .3s var(--ease); }
.timeline li:hover::before { background: var(--saffron); transform: scale(1.25); }
.timeline time { text-align: right; font-family: var(--f-sans); font-weight: 600; color: var(--gilt-light); padding-top: .15rem; }
.timeline p { margin: 0; color: var(--on-dark); font-size: 1.08rem; }

/* ---------- Testimonials page ---------- */
.voices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.voices-grid .voice:hover { transform: none; }
.share-cta { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem 2.2rem; border: 1px solid rgba(201, 160, 78, .45); }
.share-cta p { margin: 0; font-family: var(--f-display); font-size: 1.5rem; color: var(--on-dark); }

/* ---------- Donate page ---------- */
.donate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.give { position: relative; display: flex; flex-direction: column; padding: clamp(2rem, 4vw, 3rem); background: var(--paper-light); border: 1px solid rgba(156, 122, 50, .45); }
.give::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(156, 122, 50, .22); pointer-events: none; }
.give__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.give__badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--gilt-light); font-family: var(--f-display); font-size: 1.5rem; flex: none; }
.give__badge--pp { background: #0f3a7a; color: #fff; }
.give h2 { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--ink); }
.give__label { margin: 0; font-family: var(--f-sans); font-size: .95rem; color: var(--muted); }
.give dl { margin: 0 0 1.4rem; display: grid; gap: 0; border-top: 1px solid var(--line); }
.give dl > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.give dt { font-family: var(--f-sans); font-weight: 600; color: var(--muted); }
.give dd { margin: 0; overflow-wrap: anywhere; }
.copy-field { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.copy-field code { font-family: var(--f-sans); font-weight: 600; font-size: 1.12rem; color: var(--ink); background: #f3e6c7; padding: .2rem .5rem; border-radius: 2px; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: none; font-family: var(--f-sans); font-size: .88rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: background-color .2s, border-color .2s; }
.copy-btn:hover { border-color: var(--gilt-dark); background: #f3e6c7; }
.copy-btn.is-copied { border-color: var(--forest); color: var(--forest); }
.steps { list-style: none; counter-reset: step; display: grid; gap: .85rem; margin: 0 0 1.6rem; }
.steps li { counter-increment: step; position: relative; padding-left: 2.7rem; min-height: 1.8rem; padding-top: .1rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--gilt-dark); font-family: var(--f-sans); font-weight: 600; font-size: .9rem; color: var(--saffron-deep); }
.give .btn { margin-top: auto; align-self: flex-start; }
.btn--paypal { --btn-bg: #ffc439; --btn-fg: #102a52; --btn-bd: #e9ad1f; font-weight: 700; }
.btn--paypal:hover { --btn-bg: #f5b92a; }
.give__fine { margin: .9rem 0 0; font-family: var(--f-sans); font-size: .88rem; color: var(--muted); }

/* ---------- Connect page ---------- */
.connect-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact-cards { list-style: none; display: grid; gap: 1rem; margin: 2rem 0; }
.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border: 1px solid var(--line); background: var(--paper-light); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
a.contact-card:hover { border-color: var(--gilt-dark); transform: translateX(4px); }
.contact-card .icon-wrap { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--gilt-light); }
.contact-card small { display: block; font-family: var(--f-sans); font-weight: 600; font-size: .85rem; color: var(--muted); }
.contact-card span { overflow-wrap: anywhere; }
.form-card { padding: clamp(1.6rem, 4vw, 2.8rem); background: var(--paper-light); border: 1px solid rgba(156, 122, 50, .45); box-shadow: 0 30px 60px -40px rgba(36, 29, 20, .5); }
.form-card h2 { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--ink); margin-bottom: .4rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .4rem; font-family: var(--f-sans); font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .req { color: var(--maroon); }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .95rem; border: 1px solid rgba(36, 29, 20, .28); border-radius: var(--radius);
  background: #fffdf7; font-family: var(--f-sans); font-size: 1.02rem; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31, 74, 57, .18); }
.field [aria-invalid="true"] { border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(140, 29, 24, .12); }
.field-error { margin: .4rem 0 0; font-family: var(--f-sans); font-size: .9rem; color: var(--maroon); }
.field-hint { margin: .35rem 0 0; font-family: var(--f-sans); font-size: .86rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; margin-bottom: 1.4rem; border-radius: var(--radius); font-family: var(--f-sans); font-size: 1rem; }
.alert .icon { flex: none; margin-top: .15rem; }
.alert--ok { background: #e3ecdf; border: 1px solid #9ab79a; color: #1d3f2c; }
.alert--err { background: #f6e1dc; border: 1px solid #d49a90; color: var(--maroon-dark); }
.alert p { margin: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.form-foot p { margin: 0; font-family: var(--f-sans); font-size: .9rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 120; transform: translate(-50%, calc(100% + 2.5rem)); visibility: hidden; max-width: calc(100% - 2rem); padding: .85rem 1.3rem; border-radius: var(--radius); background: var(--paper-light); color: var(--ink); border: 1px solid var(--gilt-dark); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); font-family: var(--f-sans); font-weight: 500; transition: transform .45s var(--ease), visibility .45s; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.toast--err { border-color: var(--maroon); color: var(--maroon-dark); }

/* ---------- Error / setup / admin ---------- */
.error-page { min-height: 60vh; display: grid; align-content: center; }
.error-code { font-family: var(--f-deva); font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--gilt-dark); opacity: .5; }
.admin-table { width: 100%; border-collapse: collapse; font-family: var(--f-sans); font-size: .98rem; }
.admin-table th, .admin-table td { text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-weight: 600; color: var(--muted); font-size: .9rem; }
.admin-table a { color: var(--maroon); font-weight: 600; }
.admin-tabs { display: flex; gap: .4rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.admin-tabs a { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-family: var(--f-sans); font-weight: 500; }
.admin-tabs a[aria-current="page"] { background: var(--ink); color: var(--paper-light); border-color: var(--ink); }
.check-table td:first-child { width: 2rem; }
.ok { color: var(--forest); font-weight: 700; }
.bad { color: var(--maroon); font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ---------- Scroll reveal (subtle, only where JS is present) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .primary-nav__link { padding: .5rem .5rem; font-size: .96rem; }
  .primary-nav__link::after { left: .5rem; right: .5rem; }
  .header-cta { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .menu-toggle { display: grid; }
  .primary-nav {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; gap: 2rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem; background: var(--ink);
    background-image: radial-gradient(60% 50% at 100% 100%, rgba(217, 130, 43, .2), transparent 70%);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
    overflow-y: auto;
  }
  .menu-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: var(--ink); }
  .menu-open .site-header::after { opacity: 0; }
  .primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line-dark); }
  .primary-nav__link { flex: 1; padding: .9rem 0; font-family: var(--f-display); font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 400; }
  .primary-nav__link::after { display: none; }
  .js .menu-open .primary-nav__item { animation: rise .5s var(--ease) both; }
  .menu-open .primary-nav__item:nth-child(2) { animation-delay: .04s; }
  .menu-open .primary-nav__item:nth-child(3) { animation-delay: .08s; }
  .menu-open .primary-nav__item:nth-child(4) { animation-delay: .12s; }
  .menu-open .primary-nav__item:nth-child(5) { animation-delay: .16s; }
  .menu-open .primary-nav__item:nth-child(6) { animation-delay: .2s; }
  .menu-open .primary-nav__item:nth-child(7) { animation-delay: .24s; }
  .sub-toggle { width: 48px; height: 48px; margin: 0; }
  .sub-menu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .8rem 1rem; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: none; }
  .has-sub.is-open .sub-menu { display: block; }
  .sub-menu a { color: var(--on-dark-muted); font-size: 1.1rem; padding: .5rem 0; }
  .sub-menu a:hover, .sub-menu a[aria-current="page"] { background: none; color: var(--gilt-light); }
  .primary-nav__cta-mobile { display: inline-flex; align-self: flex-start; }


  .author__grid, .book-feature__grid, .np-feature__grid, .about-intro, .book-hero__grid, .book-body, .np-intro , .connect-grid { grid-template-columns: 1fr; }
  .book-body aside, .np-figure { position: static; }
  .about-intro .frame { position: relative; top: auto; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .voices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .also { grid-template-columns: 1fr; }
  .author__photo .frame, .about-intro .frame { margin: 0 auto 1rem; max-width: 380px; }
}

@media (max-width: 760px) {
  body { font-size: 1.02rem; }
  .praise__list { grid-template-columns: 1fr; }
  .praise__item:nth-child(odd) { border-right: 0; }
  .praise__item:nth-child(-n+3) { border-bottom: 1px solid rgba(140, 29, 24, .22); }
  .praise__item { padding: 1.6rem .2rem; }
  .ribbon::before, .ribbon::after { width: 24px; }
  .chapters { grid-template-columns: 1fr; }
  .np-sections { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; padding-left: 2rem; }
  .timeline li::before { left: 0; top: 1.35rem; }
  .timeline time { text-align: left; }
  .mini-timeline li { grid-template-columns: 1fr; gap: .1rem; }
  .donate-grid { grid-template-columns: 1fr; }
  .format-card__name { font-size: 1.25rem; }
  .format-card__pick { padding: 1rem 1rem .8rem; }
  .give dl > div { grid-template-columns: 1fr; gap: .15rem; }
  .form-grid { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .details-table th { width: 46%; }
  .connect-rows li { grid-template-columns: 1fr; gap: .1rem; }
  .split-band { grid-template-columns: 1fr; }
  .share-cta { padding: 1.5rem; }
  .site-footer__crest { flex-direction: column; align-items: flex-start; }
  .wordmark__name { font-size: 1.4rem; }
}

@media (max-width: 380px) {
  .formats__options { grid-template-columns: 1fr; }
  .header-actions { gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .hero__deva, .js .hero__title, .js .hero__tagline, .js .hero__intro, .js .hero__actions, .js .hero__media, .js .hero__glow, .js .hero__sweep::before, .js .hero__dust span, .js .book-feature__stack img, .js .book-stage__item img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

@media print {
  .site-header, .site-footer, .toast { display: none !important; }
  .hero, .page-hero, .book-hero { background: none; color: #000; padding-top: 1rem; }
}

/* ---------- Context fixes ---------- */
.book-hero .btn--outline, .dark-section .btn--outline { --btn-fg: var(--on-dark); --btn-bd: rgba(230, 198, 124, .6); }
.book-hero .btn--outline:hover, .dark-section .btn--outline:hover { --btn-bg: var(--on-dark); --btn-fg: var(--ink); --btn-bd: var(--on-dark); }
.site-footer a.btn, .site-footer a.btn:hover { color: var(--btn-fg); }
.site-footer__line { line-height: 1.35; }
.prose .btn { color: var(--btn-fg); }
@media (max-width: 760px) {
  /* keep the offset gilt border inside the screen */
  .frame { width: calc(100% - 14px); margin-left: 0 !important; }
  .frame::before { inset: 12px -12px -12px 12px; }
}
.format-card__top { padding-right: 1.7rem; }
.format-card__buy { white-space: nowrap; }
@media (max-width: 760px) {
  .formats__options { gap: .7rem; }
  .format-card__buy { margin: 0 .55rem .55rem; padding: .55rem .4rem; font-size: .88rem; gap: .3rem; }
  .format-card__pick::after { top: .7rem !important; right: .7rem !important; }
}

@media (max-width: 600px) { .formats__options { grid-template-columns: 1fr; } }

/* ---------- Responsive: homepage sections ---------- */
@media (max-width: 1180px) {
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  /* Banner: the book photo sits on top, the words below it */
  .hero { --tx: 0; --ty: 0; height: auto; display: block; padding: 0 0 3.5rem; background: #0d0b07; }
  .hero__media { position: relative; left: auto; top: auto; width: 100%; aspect-ratio: 4 / 5; max-height: 86svh; transform-origin: 50% 50%; }
  .hero__media picture, .hero__media img { object-position: 50% 40%; }
  .hero::before { display: none; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 9, 6, .55) 0%, rgba(10, 9, 6, 0) 18%, rgba(10, 9, 6, 0) 72%, #0d0b07 100%); }
  .hero__glow { left: 14%; width: 66%; }
  .hero__sweep { left: 14.2%; width: 66.4%; }
  .hero__dust span { display: none; }
  .hero__copy { max-width: 620px; margin-top: 1.6rem; padding-top: 0; }
  .hero__scroll { display: none; }
  .inside__head { grid-template-columns: 1fr; }
  .book-feature__visual { order: -1; position: static; padding-top: 0; }
  .book-feature__stack { max-width: 460px; }
  .np-feature__img { order: -1; }
  .book-stage { min-height: 500px; }
  .book-stage__item img { max-height: 460px; }
  .book-stage__item--ebook img { max-height: 420px; }
}
@media (max-width: 760px) {
  .hero__copy { margin-top: 1.2rem; }
  .hero__actions .btn { flex: 1 1 auto; }
  .themes { grid-template-columns: 1fr; }
  .theme { padding: 1.6rem 1.4rem; }
  .mini-timeline li { grid-template-columns: 1fr; gap: .1rem; }
  .book-feature__stack { max-width: 340px; }
  .book-stage { min-height: 420px; }
  .book-stage__item img { max-height: 380px; }
  .book-stage__item--ebook img { max-height: 340px; }
  .donate-card .btn { width: 100%; }
  .np-feature__img img { width: min(340px, 82vw); }
}

/* Donate page closing note */
.donate-note { max-width: 760px; margin: clamp(3rem, 6vw, 4.5rem) auto 0; text-align: center; }
.donate-note__q { margin: 0 0 1rem; font-family: var(--f-display); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; color: var(--ink); }
.donate-note__p { margin: 0 0 1.6rem; color: var(--muted); font-family: var(--f-sans); }

/* Book page: full-width "What You'll Find Inside" */
.inside-list { margin-top: clamp(3.5rem, 7vw, 5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.check-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); border-top: 0; }
.check-list--cols li:first-child, .check-list--cols li:nth-child(2) { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .check-list--cols { grid-template-columns: 1fr; } .check-list--cols li:nth-child(2) { border-top: 0; } }
/* Newspaper page: closing statement inside the timeline section */
.np-why { max-width: 760px; margin: clamp(3.5rem, 7vw, 5rem) auto 0; padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line-dark); text-align: center; }
.np-why .lead { color: #e2d8c3; margin-bottom: 1.8rem; }

/* Homepage closing donate strip */
.donate-strip { padding: clamp(3.5rem, 7vw, 5rem) 0; }
.donate-strip .donate-card { margin-top: 0; }

/* ---------- Testimonials page: Praise for the Book ---------- */
.praise-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.praise-head .section-h { margin: 0; }
.praise-head .lead { margin: 0; max-width: 44ch; color: #4a4034; }
.endorse-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.endorse-card { position: relative; background: #fffaf0; border: 1px solid rgba(156, 122, 50, .38); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.endorse-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(156, 122, 50, .18); pointer-events: none; }
.endorse-card:hover { transform: translateY(-4px); border-color: var(--gilt-dark); box-shadow: 0 30px 50px -34px rgba(36, 29, 20, .55); }
.js .endorse-card.reveal { transition-delay: var(--d, 0ms); }
.endorse-card figure { display: flex; flex-direction: column; height: 100%; padding: clamp(2rem, 4vw, 2.8rem) clamp(1.6rem, 3.5vw, 2.6rem) clamp(1.6rem, 3vw, 2.2rem); }
.endorse-card__mark { display: block; height: 3.4rem; margin-bottom: .6rem; font-family: var(--f-display); font-size: 7rem; line-height: 1; color: var(--gilt); }
.endorse-card blockquote { flex: 1; }
.endorse-card blockquote p { margin: 0; font-family: var(--f-display); font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.42; color: var(--ink); }
.endorse-card__by { display: flex; align-items: center; gap: .9rem; margin-top: 1.8rem; padding-top: 1.3rem; border-top: 1px solid rgba(156, 122, 50, .3); }
.endorse-card__avatar { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px var(--gilt-dark), 0 0 0 3px #fffaf0, 0 0 0 4px rgba(156, 122, 50, .35); }
.endorse-card__avatar picture, .endorse-card__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.endorse-card__avatar span { font-family: var(--f-display); font-size: 1.15rem; color: var(--gilt-light); }
.endorse-card__name { font-family: var(--f-serif); font-style: italic; font-weight: 700; font-size: 1.08rem; color: var(--maroon); }
@media (max-width: 1024px) { .praise-head { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .endorse-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Phones: swipe rows for card sets, compact rows for book formats
   ========================================================================== */
.swipe-nav { display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: .9rem; color: var(--gilt-dark); }
.dark-section .swipe-nav, .np-feature .swipe-nav, .voices-grid + .swipe-nav, .timeline + .swipe-nav, .also + .swipe-nav { color: var(--gilt-light); }
.swipe-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: currentColor; opacity: .35; cursor: pointer; transition: width .35s var(--ease), opacity .3s; position: relative; }
.swipe-dot::after { content: ""; position: absolute; inset: -12px -6px; } /* larger touch target */
.swipe-dot[aria-current="true"] { width: 26px; opacity: 1; }
.swipe-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; background: none; color: inherit; cursor: pointer; opacity: .9; }
.swipe-arrow:disabled { opacity: .3; cursor: default; }
.swipe-count { min-width: 4.5rem; text-align: center; font-family: var(--f-sans); font-weight: 600; font-size: .95rem; }

@media (max-width: 760px) {
  [data-swipe] {
    display: flex !important; grid-template-columns: none !important; gap: .85rem !important;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1); padding: .3rem var(--gutter) .4rem; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; border-top: 0 !important;
  }
  [data-swipe]::-webkit-scrollbar { display: none; }
  [data-swipe] > * { position: relative; flex: 0 0 84%; scroll-snap-align: start; min-width: 0; }
  /* grid columns that hold a swipe row must be allowed to shrink, or the row widens the page */
  .np-intro > *, .connect-grid > *, .book-body > *, .endorse-grid, .about-intro > * { min-width: 0; }
  [data-swipe] > .reveal { opacity: 1 !important; transform: none !important; }
  [data-swipe]:focus-visible { outline-offset: -2px; }

  /* Home: praise quotes inside the back-cover panel */
  .jacket { padding-bottom: 2rem; }
  .jacket .praise__list { margin-inline: calc(var(--jp) * -1); padding-inline: var(--jp); scroll-padding-inline: var(--jp); }
  .jacket .praise__list > * { flex-basis: 86%; }
  .praise__item, .praise__item:nth-child(odd), .praise__item:nth-child(-n+3) { border: 0; padding: .6rem .2rem 0; }
  .praise__item + .praise__item { border-left: 1px solid rgba(140, 29, 24, .22) !important; padding-left: 1rem; }
  .jacket .swipe-nav { color: var(--maroon); }
  .jacket__foot { margin-top: 1.4rem; font-size: 1.02rem; }

  /* Inside the Book: chapter cards */
  .chapters > .chapter { display: block; padding: 1.4rem 1.3rem 1.5rem; background: #fffaf0; border: 1px solid rgba(156, 122, 50, .35); border-top: 3px solid var(--gilt); }
  .chapters .chapter__n { display: block; margin-bottom: .6rem; font-size: 2rem; }

  /* Newspaper: story cards and timeline cards */
  .timeline::before { display: none; }
  .timeline > li { display: block; flex-basis: 72%; padding: 1.3rem 1.2rem 1.4rem; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); }
  .timeline > li::before { position: static; display: block; margin: 0 0 .8rem; }
  .timeline time { display: block; text-align: left; margin-bottom: .4rem; }
  .timeline p { font-size: 1.02rem; }
  .np-why { margin-top: 2.5rem; }

  /* Testimonials */
  .endorse-card figure { padding: 1.6rem 1.4rem 1.4rem; }
  .endorse-card blockquote p { font-size: 1.28rem; }
  .voices-grid > .voice { flex-basis: 82%; }

  /* Book formats: one compact row per format */
  .formats__options { display: grid; grid-template-columns: 1fr !important; gap: .55rem; }
  .format-card { flex-direction: row; align-items: stretch; }
  .format-card:hover { transform: none; }
  .format-card__pick { grid-template-columns: 1fr auto; column-gap: .8rem; align-content: center; padding: .8rem .9rem; }
  .format-card__top { grid-column: 1; padding-right: 0; margin: 0; }
  .format-card__name { font-size: 1.2rem; }
  .format-card__note { grid-column: 1; font-size: .84rem; }
  .format-card__isbn { display: none; }
  .format-card__price { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; font-size: 1.15rem; }
  .format-card:has(input:checked) .format-card__pick::after { display: none; }
  .format-card__buy { flex: none; align-self: center; margin: 0 .6rem 0 0 !important; padding: .55rem .75rem !important; font-size: .88rem !important; }
  .format-card__buy-pre { display: none; }
  .formats__cta { margin-top: 1rem; }
  .formats__cta .btn { min-height: 52px; }
  .formats__note { font-size: .86rem; }

  /* Author photo: smaller so the words start sooner */
  .author__photo .frame, .about-intro .frame { max-width: 250px; margin: 0 auto .5rem; }
  .author__grid { gap: 2rem; }

  /* Footer: denser */
  .site-footer__crest { padding-top: 2.6rem; padding-bottom: 1.6rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; padding-top: 2rem; padding-bottom: 2rem; }
  .site-footer__about, .site-footer__grid > .site-footer__col:last-child { grid-column: 1 / -1; }
  .site-footer ul { gap: .35rem; }
  .site-footer__about p { margin-top: .6rem; }
}

/* ==========================================================================
   Tricolour accents (kept small: a band, a progress line, one faded flag)
   ========================================================================== */
.tricolour { height: 4px; background: linear-gradient(90deg, var(--tc-saffron) 0 33.33%, var(--tc-white) 33.33% 66.66%, var(--tc-green) 66.66% 100%); }

/* The waving flag from the previous site, faded, behind "The Book" on the homepage */
.book-feature::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../img/tricolour-flag.webp") center 40% / cover no-repeat; opacity: .9; }

/* ==========================================================================
   Phone menu details
   ========================================================================== */
.nav-extras, .nav-deva { display: none; }
@media (max-width: 1024px) {
  .primary-nav::before { content: ""; position: absolute; left: 0; right: 0; top: var(--header-h); height: 3px; background: linear-gradient(90deg, var(--tc-saffron) 0 33.33%, var(--tc-white) 33.33% 66.66%, var(--tc-green) 66.66% 100%); opacity: .9; }
  .primary-nav { justify-content: flex-start; padding-top: calc(var(--header-h) + 1.6rem); gap: 1.6rem; }
  .nav-extras { display: grid; gap: .55rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); }
  .nav-extras a { display: inline-flex; align-items: center; gap: .65rem; min-height: 40px; font-family: var(--f-sans); font-size: 1rem; color: var(--on-dark-muted); text-decoration: none; }
  .nav-extras .icon { color: var(--gilt); }
  .nav-deva { display: block; margin: auto 0 0; font-family: var(--f-deva); font-size: 2.6rem; line-height: 1.2; color: rgba(230, 198, 124, .22); }
}

/* ==========================================================================
   Phone polish
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__deva { display: none; }          /* the cover in the photo already carries the Devanagari title */
  .hero__copy { margin-top: 1.4rem; }
}
@media (max-width: 760px) {
  :root { --section: 3.6rem; }
  .section-h { font-size: clamp(2rem, 8.4vw, 2.5rem); }
  .lead { font-size: 1.08rem; }
  .hero__title-main { font-size: 2.5rem; }
  .hero__tagline { margin-top: 1rem; }
  .hero__actions { margin-top: 1.4rem; }
  .hero { padding-bottom: 2.8rem; }
  .book-feature__visual { display: none; } /* the banner already shows the book large */
  .book-feature::after { background-position: 30% 0; background-size: auto 70%; opacity: .75; }
  .pull-line { font-size: 1.45rem; }
  .praise { padding: 3rem 0; }
  .jacket { padding-top: 3rem; }
  .np-feature__img img { width: min(250px, 66vw); }
  .np-feature__img::before { width: 90px; height: 22px; top: -10px; }
  .mini-timeline { margin: 1.4rem 0 1.8rem; }
  .author__photo .frame { max-width: 230px; }
  .donate-strip { padding: 2.6rem 0; }
  .site-footer__deva { font-size: 2.4rem; }
  .site-footer__line { font-size: 1.05rem; }
  .page-hero { padding-top: calc(var(--header-h) + 2.2rem); padding-bottom: 2.4rem; }
  .page-hero__title { font-size: clamp(2.3rem, 10vw, 2.9rem); }
  .page-hero__sub { font-size: 1.08rem; }
  .book-hero { padding-top: calc(var(--header-h) + 1.4rem); padding-bottom: 3rem; }
  .book-stage { min-height: 360px; }
  .book-stage__item img { max-height: 340px; }
  .book-stage__item--ebook img { max-height: 310px; }
  .book-hero .crumbs { margin-bottom: .8rem; }
  .book-hero__title { font-size: 2.3rem; }
  main { padding-bottom: 0; }
}
@media (max-width: 760px) { .author__photo .frame, .about-intro .frame { margin-inline: auto !important; } }
/* Format icons must never shrink when the format name is long */
.format-card__icon, .format-card__icon svg { flex: none; }
.format-card__top { min-width: 0; }
@media (max-width: 760px) { .book-feature::after { opacity: 1; } }
/* Selected-format tick sits on the card corner, clear of the format name */
.format-card__top { padding-right: 0; }
.format-card:has(input:checked) .format-card__pick::after { top: -9px; right: -9px; width: 22px; height: 22px; box-shadow: 0 0 0 3px var(--paper-light); z-index: 2; }
.book-hero .format-card:has(input:checked) .format-card__pick::after, .np-feature .format-card:has(input:checked) .format-card__pick::after { box-shadow: 0 0 0 3px var(--ink); }

/* Faded tricolour flag behind the first light section of every inner page (under the title banner).
   Sized to the top of the section and faded out downward, so long pages stay clean below it. */
.page-hero + .section.paper::after, .book-hero + .section.paper::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: min(1100px, 100%); z-index: -1; pointer-events: none;
  background: url("../img/tricolour-flag.webp") center top / max(100%, 1200px) auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  opacity: .85;
}
@media (max-width: 760px) {
  .page-hero + .section.paper::after, .book-hero + .section.paper::after { height: min(760px, 100%); background-size: auto 620px; background-position: 35% top; }
}

/* ==========================================================================
   Phone refinement (final): more breathing room, larger type and images.
   Placed last so it settles the earlier compact phone rules.
   ========================================================================== */
@media (max-width: 760px) {
  :root { --gutter: 1.5rem; --section: 4.75rem; }
  body { font-size: 1.06rem; line-height: 1.75; }
  .section-h { font-size: clamp(2.25rem, 9.4vw, 2.75rem); margin-bottom: .6em; }
  .lead { font-size: 1.14rem; line-height: 1.7; }
  .btn--lg { min-height: 52px; }

  /* Banner */
  .hero { padding-bottom: 3.6rem; }
  .hero__copy { margin-top: 2rem; }
  .hero__title-main { font-size: 2.75rem; }
  .hero__title-sub { font-size: 1.35rem; }
  .hero__tagline { margin: 1.3rem 0 .9rem; font-size: 1.22rem; }
  .hero__actions { margin-top: 1.8rem; gap: .8rem; }

  /* The Book (home) */
  .pull-line { font-size: 1.65rem; margin-bottom: 1.5rem; }
  .book-feature .formats { margin-top: 2.2rem; }
  .book-feature__more { margin-top: 1.6rem; }

  /* Format rows: roomier */
  .formats__legend { margin-bottom: 1.1rem; }
  .formats__options { gap: .75rem; }
  .format-card__pick { padding: 1.05rem 1.1rem; }
  .format-card__name { font-size: 1.32rem; }
  .format-card__note { font-size: .9rem; margin-top: .1rem; }
  .format-card__price { font-size: 1.22rem; }
  .format-card__buy { margin-right: .75rem !important; padding: .65rem .9rem !important; font-size: .92rem !important; }
  .formats__cta { margin-top: 1.3rem; }
  .formats__note { margin-top: .9rem; }

  /* Praise panel */
  .praise { padding: 4.5rem 0 3.6rem; }
  .jacket { padding-top: 3.6rem; padding-bottom: 2.4rem; }
  .praise__item blockquote p { font-size: 1.18rem; line-height: 1.55; }
  .swipe-nav { margin-top: 1.3rem; }

  /* Author, newspaper, donate (home) */
  .author__photo .frame, .about-intro .frame { max-width: 300px; margin-bottom: 1.4rem !important; }
  .author__grid { gap: 2.4rem; }
  .note-quote { margin: 2rem 0 2.2rem; }
  .np-feature__img img { width: min(300px, 76vw); }
  .np-feature__grid { gap: 2.6rem; }
  .mini-timeline { margin: 1.8rem 0 2.2rem; }
  .mini-timeline li { padding: .7rem 0 .7rem 1.5rem; }
  .donate-strip { padding: 3.6rem 0; }
  .donate-card { padding: 2.2rem 1.6rem; }

  /* Inner page title banners */
  .page-hero { padding-top: calc(var(--header-h) + 2.8rem); padding-bottom: 3.2rem; }
  .page-hero__title { font-size: clamp(2.5rem, 10.5vw, 3rem); }
  .page-hero__sub { margin-top: 1rem; font-size: 1.12rem; line-height: 1.55; }

  /* Book page */
  .book-hero { padding-top: calc(var(--header-h) + 2rem); padding-bottom: 3.6rem; }
  .book-hero__grid { gap: 2.2rem; }
  .book-stage { min-height: 410px; }
  .book-stage__item img { max-height: 380px; }
  .book-stage__item--ebook img { max-height: 350px; }
  .book-hero__title { font-size: 2.55rem; }
  .book-hero__tagline { margin-bottom: 2rem; }
  .excerpt-card { padding: 1.8rem 1.5rem; }
  .side-card { padding: 1.5rem 1.3rem; }

  /* Newspaper page: story reads as a simple stacked column */
  .np-sections { margin-top: 2.4rem; }
  .np-sections article { padding: 1.8rem 0; }
  .np-sections h2 { font-size: 1.7rem; }
  .np-figure { margin-top: 1rem; }
  .np-figure img { width: min(320px, 82vw); margin: 0 auto; }

  /* Inside the Book: also-included cards stacked with air */
  .also { gap: 1rem; }
  .also > div { padding: 1.5rem 1.4rem; }

  /* Swipe cards: a touch wider so text has room */
  [data-swipe] > * { flex-basis: 86%; }
  .chapters > .chapter { padding: 1.6rem 1.4rem 1.7rem; }
  .timeline > li { flex-basis: 76%; padding: 1.5rem 1.3rem; }

  /* Forms and cards */
  .form-card { padding: 1.8rem 1.4rem; }
  .give { padding: 2rem 1.5rem; }
  .contact-card { padding: 1.2rem 1.2rem; }

  /* Footer */
  .site-footer__crest { padding-top: 3.2rem; padding-bottom: 2rem; }
  .site-footer__deva { font-size: 2.6rem; }
  .site-footer__grid { gap: 2.4rem 1.4rem; padding-top: 2.6rem; padding-bottom: 2.6rem; }
  .site-footer ul { gap: .55rem; }
  .site-footer__base { padding-top: 1.4rem; padding-bottom: 1.8rem; }
}
@media (max-width: 380px) {
  :root { --gutter: 1.25rem; }
  .hero__title-main { font-size: 2.4rem; }
  .format-card__buy { padding: .6rem .7rem !important; margin-right: .6rem !important; }
  .format-card__name { font-size: 1.2rem; }
}
