/*
Theme Name: C777BD Cinematic WR1H
Theme URI: https://c777bd.beer/
Author: c777bd বাংলা গাইড
Description: Independent Bengali editorial guide theme, fresh run Wr1HiKrT.
Version: 1.0.0
Text Domain: c777bd-cinematic
*/

:root {
  --bg: #090a0c;
  --surface: #12151a;
  --surface-2: #181c22;
  --ink: #f2f2ef;
  --muted: #b4b6b9;
  --gold: #d8a64a;
  --blue: #7da7c7;
  --line: #30343a;
  --focus: #f3ce7b;
  --wide: 1320px;
  --reading: 820px;
  --radius: 22px;
  --shadow: 0 28px 72px rgba(0,0,0,.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Bengali", "Noto Sans", "Hind Siliguri", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.74;
  text-rendering: optimizeLegibility;
}
a { color: #f0c66e; text-underline-offset: .2em; }
a:hover { color: #fff1c8; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; background: #fff; color: #111; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 100; min-height: 72px; border-bottom: 1px solid rgba(216,166,74,.18); background: rgba(9,10,12,.92); backdrop-filter: blur(18px); }
.header-inner { width: min(calc(100% - 40px), var(--wide)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { flex: 0 0 auto; }
.custom-logo-link { display: flex; align-items: center; min-height: 48px; }
.custom-logo { width: auto; height: 46px; max-width: 330px; object-fit: contain; }
.brand-fallback { font-weight: 800; font-size: 1.12rem; text-decoration: none; letter-spacing: -.01em; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; }
.primary-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin: 0; padding: 0; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 11px; border-radius: 999px; color: var(--ink); font-size: .84rem; font-weight: 650; line-height: 1.2; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--surface-2); color: var(--gold); }

.site-main { min-height: 65vh; }
.hero, .page-header { width: min(calc(100% - 40px), 960px); margin: 0 auto; padding: clamp(70px, 10vw, 132px) 0 48px; text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.35rem, 6.2vw, 5rem); line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
.page-header h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); }
.hero-deck { max-width: 760px; margin: 28px auto 0; color: var(--muted); font-size: clamp(1.04rem, 1.9vw, 1.28rem); }
.article-shell { padding-bottom: 100px; }
.entry-content { width: min(calc(100% - 40px), var(--reading)); margin: 0 auto; }
.entry-content > h2 { margin: clamp(68px, 8vw, 104px) 0 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; scroll-margin-top: 96px; }
.entry-content > h3 { margin: 48px 0 18px; color: #f5d897; font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.3; }
.entry-content p { margin: 0 0 1.45em; }
.entry-content strong { color: #fff; }
.entry-content ul, .entry-content ol { margin: 20px 0 32px; padding-left: 1.4em; }
.entry-content li { margin-bottom: .65em; padding-left: .25em; }
.entry-content blockquote { margin: 40px 0; padding: 24px 28px; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--surface-2); color: #e8e6df; }
.editorial-wide { width: min(calc(100vw - 40px), var(--wide)); max-width: none; margin: clamp(44px, 6vw, 76px) 50% clamp(50px, 7vw, 84px); transform: translateX(-50%); }
.editorial-wide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid rgba(216,166,74,.18); border-radius: var(--radius); box-shadow: var(--shadow); }
.editorial-wide.hero-image img { aspect-ratio: 16 / 9; }
.editorial-wide figcaption { max-width: var(--reading); margin: 13px auto 0; color: var(--muted); font-size: .88rem; }

.asset-table { width: min(calc(100vw - 40px), 1080px); max-width: none; margin: 36px 50% 56px; transform: translateX(-50%); overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 20px 50px rgba(0,0,0,.22); }
table { width: 100%; min-width: 660px; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-2); color: #f6d897; font-size: .88rem; }
tr:last-child td { border-bottom: 0; }

.faq-section { margin-top: 92px; padding-top: 24px; border-top: 1px solid var(--line); }
.faq-section h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.faq-item { margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: clip; }
.faq-item summary { min-height: 54px; padding: 17px 54px 17px 20px; cursor: pointer; color: #fff; font-weight: 750; position: relative; }
.faq-item summary::after { content: "+"; position: absolute; right: 21px; top: 13px; color: var(--gold); font-size: 1.45rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 20px 20px; color: #d6d6d2; }
.faq-answer p { margin: 0; }

.site-footer { border-top: 1px solid var(--line); background: #07080a; }
.footer-inner { width: min(calc(100% - 40px), var(--wide)); margin: auto; padding: 48px 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; }
.footer-brand { margin: 0 0 12px; font-size: 1.2rem; font-weight: 800; }
.footer-copy { max-width: 620px; margin: 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; justify-content: flex-end; gap: 10px 18px; }
.footer-links a { color: #d6d6d2; font-size: .9rem; }
.footer-meta { width: min(calc(100% - 40px), var(--wide)); margin: auto; padding: 18px 0 30px; border-top: 1px solid #22262c; color: #888d93; font-size: .82rem; }

@media (max-width: 1120px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .primary-nav { position: absolute; left: 20px; right: 20px; top: 72px; display: none; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #0c0e12; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 4px; }
  .primary-nav a { padding: 12px 14px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .header-inner, .hero, .page-header, .entry-content, .footer-inner, .footer-meta { width: min(calc(100% - 32px), var(--wide)); }
  .custom-logo { max-width: 230px; height: 40px; }
  .hero, .page-header { padding-top: 64px; }
  h1 { font-size: clamp(2.25rem, 11vw, 2.9rem); }
  .entry-content > h2 { margin-top: 60px; }
  .editorial-wide, .asset-table { width: calc(100vw - 32px); }
  .editorial-wide img { border-radius: 14px; }
  .editorial-wide.hero-image img { aspect-ratio: 4 / 5; object-position: 68% center; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
