/* ==========================================================================
   Sunil Bhatambrekar — site styles
   Design tokens → base → layout → components → pages → utilities
   ========================================================================== */

:root {
  /* Paper & ink */
  --paper: #FBF7EF;
  --paper-2: #F4EDE0;
  --paper-3: #EADFCB;
  --card: #FFFDF8;
  --ink: #1E1A16;
  --ink-2: #463E36;
  --ink-3: #6B6155;
  --line: #E3D8C4;
  --line-2: #D3C5AC;

  /* Accent (one action colour) + ornament */
  --maroon: #8A1C2B;
  --maroon-700: #6E1522;
  --maroon-50: #F6E7E6;
  --gold: #B07F24;
  --gold-soft: #E9D3A3;
  --night: #1A1411;
  --night-2: #2A211C;

  /* Navrang — the nine colours of his Navratri column */
  --nr-1: #6B3FA0; --nr-2: #EDE8DD; --nr-3: #E07A9B; --nr-4: #1F5FAD; --nr-5: #C0282D;
  --nr-6: #E8812A; --nr-7: #2F8A4C; --nr-8: #7D7F83; --nr-9: #E6B422;
  --navrang: linear-gradient(90deg, var(--nr-1) 0 11.11%, var(--nr-2) 0 22.22%, var(--nr-3) 0 33.33%, var(--nr-4) 0 44.44%, var(--nr-5) 0 55.55%, var(--nr-6) 0 66.66%, var(--nr-7) 0 77.77%, var(--nr-8) 0 88.88%, var(--nr-9) 0 100%);

  /* Type */
  --font-display: "Fraunces", "Tiro Devanagari Marathi", Georgia, serif;
  --font-deva: "Tiro Devanagari Marathi", "Mukta", serif;
  --font-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-base: 1.0625rem; --fs-md: 1.25rem;
  --fs-lg: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --fs-xl: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  --fs-2xl: clamp(2.4rem, 1.8rem + 2.8vw, 4rem);
  --fs-3xl: clamp(2.8rem, 2rem + 3.8vw, 5.2rem);

  /* Space (8-based) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem;
  --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  --radius-sm: 6px; --radius: 12px; --radius-lg: 20px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(40, 28, 16, .06), 0 1px 1px rgba(40, 28, 16, .04);
  --shadow: 0 10px 30px -12px rgba(40, 28, 16, .22), 0 2px 6px rgba(40, 28, 16, .06);
  --shadow-lg: 0 30px 60px -20px rgba(40, 28, 16, .35), 0 8px 20px -8px rgba(40, 28, 16, .15);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --measure: 68ch;
  --header-h: 76px;
}

/* ---------- 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; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* navrang signature stripe */
  content: ""; position: fixed; inset: 0 0 auto 0; height: 4px; background: var(--navrang); z-index: 60;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 var(--s-4); letter-spacing: -.01em; text-wrap: balance; font-variation-settings: "opsz" 96; }
p { margin: 0 0 var(--s-4); }
.deva, :lang(mr) { font-family: var(--font-deva); }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: var(--s-4); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2rem, 780px); margin-inline: auto; }
.section { padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.section-sm { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--night); color: #F3EBDD; }
.section-dark .eyebrow, .cta-band .eyebrow { color: var(--gold-soft); }
.section-dark .lead, .section-dark p { color: #D9CDBA; }
.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.stack > * + * { margin-top: var(--s-4); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap; }
.section-head > div { max-width: 640px; }
.section-head h2 { font-size: var(--fs-xl); margin-bottom: var(--s-3); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--maroon);
  margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--navrang); border-radius: 2px; }
.eyebrow .deva { letter-spacing: 0; text-transform: none; font-size: 1rem; font-weight: 400; }
.lead { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--maroon); --fg: #fff; --bd: var(--maroon);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--radius-pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font: 600 var(--fs-sm)/1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, color .18s, border-color .18s;
}
.btn:hover { --bg: var(--maroon-700); --bd: var(--maroon-700); box-shadow: 0 8px 20px -8px rgba(138, 28, 43, .55); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-2); }
.btn-ghost:hover { --bg: var(--card); --fg: var(--ink); --bd: var(--ink); box-shadow: var(--shadow-sm); }
.section-dark .btn-ghost, .cta-band .btn-ghost { --fg: #F3EBDD; --bd: rgba(243, 235, 221, .35); }
.section-dark .btn-ghost:hover, .cta-band .btn-ghost:hover { --bg: rgba(255, 255, 255, .06); --fg: #fff; --bd: #F3EBDD; }
.btn-sm { min-height: 40px; padding: 0 var(--s-4); font-size: var(--fs-xs); }
.btn svg { width: 18px; height: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--maroon); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 247, 239, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(40, 28, 16, .35); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; min-width: 0; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ink); color: var(--gold-soft); font: 400 1.35rem/1 var(--font-deva); position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(var(--nr-1), var(--nr-3), var(--nr-4), var(--nr-5), var(--nr-6), var(--nr-9), var(--nr-7), var(--nr-8), var(--nr-1)); z-index: -1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font: 400 1.3rem/1.1 var(--font-deva); }
.brand-text span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav a {
  position: relative; padding: var(--s-2) var(--s-3); border-radius: var(--radius-pill);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--ink); background: var(--paper-3); }
.nav a[aria-current="page"] { color: var(--maroon); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--maroon); }
.header-cta { display: flex; align-items: center; gap: var(--s-3); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card);
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-5) var(--s-5) var(--s-8); background: var(--paper); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font: 500 1.5rem/1.2 var(--font-display); padding: var(--s-4) var(--s-2); border-radius: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav a:hover { background: transparent; color: var(--maroon); }
  .nav a[aria-current="page"]::after { left: auto; right: var(--s-2); top: 50%; bottom: auto; margin: -3px 0 0; width: 8px; height: 8px; }
  .nav .btn { display: inline-flex; margin-top: var(--s-6); font: 600 1rem/1 var(--font-body); color: #fff; border-bottom: 0; border-radius: var(--radius-pill); padding: 0 var(--s-5); }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1181px) { .nav .btn { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(4rem, 3rem + 5vw, 7rem); overflow: hidden; }
.hero::before { /* soft paper glow */
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(233, 211, 163, .55), transparent 70%); pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-kicker { font: 400 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1.3 var(--font-deva); color: var(--maroon); margin-bottom: var(--s-3); }
.hero h1 { font-size: var(--fs-3xl); font-weight: 500; letter-spacing: -.025em; margin-bottom: var(--s-5); }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--maroon); }
.hero .lead { max-width: 34rem; margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-7); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font: 500 2.2rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: var(--s-2); }

