/*
Theme Name: TK66 Independent Guide
Theme URI: https://tk66.beer/
Author: tk66.beer editorial
Description: A restrained Bengali long-form information guide using the locked Dark Emerald Article preset.
Version: 1.0.0
Text Domain: tk66-guide
*/

:root {
  --bg: #071915;
  --surface: #0b211c;
  --surface-2: #102a24;
  --ink: #f4f8f6;
  --muted: #afc2ba;
  --line: #29483e;
  --accent: #e8c45b;
  --accent-2: #3bc29a;
  --focus: #79e0be;
  --warning: #e0a54b;
  --max: 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: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: var(--accent-2); text-underline-offset: .22em; }
a:hover { color: var(--accent); }
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; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 25, 21, .96);
  backdrop-filter: blur(12px);
}
.header-inner, .footer-inner, .page-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { color: var(--ink); font: 800 27px/1 system-ui, sans-serif; text-decoration: none; letter-spacing: -.04em; }
.site-brand span { color: var(--accent); }
.primary-nav ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 14px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--surface-2); color: var(--accent); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }

.hero { padding: clamp(64px, 9vw, 112px) 0 52px; border-bottom: 1px solid var(--line); }
.hero-copy { max-width: 920px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-weight: 800; letter-spacing: .02em; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
h1 { margin: 0 0 24px; font-size: clamp(2.35rem, 5.4vw, 4.25rem); letter-spacing: -.035em; }
.lead { max-width: 780px; margin: 0; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.32rem); }
.hero-actions, .section-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button-link { display: inline-flex; min-height: 48px; align-items: center; padding: 10px 18px; border: 1px solid var(--accent-2); border-radius: 8px; color: var(--ink); text-decoration: none; background: transparent; }
.button-link:hover { border-color: var(--accent); background: var(--surface-2); }
.hero-media { width: min(calc(100% - 40px), var(--max)); margin: 44px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.figure-caption { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, var(--article)) 240px; gap: 80px; align-items: start; padding: 72px 0 104px; }
.article-content { min-width: 0; }
.article-content > p:first-child { font-size: 1.08em; }
.article-section { padding: 70px 0; border-top: 1px solid var(--line); }
.article-section:first-child { border-top: 0; padding-top: 0; }
.article-section h2 { position: relative; margin: 0 0 26px; padding-top: 18px; font-size: clamp(1.75rem, 3vw, 2.45rem); }
.article-section h2::before { content: ""; position: absolute; top: 0; left: 0; width: 58px; height: 3px; background: var(--accent); }
.article-section h3 { margin-top: 34px; color: var(--accent-2); font-size: 1.2rem; }
.article-section p, .page-content p { margin: 0 0 1.25em; }
.section-figure { margin: 32px 0 36px; }
.section-figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.observation-list { columns: 2; column-gap: 34px; padding-left: 22px; }
.observation-list li { break-inside: avoid; margin-bottom: 8px; }
.evidence-questions { counter-reset: evidence; display: grid; gap: 14px; padding: 0; list-style: none; }
.evidence-questions li { counter-increment: evidence; padding: 18px 18px 18px 62px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); position: relative; }
.evidence-questions li::before { content: counter(evidence, bengali); position: absolute; left: 18px; top: 14px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--accent); color: #14231f; font-weight: 800; }
.disclosure { padding: 24px; border-left: 4px solid var(--warning); background: #15372f; border-radius: 0 8px 8px 0; }
.faq details { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; cursor: pointer; font-weight: 800; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.45rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--muted); }
.toc { position: sticky; top: 96px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.toc strong { display: block; margin-bottom: 12px; color: var(--accent); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 7px 0; }
.toc a { color: var(--muted); text-decoration-thickness: 1px; }

.page-main { padding: clamp(64px, 9vw, 105px) 0 96px; }
.page-header, .page-content { max-width: var(--article); margin-inline: auto; }
.page-header { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.page-header .eyebrow { margin-bottom: 12px; }
.page-content { padding-top: 46px; }
.page-content blockquote { margin: 30px 0; padding: 22px 24px; border-left: 4px solid var(--accent); background: var(--surface); }
.page-content ul { padding-left: 24px; }

.site-footer { padding: 62px 0 34px; border-top: 1px solid var(--line); background: #061410; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .8fr); gap: 64px; }
.footer-note { max-width: 650px; color: var(--muted); }
.footer-nav h2 { font-size: 1rem; color: var(--accent); }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin: 8px 0; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1023px) {
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
  .toc { position: static; grid-row: 1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner, .footer-inner, .page-shell, .hero-media { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { flex-wrap: wrap; }
  .primary-nav { width: 100%; }
  .primary-nav ul { display: grid; }
  .primary-nav a { min-height: 48px; }
  .js .header-inner { flex-wrap: nowrap; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .js .primary-nav { position: fixed; inset: 69px 0 auto; width: auto; padding: 18px 16px 26px; border-bottom: 1px solid var(--line); background: var(--bg); transform: translateY(-125%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .js .primary-nav.is-open { transform: translateY(0); visibility: visible; }
  .hero { padding-top: 54px; }
  .hero-actions, .section-links { display: grid; }
  .button-link { justify-content: center; }
  .article-layout { padding-top: 48px; }
  .article-section { padding: 50px 0; }
  .observation-list { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
