:root {
  --bg: #050505;
  --bg-2: #0b0b0d;
  --surface: #111114;
  --surface-2: #171715;
  --text: #f7f4ea;
  --muted: #c8c0aa;
  --soft: #8e8877;
  --gold: #f6c84c;
  --gold-2: #e0a90e;
  --gold-3: #fff0a8;
  --line: rgba(246, 200, 76, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --content: 1180px;
  --reading: 940px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans Bengali", "Noto Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.wrap.narrow,
.reading-wrap {
  width: min(var(--reading), calc(100% - 40px));
}

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

.skip-link:focus {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--gold);
  color: #121008;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid rgba(246, 200, 76, 0.16);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.custom-logo {
  width: auto;
  max-width: 168px;
  max-height: 44px;
  object-fit: contain;
}

.site-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  text-decoration: none;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gold);
}

.brand-hero {
  padding: 52px 0 26px;
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 200, 76, 0.14), transparent 42%),
    linear-gradient(180deg, #080807 0%, #050505 100%);
}

.hero-stack {
  display: grid;
  gap: 30px;
  align-items: center;
  text-align: center;
}

.hero-copy {
  width: min(880px, 100%);
  margin: 0 auto;
}

.eyebrow,
.toc-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-hero h1,
.inner-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.35rem, 7vw, 4.9rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lede {
  width: min(760px, 100%);
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
}

.hero-context {
  width: min(760px, 100%);
  margin: 16px auto 0;
  color: var(--gold-3);
  font-size: 1.02rem;
  font-weight: 800;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 13px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--gold-3), var(--gold));
  color: #151006;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(246, 200, 76, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-cta:hover,
.primary-cta:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(246, 200, 76, 0.3);
}

.risk-line {
  width: min(680px, 100%);
  margin: 16px auto 0;
  color: var(--soft);
  font-size: 0.95rem;
}

.hero-visual-wrap {
  width: min(1050px, 100%);
  margin: 8px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
}

.hero-visual {
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
}

.portal-note {
  padding: 16px 0 30px;
  background: #050505;
}

.note-grid {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(246, 200, 76, 0.08), rgba(255, 255, 255, 0.02));
}

.note-grid img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
}

.note-grid p {
  margin: 0;
  color: var(--muted);
}

.longform-shell,
.page-shell,
.archive-shell {
  padding: 42px 0 78px;
  background:
    linear-gradient(180deg, #050505, #0a0a0a 42%, #050505);
}

.article-toc {
  margin: 0 0 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  padding-left: 1.2rem;
  margin: 0;
}

.article-toc a {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.article-toc a:hover,
.article-toc a:focus {
  color: var(--gold);
}

.longform-content {
  color: var(--text);
}

.longform-content > *:first-child {
  margin-top: 0;
}

.longform-content h2,
.longform-content h3,
.longform-content h4 {
  color: var(--text);
  line-height: 1.2;
  letter-spacing: 0;
}

.longform-content h2 {
  margin: 52px 0 16px;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  text-align: center;
  text-wrap: balance;
}

.longform-content h3 {
  margin: 34px 0 12px;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.longform-content p,
.longform-content li {
  color: var(--muted);
}

.longform-content p {
  margin: 0 0 18px;
}

.longform-content ul,
.longform-content ol {
  padding-left: 1.35rem;
}

.longform-content a {
  color: var(--gold);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.longform-content figure,
.featured-media {
  margin: 34px 0;
}

.longform-content .wp-block-image img,
.featured-media img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.longform-content figcaption {
  margin-top: 10px;
  color: var(--soft);
  font-size: 0.9rem;
  text-align: center;
}

.longform-content .wp-block-group,
.not-found-box {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.longform-content .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.longform-content table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: auto;
  color: var(--muted);
}

.longform-content th,
.longform-content td {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.schema-faq,
.wp-block-yoast-faq-block {
  display: grid;
  gap: 14px;
  margin: 34px 0;
}

.schema-faq-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101010;
}

.schema-faq-question {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 1.08rem;
  font-weight: 900;
}

.schema-faq-answer {
  margin: 0;
  color: var(--muted);
}

.inner-hero {
  padding: 54px 0 42px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 200, 76, 0.12), transparent 44%),
    #070707;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  line-height: 1.3;
}

.card-body a {
  text-decoration: none;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.search-wrap {
  margin-bottom: 24px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.search-form button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  color: #151006;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.site-footer {
  background: #030303;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding: 38px 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--gold);
}

.age-note {
  color: var(--gold);
  font-weight: 850;
}

.footer-bottom {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
  color: var(--soft);
  font-size: 0.86rem;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .wrap.narrow,
  .reading-wrap {
    width: min(100% - 28px, var(--content));
  }

  .header-inner {
    min-height: 60px;
  }

  .custom-logo {
    max-width: 132px;
    max-height: 38px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: fixed;
    top: 60px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #080808;
    box-shadow: var(--shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    display: grid;
    gap: 12px;
  }

  .brand-hero {
    padding-top: 34px;
  }

  .brand-hero h1,
  .inner-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .hero-visual {
    aspect-ratio: 4 / 3;
  }

  .note-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .note-grid img {
    margin-inline: auto;
  }

  .article-toc ol,
  .archive-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .longform-content h2 {
    text-align: left;
  }

  .search-form {
    flex-direction: column;
  }
}

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