.hero-visual { position: relative; aspect-ratio: 4 / 5; max-width: 480px; justify-self: center; width: 100%; }
.hero-portrait {
  position: absolute; inset: 0 12% 8% 6%; border-radius: 240px 240px var(--radius-lg) var(--radius-lg); overflow: hidden;
  background: var(--paper-3); box-shadow: var(--shadow-lg);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-portrait::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); border-radius: inherit; }
.hero-arch { position: absolute; inset: -14px 8% 4% 2%; border: 1.5px solid var(--gold); border-radius: 260px 260px 24px 24px; opacity: .55; }
.hero-book {
  position: absolute; width: 34%; border-radius: 4px 8px 8px 4px; box-shadow: var(--shadow-lg); overflow: hidden;
  transition: transform .5s var(--ease);
}
.hero-book img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; }
.hero-book.b1 { right: 0; bottom: 14%; transform: rotate(6deg); z-index: 2; }
.hero-book.b2 { right: 18%; bottom: -2%; transform: rotate(-5deg); width: 30%; z-index: 3; }
.hero-visual:hover .b1 { transform: rotate(9deg) translateY(-8px); }
.hero-visual:hover .b2 { transform: rotate(-8deg) translateY(-6px); }
.hero-badge {
  position: absolute; left: -4%; bottom: 18%; z-index: 4; background: var(--card); border-radius: var(--radius);
  padding: var(--s-3) var(--s-4); box-shadow: var(--shadow); display: flex; gap: var(--s-3); align-items: center; max-width: 250px;
}
.hero-badge svg { width: 34px; height: 34px; color: var(--gold); flex: none; }
.hero-badge strong { display: block; font-size: var(--fs-sm); line-height: 1.25; }
.hero-badge span { font-size: var(--fs-xs); color: var(--ink-3); }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 400px; order: -1; }
  .hero-badge { left: 0; }
}

/* ---------- Marquee of genres ---------- */
.ribbon { background: var(--ink); color: var(--gold-soft); overflow: hidden; padding-block: var(--s-4); }
.ribbon-track { display: flex; gap: var(--s-7); width: max-content; animation: marquee 40s linear infinite; }
.ribbon-track span { font: 400 1.35rem/1 var(--font-deva); white-space: nowrap; display: inline-flex; align-items: center; gap: var(--s-7); }
.ribbon-track span::after { content: "✦"; color: var(--maroon-50); opacity: .5; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Book cards ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: var(--s-7) var(--s-5); }
.book-card { text-decoration: none; display: flex; flex-direction: column; gap: var(--s-3); }
.book-cover {
  position: relative; aspect-ratio: 5 / 8; border-radius: 3px 8px 8px 3px; overflow: hidden; background: var(--paper-3);
  box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.book-cover::before { /* spine highlight */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.22), rgba(255,255,255,.18) 45%, rgba(0,0,0,.08));
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card:hover .book-cover, .book-card:focus-visible .book-cover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.book-card:focus-visible { outline: none; }
.book-card:focus-visible .book-cover { outline: 3px solid var(--gold); outline-offset: 4px; }
.book-meta .genre { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--maroon); font-weight: 600; }
.book-meta h3 { font: 400 1.35rem/1.2 var(--font-deva); margin: var(--s-1) 0 0; }
.book-meta p { font-size: var(--fs-sm); color: var(--ink-3); margin: 0; }
.tag {
  display: inline-flex; align-items: center; gap: var(--s-1); padding: .2rem .65rem; border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; background: var(--maroon-50); color: var(--maroon);
}
.tag-gold { background: #F5EAD2; color: #7A5716; }
.book-cover .tag { position: absolute; top: var(--s-2); right: var(--s-2); z-index: 2; background: rgba(255,253,248,.94); }

/* ---------- Praise (quotes) ---------- */
.praise { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--s-5); }
.quote-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4);
}
.section-dark .quote-card { background: var(--night-2); border-color: rgba(233, 211, 163, .14); }
.quote-card::before { content: "“"; font: 400 5rem/0.6 var(--font-display); color: var(--gold); height: 2rem; }
.quote-card blockquote { margin: 0; font: 400 1.18rem/1.7 var(--font-deva); }
.section-dark .quote-card blockquote { color: #F3EBDD; }
.quote-card figcaption { margin-top: auto; font-size: var(--fs-sm); }
.quote-card figcaption strong { display: block; font-family: var(--font-deva); font-weight: 400; font-size: 1.05rem; }
.quote-card figcaption span { color: var(--ink-3); }
.section-dark .quote-card figcaption span { color: #B9AC97; }

/* ---------- Navrang ---------- */
.navrang-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: var(--s-2); min-height: 420px; }
.nr-card {
  --c: var(--nr-1); --t: #fff;
  position: relative; border-radius: var(--radius); background: var(--c); color: var(--t); text-decoration: none; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-4) var(--s-3);
  transition: flex-grow .4s var(--ease), transform .3s var(--ease), box-shadow .3s;
}
.nr-card:hover, .nr-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.nr-card .num { position: absolute; top: var(--s-3); left: var(--s-3); font: 500 .85rem/1 var(--font-display); opacity: .75; }
.nr-card .t-mr { font: 400 1.35rem/1.15 var(--font-deva); writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; margin-bottom: var(--s-3); }
.nr-card .t-en { font-size: .78rem; line-height: 1.3; opacity: .92; }
@media (min-width: 901px) {
  .navrang-grid { display: flex; }
  .nr-card { flex: 1 1 0; min-width: 0; }
  .nr-card .t-en { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; white-space: normal; }
  .nr-card:hover, .nr-card:focus-visible { flex-grow: 2.6; }
  .nr-card:hover .t-en, .nr-card:focus-visible .t-en { opacity: .95; transform: none; }
}
@media (max-width: 900px) {
  .navrang-grid { grid-template-columns: repeat(3, 1fr); min-height: 0; }
  .nr-card { aspect-ratio: 1; }
  .nr-card .t-mr { writing-mode: horizontal-tb; transform: none; }
}

