/* ==========================================================================
   राधा ब्रज पुकारे — Blog (Ghost headless)
   Self-contained: same palette / type as the landing page, but its own
   header + footer so it never depends on the per-section themes in style.css
   ========================================================================== */

:root {
  --shyam:      #070c22;
  --indigo:     #0b1330;
  --indigo-2:   #121c45;
  --navy:       #182456;
  --radha:      #c9427a;
  --kesari:     #e6892b;
  --kesari-l:   #f0b060;
  --gold:       #c9a24b;
  --gold-light: #e8cf8a;
  --ivory:      #f3ece0;
  --ivory-70:   rgba(243, 236, 224, .70);
  --ivory-50:   rgba(243, 236, 224, .50);
  --ivory-30:   rgba(243, 236, 224, .30);
  --gold-40:    rgba(201, 162, 75, .40);
  --gold-20:    rgba(201, 162, 75, .20);
  --line:       rgba(201, 162, 75, .18);

  --f-display: "Martel", "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --f-hindi:   "Tiro Devanagari Hindi", "Martel", "Noto Serif Devanagari", serif;
  --f-latin:   "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-ui:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --wrap-read: 720px;
  --gutter: 18px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--indigo);
  color: var(--ivory);
  font-family: var(--f-latin);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* soft dusk wash behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(230,137,43,.16), transparent 62%),
    radial-gradient(900px 560px at 92% 4%, rgba(201,66,122,.14), transparent 60%),
    linear-gradient(180deg, #0b1330 0%, #0a1129 55%, #070c22 100%);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--read { max-width: var(--wrap-read); }
.smallcaps {
  font-family: var(--f-latin); font-weight: 300;
  text-transform: uppercase; letter-spacing: .22em;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--shyam); color: var(--gold-light); padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------------- header ---------------- */
.bhead {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: clamp(14px, 3vw, 32px);
  padding: 8px clamp(14px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(11,19,48,.96), rgba(11,19,48,.86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bhead__brand { display: flex; align-items: center; margin-right: auto; }
.bhead__brand img { height: 62px; width: 62px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(8,10,24,.7)); }
.bhead__nav { display: flex; gap: clamp(16px, 2.4vw, 32px); }
/* one label, in whichever language is active — the toggle swaps the text */
.bhead__nav a {
  position: relative; padding: 4px 0; line-height: 1.2;
  font-family: var(--f-hindi); font-size: .95rem; color: var(--ivory);
  transition: color .3s;
}
:root[lang="en"] .bhead__nav a {
  font-family: var(--f-latin); font-size: .78rem; text-transform: uppercase; letter-spacing: .2em;
}
.bhead__nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -2px; height: 1px;
  background: var(--gold); transition: left .35s var(--ease-out), right .35s var(--ease-out);
}
.bhead__nav a:hover::after, .bhead__nav a[aria-current]::after { left: 0; right: 0; }
.bhead__nav a:hover, .bhead__nav a[aria-current] { color: var(--gold-light); }
/* हिं / EN toggle */
.langtog { display: flex; border: 1px solid var(--gold-20); border-radius: 99px; overflow: hidden; }
.langtog button {
  padding: 6px 13px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--f-ui); font-size: .72rem; letter-spacing: .1em; color: var(--ivory-50);
  transition: background .3s, color .3s;
  -webkit-tap-highlight-color: transparent;
}
.langtog button:first-child { font-family: var(--f-hindi); font-size: .82rem; }
.langtog button:hover { color: var(--gold-light); }
.langtog button[aria-pressed="true"] { background: var(--gold-light); color: var(--shyam); }

.bhead__cta {
  padding: 8px 18px; border: 1px solid var(--gold-40);
  font-family: var(--f-latin); font-size: .7rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--gold-light); transition: border-color .3s, background .3s, color .3s;
}
.bhead__cta:hover { border-color: var(--kesari-l); color: #fff; background: linear-gradient(135deg, rgba(230,137,43,.25), rgba(201,66,122,.25)); }

/* ---------------- page head ---------------- */
.bhero { padding: clamp(46px, 8vw, 88px) 0 clamp(26px, 4vw, 44px); text-align: center; }
.bhero__kicker { font-size: .68rem; letter-spacing: .38em; text-transform: uppercase; color: var(--gold); }
.bhero h1 {
  font-family: var(--f-display); font-weight: 800; line-height: 1.18;
  font-size: clamp(2rem, 5.2vw, 3.2rem); margin-top: 14px;
  background: linear-gradient(120deg, #ffd79a, #e8cf8a 40%, #f0b060 70%, #e8cf8a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bhero__sub { margin: 14px auto 0; max-width: 620px; color: var(--ivory-70); }

.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px auto 0; max-width: 340px; }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-40), transparent); }
.divider svg { width: 42px; height: 21px; fill: none; stroke: var(--gold); stroke-width: 1.1; opacity: .85; }

