/*
Theme Name: vk333 Independent Guide
Theme URI: https://vk333.beer/
Author: vk333.beer editorial guide
Description: Bengali independent information guide using the locked Charcoal Cinematic Story preset.
Version: 1.0.0
Text Domain: vk333-guide
*/

:root {
  --bg: #090a0c;
  --bg-soft: #12151a;
  --section: #181c22;
  --accent: #d8a64a;
  --accent-2: #7da7c7;
  --text: #f2f2ef;
  --muted: #b4b6b9;
  --border: #30343a;
  --info: #1d2228;
  --warning: #dfa552;
  --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; scroll-padding-top: 92px; }
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: 18px;
  line-height: 1.74;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #f3ce7b; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.site-shell { width: min(calc(100% - 48px), var(--wide)); margin-inline: auto; }
.reading-width { width: min(calc(100% - 48px), var(--reading)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; clip: auto; margin: 0; padding: 10px 16px; background: var(--text); color: var(--bg); }

.site-header { position: sticky; top: 0; z-index: 100; min-height: 72px; background: rgba(9,10,12,.9); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { color: var(--text); font-size: 1.4rem; font-weight: 800; letter-spacing: .02em; text-decoration: none; }
.site-brand span { color: var(--accent); }
.main-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--text); font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--accent); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 999px; background: var(--section); color: var(--text); font: inherit; }

.hero { position: relative; padding: 92px 0 46px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(216,166,74,.15), transparent 46%); }
.hero-inner { width: min(calc(100% - 48px), 960px); margin-inline: auto; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 960px; margin: 0 auto 24px; font-size: clamp(42px, 6.2vw, 80px); line-height: 1.08; letter-spacing: -.035em; }
.hero-lead { max-width: 760px; margin: 0 auto 28px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-answer { max-width: 820px; margin: 0 auto; color: var(--text); }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 22px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: #15120b; font-weight: 800; text-decoration: none; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button:hover { color: #090a0c; background: #f3ce7b; }
.button.secondary:hover { color: var(--text); background: var(--section); }

.guide-image { width: min(calc(100% - 48px), var(--wide)); margin: 48px auto 0; }
.guide-image img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 14 / 9; }
.guide-image.hero-image img { aspect-ratio: 16 / 9; }
.guide-image figcaption { max-width: var(--reading); margin: 12px auto 0; color: var(--muted); font-size: .88rem; text-align: center; }

.article-body { padding: 36px 0 96px; }
.article-body > p, .article-body > h2, .article-body > h3, .article-body > ul, .article-body > ol, .article-body > table, .article-body > .table-wrap, .article-body > .notice, .article-body > .faq-list, .article-body > .inline-links { width: min(calc(100% - 48px), var(--reading)); margin-left: auto; margin-right: auto; }
.article-body h2 { margin-top: 104px; margin-bottom: 22px; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.14; letter-spacing: -.025em; }
.article-body h3 { margin-top: 46px; font-size: 1.45rem; line-height: 1.3; }
.article-body p { margin-top: 0; margin-bottom: 24px; color: #e4e4e1; }
.article-body strong { color: #fff; }
.article-body .guide-image + h2 { margin-top: 104px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--accent); background: var(--section); }
tr:last-child td { border-bottom: 0; }
.notice { padding: 22px 24px; border-left: 4px solid var(--warning); border-radius: 0 14px 14px 0; background: var(--info); color: var(--text); }
.inline-links { margin-top: 40px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-soft); }
.faq-list details { margin: 0 0 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--section); }
.faq-list summary { min-height: 56px; padding: 16px 52px 16px 20px; cursor: pointer; color: var(--text); font-weight: 800; }
.faq-list details p { width: auto; padding: 0 20px 20px; margin: 0; color: var(--muted); }

.page-hero { padding: 92px 0 30px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(125,167,199,.13), transparent 48%); }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 68px); }
.page-content { padding: 36px 0 100px; }
.page-content > * { width: min(calc(100% - 48px), var(--reading)); margin-left: auto; margin-right: auto; }
.page-content p { margin-top: 0; margin-bottom: 25px; color: #e4e4e1; }
.page-content h2 { margin-top: 62px; font-size: 2.2rem; line-height: 1.2; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr); gap: 48px; padding: 56px 0; }
.footer-note { max-width: 650px; margin: 10px 0 0; color: var(--muted); }
.footer-title { margin: 0 0 12px; color: var(--accent); font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text); }
.footer-bottom { padding: 18px 0 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; }

.error-page { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.error-page h1 { font-size: clamp(44px, 8vw, 96px); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-shell, .reading-width, .hero-inner, .article-body > p, .article-body > h2, .article-body > h3, .article-body > ul, .article-body > ol, .article-body > table, .article-body > .table-wrap, .article-body > .notice, .article-body > .faq-list, .article-body > .inline-links, .page-content > * { width: min(calc(100% - 32px), 100%); }
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav { display: none; position: absolute; top: 72px; right: 16px; left: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-soft); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 8px 14px; }
  .hero { padding-top: 62px; }
  h1 { font-size: clamp(36px, 11vw, 46px); }
  .button-row { flex-direction: column; }
  .button { width: 100%; }
  .guide-image { width: min(calc(100% - 32px), var(--wide)); margin-top: 34px; }
  .guide-image img, .guide-image.hero-image img { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; }
  .article-body h2 { margin-top: 56px; }
  .table-wrap table { min-width: 660px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 42px 0; }
}

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