/* ---------- Post cards ---------- */
.post-card {
  --c: var(--maroon);
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.post-card .swatch { height: 6px; background: var(--c); }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.post-card .meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); align-items: center; font-size: var(--fs-xs); color: var(--ink-3); }
.post-card h3 { font: 400 1.6rem/1.2 var(--font-deva); margin: 0; }
.post-card .en { font: italic 400 1rem/1.3 var(--font-display); color: var(--ink-2); }
.post-card p { font-family: var(--font-deva); font-size: 1rem; color: var(--ink-2); margin: var(--s-2) 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more { margin-top: auto; padding-top: var(--s-3); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---------- Filters / search ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; margin-bottom: var(--s-7); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4); border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500;
  text-decoration: none; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"], .chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .count { font-size: .75rem; opacity: .7; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input { padding-left: 2.6rem; border-radius: var(--radius-pill); }
.search svg { position: absolute; left: .95rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.field .hint, .field .error { font-size: var(--fs-xs); }
.field .error { color: #A1192A; display: flex; gap: var(--s-1); align-items: center; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: .7rem 1rem; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  background: var(--card); color: var(--ink); font: 400 1rem/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 160px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(138, 28, 43, .12); }
[aria-invalid="true"] { border-color: #A1192A !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.alert { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); border-radius: var(--radius); font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alert-ok { background: #E6F2E9; color: #1D5A31; border: 1px solid #BFDCC8; }
.alert-err { background: #FBE9E9; color: #8A1C2B; border: 1px solid #F0C6C8; }

/* ---------- Page header ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 2vw, 3.5rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: var(--fs-2xl); font-weight: 500; margin-bottom: var(--s-3); }
.page-hero .mr { font: 400 clamp(1.3rem, 1.1rem + .8vw, 1.8rem)/1.3 var(--font-deva); color: var(--maroon); margin-bottom: var(--s-4); display: block; }
.page-hero .lead { max-width: 44rem; }
.page-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1.5px solid var(--gold); opacity: .25; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-xs); color: var(--ink-3); margin-bottom: var(--s-5); list-style: none; padding: 0; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); opacity: .6; }

/* ---------- Article (post) ---------- */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--ink); z-index: 61; }
.article-hero { padding-block: clamp(3rem, 2rem + 4vw, 5rem) var(--s-7); text-align: center; position: relative; }
.article-hero .swatch-lg { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto var(--s-5); background: var(--c, var(--maroon)); box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--line-2); }
.article-hero h1 { font: 400 clamp(2.6rem, 2rem + 3vw, 4.4rem)/1.1 var(--font-deva); margin-bottom: var(--s-3); }
.article-hero .en { font: italic 400 var(--fs-md)/1.4 var(--font-display); color: var(--ink-2); margin-bottom: var(--s-5); }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-4); align-items: center; font-size: var(--fs-sm); color: var(--ink-3); }
.prose { font: 400 clamp(1.15rem, 1.08rem + .3vw, 1.3rem)/1.95 var(--font-deva); color: var(--ink); max-width: var(--measure); margin-inline: auto; }
.prose p { margin-bottom: 1.35em; }
.prose > p:first-of-type::first-letter { float: left; font-size: 4.2em; line-height: .85; padding: .08em .12em 0 0; color: var(--c, var(--maroon)); }
.prose blockquote { margin: 2em 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--c, var(--maroon)); background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0; }
.prose.size-lg { font-size: 1.42rem; } .prose.size-sm { font-size: 1.05rem; }
.article-figure { max-width: 900px; margin: 0 auto var(--s-7); }
.article-figure img { border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.article-figure figcaption { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; margin-top: var(--s-3); }
.reader-tools { position: sticky; top: calc(var(--header-h) + 12px); z-index: 5; display: flex; justify-content: center; margin-bottom: var(--s-6); }
.reader-tools .inner { display: inline-flex; gap: var(--s-1); padding: var(--s-1); background: rgba(255,253,248,.92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; font: 600 .9rem/1 var(--font-body); text-decoration: none; transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--paper-3); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.signoff { text-align: center; margin: var(--s-7) auto 0; max-width: var(--measure); }
.signoff .sig { font: 400 1.6rem/1 var(--font-deva); color: var(--maroon); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-8); }
.post-nav a { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.post-nav a:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.post-nav small { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.post-nav strong { font: 400 1.35rem/1.2 var(--font-deva); }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }

/* ---------- Book detail ---------- */
.book-detail { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.book-detail .covers { position: sticky; top: calc(var(--header-h) + 24px); }
.cover-flip { position: relative; perspective: 1600px; cursor: pointer; border: 0; padding: 0; background: none; width: 100%; }
.cover-flip .inner { position: relative; transition: transform .8s var(--ease); transform-style: preserve-3d; aspect-ratio: 5 / 8; }
.cover-flip.is-flipped .inner { transform: rotateY(180deg); }
.cover-flip .face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-3); }
.cover-flip .face img { width: 100%; height: 100%; object-fit: cover; }
.cover-flip .back { transform: rotateY(180deg); }
.cover-hint { display: flex; justify-content: center; gap: var(--s-2); align-items: center; font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s-4); }
.cover-hint svg { width: 16px; height: 16px; }
.book-detail h1 { font: 400 clamp(2.6rem, 2rem + 3vw, 4.2rem)/1.1 var(--font-deva); margin-bottom: var(--s-2); }
.book-detail .en-title { font: italic 400 var(--fs-lg)/1.3 var(--font-display); color: var(--ink-2); margin-bottom: var(--s-5); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: var(--s-6) 0; background: var(--card); }
.facts div { padding: var(--s-4) var(--s-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-1); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.foreword { margin: var(--s-7) 0; padding: var(--s-6); border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--line); }
.foreword blockquote { margin: 0 0 var(--s-4); font: 400 1.2rem/1.85 var(--font-deva); }
.foreword cite { font-style: normal; font-size: var(--fs-sm); color: var(--ink-3); }
.foreword cite strong { color: var(--ink); font-family: var(--font-deva); font-weight: 400; font-size: 1.05rem; }
.toc { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.toc li { font: 400 1.05rem/1 var(--font-deva); padding: .55rem .9rem; border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--line); }
@media (max-width: 860px) { .book-detail { grid-template-columns: 1fr; } .book-detail .covers { position: static; max-width: 320px; margin-inline: auto; width: 100%; } }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.about-photo .stamp { position: absolute; right: -18px; bottom: 28px; width: 130px; height: 130px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; text-align: center; font: 400 1.05rem/1.2 var(--font-deva); box-shadow: var(--shadow); padding: var(--s-4); transform: rotate(-8deg); }
@media (max-width: 860px) { .about-intro { grid-template-columns: 1fr; } .about-photo { max-width: 420px; } .about-photo .stamp { right: 8px; } }
.facets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--s-5); }
.facet { padding: var(--s-6); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.facet .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--maroon-50); color: var(--maroon); margin-bottom: var(--s-4); }
.facet .ico svg { width: 26px; height: 26px; }
.facet h3 { font-size: 1.3rem; margin-bottom: var(--s-2); }
.facet p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--navrang); background: linear-gradient(var(--nr-1), var(--nr-4), var(--nr-7), var(--nr-9), var(--nr-6), var(--nr-5)); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 var(--s-6) var(--s-7); }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.timeline .when { font: 600 var(--fs-xs)/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--maroon); }
.timeline h3 { font-size: 1.25rem; margin: var(--s-2) 0 var(--s-1); }
.timeline p { color: var(--ink-2); margin: 0; font-size: var(--fs-sm); }