/* ---------------- filters ---------------- */
.tagbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px auto 0; }
.tagbar a {
  padding: 6px 14px; border: 1px solid var(--gold-20); border-radius: 99px;
  font-family: var(--f-ui); font-size: .72rem; letter-spacing: .08em; color: var(--ivory-70);
  transition: border-color .3s, color .3s, background .3s;
}
.tagbar a:hover { border-color: var(--kesari); color: var(--kesari-l); }
.tagbar a[aria-current] { border-color: var(--gold); color: var(--shyam); background: var(--gold-light); }

/* ---------------- post grid ---------------- */
.grid {
  display: grid; gap: clamp(20px, 3vw, 30px);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding: clamp(28px, 5vw, 54px) 0 0;
}
.card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(18,28,69,.66), rgba(7,12,34,.66));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-40); box-shadow: 0 18px 48px -22px rgba(0,0,0,.9); }
.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(230,137,43,.22), rgba(11,19,48,.9) 65%);
}
.card__fallback img { width: 92px; height: 92px; object-fit: contain; opacity: .55; }
.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card__meta {
  font-family: var(--f-ui); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.card__meta .dot { color: var(--ivory-30); }
.card h2 {
  font-family: var(--f-display); font-weight: 800; font-size: 1.22rem; line-height: 1.35;
  margin-top: 12px; color: var(--ivory);
}
.card:hover h2 { color: var(--gold-light); }
.card__excerpt { margin-top: 10px; color: var(--ivory-70); font-size: .97rem; }
.card__more {
  margin-top: auto; padding-top: 18px;
  font-family: var(--f-latin); font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--kesari-l);
}

/* ---------------- pagination ---------------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; padding: clamp(36px, 6vw, 64px) 0 0; }
.pager a, .pager span {
  padding: 10px 20px; border: 1px solid var(--gold-20);
  font-family: var(--f-latin); font-size: .72rem; text-transform: uppercase; letter-spacing: .2em;
}
.pager a:hover { border-color: var(--kesari); color: var(--kesari-l); }
.pager span { color: var(--ivory-30); }
.pager__count { border: 0; color: var(--ivory-50); }

/* ---------------- single post ---------------- */
.post { padding: clamp(34px, 6vw, 70px) 0 0; }
.post__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-latin); font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--ivory-50);
  transition: color .3s;
}
.post__back:hover { color: var(--gold-light); }
.post__head { text-align: center; padding: 26px 0 0; }
.post__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.post__tags a {
  font-family: var(--f-ui); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--kesari-l); border-bottom: 1px solid rgba(240,176,96,.35);
}
.post__title {
  font-family: var(--f-display); font-weight: 800; line-height: 1.2;
  font-size: clamp(1.9rem, 4.6vw, 3rem); margin-top: 18px; color: var(--ivory);
}
.post__lede { margin: 16px auto 0; max-width: 620px; color: var(--ivory-70); font-size: 1.08rem; font-style: italic; }
.post__byline {
  margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  font-family: var(--f-ui); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
}
.post__byline .dot { color: var(--ivory-30); }
.post__avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold-40); }
.post__feature { margin: clamp(28px, 5vw, 48px) 0 0; border: 1px solid var(--line); }
.post__feature img { width: 100%; height: auto; }
.post__caption { margin-top: 10px; text-align: center; font-size: .86rem; color: var(--ivory-50); font-style: italic; }

/* ---------------- article body (Ghost / Koenig HTML) ---------------- */
.prose { padding: clamp(30px, 5vw, 52px) 0 0; font-size: 1.1rem; line-height: 1.85; color: rgba(243,236,224,.88); }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--f-display); font-weight: 800; color: var(--gold-light); line-height: 1.3;
  margin-top: 1.9em;
}
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.12rem; color: var(--ivory); }
.prose a { color: var(--kesari-l); border-bottom: 1px solid rgba(240,176,96,.4); transition: color .3s, border-color .3s; }
.prose a:hover { color: #fff; border-color: #fff; }
.prose strong { font-weight: 600; color: var(--ivory); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
  border-left: 2px solid var(--gold); padding: 4px 0 4px 22px;
  font-style: italic; color: var(--gold-light);
}
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-40), transparent); margin: 2.4em 0; }
/* portrait folios shouldn't run taller than the screen; landscape ones still
   fill the reading column */
