/* Shantiniketan: Bengali theme. Handmade paper, laal-paar (red border) saree bands, alpana lotus,
   terracotta and kantha running stitch. Tiro Bangla serif for headings, Hind Siliguri for text. */
@import url("https://fonts.googleapis.com/css2?family=Tiro+Bangla:ital@0;1&family=Hind+Siliguri:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap");
:root, :root:not([data-theme="dark"]), :root[data-theme="light"] {
  --paper: #f7f0e1; --paper-2: #efe3cb; --ink: #2a1a12; --sindoor: #b3261e; --turmeric: #d99a1e; --terracotta: #9c4a2c; --indigo: #23395b; --leaf: #3d6b3a;
  --bg: var(--paper); --surface: #fffaf0; --surface-2: var(--paper-2); --line: #2a1a1222; --text: var(--ink); --muted: #6f5848;
  --accent: var(--sindoor); --on-accent: #fff8ea; --chord: var(--sindoor);
  --hindi: var(--terracotta); --bengali: var(--sindoor); --english: var(--indigo);
  --radius: 6px; --shadow: 0 10px 28px #5a2a1414;
  --head: "Tiro Bangla", Georgia, serif; --body: "Hind Siliguri", system-ui, sans-serif; --mono: "JetBrains Mono", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1d1410; --surface: #261b16; --surface-2: #30231c; --line: #f7f0e122; --text: #f7ecd9; --muted: #cdb7a2;
  --accent: #e0503f; --on-accent: #1d1410; --chord: #f07a62; --shadow: 0 10px 28px #0006; color-scheme: dark;
}
body { background: var(--bg); font-family: var(--body); font-size: 1.05rem; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: radial-gradient(#9c4a2c14 .7px, transparent .8px), radial-gradient(#23395b0d .6px, transparent .7px);
  background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; }
main, .site-header, .site-footer, .paar { position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-family: var(--body); font-weight: 600; }
a { color: var(--accent); }
.eyebrow { color: var(--terracotta); font-weight: 600; letter-spacing: .06em; font-size: .9rem; }
.bn { font-family: var(--head); }

/* header + laal paar (red saree border) */
.site-header { background: var(--surface); border-bottom: 0; backdrop-filter: none; }
.paar { height: 30px; background: var(--sindoor) url("/assets/border-white.svg") repeat-x center / auto 22px;
  border-top: 3px solid var(--turmeric); border-bottom: 3px solid var(--turmeric); box-shadow: inset 0 4px 0 #fff3, inset 0 -4px 0 #fff3; }
.brand { font-family: var(--head); font-weight: 400; font-size: 1.45rem; line-height: 1.05; flex-direction: row; }
.brand em { font-style: normal; color: var(--sindoor); }
.brand .bn-mark { display: block; font-size: .8rem; color: var(--terracotta); letter-spacing: .02em; margin-top: 2px; }
.brand > span { display: flex; flex-direction: column; }
.nav a { color: var(--ink); font-weight: 600; border-radius: 4px; }
.nav a:hover { color: var(--sindoor); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--sindoor); background: none; box-shadow: inset 0 -3px 0 var(--sindoor); }
.nav a.nav-bn { font-family: var(--head); color: var(--sindoor); font-size: 1.05rem; }
.icon-btn, .search-btn { background: var(--paper) !important; border: 1px solid #9c4a2c55 !important; color: var(--ink) !important; border-radius: 50% !important; }
.search-btn { border-radius: 999px !important; }
@media (max-width: 1020px) { .nav { background: var(--surface); } }

.btn, button[type="submit"], #play { background: var(--sindoor) !important; color: #fff8ea !important; border: 0 !important; border-radius: 4px !important;
  font-weight: 600; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--turmeric); }
