/*
Theme Name: lv18 Independent Guide
Theme URI: https://lv18.beer/
Author: lv18 Guide Editorial
Description: A Bengali long-form independent information guide theme.
Version: 1.0.0
Text Domain: lv18-guide
*/

:root {
  --bg: #071915;
  --surface: #0b211c;
  --surface-2: #102a24;
  --surface-info: #15372f;
  --gold: #e8c45b;
  --mint: #3bc29a;
  --text: #f4f8f6;
  --muted: #afc2ba;
  --border: #29483e;
  --focus: #79e0be;
  --warning: #e0a54b;
  --shadow: 0 18px 42px rgba(0, 0, 0, .2);
  --radius-sm: 8px;
  --radius-lg: 16px;
  --content: 1180px;
  --article: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Noto Sans", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.78;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.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;
}
.screen-reader-text:focus {
  position: fixed; top: 8px; left: 8px; z-index: 9999; width: auto; height: auto;
  padding: 12px 16px; margin: 0; clip: auto; background: var(--text); color: var(--bg);
}

.site-header {
  position: sticky; top: 0; z-index: 100; min-height: 68px;
  background: rgba(7, 25, 21, .96); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.header-inner, .footer-inner, .page-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { color: var(--text); font-size: 1.45rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; }
.site-logo::before { content: ""; display: inline-block; width: 20px; height: 3px; margin-inline-end: 10px; background: var(--gold); vertical-align: middle; }
.site-nav ul { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.site-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 7px 14px; color: var(--text); text-decoration: none; border-radius: var(--radius-sm); }
.site-nav a:hover { background: var(--surface-2); color: var(--gold); }
.nav-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); }

.page-shell { padding-block: 72px 96px; }
.article-header, .article-body, .site-notice { width: min(100%, var(--article)); margin-inline: auto; }
.article-header { padding-block: 24px 46px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-weight: 800; line-height: 1.23; letter-spacing: -.018em; }
h1 { max-width: 900px; margin-bottom: 24px; font-size: clamp(2.45rem, 5.4vw, 4.25rem); }
h2 { position: relative; margin-bottom: 24px; padding-top: 14px; font-size: clamp(1.8rem, 3.6vw, 2.55rem); }
h2::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 52px; height: 3px; background: var(--gold); }
h3 { margin-top: 30px; font-size: 1.18rem; color: var(--mint); }
.lead { max-width: 820px; color: #dae6e1; font-size: 1.16rem; line-height: 1.72; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 10px 18px; border: 1px solid var(--gold); border-radius: var(--radius-sm);
  background: var(--gold); color: #102018; font-weight: 800; text-decoration: none;
}
.button:hover { background: #f5d674; color: #071915; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.secondary:hover { color: var(--gold); border-color: var(--gold); }

.hero-media, .content-media { margin: 0 auto; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.hero-media { width: min(100%, 1040px); }
.hero-media img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.content-media { margin-block: 34px 0; }
.content-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
figcaption { padding: 12px 16px; color: var(--muted); background: var(--surface); font-size: .88rem; }
.content-section { padding-block: 88px; border-top: 1px solid var(--border); }
.content-section:first-child { margin-top: 72px; }
.section-intro { color: #d4e2dc; font-size: 1.08rem; }
.fact-note { margin-block: 28px; padding: 22px 24px; border-inline-start: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-info); }
.fact-note strong { color: var(--gold); }
.table-scroll { margin-block: 28px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--surface); }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
th { color: var(--gold); background: var(--surface-2); font-size: .92rem; }
tr:last-child td { border-bottom: 0; }
.toc { margin: 34px auto 0; padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.toc strong { color: var(--gold); }
.toc ol { columns: 2; margin: 10px 0 0; padding-inline-start: 22px; }
.toc li { margin-block: 5px; break-inside: avoid; }
.cta-panel { margin-top: 34px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.faq-list summary { cursor: pointer; padding: 18px 20px; color: var(--text); font-weight: 800; }
.faq-list summary:hover { color: var(--gold); }
.faq-list details > div { padding: 0 20px 20px; color: #d4e2dc; }

.site-notice { margin-top: 58px; padding: 20px 24px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--muted); background: var(--surface); }
.site-footer { padding-block: 52px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr); gap: 48px; }
.footer-brand { color: var(--text); font-size: 1.3rem; font-weight: 800; }
.footer-links { display: grid; gap: 6px; align-content: start; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.copyright { margin-top: 28px; font-size: .88rem; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner, .footer-inner, .page-shell { width: min(calc(100% - 32px), var(--content)); }
  .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .js .site-nav { display: none; position: fixed; inset: 68px 0 auto; padding: 18px 16px 24px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { width: 100%; }
  .page-shell { padding-block: 42px 64px; }
  .article-header { padding-block: 10px 32px; }
  h1 { font-size: clamp(2.1rem, 10vw, 2.65rem); }
  .lead { font-size: 1.06rem; }
  .content-section { padding-block: 52px; }
  .content-section:first-child { margin-top: 48px; }
  .toc ol { columns: 1; }
  .button-row { flex-direction: column; }
  .button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

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