/* ---------- Art / gallery / lightbox ---------- */
.masonry { columns: 3 300px; column-gap: var(--s-5); }
.masonry > * { break-inside: avoid; margin-bottom: var(--s-5); }
.frame { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); cursor: zoom-in; padding: 0; width: 100%; text-align: left; font: inherit; color: inherit; }
.frame img { width: 100%; transition: transform .6s var(--ease); }
.frame:hover img { transform: scale(1.03); }
.frame figcaption, .frame .cap { padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); color: var(--ink-2); border-top: 1px solid var(--line); background: var(--card); position: relative; }
.frame .zoom { position: absolute; top: var(--s-3); right: var(--s-3); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,253,248,.9); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.frame:hover .zoom, .frame:focus-visible .zoom { opacity: 1; }
.frame .zoom svg { width: 18px; height: 18px; }
.cartoon-frame { background: #fff; padding: var(--s-3); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(18, 13, 10, .94); display: none; align-items: center; justify-content: center; padding: var(--s-7) var(--s-4); }
.lightbox.is-open { display: flex; animation: fade .2s var(--ease); }
.lightbox img { max-height: calc(100vh - 160px); max-width: min(1200px, 100%); width: auto; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox .lb-cap { position: absolute; left: 0; right: 0; bottom: var(--s-5); text-align: center; color: #E9DFCF; font-size: var(--fs-sm); padding-inline: var(--s-8); }
.lightbox .lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .15s; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.16); }
.lightbox .lb-btn svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: var(--s-4); right: var(--s-4); }
.lightbox .lb-prev { left: var(--s-4); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--s-4); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: var(--s-4); transform: none; } .lightbox .lb-cap { bottom: 84px; padding-inline: var(--s-4); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Press ---------- */
.pub-card { display: grid; grid-template-columns: 150px 1fr; gap: var(--s-5); padding: var(--s-5); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); transition: box-shadow .25s, border-color .25s; }
.pub-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.pub-card .pc { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 3 / 4; background: var(--paper-2); }
.pub-card .pc img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pub-card h3 { font-size: 1.3rem; margin-bottom: var(--s-2); }
.pub-card .mag { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--maroon); font-weight: 600; margin-bottom: var(--s-2); display: block; }
.pub-card p { font-size: var(--fs-sm); color: var(--ink-2); }
.pub-card .actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
@media (max-width: 560px) { .pub-card { grid-template-columns: 1fr; } .pub-card .pc { max-width: 200px; } }
.clip-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-4); }
.clip { --c: var(--maroon); border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.clip:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.clip .im { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 4px solid var(--c); background: #fff; }
.clip .im img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.clip .tx { padding: var(--s-3) var(--s-4); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.clip .tx strong { font: 400 1.2rem/1.2 var(--font-deva); }
.clip .tx span { font-size: var(--fs-xs); color: var(--ink-3); }

/* ---------- Awards ---------- */
.award { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.award + .award { margin-top: var(--s-9); }
.award:nth-of-type(even) .award-media { order: 2; }
.award-media { position: relative; }
.award-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.award-year { font: 500 5rem/1 var(--font-display); color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: var(--s-3); font-variant-numeric: tabular-nums; }
.award h2 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.award .mr { font: 400 1.4rem/1.3 var(--font-deva); color: var(--maroon); display: block; margin-bottom: var(--s-4); }
@media (max-width: 860px) { .award { grid-template-columns: 1fr; } .award:nth-of-type(even) .award-media { order: 0; } }
.award-card { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.award-card .medal { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #F3DDA2, #B07F24); color: #4A3308; box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.award-card .medal svg { width: 26px; height: 26px; }
.award-card h3 { font-size: 1.15rem; margin: 0 0 var(--s-1); }
.award-card p { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }

/* ---------- Video ---------- */
.video-card { display: flex; flex-direction: column; gap: var(--s-3); }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .25s, transform .6s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt .play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(255,253,248,.95); display: grid; place-items: center; color: var(--maroon); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.yt:hover .play { transform: scale(1.08); }
.yt .play svg { width: 26px; height: 26px; margin-left: 4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { font-size: 1.15rem; margin: 0; }
.video-card p { font-size: var(--fs-sm); color: var(--ink-3); margin: 0; }

/* ---------- CTA / newsletter ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--night); color: #F3EBDD; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-7); align-items: center; }
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--navrang); }
.cta-band h2 { font-size: var(--fs-xl); }
.cta-band p { color: #D9CDBA; }
.newsletter { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.newsletter input { flex: 1 1 220px; background: rgba(255,255,255,.06); border-color: rgba(243,235,221,.25); color: #fff; }
.newsletter input::placeholder { color: #A99C88; }
.newsletter input:focus { border-color: var(--gold-soft); box-shadow: 0 0 0 4px rgba(233,211,163,.15); }
.newsletter .msg { flex-basis: 100%; font-size: var(--fs-sm); min-height: 1.4em; margin: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-card { padding: var(--s-6); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
.contact-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact-list .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--maroon-50); color: var(--maroon); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; color: var(--maroon); }
.topics { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #CDBFA9; padding-top: var(--s-9); position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--navrang); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s-7); padding-bottom: var(--s-8); }
.site-footer h2 { font: 400 2rem/1.1 var(--font-deva); color: #F3EBDD; margin-bottom: var(--s-3); }
.site-footer h3 { font: 600 var(--fs-xs)/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: var(--s-5); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.site-footer a { color: #E5D9C6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { font-size: var(--fs-sm); }
.socials { display: flex; gap: var(--s-2); margin-top: var(--s-5); }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(243,235,221,.2); transition: background-color .15s, border-color .15s; }
.socials a:hover { background: rgba(255,255,255,.08); border-color: #F3EBDD; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(243,235,221,.12); padding-block: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; font-size: var(--fs-xs); color: #A99C88; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pagination / empty ---------- */
.pagination { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-8); flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 var(--s-3); display: grid; place-items: center; border-radius: var(--radius-pill); border: 1.5px solid var(--line-2); text-decoration: none; font-weight: 600; background: var(--card); }
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { text-align: center; padding: var(--s-9) var(--s-5); border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); background: var(--card); }
.empty svg { width: 48px; height: 48px; color: var(--gold); margin: 0 auto var(--s-4); }
.empty h3 { font-size: 1.4rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-5 { margin-top: var(--s-5); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.divider-ornament { display: flex; align-items: center; justify-content: center; gap: var(--s-4); color: var(--gold); margin: var(--s-7) auto; }
.divider-ornament::before, .divider-ornament::after { content: ""; width: 80px; height: 1px; background: var(--line-2); }

@media print {
  .site-header, .site-footer, .reader-tools, .post-nav, .progress, body::before { display: none !important; }
  body { background: #fff; }
}
.is-hidden { display: none !important; }
.contact-grid > *, .grid > *, .book-detail > * { min-width: 0; }
.contact-list a, .contact-list span { overflow-wrap: anywhere; }
.facets-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* ---------- Language toggle ---------- */
.lang-switch { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--paper-3); border: 1px solid var(--line); }
.lang-switch a {
  min-width: 44px; height: 34px; padding: 0 var(--s-3); display: inline-grid; place-items: center; border-radius: var(--radius-pill);
  font: 600 .8rem/1 var(--font-body); color: var(--ink-2); text-decoration: none; transition: background-color .15s, color .15s, box-shadow .15s;
}
.lang-switch a[lang="mr"] { font: 400 .95rem/1 var(--font-deva); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--card); color: var(--maroon); box-shadow: var(--shadow-sm); }
.lang-switch-mobile { display: none; }
@media (max-width: 1180px) {
  .lang-switch-mobile { display: inline-flex; align-self: flex-start; margin-top: var(--s-5); }
  .lang-switch-mobile a { height: 44px; min-width: 88px; font-size: 1rem; }
  .lang-switch-mobile a[lang="mr"] { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .site-header .container { gap: var(--s-2); }
  .brand-text span { display: none; }
  .brand-text strong { font-size: 1.1rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.15rem; }
  .header-cta { gap: var(--s-2); }
  .header-cta .lang-switch a { min-width: 40px; height: 32px; padding: 0 var(--s-2); }
  .nav-toggle { width: 44px; height: 44px; }
}

/* Marathi mode: Devanagari display face for headings, slightly larger body */
.lang-mr body { font-size: 1.1rem; }
.lang-mr h1, .lang-mr h2, .lang-mr h3, .lang-mr .hero h1 { font-family: var(--font-deva); font-weight: 400; letter-spacing: 0; line-height: 1.3; }
.lang-mr .hero h1 { font-size: clamp(2.4rem, 1.8rem + 3vw, 4.2rem); line-height: 1.2; }
.lang-mr .eyebrow { letter-spacing: .04em; font-size: .9rem; }
.lang-mr .hero-stats span, .lang-mr .facts dt, .lang-mr .post-nav small, .lang-mr .site-footer h3, .lang-mr .book-meta .genre, .lang-mr .pub-card .mag { letter-spacing: .02em; text-transform: none; font-size: .85rem; }
.lang-mr .btn { font-size: 1rem; }
.lang-mr .nav a { font-size: 1rem; }
.facts { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); } .facts dd { font-variant-numeric: tabular-nums; }
.lang-switch-mobile { display: none !important; }

/* ==========================================================================
   Hero — premium finish (same design, refined details)
   ========================================================================== */
.hero { padding-block: clamp(3.5rem, 2.5rem + 5vw, 7.5rem) clamp(4.5rem, 3.5rem + 5vw, 8rem);
  background: radial-gradient(1000px 640px at 78% 30%, rgba(233, 211, 163, .38), rgba(233, 211, 163, 0) 62%),
              linear-gradient(180deg, #FDFAF3 0%, var(--paper) 100%); }
.hero::before { opacity: .55; }
.hero .container { gap: clamp(3rem, 6vw, 6.5rem); }

/* Tagline with a fine gold rule */
.hero-kicker { display: inline-flex; align-items: center; gap: var(--s-4); font-size: clamp(1.25rem, 1.05rem + .8vw, 1.7rem); margin-bottom: var(--s-5); }
.hero-kicker::before { content: ""; width: 44px; height: 1px; background: var(--gold); }

/* Display-cut headline */
.hero h1 { font-variation-settings: "opsz" 144; font-weight: 500; letter-spacing: -.032em; line-height: 1.02; margin-bottom: var(--s-6); }
.hero h1 em { font-variation-settings: "opsz" 144; font-weight: 400; letter-spacing: -.02em; }
.hero .lead { font-size: clamp(1.1rem, 1.04rem + .3vw, 1.24rem); line-height: 1.7; color: var(--ink-2); max-width: 32rem; margin-bottom: var(--s-7); }

/* Buttons: a touch more presence */
.hero .btn { min-height: 54px; padding: 0 1.75rem; }
.hero .btn:not(.btn-ghost) { box-shadow: 0 14px 28px -16px rgba(138, 28, 43, .85); }
.hero .btn-ghost { --bd: var(--line-2); background: rgba(255, 253, 248, .6); }

/* Stats with hairline dividers */
.hero-stats { gap: 0; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.hero-stats div { padding: 0 clamp(1.25rem, .8rem + 1.5vw, 2.25rem); border-left: 1px solid var(--line); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { font-variation-settings: "opsz" 144; font-weight: 500; font-size: clamp(2.1rem, 1.8rem + 1vw, 2.6rem); color: var(--ink); }
.hero-stats span { margin-top: var(--s-2); letter-spacing: .12em; font-weight: 600; }

/* Portrait: white mat, hairline, gold arch */
.hero-portrait { inset: 2% 12% 9% 6%; background: #F1E7D8; border-radius: 260px 260px 20px 20px;
  box-shadow: 0 0 0 10px #FFFDF8, 0 0 0 11px var(--line-2), 0 50px 90px -40px rgba(70, 30, 20, .55), 0 18px 40px -20px rgba(70, 30, 20, .25); }
.hero-portrait img { object-position: 50% 16%; }
.hero-portrait::after { box-shadow: inset 0 -80px 80px -60px rgba(60, 30, 15, .22); }
.hero-arch { inset: -22px 5% 5% -1%; border: 1px solid var(--gold); border-radius: 300px 300px 30px 30px; opacity: .85; }

/* Books: spine highlight + softer, deeper shadow */
.hero-book { border-radius: 2px 6px 6px 2px; box-shadow: 0 4px 8px -2px rgba(30, 15, 10, .25), 0 28px 44px -18px rgba(30, 15, 10, .55); }
.hero-book::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.18) 50%, rgba(0,0,0,.05)); }
.hero-book.b1 { right: -2%; bottom: 17%; }
.hero-book.b2 { right: 17%; bottom: 1%; }

/* Award badge: real medal */
.hero-badge { left: -8%; bottom: 23%; padding: 12px 18px 12px 12px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255, 253, 248, .96); backdrop-filter: blur(6px); box-shadow: 0 20px 40px -20px rgba(60, 30, 15, .45); }
.hero-badge svg { width: 42px; height: 42px; padding: 9px; border-radius: 50%; color: #4A3308;
  background: linear-gradient(135deg, #F6E2AE 0%, #D9A441 55%, #B07F24 100%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.hero-badge strong { font-size: .92rem; letter-spacing: -.005em; }

@media (max-width: 900px) {
  .hero-badge { left: -2%; }
  .hero-stats div { padding: 0 1rem; }
}
@media (max-width: 480px) {
  .hero-stats { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; row-gap: var(--s-5); }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (min-width: 481px) {
  .hero-stats { flex-wrap: nowrap; }
  .hero-stats div { padding: 0 clamp(.9rem, .5rem + 1vw, 1.4rem); }
  .hero-stats span { font-size: .7rem; letter-spacing: .08em; white-space: nowrap; }
}
@media (max-width: 1200px) { .hero-book.b1 { right: 2%; } }
@media (max-width: 600px) {
  .hero-badge { left: -3%; bottom: 3%; padding: 7px 12px 7px 7px; gap: 8px; max-width: 200px; }
  .hero-badge svg { width: 32px; height: 32px; padding: 7px; }
  .hero-badge strong { font-size: .78rem; }
  .hero-badge span { font-size: .7rem; }
  .hero-book.b1 { width: 29%; bottom: 22%; }
  .hero-book.b2 { width: 25%; right: 14%; }
}

/* ==========================================================================
   Site-wide premium polish (first-edition design, refined finish)
   ========================================================================== */
:root {
  --card: #FFFDF9;
  --radius: 14px; --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(60, 35, 20, .05), 0 1px 1px rgba(60, 35, 20, .03);
  --shadow: 0 1px 2px rgba(60, 35, 20, .04), 0 18px 36px -20px rgba(60, 35, 20, .28);
  --shadow-lg: 0 2px 4px rgba(60, 35, 20, .05), 0 40px 70px -32px rgba(60, 35, 20, .45);
}

/* Typography */
body { font-size: 1.0625rem; line-height: 1.7; }
h1, h2 { font-variation-settings: "opsz" 144; letter-spacing: -.028em; }
h3, h4 { font-variation-settings: "opsz" 30; font-weight: 500; letter-spacing: -.005em; }
.section-head h2 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); line-height: 1.08; }
.section-head { margin-bottom: clamp(2.5rem, 2rem + 1.5vw, 3.5rem); }
.lead { color: var(--ink-2); line-height: 1.7; }
.eyebrow { letter-spacing: .18em; font-size: .72rem; margin-bottom: var(--s-4); }
.eyebrow::before { width: 34px; height: 1px; background: var(--gold); }
.section-dark .eyebrow::before, .cta-band .eyebrow::before { background: var(--gold-soft); }

/* Header */
.site-header { height: 80px; background: rgba(251, 247, 239, .9); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(60, 35, 20, .5); }
.nav a { font-size: .92rem; letter-spacing: .005em; }
.nav a[aria-current="page"]::after { bottom: 0; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: var(--gold); }
:root { --header-h: 80px; }

/* Buttons */
.btn { min-height: 50px; padding: 0 1.6rem; font-weight: 600; letter-spacing: .01em; }
.btn:not(.btn-ghost) { box-shadow: 0 12px 24px -16px rgba(138, 28, 43, .8); }
.btn:not(.btn-ghost):hover { box-shadow: 0 16px 30px -16px rgba(138, 28, 43, .9); }
.btn-ghost { background: rgba(255, 253, 248, .7); }
.btn-sm { min-height: 42px; padding: 0 1.15rem; }
.link-arrow { font-size: .92rem; letter-spacing: .01em; padding-bottom: 3px; border-bottom: 1px solid rgba(176, 127, 36, .45); }
.link-arrow:hover { text-decoration: none; border-bottom-color: var(--maroon); }

/* Section backgrounds */
.section-alt { background: linear-gradient(180deg, #F6EFE2 0%, var(--paper-2) 100%); border-block: 1px solid rgba(227, 216, 196, .6); }
.section-dark { background: radial-gradient(900px 500px at 85% 0%, rgba(176, 127, 36, .14), transparent 60%), var(--night); }

/* Cards — one consistent, refined surface */
.facet, .post-card, .pub-card, .contact-card, .award-card, .post-nav a, .foreword, .facts, .empty {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.facet, .post-card, .pub-card, .award-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.facet:hover, .post-card:hover, .pub-card:hover, .award-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.facet { padding: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.facet .ico, .contact-list .ico { width: 48px; height: 48px; border-radius: 50%; background: #FBF1E4; color: var(--maroon); box-shadow: inset 0 0 0 1px rgba(176, 127, 36, .25); }
.facet h3 { font-size: 1.28rem; margin-bottom: var(--s-3); }
.facet p { font-size: .96rem; line-height: 1.65; color: var(--ink-2); }

/* Essay cards */
.post-card .swatch { height: 3px; }
.post-card .body { padding: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); gap: var(--s-3); }
.post-card .meta { font-size: .8rem; }
.post-card h3 { font-size: 1.65rem; }
.post-card p { font-size: 1.02rem; line-height: 1.75; }
.post-card .more { padding-top: var(--s-4); border-top: 1px solid var(--line); margin-top: auto; }
.tag { padding: .22rem .7rem; font-size: .72rem; }

/* Books */
.shelf { gap: clamp(2.5rem, 2rem + 2vw, 3.5rem) clamp(1.25rem, 1rem + 1vw, 2rem); }
.book-cover { border-radius: 2px 6px 6px 2px; box-shadow: 0 4px 8px -2px rgba(40, 20, 10, .2), 0 26px 40px -22px rgba(40, 20, 10, .55); }
.book-cover::before { width: 8px; background: linear-gradient(90deg, rgba(0,0,0,.26), rgba(255,255,255,.18) 50%, rgba(0,0,0,.05)); }
.book-card:hover .book-cover { transform: translateY(-8px); box-shadow: 0 6px 12px -4px rgba(40, 20, 10, .2), 0 40px 60px -28px rgba(40, 20, 10, .6); }
.book-meta .genre { letter-spacing: .12em; font-size: .68rem; }
.book-meta h3 { font-size: 1.4rem; margin-top: var(--s-2); }

/* Navrang */
.navrang-grid { gap: 10px; min-height: 440px; }
.nr-card { border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 14px 28px -20px rgba(40, 20, 10, .5); }
.nr-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.08)); pointer-events: none; border-radius: inherit; }

/* Quotes */
.praise { gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.quote-card { padding: clamp(1.75rem, 1.4rem + 1vw, 2.4rem); border-radius: var(--radius-lg); }
.section-dark .quote-card { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border-color: rgba(233, 211, 163, .16); position: relative; overflow: hidden; }
.section-dark .quote-card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(233, 211, 163, .6), transparent); }
.quote-card blockquote { font-size: 1.2rem; line-height: 1.8; }
.quote-card figcaption { padding-top: var(--s-4); border-top: 1px solid rgba(233, 211, 163, .14); }

/* Cartoons & video */
.cartoon-frame { border-radius: 6px; padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 30px 50px -28px rgba(40, 20, 10, .5); }
.yt { border-radius: var(--radius-lg); box-shadow: 0 24px 44px -28px rgba(40, 20, 10, .55); }
.video-card { gap: var(--s-3); }
.video-card h3 { font-size: 1.2rem; margin-top: var(--s-2); }
.video-card p { font-size: .93rem; line-height: 1.6; }
.yt .play { width: 62px; height: 62px; margin: -31px 0 0 -31px; }

/* Awards cards */
.award-card { align-items: center; padding: var(--s-5) var(--s-6); }
.award-card .medal { width: 52px; height: 52px; background: linear-gradient(135deg, #F6E2AE 0%, #D9A441 55%, #B07F24 100%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.award-card h3 { font-size: 1.18rem; margin-bottom: 4px; }

/* CTA band */
.cta-band { border-radius: 22px; background: radial-gradient(700px 360px at 100% 0%, rgba(176, 127, 36, .22), transparent 60%), var(--night); box-shadow: 0 40px 80px -40px rgba(30, 15, 10, .6); }
.cta-band::before { height: 4px; }

/* Inner page title bands */
.page-hero { background: radial-gradient(900px 500px at 85% 0%, rgba(233, 211, 163, .38), transparent 62%), linear-gradient(180deg, #FDFAF3, var(--paper)); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.page-hero::after { opacity: .5; border-width: 1px; }
.page-hero h1 { font-weight: 500; letter-spacing: -.03em; line-height: 1.04; }
.page-hero .mr { display: inline-flex; align-items: center; gap: var(--s-4); }
.page-hero .mr::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.breadcrumb { letter-spacing: .04em; }

/* Article */
.article-hero h1 { letter-spacing: 0; }
.prose { line-height: 2; }
.reader-tools .inner { border-radius: 999px; box-shadow: var(--shadow); }
.article-figure img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.post-nav a { padding: var(--s-6); }

/* Book detail */
.cover-flip .face { box-shadow: 0 6px 12px -4px rgba(40, 20, 10, .2), 0 50px 80px -40px rgba(40, 20, 10, .6); }
.facts { overflow: hidden; }
.facts dt { letter-spacing: .14em; }
.foreword { position: relative; padding: clamp(1.75rem, 1.4rem + 1vw, 2.4rem); background: linear-gradient(180deg, #FBF4E8, #F6EDDD); }
.foreword::before { content: "“"; position: absolute; right: 24px; top: -6px; font: 400 6rem/1 var(--font-display); color: rgba(176, 127, 36, .22); }
.toc li { background: var(--card); box-shadow: var(--shadow-sm); }

/* About */
.about-photo img { border-radius: var(--radius-lg); box-shadow: 0 0 0 10px #FFFDF8, 0 0 0 11px var(--line-2), var(--shadow-lg); }
.timeline li::before { border-color: var(--maroon); box-shadow: 0 0 0 4px var(--paper); }
.timeline h3 { font-size: 1.35rem; }

/* Gallery / press / forms */
.frame { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.frame:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.chip { min-height: 42px; }
.pub-card .pc, .clip { border-radius: var(--radius); }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], select, textarea { border-radius: 12px; background: #FFFEFB; }

/* Footer */
.site-footer { background: radial-gradient(800px 400px at 100% 0%, rgba(176, 127, 36, .1), transparent 60%), var(--night); }
.site-footer h3 { letter-spacing: .18em; }
.footer-grid { padding-bottom: var(--s-8); }
.shelf { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
h1, h2 { letter-spacing: -.02em; }
.hero h1 { letter-spacing: -.03em; }
.post-card .more { border-bottom: 0; padding-bottom: 0; }
.lang-mr h1, .lang-mr h2, .lang-mr h3 { letter-spacing: 0; font-variation-settings: normal; }
.page-hero h1 { letter-spacing: -.02em; }

/* ==========================================================================
   Mobile premium — swipe rows, auto-scrolling shelf, tuned rhythm
   ========================================================================== */
@media (max-width: 640px) {
  .section { padding-block: 3.5rem; }
  .section-sm { padding-block: 2rem; }
  .section-head { margin-bottom: 1.75rem; gap: .75rem; }
  .section-head h2 { font-size: 1.95rem; }
  .section-head .lead { font-size: 1rem; }
  .lead { font-size: 1.02rem; }
  .eyebrow { font-size: .66rem; letter-spacing: .16em; }

  /* Swipe rows: edge-to-edge, snap, next card peeks in */
  .m-swipe { display: flex !important; flex-wrap: nowrap; gap: 14px !important; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 1rem; margin-inline: -1rem; padding: 6px 1rem 18px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .m-swipe::-webkit-scrollbar { display: none; }
  .m-swipe > * { flex: 0 0 82%; scroll-snap-align: start; min-width: 0; }
  .m-swipe .reveal { opacity: 1; transform: none; }
  .m-swipe > .book-card { flex-basis: 40%; }
  .m-swipe > .facet { flex-basis: 70%; }
  .m-swipe > .quote-card { flex-basis: 86%; }
  .m-swipe > .video-card { flex-basis: 84%; }
  .m-swipe .facet:hover, .m-swipe .post-card:hover { transform: none; }

  /* Books shelf row */
  .shelf.m-swipe { gap: 16px !important; }
  .m-swipe .book-meta h3 { font-size: 1.12rem; }
  .m-swipe .book-meta .genre { font-size: .6rem; }
  .m-swipe .book-meta p { font-size: .78rem; }

  /* Compact cards */
  .facet { padding: 1.25rem; }
  .facet .ico { width: 40px; height: 40px; margin-bottom: .75rem; }
  .facet h3 { font-size: 1.12rem; }
  .facet p { font-size: .9rem; }
  .quote-card { padding: 1.5rem; }
  .quote-card blockquote { font-size: 1.08rem; line-height: 1.75; }
  .post-card .body { padding: 1.25rem; }
  .post-card h3 { font-size: 1.4rem; }

  /* Navrang: tidy 3×3 */
  .navrang-grid { gap: 8px; }
  .nr-card { border-radius: 12px; padding: 10px; }
  .nr-card .t-mr { font-size: 1.05rem; }
  .nr-card .t-en { display: none; }

  /* Hero */
  .hero { padding-block: 2rem 3rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero .lead { font-size: 1.04rem; margin-bottom: 1.5rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats { margin-top: 2rem; padding-top: 1.25rem; }

  /* CTA & footer */
  .cta-band { padding: 2rem 1.5rem; border-radius: 18px; gap: 1.5rem; }
  .cta-band .flex { justify-content: stretch !important; }
  .cta-band .btn { flex: 1 1 auto; }
  .site-footer { padding-top: 3.5rem; }
  .footer-grid { gap: 2rem; padding-bottom: 2.5rem; }
  .ribbon { padding-block: .75rem; }
  .ribbon-track span { font-size: 1.1rem; }
}
/* Swipe hint dots */
.swipe-dots { display: none; }
@media (max-width: 640px) {
  .swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
  .swipe-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: width .25s var(--ease), background-color .25s; }
  .swipe-dots i.on { width: 18px; border-radius: 3px; background: var(--maroon); }
  .section-dark .swipe-dots i { background: rgba(233, 211, 163, .25); }
  .section-dark .swipe-dots i.on { background: var(--gold); }
}


/* ---------- Oct 2026 content update ---------- */
/* Lightbox: click the picture to read it at full size */
.lightbox img { cursor: zoom-in; }
.lightbox.is-zoomed { display: block; overflow: auto; padding: 0; overscroll-behavior: contain; }
.lightbox.is-zoomed img { max-width: none; max-height: none; width: auto; min-width: min(100%, 900px); display: block; margin: 0 auto; cursor: zoom-out; border-radius: 0; }
.lightbox.is-zoomed .lb-btn { position: fixed; }
.lightbox.is-zoomed .lb-prev, .lightbox.is-zoomed .lb-next, .lightbox.is-zoomed .lb-cap { display: none; }
.lb-hint { color: #CFC3B1; font-size: var(--fs-xs); }

/* SMB monogram */
.brand-mark { font: 600 .9rem/1 var(--font-display); letter-spacing: .04em; font-variation-settings: "opsz" 144; }
@media (max-width: 480px) { .brand-mark { font-size: .78rem; } }

/* Square homepage portrait */
.hero-visual.hero-square { aspect-ratio: 1 / 1; max-width: 500px; }
.hero-square .hero-portrait { inset: 0; border-radius: var(--radius-lg); background: #C9CBCF; }
.hero-square .hero-portrait img { object-position: 50% 30%; }
@media (max-width: 900px) { .hero-visual.hero-square { max-width: 380px; } }

/* About: square-ish photo for the new portrait */
.about-photo img.profile-photo { aspect-ratio: 4 / 5; object-position: 50% 20%; }

/* Clickable facet cards */
a.facet { display: block; color: inherit; text-decoration: none; }
a.facet .more { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-4); color: var(--maroon); font-weight: 600; font-size: var(--fs-sm); }
a.facet .more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
a.facet:hover .more svg { transform: translateX(3px); }
a.facet:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }

/* Profile highlights */
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-5); }
.profile-item { padding: var(--s-5) var(--s-6); border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.profile-item strong { display: block; font: 500 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--font-display); color: var(--maroon); margin-bottom: var(--s-2); }
.profile-item span { color: var(--ink-2); font-size: var(--fs-sm); }

/* Book pages: zoomable covers / pages */
.book-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-4); margin-bottom: var(--s-6); }
.book-pages .frame img { aspect-ratio: 5 / 8; object-fit: cover; width: 100%; }
.zoom-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-3); font-size: var(--fs-sm); font-weight: 600; color: var(--maroon); background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.zoom-link svg { width: 16px; height: 16px; }

/* Drawings & clippings grids */
.art-grid { columns: 3 260px; column-gap: var(--s-5); }
.art-grid figure { break-inside: avoid; margin: 0 0 var(--s-5); }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s-5); }
.clip-grid .frame { height: 100%; display: flex; flex-direction: column; }
.clip-grid .frame img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; }
.clip-grid .cap { display: block; text-align: left; }
.clip-grid .cap small { display: block; color: var(--ink-3); font-size: var(--fs-xs); margin-top: 2px; }

/* Poems: list of poem names */
.poem-list { list-style: none; counter-reset: poem; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-3) var(--s-5); }
.poem-list li { counter-increment: poem; }
.poem-list a { display: flex; gap: var(--s-3); align-items: baseline; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; font: 400 1.2rem/1.35 var(--font-deva); }
.poem-list a::before { content: counter(poem, devanagari) "."; color: var(--maroon); font-size: 1rem; }
.lang-en .poem-list a::before { content: counter(poem) "."; }
.poem-list a small { display: block; font: 400 var(--fs-xs)/1.4 var(--font-body); color: var(--ink-3); }
.poem-list a:hover { border-color: var(--maroon); color: var(--maroon); }

/* Readers' letters under the praise cards */
.letters-head { margin: var(--s-8) 0 var(--s-5); font-size: var(--fs-lg); color: #F3EBDD; }
.letters-head .deva { color: var(--gold); font-size: .85em; }
.praise.letters .quote-card blockquote { font-size: 1rem; line-height: 1.75; }
.praise.letters .quote-card blockquote p { margin: 0 0 .7em; }
.praise.letters .quote-card blockquote p:last-child { margin-bottom: 0; }
.praise.letters .quote-card::before { font-size: 3.6rem; height: 1.4rem; }

/* Plus sign after homepage stats: match the Devanagari digits in Marathi */
.lang-mr .hero-stats .plus { font-family: var(--font-deva); font-weight: 400; }
