/*
Theme Name: uubd Guide
Theme URI: https://uubd.beer/
Author: uubd.beer editorial
Description: Independent Bengali information guide theme using the locked dark emerald longform preset.
Version: 1.0.0
Text Domain: uubd-guide
*/

:root {
  --bg: #071915;
  --surface: #0b211c;
  --surface-2: #102a24;
  --text: #f4f8f6;
  --muted: #afc2ba;
  --line: #29483e;
  --gold: #e8c45b;
  --mint: #3bc29a;
  --focus: #79e0be;
  --warning: #e0a54b;
  --max: 1180px;
  --reading: 760px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  overflow-wrap: break-word;
  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;
}
body.nav-open { overflow: hidden; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: #f6dc8c; }
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; }
.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; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 25, 21, .97);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--text); font-weight: 800; font-size: 25px; letter-spacing: .02em; text-decoration: none; }
.brand-mark { color: var(--gold); }
.nav-list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-list a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; color: var(--text); font-weight: 700; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface-2); font: inherit; }
.hero { padding: clamp(64px, 9vw, 112px) 0 38px; }
.eyebrow { margin: 0 0 16px; color: var(--gold); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 980px; margin: 0; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.11; letter-spacing: -.025em; }
.hero-lead { max-width: 860px; margin: 25px 0 0; color: #d7e3de; font-size: clamp(19px, 2vw, 23px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); border-radius: 8px; padding: 10px 18px; color: #071915; background: var(--gold); font-weight: 800; text-decoration: none; }
.button.secondary { color: var(--text); background: transparent; border-color: var(--line); }
.intro { margin-top: 34px; padding-left: 20px; border-left: 3px solid var(--mint); color: #d7e3de; }
.feature-image { width: min(calc(100% - 40px), var(--max)); margin: 46px auto 0; }
.feature-image img, .article-figure img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.article { padding: 30px 0 90px; }
.article-section { padding-top: 76px; }
.article-section + .article-section { border-top: 1px solid var(--line); margin-top: 72px; }
h2 { margin: 0 0 25px; padding-top: 3px; border-top: 3px solid var(--gold); font-size: clamp(29px, 4vw, 42px); line-height: 1.25; }
h3 { margin-top: 36px; color: var(--mint); font-size: clamp(22px, 3vw, 28px); line-height: 1.35; }
p { margin: 0 0 1.25em; }
.article-figure { margin: 34px 0 36px; }
.evidence-note { margin-top: 30px; padding: 22px 24px; border: 1px solid #6e5730; border-left: 4px solid var(--warning); border-radius: 8px; background: #211e15; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 42px; }
.next-card { min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-decoration: none; }
.next-card strong { color: var(--text); font-size: 20px; }
.next-card span { color: var(--muted); }
.faq { margin-top: 38px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 58px; display: flex; align-items: center; cursor: pointer; color: var(--text); font-weight: 800; }
.faq details p { padding: 0 0 18px; color: #d7e3de; }
.page-hero { padding: 76px 0 24px; }
.page-hero h1 { max-width: 900px; font-size: clamp(38px, 5vw, 58px); }
.page-content { padding: 26px 0 96px; }
.page-content p:first-child { color: #d7e3de; font-size: 20px; }
.inline-links { margin-top: 36px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 36px; background: #05120f; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-title { color: var(--text); font-weight: 800; font-size: 18px; }
.footer-nav { list-style: none; padding: 0; margin: 12px 0 0; }
.footer-nav li + li { margin-top: 9px; }
.footer-note { color: var(--muted); }
.copyright { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.not-found { min-height: 55vh; padding: 90px 0; }

@media (max-width: 768px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 32px), var(--max)); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { display: none; position: fixed; inset: 69px 0 auto; padding: 18px 16px 24px; border-bottom: 1px solid var(--line); background: var(--bg); }
  .site-nav.open { display: block; }
  .nav-list { display: block; }
  .nav-list a { width: 100%; min-height: 52px; }
  .hero { padding-top: 52px; }
  h1 { font-size: clamp(34px, 10vw, 42px); }
  .feature-image { width: calc(100% - 32px); margin-top: 32px; }
  .article { padding-top: 8px; }
  .article-section { padding-top: 48px; }
  .article-section + .article-section { margin-top: 48px; }
  .next-grid, .footer-grid { grid-template-columns: 1fr; }
  .next-card { min-height: 104px; }
  .hero-actions .button { width: 100%; }
}

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