/*
Theme Name: kk333 Independent Guide
Theme URI: https://kk333.beer/
Author: kk333 Editorial
Description: A bn-BD independent information guide using the locked dark emerald longform preset.
Version: 1.0.0
Text Domain: kk333-guide
*/

:root {
  --bg: #071915;
  --surface: #0b211c;
  --surface-2: #102a24;
  --gold: #e8c45b;
  --mint: #3bc29a;
  --text: #f4f8f6;
  --muted: #afc2ba;
  --border: #29483e;
  --info: #15372f;
  --focus: #79e0be;
  --content: 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: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Hind Siliguri", "Vrinda", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
a { color: var(--gold); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #ffe48d; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
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; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; background: var(--text); color: var(--bg); padding: .75rem 1rem; z-index: 10000; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(7,25,21,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-inner { max-width: var(--content); height: 68px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: var(--text); font-family: ui-serif, Georgia, serif; font-size: 1.65rem; font-weight: 800; letter-spacing: .02em; text-decoration: none; }
.site-brand span { color: var(--gold); }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; }
.primary-menu { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 14px; color: var(--text); text-decoration: none; border-bottom: 2px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item a { color: var(--gold); border-bottom-color: var(--gold); }

.site-main { min-height: 60vh; }
.article-hero { padding: 78px 24px 36px; }
.hero-inner, .content-wrap { width: min(var(--article), calc(100% - 48px)); margin-inline: auto; }
.hero-inner { width: min(900px, calc(100% - 48px)); }
.eyebrow { margin: 0 0 12px; color: var(--mint); font-size: .83rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0 0 24px; font-family: ui-serif, Georgia, serif; font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.13; letter-spacing: -.025em; }
.lede { max-width: 820px; margin: 0; color: #dbe8e3; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 18px; border: 1px solid var(--gold); border-radius: 8px; background: var(--gold); color: #102017; font-weight: 800; text-decoration: none; }
.button:hover { background: #ffe48d; color: #102017; }
.button-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button-secondary:hover { background: var(--surface-2); color: var(--gold); border-color: var(--gold); }

.wide-figure { width: min(var(--content), calc(100% - 48px)); margin: 24px auto 64px; }
.wide-figure img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.wide-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .86rem; }
.article-content { width: min(var(--article), calc(100% - 48px)); margin: 0 auto; padding-bottom: 80px; }
.article-content section { padding: 64px 0 8px; border-top: 1px solid var(--border); }
.article-content section:first-child { border-top: 0; }
h2 { position: relative; margin: 0 0 24px; padding-top: 18px; font-family: ui-serif, Georgia, serif; font-size: clamp(1.85rem, 4vw, 2.65rem); line-height: 1.24; }
h2::before { content: ""; position: absolute; top: 0; left: 0; width: 62px; height: 3px; background: var(--gold); }
h3 { margin: 34px 0 10px; color: var(--mint); font-size: 1.3rem; line-height: 1.35; }
p, ul, ol { margin: 0 0 1.35em; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: .55em; }
.notice { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; background: var(--info); color: #e5f0ec; }
.section-figure { margin: 30px 0; }
.section-figure img { width: 100%; aspect-ratio: 14 / 9; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius); }
.section-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .86rem; }
.table-scroll { overflow-x: auto; margin: 28px 0; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--surface-2); color: var(--gold); }
tr:last-child td { border-bottom: 0; }
.link-list { margin: 28px 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.link-list li { margin: 0; border-bottom: 1px solid var(--border); }
.link-list a { display: block; min-height: 52px; padding: 12px 0; font-weight: 700; }
.faq-list details { border-top: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary { min-height: 54px; padding: 14px 36px 14px 0; cursor: pointer; color: var(--text); font-weight: 800; }
.faq-list details p { padding: 0 0 18px; color: #dbe8e3; }

.page-hero { padding: 78px 24px 16px; }
.page-content { width: min(var(--article), calc(100% - 48px)); margin-inline: auto; padding: 28px 0 88px; }
.page-content > *:first-child { margin-top: 0; }
.page-content h2 { margin-top: 54px; }
.page-content .email { display: inline-block; padding: 4px 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text); font-family: ui-monospace, monospace; }

.site-footer { border-top: 1px solid var(--border); background: #05120f; }
.footer-inner { max-width: var(--content); margin: auto; padding: 58px 24px 34px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; }
.footer-title { margin: 0 0 12px; font-family: ui-serif, Georgia, serif; font-size: 1.5rem; }
.footer-copy { max-width: 610px; color: var(--muted); }
.footer-heading { margin: 0 0 12px; color: var(--mint); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-bottom { max-width: var(--content); margin: auto; padding: 22px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

.error-page { width: min(var(--article), calc(100% - 48px)); margin: 0 auto; padding: 100px 0; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { padding-inline: 16px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { position: fixed; inset: 68px 0 auto 0; display: none; padding: 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; }
  .primary-menu a { min-height: 48px; border: 1px solid var(--border); border-radius: 8px; }
  .article-hero, .page-hero { padding: 48px 16px 22px; }
  .hero-inner, .content-wrap, .article-content, .page-content { width: 100%; }
  h1 { font-size: clamp(2.15rem, 11vw, 2.65rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .wide-figure { width: calc(100% - 32px); margin-bottom: 42px; }
  .wide-figure img { min-height: 220px; object-fit: cover; }
  .article-content, .page-content { padding-left: 16px; padding-right: 16px; }
  .article-content section { padding-top: 48px; }
  .section-figure img { min-height: 240px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 44px 16px 26px; }
  .footer-bottom { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
