/*
Theme Name: OKTK Bengali Guide
Theme URI: https://oktk.beer/
Author: oktk.beer editorial team
Description: Independent Bengali long-form information guide theme.
Version: 1.0.0
Text Domain: oktk-guide
*/

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(59, 194, 154, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 194, 154, .025) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
  color: var(--text);
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration-thickness: .09em; text-underline-offset: .2em; }
a:hover { color: #f6dc87; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
p, ul, ol { margin: 0 0 1.35em; }
strong { color: #fff; }
code {
  padding: .12em .4em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #06130f;
  color: #d4f5e9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86em;
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 25, 21, .96);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-logo {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
}
.site-logo::after { content: ".beer"; color: var(--gold); font-size: .72em; font-weight: 700; }
.site-nav ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover, .site-nav .current-menu-item > a { background: var(--surface-2); color: var(--gold); }
.nav-toggle { display: none; min-width: 48px; min-height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; margin: auto; background: currentColor; content: ""; transition: transform .2s ease; }
.nav-toggle-bars::before { transform: translateY(-7px); }
.nav-toggle-bars::after { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(0) rotate(45deg); background: var(--text); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-2px) rotate(-45deg); background: var(--text); }

.site-main { min-height: 60vh; }
.article-shell { width: min(calc(100% - 40px), var(--article)); margin: 0 auto; padding: 72px 0 96px; }
.home .article-shell { padding-top: 64px; }
.article-shell > h1:first-child {
  margin: 0 0 24px;
  max-width: 900px;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.09;
  letter-spacing: -.045em;
}
.article-shell > .eyebrow:first-child + h1 { margin-top: 12px; }
.eyebrow { margin: 0; color: var(--mint); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lead { color: #d8e7e1; font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.72; }
.hero-actions, .page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 38px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--gold);
  color: #10221c;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}
.button:hover { background: #f6dc87; color: #10221c; }
.button-secondary { border-color: var(--line); background: transparent; color: var(--text); }
.button-secondary:hover { border-color: var(--mint); background: var(--surface-2); color: #fff; }

.content-figure { width: min(100vw - 40px, 1000px); margin: 42px 50%; transform: translateX(-50%); }
.content-figure img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.content-figure figcaption { margin-top: 12px; color: var(--muted); font-size: .86rem; text-align: center; }
.article-shell > section { margin-top: 88px; }
.article-shell h2 {
  position: relative;
  margin: 0 0 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}
.article-shell h2::before { position: absolute; top: -2px; left: 0; width: 72px; height: 3px; background: var(--gold); content: ""; }
.article-shell h3 { margin: 34px 0 14px; color: #d5f7eb; font-size: 1.25rem; line-height: 1.35; }
.fact-list, .check-list { padding-left: 1.25em; }
.fact-list li, .check-list li { margin-bottom: .7em; }
.notice {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--info);
}
.notice > :last-child { margin-bottom: 0; }
.snapshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 28px 0; }
.snapshot-item { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.snapshot-item strong { display: block; margin-bottom: 4px; color: var(--gold); }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.faq-list summary { min-height: 52px; padding: 14px 48px 14px 18px; cursor: pointer; color: #fff; font-weight: 800; line-height: 1.45; }
.faq-list details > div { padding: 0 18px 18px; color: #d6e5df; }
.faq-list details p:last-child { margin-bottom: 0; }
.plain-email { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--line); background: #05130f; }
.footer-inner { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.footer-title { margin: 0 0 12px; font-size: 1.2rem; }
.footer-copy { max-width: 520px; color: var(--muted); }
.footer-nav h2 { margin: 0 0 12px; color: var(--gold); font-size: .9rem; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin: 7px 0; }
.footer-nav a { color: var(--text); }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.not-found { text-align: center; }

@media (max-width: 780px) {
  body { font-size: 16px; }
  .header-inner, .article-shell, .footer-inner { width: min(calc(100% - 32px), var(--content)); }
  .js .nav-toggle { display: block; }
  .site-nav { width: 100%; }
  .header-inner { flex-wrap: wrap; gap: 0; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 0 18px; }
  .js .site-nav { position: fixed; inset: 68px 0 auto; display: none; padding: 10px 16px 24px; border-bottom: 1px solid var(--line); background: #071915; box-shadow: var(--shadow); }
  .js .site-nav.is-open { display: block; }
  .site-nav a { min-height: 48px; padding-inline: 16px; }
  .article-shell { padding: 48px 0 72px; }
  .home .article-shell { padding-top: 42px; }
  .article-shell > h1:first-child { font-size: clamp(2.15rem, 10.2vw, 2.65rem); }
  .article-shell > section { margin-top: 52px; }
  .article-shell h2 { font-size: 1.75rem; }
  .content-figure { width: calc(100vw - 32px); margin-block: 30px; }
  .snapshot-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 30px; }
  .hero-actions .button, .page-actions .button { flex: 1 1 100%; }
}

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