.prose img { width: auto; max-width: 100%; max-height: 82vh; height: auto; margin-left: auto; margin-right: auto; border: 1px solid var(--line); }
.prose video, .prose iframe { width: 100%; height: auto; border: 1px solid var(--line); }
.prose iframe { aspect-ratio: 16 / 9; }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 10px; text-align: center; font-size: .86rem; color: var(--ivory-50); font-style: italic; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
  background: rgba(255,255,255,.07); border: 1px solid var(--line); padding: 1px 6px;
}
.prose pre {
  background: rgba(7,12,34,.85); border: 1px solid var(--line); padding: 18px; overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: rgba(201,162,75,.12); color: var(--gold-light); font-weight: 600; }
/* Koenig cards */
.prose .kg-card { margin: 2em 0; }
.prose .kg-width-wide  { width: min(100vw - 2 * var(--gutter), 900px); margin-left: 50%; transform: translateX(-50%); }
.prose .kg-width-full  { width: calc(100vw - 2 * var(--gutter)); margin-left: 50%; transform: translateX(-50%); }
.prose .kg-bookmark-card a { display: block; border: 1px solid var(--line); padding: 18px; }
.prose .kg-bookmark-title { font-family: var(--f-display); color: var(--gold-light); }
.prose .kg-bookmark-description { color: var(--ivory-70); font-size: .95rem; margin-top: 6px; }
.prose .kg-bookmark-thumbnail img { border: 0; }
.prose .kg-callout-card { display: flex; gap: 14px; border: 1px solid var(--gold-20); background: rgba(201,162,75,.08); padding: 18px; }
.prose .kg-button-card { text-align: center; }
.prose .kg-btn {
  display: inline-block; border: 1px solid var(--gold); padding: 12px 26px;
  font-family: var(--f-latin); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--gold-light);
}

/* ---------------- share ---------------- */
.share { margin-top: clamp(38px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); text-align: center; }
.share__label { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.share__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.share__btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border: 1px solid var(--gold-20); background: transparent; cursor: pointer;
  font-family: var(--f-ui); font-size: .74rem; letter-spacing: .06em; color: var(--ivory-70);
  transition: border-color .3s, color .3s, background .3s, transform .3s;
}
.share__btn:hover { border-color: var(--kesari); color: var(--kesari-l); transform: translateY(-2px); background: rgba(230,137,43,.08); }
.share__btn svg { width: 16px; height: 16px; fill: currentColor; }
.share__btn.is-copied { border-color: var(--gold); color: var(--gold-light); }
.share__hint { margin-top: 14px; font-size: .84rem; color: var(--ivory-30); font-style: italic; }

/* ---------------- related ---------------- */
.related { padding: clamp(46px, 7vw, 84px) 0 0; }
.related__title { text-align: center; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

/* ---------------- states ---------------- */
.empty { text-align: center; padding: clamp(50px, 9vw, 110px) 0; }
.empty h2 { font-family: var(--f-display); font-size: 1.6rem; color: var(--gold-light); }
.empty p { margin-top: 12px; color: var(--ivory-50); }
.empty .btn-line {
  display: inline-block; margin-top: 26px; padding: 12px 26px; border: 1px solid var(--gold-40);
  font-family: var(--f-latin); font-size: .74rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold-light);
}
.empty .btn-line:hover { border-color: var(--kesari); color: var(--kesari-l); }

/* ---------------- footer ---------------- */
.bfoot {
  margin-top: clamp(64px, 10vw, 120px);
  padding: clamp(40px, 6vw, 70px) 0 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7,12,34,.4), var(--shyam));
  text-align: center;
}
.bfoot__logo { width: 84px; height: 84px; object-fit: contain; margin: 0 auto; opacity: .9; }
.bfoot__url { margin-top: 14px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.bfoot__social { display: flex; justify-content: center; gap: 18px; margin-top: 22px; }
.bfoot__social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--gold-20); border-radius: 50%; color: var(--ivory-70);
  transition: color .3s, border-color .3s, box-shadow .3s;
}
.bfoot__social a:hover { color: var(--kesari-l); border-color: var(--kesari); box-shadow: 0 0 18px rgba(230,137,43,.3); }
.bfoot__social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.bfoot__copy { margin-top: 26px; font-size: .84rem; color: var(--ivory-50); letter-spacing: .1em; }
.bfoot__copy a { color: var(--gold); border-bottom: 1px solid var(--gold-40); }

/* ---------------- mobile ---------------- */
@media (max-width: 720px) {
  .bhead { gap: 12px; padding: 6px 12px; }
  .bhead__brand img { height: 50px; width: 50px; }
  .bhead__nav { gap: 14px; font-size: .88rem; }
  :root[lang="en"] .bhead__nav a { font-size: .7rem; letter-spacing: .12em; }
  .langtog button { padding: 5px 10px; }
  .bhead__cta { display: none; }
  .grid { grid-template-columns: 1fr; }
  .prose { font-size: 1.04rem; }
  .prose .kg-width-wide, .prose .kg-width-full { width: 100%; margin-left: 0; transform: none; }
  .share__btn { padding: 9px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
