/*
Theme Name: ggqq Guide
Theme URI: https://ggqq.beer/
Author: ggqq.beer Editorial
Description: Bengali independent information guide theme.
Version: 1.0.0
Text Domain: ggqq-guide
*/

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: var(--accent-2); text-decoration-thickness: 1px; 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: 3px; }
img { max-width: 100%; height: auto; display: block; }
.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 { width: auto; height: auto; clip: auto; margin: 10px; padding: 10px 14px; z-index: 9999; background: var(--text); color: var(--bg); }
.site-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }

.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 { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-brand { color: var(--text); font-size: 1.42rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.site-brand::before { content: ""; display: inline-block; width: 22px; height: 3px; margin-right: 9px; vertical-align: middle; border-radius: 3px; background: var(--accent); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; }
.primary-menu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 24px; }
.primary-menu a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--accent); border-color: var(--accent); }
.mobile-label { display: none; }

.site-main { min-height: 65vh; }
.article-hero { padding: 76px 0 34px; border-bottom: 1px solid var(--border); background-image: linear-gradient(rgba(59,194,154,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(59,194,154,.045) 1px, transparent 1px); background-size: 32px 32px; }
.hero-copy { max-width: 920px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: .9rem; font-weight: 800; letter-spacing: .04em; }
h1, h2, h3 { margin-top: 0; line-height: 1.24; text-wrap: balance; }
h1 { margin-bottom: 24px; font-size: clamp(2.35rem, 5.4vw, 4.25rem); letter-spacing: -.035em; }
.hero-summary { max-width: 800px; margin: 0 0 28px; color: #dce8e3; font-size: clamp(1.08rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #102119; font-weight: 800; text-decoration: none; }
.button:hover { background: #f2d477; color: #102119; }
.button-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button-secondary:hover { background: var(--surface-2); color: var(--accent); }

.hero-media { width: min(calc(100% - 40px), var(--content)); margin: 40px auto 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--surface); }
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.figure-caption { padding: 10px 14px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--border); }
.article-lead { width: min(calc(100% - 40px), var(--article)); margin: 56px auto 0; padding: 22px 24px; background: var(--surface-info); border-left: 4px solid var(--accent); border-radius: var(--radius); color: #eaf3ef; }
.article-layout { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, var(--article)) 240px; justify-content: center; gap: 72px; align-items: start; }
.article-body { min-width: 0; }
.article-body section { padding: 88px 0 0; }
.article-body section + section { margin-top: 88px; padding-top: 88px; border-top: 1px solid var(--border); }
.article-body h2 { position: relative; padding-top: 14px; margin-bottom: 26px; font-size: clamp(1.85rem, 3.2vw, 2.65rem); }
.article-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 54px; height: 3px; background: var(--accent); border-radius: 2px; }
.article-body h3 { margin-top: 42px; margin-bottom: 18px; color: var(--accent-2); font-size: clamp(1.28rem, 2.4vw, 1.6rem); }
.article-body p { margin: 0 0 1.25em; }
.article-body strong { color: #fff4c9; }
.article-body ul, .article-body ol { padding-left: 1.25em; }
.section-media { margin: 34px 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); box-shadow: var(--shadow); }
.section-media img { width: 100%; aspect-ratio: 14 / 8; object-fit: cover; }
.section-media figcaption { padding: 10px 14px; color: var(--muted); font-size: .88rem; }
.table-wrap { margin: 32px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; min-width: 690px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 14px 16px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--accent); background: var(--surface-2); font-size: .93rem; }
tr:last-child td { border-bottom: 0; }
.inline-cta { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.inline-cta a { font-weight: 800; }
.toc { position: sticky; top: 98px; margin-top: 88px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.toc-title { margin: 0 0 12px; color: var(--muted); font-size: .86rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc a { display: inline-block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq-list summary { min-height: 54px; display: flex; align-items: center; padding: 12px 18px; cursor: pointer; color: var(--text); font-weight: 800; }
.faq-list details p { padding: 0 18px 18px; color: #dce8e3; }

.page-hero { padding: 76px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero-inner, .page-content { width: min(calc(100% - 40px), var(--article)); margin-inline: auto; }
.page-hero h1 { font-size: clamp(2.25rem, 4.8vw, 3.75rem); }
.page-content { padding: 64px 0 96px; }
.page-content h2 { margin-top: 52px; color: var(--accent); font-size: 1.65rem; }
.page-content p { margin: 0 0 1.35em; }
.notice { padding: 18px 20px; border: 1px solid var(--border); border-left: 4px solid var(--warning); border-radius: var(--radius); background: var(--surface-info); }

.site-footer { padding: 72px 0 28px; border-top: 1px solid var(--border); background: #061410; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; }
.footer-title { margin: 0 0 12px; font-size: 1.25rem; }
.footer-note { max-width: 680px; color: var(--muted); }
.footer-menu { display: grid; gap: 8px; }
.footer-menu a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.error-page { width: min(calc(100% - 40px), var(--article)); margin: 0 auto; padding: 100px 0; }

@media (max-width: 1023px) {
  .article-layout { display: block; width: min(calc(100% - 40px), var(--article)); }
  .toc { position: static; margin-top: 56px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-shell, .hero-media, .article-lead, .article-layout, .page-hero-inner, .page-content, .error-page { width: min(calc(100% - 32px), var(--content)); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { display: none; position: fixed; inset: 69px 0 auto; max-height: calc(100vh - 69px); overflow-y: auto; padding: 22px 16px 30px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .primary-nav.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 4px; }
  .primary-menu a { min-height: 52px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius); }
  .primary-menu a:hover { background: var(--surface); border-color: var(--border); }
  .desktop-label { display: none; }
  .mobile-label { display: inline; }
  .article-hero, .page-hero { padding-top: 54px; }
  h1 { font-size: clamp(2.15rem, 11vw, 2.7rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-media { margin-top: 28px; }
  .article-lead { margin-top: 38px; padding: 18px; }
  .article-body section { padding-top: 48px; }
  .article-body section + section { margin-top: 48px; padding-top: 48px; }
  .article-body h2 { font-size: 1.8rem; }
  .section-media { margin-inline: 0; }
  .toc { margin-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer { padding-top: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