.btn:hover, button[type="submit"]:hover { background: #962018 !important; text-decoration: none; }
input[type="search"], input[type="email"], input[type="number"] { background: #fffaf0 !important; border: 1.5px solid #9c4a2c66 !important; color: var(--ink) !important; border-radius: 4px !important; }

/* hero: paper with an alpana mandala behind the fretboard */
.hero { background: none !important; border: 0; overflow: hidden; }
.hero2 h1 { margin: 10px 0 6px; }
.quote small { display: block; } .rs-head .h1-en, .rs-head .quote { max-width: 40em; }
.rs-head .quote { font-family: var(--head); border-left: 3px solid var(--turmeric); padding: 2px 0 2px 14px; margin: 18px 0 0; font-size: 1.15rem; }
.rs-head .quote small, .hero2 .quote small { color: var(--muted); font-family: var(--body); font-size: .8rem; margin-top: 2px; }
.h1-en { font-family: var(--head); font-style: italic; color: var(--terracotta); font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 0 0 14px; }
.hero2 .h1-en { font-family: var(--head); font-style: italic; color: var(--terracotta); font-size: clamp(1.2rem, 2.4vw, 1.6rem); margin: 0 0 14px; }
.hero2 .quote { font-family: var(--head); color: var(--ink); border-left: 3px solid var(--turmeric); padding: 2px 0 2px 14px; margin: 18px 0 0; font-size: 1.1rem; }
.hero2 .quote small { display: block; color: var(--muted); font-family: var(--body); font-size: .8rem; margin-top: 2px; }
.hero2 .quick a { background: var(--surface); border: 1px dashed #b3261e88; border-radius: 4px; padding: 5px 12px; color: var(--ink); }
.hero2 .quick a:hover { border-style: solid; color: var(--sindoor); text-decoration: none; }
.fb-wrap::before { content: ""; position: absolute; inset: -18% -10%; background: url("/assets/alpana-red.svg") center / contain no-repeat; opacity: .16; z-index: -1; }
@media (prefers-reduced-motion: no-preference) { .fb-wrap::before { animation: turn 120s linear infinite; } @keyframes turn { to { transform: rotate(360deg); } } }
.fretboard { border-radius: 6px; box-shadow: 0 18px 40px #5a2a1426; }
.fretboard rect:first-child { fill: #3a2216; stroke: var(--turmeric); stroke-width: 3; }
.fb-dot { fill: var(--sindoor); }
.fb-wrap .tonight { background: var(--surface); border: 2px solid var(--sindoor); border-radius: 4px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--turmeric), var(--shadow); }
.ticker { background: var(--sindoor); color: #fff8ea; border-top: 3px solid var(--turmeric); border-bottom: 3px solid var(--turmeric); }
.ticker a::before { content: "\273F"; margin-right: 10px; color: var(--turmeric); }
.stats { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 6px !important; margin: 34px auto 40px !important; outline: 2px dashed #b3261e55; outline-offset: -8px; }
.stats b { color: var(--sindoor) !important; font-family: var(--head); font-weight: 400; }

/* sections and cards: kantha running stitch */
.head { border-bottom: 0; padding-bottom: 10px; margin-bottom: 18px; background: url("/assets/border-red.svg") repeat-x bottom / auto 14px; padding-bottom: 20px; }
.head h2::before { content: "\273F  "; color: var(--turmeric); }
.head a { color: var(--sindoor); font-weight: 600; }
.tile, .card, .feature, .cta, .shapes, .strum, .video, .share-end, .sheet, #sheet, .tools, .post-tools, .rows {
  background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 6px !important; box-shadow: var(--shadow);
  outline: 1.5px dashed #b3261e55; outline-offset: -7px; }
.card { overflow: hidden; transition: transform .15s; }
.card:hover { transform: translateY(-3px); outline-color: var(--sindoor); text-decoration: none; }
.card .thumb img { border-radius: 0; }
.card h3 { font-family: var(--head); font-weight: 400; font-size: 1.25rem; }
.tile { position: relative; overflow: hidden; }
.tile strong { font-family: var(--head); font-weight: 400; font-size: 1.7rem; }
.tile::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 130px; height: 130px; background: url("/assets/alpana-red.svg") center / contain no-repeat; opacity: .22; }
.tile:hover { text-decoration: none; outline-color: var(--sindoor); }
.cta { background: var(--sindoor) !important; color: #fff8ea; outline-color: #fff8ea88; }
.cta h2 { color: #fff; } .cta .muted { color: #f6dcc8; } .cta .btn { background: #fff8ea !important; color: var(--sindoor) !important; }
.chip { border-radius: 3px !important; font-weight: 600; }
.rowcard { border-radius: 0 !important; border: 0 !important; border-bottom: 1px dashed var(--line) !important; background: none !important; }
.rowcard:hover { background: var(--paper-2) !important; }
.rowcard .rk { background: none !important; color: var(--sindoor) !important; font-family: var(--head); font-size: 1.6rem !important; }
.rowcard img { border-radius: 3px; }

/* song page */
#sheet .ln, .sheet-body { font-family: var(--mono) !important; }
#sheet .ln:not(.ch) { font-family: var(--body) !important; font-size: 1.08rem; }
#sheet .sec { color: var(--terracotta) !important; font-family: var(--head); font-size: 1.05rem; }
b.c { color: var(--chord) !important; font-weight: 700; }
b.c.playing { background: var(--sindoor) !important; color: #fff8ea !important; border-radius: 3px; box-shadow: 0 0 0 2px var(--turmeric); }
.prog-row b.c { background: #fff3e6 !important; border: 1.5px solid #b3261e66; border-radius: 4px; padding: 4px 12px; }
.strum .slot { border-radius: 4px !important; }
.strum .slot.s-d, .strum .slot.s-u { background: var(--sindoor) !important; color: #fff8ea !important; }
.strum .slot.s-x { background: var(--ink) !important; color: var(--paper) !important; }
.tip { background: #fff3e0 !important; border-left: 4px solid var(--turmeric) !important; border-radius: 4px !important; }
:root[data-theme="dark"] .tip { background: var(--surface-2) !important; }
.lyrics, .lyrics .ln { font-family: var(--head) !important; font-size: 1.2rem; line-height: 1.75; }
.verified { color: var(--leaf) !important; font-weight: 600; }
.share a, .share button, .savebtn { border-radius: 4px !important; }
.pd-badge { display: inline-block; background: var(--leaf); color: #fff; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 3px; }

/* footer: deep sindoor with alpana */
.site-footer { background: #5c1410 !important; color: #f6dcc8; border-top: 0; position: relative; overflow: hidden; margin-top: 60px; }
.site-footer::before { content: ""; display: block; height: 30px; background: var(--sindoor) url("/assets/border-white.svg") repeat-x center / auto 22px; border-bottom: 3px solid var(--turmeric); }
.site-footer::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; background: url("/assets/alpana-white.svg") center / contain no-repeat; opacity: .08; pointer-events: none; }
.site-footer .brand { color: #fff8ea; } .site-footer strong { color: var(--turmeric); } .site-footer a { color: #f6dcc8; }
.site-footer input { background: #fff1 !important; color: #fff !important; border-color: #fff4 !important; }

/* ---------- modern layer: motion, lessons, chord chart ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent) !important; backdrop-filter: blur(10px) saturate(1.2) !important; }
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 78% 30%, #d99a1e2e, transparent 70%), radial-gradient(ellipse 50% 45% at 10% 80%, #b3261e18, transparent 70%); }
.hero2 h1 .h1a, .hero2 h1 .h1b { display: inline-block; }
.hero2 h1 .h1b { color: var(--sindoor); font-style: italic; }
/* shiuli (night-jasmine) flowers drifting down: white petals, saffron centre */
.shiuli { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.shiuli i { position: absolute; top: -40px; left: var(--x); width: 22px; height: 22px; transform: scale(var(--s)); opacity: 0;
  background: radial-gradient(circle at 50% 50%, #e8731f 0 3px, transparent 3.5px),
    radial-gradient(ellipse 4px 8px at 50% 22%, #fffdf6 98%, transparent), radial-gradient(ellipse 8px 4px at 78% 50%, #fffdf6 98%, transparent),
    radial-gradient(ellipse 4px 8px at 50% 78%, #fffdf6 98%, transparent), radial-gradient(ellipse 8px 4px at 22% 50%, #fffdf6 98%, transparent);
  filter: drop-shadow(0 2px 2px #5a2a1440); }
:root[data-theme="dark"] .shiuli i { filter: drop-shadow(0 0 4px #fff3); }
@media (prefers-reduced-motion: no-preference) {
  .shiuli i { animation: fall var(--t) linear var(--d) infinite; }
  @keyframes fall { 0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(var(--s)); } 8% { opacity: .95; }
    50% { transform: translate(40px, 300px) rotate(200deg) scale(var(--s)); } 90% { opacity: .9; }
    100% { opacity: 0; transform: translate(-20px, 640px) rotate(420deg) scale(var(--s)); } }
  .hero2 .eyebrow, .hero2 h1 .h1a, .hero2 h1 .h1b, .hero2 .h1-en, .hero2 .lead, .hero2 .search, .hero2 .quick, .hero2 .quote, .fb-wrap {
    animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero2 h1 .h1a { animation-delay: .08s; } .hero2 h1 .h1b { animation-delay: .2s; } .hero2 .h1-en { animation-delay: .32s; }
  .hero2 .lead { animation-delay: .42s; } .hero2 .search { animation-delay: .52s; } .hero2 .quick { animation-delay: .6s; }
  .hero2 .quote { animation-delay: .7s; } .fb-wrap { animation-delay: .25s; animation-duration: 1.2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .fb-dot { animation: glow 3.2s ease-in-out infinite; }
  @keyframes glow { 50% { filter: drop-shadow(0 0 6px #d99a1e); } }
  .fb-string.pluck { animation: pluck .6s ease-out; transform-box: fill-box; transform-origin: center; }
  @keyframes pluck { 0%, 100% { transform: none; } 15% { transform: translateY(2px); } 30% { transform: translateY(-1.6px); } 50% { transform: translateY(1px); } 70% { transform: translateY(-.5px); } }
  .anim .reveal, .anim .grid .card, .anim .rows .rowcard, .anim .head { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 60ms); }
  .anim .reveal.in, .anim .grid .card.in, .anim .rows .rowcard.in, .anim .head.in { opacity: 1; transform: none; }
  .paar { animation: drift 40s linear infinite; } @keyframes drift { to { background-position: 400px center; } }
  b.c.playing { animation: beat .35s ease-out; } @keyframes beat { from { transform: scale(1.18); } }
}
.card { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.card:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: 0 18px 40px #5a2a1426; }
.card .thumb img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); } .card:hover .thumb img { transform: scale(1.04); }

/* lessons */
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lesson { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); box-shadow: var(--shadow); outline: 1.5px dashed #b3261e55; outline-offset: -7px; overflow: hidden; transition: transform .25s, outline-color .25s; }
.lesson::after { content: ""; position: absolute; right: -34px; top: -34px; width: 110px; height: 110px; background: url("/assets/alpana-red.svg") center / contain no-repeat; opacity: .14; transition: transform 1.2s; }
.lesson:hover { transform: translateY(-4px); outline-color: var(--sindoor); text-decoration: none; } .lesson:hover::after { transform: rotate(90deg); }
.lesson .ln-no { font-family: var(--head); font-size: 2rem; color: var(--turmeric); line-height: 1; }
.lesson strong { font-family: var(--head); font-weight: 400; font-size: 1.3rem; } .lesson span:last-child { color: var(--muted); font-size: .95rem; }
.lesson-page h2 { margin-top: 1.6em; } .lesson-page .lead { font-size: 1.15rem; }
.lesson-shapes { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.lesson-shapes .shape { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px 6px; cursor: pointer; width: 110px; color: var(--text); transition: transform .2s, border-color .2s; }
.lesson-shapes .shape:hover { transform: translateY(-3px); border-color: var(--sindoor); }
.lesson-shapes .shape b { display: block; text-align: center; color: var(--chord); }
.pat-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin: 16px 0 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; outline: 1.5px dashed #b3261e44; outline-offset: -6px; }
.pat-slots { display: flex; gap: 5px; flex-wrap: wrap; } .pat-slots .slot { width: 34px; height: 40px; display: grid; place-items: center; border-radius: 4px; font-weight: 700; background: var(--surface-2); color: var(--muted); transition: transform .1s, box-shadow .1s; }
.pat-slots .slot.s-d, .pat-slots .slot.s-u { background: var(--sindoor); color: #fff8ea; } .pat-slots .slot.s-x { background: var(--ink); color: var(--paper); }
.pat-slots .slot.on { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 3px var(--turmeric); }
.pat-meta { display: flex; flex-direction: column; } .pat-meta span { color: var(--muted); font-family: var(--mono); font-size: .85rem; }
.pat-demo .btn { margin-left: auto; }
.tabline { font-family: var(--mono); background: var(--surface-2); padding: 14px 16px; border-radius: 6px; overflow-x: auto; }
.keytable { width: 100%; border-collapse: collapse; margin: 12px 0; } .keytable th, .keytable td { text-align: left; padding: 9px 10px; border-bottom: 1px dashed var(--line); }
.keytable th { font-family: var(--head); font-weight: 400; color: var(--terracotta); }

/* chord chart */
.seg.roots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.seg.roots button { min-width: 46px; padding: 8px 10px; border-radius: 4px; border: 1.5px solid #9c4a2c55; background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; }
.seg.roots button[aria-pressed="true"] { background: var(--sindoor); color: #fff8ea; border-color: var(--sindoor); }
.shapes-page .shapes-head { justify-content: flex-end; margin-bottom: 10px; display: flex; background: none !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; }
.chordroot h2 { margin: 26px 0 12px; }
.chordgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.chordcard { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.chordcard .hear { background: none; border: 0; padding: 0; cursor: pointer; width: 96px; flex: none; border-radius: 4px; transition: transform .2s; }
.chordcard .hear:hover { transform: scale(1.05); } .chordcard .hear:active { transform: scale(.97); }
.chordcard h3 { margin: 4px 0 2px; font-family: var(--head); font-weight: 400; font-size: 1.4rem; color: var(--chord); }
.chordcard ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: .88rem; } .chordcard p { margin: 0; font-size: .9rem; }
@media (max-width: 560px) { .pat-demo .btn { margin-left: 0; } .pat-slots .slot { width: 28px; } .chordgrid { grid-template-columns: 1fr 1fr; } .chordcard { flex-direction: column; } }
