/*
Theme Name: b444 Journal
Theme URI: https://b444.beer/
Author: b444.beer editorial team
Description: Independent Bengali information guide theme for b444.beer.
Version: 2.0.0
Text Domain: b444-journal
*/

:root { --bg:#071915; --surface:#0b211c; --surface-2:#102a24; --info:#15372f; --text:#f4f8f6; --muted:#afc2ba; --border:#29483e; --accent:#e8c45b; --accent-2:#3bc29a; --focus:#79e0be; --warning:#e0a54b; --max:1180px; --article:760px; --radius:16px; --shadow:0 18px 42px rgba(0,0,0,.2); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:88px; }
body { margin:0; overflow-x:hidden; background:var(--bg); color:var(--text); font-family:"Noto Sans Bengali","Nirmala UI",Vrinda,system-ui,sans-serif; font-size:17px; line-height:1.78; text-rendering:optimizeLegibility; }
body.menu-open { overflow:hidden; }
img { display:block; max-width:100%; height:auto; }
a { color:var(--accent-2); text-decoration:underline; text-decoration-thickness:.09em; text-underline-offset:.2em; }
a:hover { color:var(--accent); }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
.skip-link { position:fixed; left:16px; top:-100px; z-index:999; padding:10px 16px; background:var(--accent); color:#071915; }
.skip-link:focus { top:12px; }
.screen-reader-text { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.site-header { position:sticky; top:0; z-index:50; height:68px; background:rgba(7,25,21,.98); border-bottom:1px solid var(--border); }
.header-inner { width:min(calc(100% - 40px),var(--max)); height:100%; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.site-logo { color:var(--text); font-size:25px; font-weight:850; letter-spacing:-.03em; text-decoration:none; }
.site-logo span { color:var(--accent); }
.desktop-nav ul { display:flex; align-items:center; gap:22px; margin:0; padding:0; list-style:none; }
.desktop-nav a { min-height:44px; display:inline-flex; align-items:center; color:var(--text); font-size:15px; font-weight:700; text-decoration:none; border-bottom:2px solid transparent; }
.desktop-nav a:hover { color:var(--accent); border-bottom-color:var(--accent); }
.menu-toggle,.menu-close { min-width:44px; min-height:44px; border:1px solid var(--border); border-radius:8px; background:var(--surface-2); color:var(--text); font:inherit; cursor:pointer; }
.menu-toggle { display:none; }
.mobile-drawer { position:fixed; inset:0; z-index:80; display:none; background:rgba(0,0,0,.72); }
.mobile-drawer[aria-hidden="false"] { display:block; }
.drawer-panel { width:min(88vw,380px); height:100%; margin-left:auto; padding:18px 22px 32px; overflow-y:auto; background:var(--surface); border-left:1px solid var(--border); }
.drawer-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; }
.mobile-nav ul { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.mobile-nav a { display:flex; align-items:center; min-height:48px; padding:8px 12px; border-radius:8px; color:var(--text); text-decoration:none; }
.mobile-nav a:hover { background:var(--info); color:var(--accent); }
.title-zone { width:min(calc(100% - 40px),900px); margin:0 auto; padding:84px 0 44px; text-align:left; }
.eyebrow { display:inline-block; margin-bottom:18px; color:var(--accent-2); font-size:14px; font-weight:800; letter-spacing:.04em; }
h1,h2,h3 { line-height:1.18; letter-spacing:-.025em; text-wrap:balance; }
h1 { margin:0 0 28px; font-size:clamp(40px,5.4vw,68px); }
h2 { margin:0 0 28px; padding-top:6px; font-size:clamp(30px,4vw,45px); }
h2::before { display:block; width:54px; height:3px; margin-bottom:22px; background:var(--accent); content:""; }
h3 { margin:36px 0 12px; color:var(--accent-2); font-size:clamp(21px,2.5vw,27px); }
.lead { margin:0; color:#dce8e3; font-size:clamp(18px,2.1vw,22px); line-height:1.7; }
.actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:30px; }
.button { min-height:48px; display:inline-flex; align-items:center; justify-content:center; padding:11px 18px; border:1px solid var(--accent); border-radius:8px; background:var(--accent); color:#071915; font-weight:800; text-decoration:none; }
.button.secondary { background:transparent; color:var(--text); border-color:var(--border); }
.button:hover { background:#f3d77f; color:#071915; }
.hero-media { width:min(calc(100% - 40px),var(--max)); margin:0 auto 72px; }
.hero-media img,.section-media img { width:100%; border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); object-fit:cover; }
.hero-media img { aspect-ratio:16/9; }
.media-caption { margin:10px 4px 0; color:var(--muted); font-size:14px; }
.content-shell { width:min(calc(100% - 40px),var(--max)); margin:0 auto; }
.article-grid { display:grid; grid-template-columns:minmax(0,var(--article)) 240px; gap:80px; align-items:start; justify-content:center; }
.article-body { min-width:0; }
.article-body section { padding:84px 0; border-top:1px solid var(--border); }
.article-body section:first-child { border-top:0; }
.article-body p { margin:0 0 1.25em; }
.article-body strong { color:var(--text); }
.article-toc { position:sticky; top:96px; padding:22px; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
.article-toc strong { display:block; margin-bottom:12px; color:var(--accent); font-size:14px; }
.article-toc ol { margin:0; padding-left:22px; }
.article-toc a { display:inline-block; padding:4px 0; color:var(--muted); font-size:14px; }
.section-media { margin:36px 0; }
.section-media img { aspect-ratio:14/9; }
.notice { margin:28px 0; padding:22px; border-left:4px solid var(--warning); border-radius:0 8px 8px 0; background:var(--info); }
.fact-list { margin:26px 0; padding:0; list-style:none; border-top:1px solid var(--border); }
.fact-list li { padding:16px 0; border-bottom:1px solid var(--border); }
.table-wrap { max-width:100%; margin:30px 0; overflow-x:auto; border:1px solid var(--border); border-radius:8px; }
table { width:100%; min-width:640px; border-collapse:collapse; background:var(--surface); }
th,td { padding:15px; text-align:left; vertical-align:top; border-bottom:1px solid var(--border); }
th { color:var(--accent); font-size:15px; }
.faq details { border-top:1px solid var(--border); }
.faq details:last-child { border-bottom:1px solid var(--border); }
.faq summary { min-height:56px; display:flex; align-items:center; cursor:pointer; color:var(--text); font-size:19px; font-weight:800; }
.faq details p { padding:0 0 20px; color:#d6e4de; }
.core-page { width:min(calc(100% - 40px),var(--article)); margin:0 auto; padding:76px 0 100px; }
.core-page h1 { font-size:clamp(38px,5vw,58px); }
.core-page .page-content { margin-top:42px; padding-top:36px; border-top:1px solid var(--border); }
.site-footer { margin-top:80px; padding:56px 0 30px; border-top:1px solid var(--border); background:#05130f; }
.footer-inner { width:min(calc(100% - 40px),var(--max)); margin:0 auto; display:grid; grid-template-columns:1.5fr 1fr; gap:80px; }
.footer-title { margin:0 0 12px; font-size:25px; font-weight:850; }
.footer-note { max-width:650px; margin:0; color:var(--muted); }
.footer-links { display:grid; gap:9px; align-content:start; }
.footer-links a { min-height:44px; display:flex; align-items:center; color:var(--text); }
.footer-bottom { width:min(calc(100% - 40px),var(--max)); margin:36px auto 0; padding-top:20px; border-top:1px solid var(--border); color:var(--muted); font-size:14px; }
.not-found { min-height:55vh; width:min(calc(100% - 40px),var(--article)); margin:0 auto; padding:100px 0; }
@media (max-width:1023px) { .desktop-nav{display:none}.menu-toggle{display:inline-flex;align-items:center;justify-content:center}.article-grid{grid-template-columns:minmax(0,var(--article));gap:0}.article-toc{position:static;grid-row:1;margin:0 0 24px} }
@media (max-width:767px) { body{font-size:16px}.header-inner,.title-zone,.hero-media,.content-shell,.core-page,.footer-inner,.footer-bottom{width:min(calc(100% - 32px),var(--max))}.title-zone{padding:54px 0 34px}h1{font-size:clamp(34px,10vw,42px)}h2{font-size:clamp(28px,8vw,36px)}.hero-media{margin-bottom:44px}.article-body section{padding:52px 0}.actions{display:grid}.button{width:100%}.section-media{margin:28px 0}.footer-inner{grid-template-columns:1fr;gap:34px} }
@media (prefers-reduced-motion:reduce) { html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important} }
