/*
Theme Name: d71 Observer
Theme URI: https://d71.beer/
Author: d71.beer
Description: Independent Bengali information guide theme.
Version: 1.0.0
Text Domain: d71-observer
*/

:root {
  --bg: #090a0c;
  --surface: #12151a;
  --section: #181c22;
  --text: #f2f2ef;
  --muted: #b9bcc1;
  --accent: #d8a64a;
  --accent-strong: #f3ce7b;
  --cool: #8bb5d3;
  --border: #343941;
  --info: #1d242c;
  --warning: #2a2115;
  --focus: #f3ce7b;
  --wide: 1320px;
  --read: 820px;
  --radius: 22px;
  --shadow: 0 28px 72px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.74;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-strong); text-underline-offset: .18em; }
a:hover { color: #fff0c2; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 9999; left: 16px; top: -100px; padding: 10px 16px; background: #fff; color: #111; }
.skip-link:focus { top: 12px; }
.site-shell { width: min(calc(100% - 48px), var(--wide)); margin-inline: auto; }
.read-shell { width: min(calc(100% - 48px), var(--read)); margin-inline: auto; }
.site-header { position: sticky; z-index: 50; top: 0; min-height: 72px; background: rgba(9, 10, 12, .94); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { color: var(--text); font-size: 1.55rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.primary-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: grid; place-items: center; min-height: 48px; color: var(--text); font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--accent-strong); text-decoration: underline; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; padding: 9px; color: var(--text); background: transparent; border: 1px solid var(--border); border-radius: 999px; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 4px auto; background: currentColor; }
main { overflow: clip; }
.hero { padding: clamp(58px, 8vw, 112px) 0 54px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(216, 166, 74, .12), transparent 42%); }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: .83rem; font-weight: 800; letter-spacing: .09em; }
h1, h2, h3 { margin-top: 0; color: var(--text); line-height: 1.18; text-wrap: balance; }
h1 { max-width: 980px; margin-inline: auto; margin-bottom: 26px; font-size: clamp(2.45rem, 6.2vw, 5rem); letter-spacing: -.035em; }
h2 { margin-bottom: 26px; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.025em; }
h3 { margin: 32px 0 10px; font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin: 0 0 1.3em; }
.hero-copy { max-width: 860px; margin-inline: auto; color: #d9dbdd; font-size: clamp(1.08rem, 2vw, 1.28rem); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.button { display: inline-grid; place-items: center; min-height: 50px; padding: 10px 24px; border: 1px solid var(--accent); border-radius: 999px; color: #17120a; background: var(--accent); font-weight: 800; text-decoration: none; }
.button:hover { color: #111; background: var(--accent-strong); }
.button.secondary { color: var(--text); background: transparent; border-color: #70757d; }
.button.secondary:hover { color: #fff; border-color: var(--accent); }
.wide-media { width: min(calc(100% - 48px), var(--wide)); margin: 0 auto clamp(64px, 8vw, 108px); }
.wide-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
figcaption { margin-top: 11px; color: var(--muted); font-size: .84rem; text-align: center; }
.chapter { padding: clamp(64px, 8vw, 108px) 0; scroll-margin-top: 94px; }
.chapter.alt { background: var(--surface); border-block: 1px solid var(--border); }
.chapter-kicker { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; color: var(--accent); font-size: .82rem; font-weight: 800; letter-spacing: .06em; }
.chapter-kicker::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.section-image { margin-top: 42px; }
.section-image img { width: 100%; max-height: 680px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 34px 0; }
.fact-card { padding: 24px; background: var(--info); border: 1px solid var(--border); border-radius: 16px; }
.fact-card h3 { margin-top: 0; }
.notice { margin: 30px 0; padding: 24px; background: var(--warning); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; }
.inline-cta { display: inline-flex; align-items: center; min-height: 48px; margin-top: 12px; font-weight: 800; }
.faq-list { margin-top: 32px; }
.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: 58px; padding: 18px 40px 18px 0; cursor: pointer; color: var(--text); font-weight: 800; }
.faq-list details p { padding: 0 0 20px; color: #d5d7d8; }
.page-hero { padding: clamp(62px, 9vw, 112px) 0 42px; text-align: center; background: radial-gradient(circle at 50% 10%, rgba(216,166,74,.10), transparent 45%); }
.page-hero h1 { max-width: 980px; }
.page-intro { max-width: 820px; margin-inline: auto; color: #d9dbdd; font-size: 1.18rem; }
.page-body { padding: 44px 0 clamp(80px, 10vw, 124px); }
.page-body .wp-block-image { margin: 0 0 42px; }
.site-footer { padding: 64px 0 34px; background: #060708; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start; }
.footer-note { max-width: 600px; color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: flex; align-items: center; min-height: 46px; color: var(--text); }
.copyright { margin-top: 44px; padding-top: 24px; color: #8f9398; font-size: .82rem; border-top: 1px solid #24272b; }
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-shell, .read-shell, .wide-media { width: min(calc(100% - 32px), var(--wide)); }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 73px 0 auto; padding: 18px 16px 24px; background: #0d0f12; border-bottom: 1px solid var(--border); transform: translateY(-130%); visibility: hidden; transition: transform .2s ease, visibility .2s ease; }
  .primary-nav.is-open { transform: translateY(0); visibility: visible; }
  .primary-nav ul { display: grid; gap: 4px; }
  .primary-nav a { justify-content: start; padding: 0 14px; border-bottom: 1px solid #25292f; }
  .hero { padding-top: 48px; }
  h1 { font-size: clamp(2.25rem, 10vw, 2.9rem); }
  .actions { display: grid; }
  .button { width: 100%; }
  .wide-media { margin-bottom: 56px; }
  .wide-media img, .section-image img { border-radius: 14px; }
  .fact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-links { grid-template-columns: 1fr; }
}

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