/*
Theme Name: hot880 Independent Guide
Theme URI: https://hot880.beer/
Author: hot880.beer Editorial
Description: A Bengali, dark emerald long-form information guide theme.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: hot880-guide
*/

:root {
  --bg: #071915;
  --surface: #0b211c;
  --surface-2: #102a24;
  --info: #15372f;
  --accent: #e8c45b;
  --accent-2: #3bc29a;
  --text: #f4f8f6;
  --muted: #afc2ba;
  --border: #29483e;
  --warning: #e0a54b;
  --focus: #79e0be;
  --content: 1180px;
  --article: 760px;
  --radius: 8px;
  --radius-lg: 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(--text);
  font-family: "Noto Sans Bengali", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-2); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
p, ul, ol { margin: 0 0 1.35em; }
ul, ol { padding-inline-start: 1.35em; }
h1, h2, h3 { margin-top: 0; color: var(--text); line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.1vw, 2.55rem); }
h3 { color: var(--accent-2); font-size: 1.25rem; }

.site-shell { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.article-width { width: min(100%, var(--article)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; transform: translateY(-180%); padding: 10px 14px; background: var(--text); color: var(--bg); border-radius: var(--radius); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 100; min-height: 68px; background: rgba(7, 25, 21, .97); 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: 24px; }
.site-brand { color: var(--text); font-size: 1.4rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.site-brand span { color: var(--accent); }
.site-nav ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 7px 14px; color: var(--text); font-weight: 650; text-decoration: none; border-radius: var(--radius); }
.site-nav a:hover, .site-nav .current-menu-item > a { background: var(--surface-2); color: var(--accent); }
.menu-toggle { display: none; min-width: 46px; min-height: 46px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 22px; height: 2px; margin-inline: auto; background: currentColor; content: ""; transition: transform .2s ease; }
.menu-toggle-lines::before { transform: translateY(-7px); }
.menu-toggle-lines::after { transform: translateY(5px); }

.hero { padding: clamp(64px, 9vw, 110px) 0 48px; }
.hero-copy { width: min(100%, 900px); }
.eyebrow { margin-bottom: 18px; color: var(--accent); font-size: .84rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-summary { max-width: 830px; margin-bottom: 30px; color: #dce8e3; font-size: clamp(1.06rem, 1.8vw, 1.28rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #152019; font-weight: 800; text-decoration: none; }
.button:hover { background: #f3d77d; color: #071915; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.secondary:hover { border-color: var(--accent-2); color: var(--accent-2); }

.hero-figure { width: min(calc(100% - 32px), var(--content)); margin: 0 auto clamp(70px, 9vw, 108px); }
.hero-figure img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { margin-top: 12px; color: var(--muted); font-size: .88rem; }

.content-section { position: relative; padding: clamp(48px, 7.3vw, 88px) 0; border-top: 1px solid var(--border); }
.content-section h2 { position: relative; padding-left: 24px; }
.content-section h2::before { position: absolute; top: .18em; bottom: .18em; left: 0; width: 4px; border-radius: 99px; background: var(--accent); content: ""; }
.section-figure { margin: 34px 0; }
.section-figure img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.notice { margin: 30px 0; padding: 20px 22px; border: 1px solid var(--border); border-left: 4px solid var(--accent-2); border-radius: var(--radius); background: var(--info); }
.notice strong { color: var(--accent); }

.table-scroll { margin: 30px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--accent); background: var(--surface-2); font-size: .95rem; }
tr:last-child td { border-bottom: 0; }

.evidence-steps { counter-reset: evidence; margin: 32px 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.evidence-steps li { counter-increment: evidence; position: relative; padding: 20px 20px 20px 66px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.evidence-steps li::before { position: absolute; top: 18px; left: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #172119; content: counter(evidence); font-weight: 900; }

.faq-list { display: grid; gap: 12px; margin-top: 30px; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq-list summary { min-height: 56px; padding: 15px 48px 15px 18px; cursor: pointer; color: var(--text); font-weight: 750; }
.faq-list details > div { padding: 0 18px 18px; color: #d8e4df; }

.reading-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.reading-card { display: block; min-height: 150px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.reading-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.reading-card strong { display: block; margin-bottom: 8px; color: var(--accent); font-size: 1.12rem; }

.page-hero { padding: clamp(64px, 9vw, 108px) 0 36px; border-bottom: 1px solid var(--border); }
.page-hero p { max-width: 720px; color: var(--muted); }
.page-content { padding: clamp(48px, 7vw, 80px) 0 96px; }
.page-content h2 { margin-top: 2em; }
.scope-list { margin: 28px 0; padding: 20px 24px 20px 44px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

.site-footer { border-top: 1px solid var(--border); background: #06130f; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr); gap: 56px; padding: 64px 0 34px; }
.footer-title { margin-bottom: 14px; color: var(--accent); font-size: 1.35rem; font-weight: 850; }
.footer-note { max-width: 650px; color: var(--muted); }
.footer-heading { margin: 0 0 12px; font-size: 1rem; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--text); }
.footer-bottom { padding: 22px 0 34px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

.not-found { min-height: 62vh; display: grid; align-content: center; padding: 80px 0; }

@media (max-width: 780px) {
  body { font-size: 16px; }
  .site-shell { width: min(calc(100% - 32px), var(--content)); }
  .js .menu-toggle { display: inline-grid; place-items: center; }
  .js .site-nav { position: fixed; inset: 68px 0 auto; max-height: calc(100vh - 68px); padding: 18px 16px 26px; overflow-y: auto; border-bottom: 1px solid var(--border); background: #071915; transform: translateY(-130%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .js .site-nav.is-open { transform: translateY(0); visibility: visible; }
  .site-nav ul { display: grid; }
  .site-nav a { min-height: 48px; padding-inline: 16px; }
  .hero { padding-top: 52px; }
  .hero-figure { width: calc(100% - 32px); margin-bottom: 56px; }
  .content-section { padding-block: 48px; }
  .content-section h2 { padding-left: 18px; }
  .reading-grid, .footer-inner { grid-template-columns: 1fr; }
  .footer-inner { gap: 28px; padding-top: 48px; }
  .button-row .button { width: 100%; }
}

@media (max-width: 390px) {
  h1 { font-size: 2.18rem; }
  .hero-summary { font-size: 1.03rem; }
  .content-section h2 { font-size: 1.72rem; }
  th, td { padding: 12px; }
}

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

