/* Jiboner Kotha — Words of Life (Sylheti)
   Warm, calm, reverent. Bengali-first typography. Mobile-first, low-bandwidth. */

:root {
  /* Warm earth + deep teal — avoids overt Western-church imagery */
  --bg:        #fbf7f0;
  --bg-soft:   #f4ecdf;
  --surface:   #ffffff;
  --ink:       #2a2420;
  --ink-soft:  #6b5f54;
  --line:      #e7dcc9;
  --brand:     #b5642e;   /* terracotta / saffron earth */
  --brand-deep:#8f4a1d;
  --accent:    #1f6b66;   /* deep teal */
  --accent-deep:#15514d;
  --gold:      #c9923a;
  --danger:    #9a2f2f;
  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(42,36,32,.05), 0 8px 28px rgba(42,36,32,.07);
  --maxw:      760px;
  --bn: "Noto Serif Bengali", "Hind Siliguri", serif;
  --bn-sans: "Noto Sans Bengali", "Hind Siliguri", sans-serif;
  --latin: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--latin);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Language toggle behavior ---------- */
.bn { font-family: var(--bn); }
.en { color: var(--ink-soft); font-size: .92em; }
body.hide-en .en { display: none !important; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 40px 0; }
.center { text-align: center; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,240,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand .mark {
  width: 34px; height: 34px; flex: none; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  display: grid; place-items: center; color: #fff; font-family: var(--bn); font-size: 20px; font-weight: 700;
}
.brand .name { font-family: var(--bn); font-weight: 700; font-size: 18px; line-height: 1.1; }
.brand .name small { display: block; font-family: var(--latin); font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }

.btn-ghost {
  font: inherit; font-size: 13px; font-weight: 600;
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  padding: 6px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.exit-btn {
  font: inherit; font-size: 13px; font-weight: 700;
  background: var(--danger); color: #fff; border: 0;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.exit-btn:hover { filter: brightness(1.08); }

/* ---------- Nav ---------- */
.nav { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 12px; display: flex; gap: 2px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; text-decoration: none; color: var(--ink-soft); font-weight: 600;
  padding: 12px 14px; border-bottom: 3px solid transparent; font-size: 14px; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.nav a .bn { font-size: 15px; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.nav a[aria-current="page"] .bn { color: var(--brand-deep); }
.nav a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 50% -120px, rgba(201,146,58,.20), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  text-align: center; padding: 56px 20px 48px;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); font-weight: 700; margin: 0 0 14px; }
.hero h1 { font-family: var(--bn); font-size: clamp(30px, 7vw, 46px); line-height: 1.15; margin: 0 0 6px; font-weight: 700; }
.hero .h1-en { font-family: var(--latin); font-size: clamp(15px,3.5vw,19px); color: var(--ink-soft); font-weight: 600; margin: 0 0 18px; }
.hero p.lede { max-width: 540px; margin: 0 auto 26px; color: var(--ink-soft); }
.hero p.lede .bn { color: var(--ink); display: block; font-size: 1.12em; margin-bottom: 4px; }

/* ---------- Buttons / CTAs ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 999px; cursor: pointer; border: 0;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-secondary { background: var(--surface); color: var(--accent); border: 1.5px solid var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.btn .bn { font-size: 1.08em; }
.btn .ico { font-size: 1.15em; line-height: 1; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 4px; font-family: var(--bn); font-size: 20px; }
.card h3 .en { display: block; font-family: var(--latin); font-size: 13px; }
.card p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }
.card .meta { font-size: 12px; color: var(--brand); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-top: 12px; }

/* ---------- Inline playlist player ---------- */
.player { padding: 0; overflow: hidden; }
.player-head { padding: 20px 20px 4px; }
.player-head h3 { margin: 0; }
.player-sub { margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; }
.player-now { padding: 12px 20px 0; font-size: 15px; }
.player-now > .bn, .player-now > .en { color: var(--ink-soft); }
.player-now #np { font-weight: 700; color: var(--brand-deep); }
.player audio { width: calc(100% - 40px); margin: 12px 20px 4px; display: block; }
.player-controls { display: flex; gap: 10px; padding: 4px 20px 16px; }
.player-controls .btn-ghost { font-size: 14px; padding: 8px 14px; }
.tracklist { list-style: none; margin: 0; padding: 6px; max-height: 300px; overflow-y: auto; border-top: 1px solid var(--line); background: var(--bg); }
.tracklist li { margin: 0; }
.tracklist button { display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; font: inherit; color: var(--ink); }
.tracklist button:hover { background: var(--bg-soft); }
.tracklist button[aria-current="true"] { background: var(--bg-soft); color: var(--brand-deep); font-weight: 700; }
.tracklist .track-n { color: var(--brand); font-weight: 700; min-width: 1.8em; text-align: right; }
.tracklist .track-t { display: flex; flex-direction: column; }

/* audio story row */
.story { display: flex; flex-direction: column; gap: 12px; }
.story audio { width: 100%; }
.story-link {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  text-decoration: none; font-weight: 700; color: var(--accent); font-size: 15px;
}
.story-link:hover { color: var(--accent-deep); }

/* ---------- Section headings ---------- */
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head h2 { font-family: var(--bn); font-size: clamp(24px,5vw,32px); margin: 0 0 4px; }
.sec-head .en { font-size: 15px; }
.sec-head p { color: var(--ink-soft); max-width: 540px; margin: 10px auto 0; }

/* ---------- Arclight / responsive embed ---------- */
.arc-cont { position: relative; display: block; margin: 0 auto; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #1a1512; }
.arc-cont::after { padding-top: 59%; display: block; content: ""; }
.arc-cont > iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Lazy video ---------- */
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #1a1512; box-shadow: var(--shadow); cursor: pointer; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .82; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-frame .play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.video-frame .play span {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(181,100,46,.92);
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(0,0,0,.4);
}
.video-frame .play span::after { content: ""; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; margin-left: 5px; }

/* ---------- Gospel path steps ---------- */
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.step .num { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.step h3 { font-family: var(--bn); font-size: 22px; margin: 4px 0 12px; }
.step h3 .en { display: block; font-family: var(--latin); font-size: 14px; }
.verse { font-family: var(--bn); font-size: 19px; line-height: 1.85; margin: 0 0 6px; }
.verse-en { color: var(--ink-soft); font-size: 15px; font-style: italic; margin: 0 0 10px; }
.ref { font-size: 13px; font-weight: 700; color: var(--accent); }
.step .listen-inline { margin-top: 14px; }

/* ---------- Connect ---------- */
.connect-form { display: grid; gap: 14px; }
.connect-form label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 4px; }
.connect-form label .en { font-weight: 600; }
.connect-form input, .connect-form textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
}
.connect-form textarea { min-height: 120px; resize: vertical; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }

.note { font-size: 13px; color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 32px 20px 40px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.footer .verse-foot { font-family: var(--bn); font-size: 16px; color: var(--ink); max-width: 520px; margin: 0 auto 14px; }
.footer a { color: var(--brand); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

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