:root {
  --bg: #050505;
  --bg-2: #0b0b0c;
  --surface: #111112;
  --surface-2: #171615;
  --text: #f8f7f2;
  --muted: #c8c3b6;
  --soft: #8f887a;
  --gold: #f2b632;
  --gold-2: #d99a12;
  --gold-dark: #2d210b;
  --line: rgba(242, 182, 50, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --green: #63c38b;
  --max: 1120px;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(242, 182, 50, 0.1), transparent 32rem),
    linear-gradient(180deg, #050505 0%, #0a0a0b 52%, #050505 100%);
  color: var(--text);
  font-family: Inter, "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(242, 182, 50, 0.55);
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--gold);
}

button,
input {
  font: inherit;
}

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

.skip-link:focus {
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.6rem 0.9rem;
  clip: auto;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: #000;
  color: var(--text);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.brand-mark__text {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.site-nav__list,
.footer-nav__list {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b0c;
  color: var(--text);
}

.menu-toggle span:not(.screen-reader-text) {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.site-main {
  min-height: 70vh;
}

.hero {
  padding: 40px 0 56px;
}

.hero__inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  text-align: center;
}

.hero__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 60px rgba(242, 182, 50, 0.16);
}

.hero__eyebrow,
.page-hero__eyebrow,
.listing-hero p {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.listing-hero h1 {
  max-width: 920px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(2.35rem, 5vw, 5.4rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.button--gold {
  margin-top: 24px;
  background: linear-gradient(180deg, #ffcf57 0%, var(--gold) 52%, var(--gold-2) 100%);
  color: #120d03;
  box-shadow: 0 18px 45px rgba(242, 182, 50, 0.22);
}

.button--gold:hover {
  color: #050505;
  background: #ffd86d;
}

.button--outline {
  border-color: var(--line);
  background: #0d0d0d;
  color: var(--text);
}

.hero__risk {
  max-width: 660px;
  margin: 14px auto 0;
  color: var(--soft);
  font-size: 0.96rem;
}

.hero__figure {
  max-width: 1040px;
  margin: 30px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090909;
  box-shadow: var(--shadow);
}

.hero__figure img {
  width: 100%;
}

.longform-entry,
.content-page {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.longform-entry__content,
.content-page__body {
  color: var(--muted);
  font-size: 1.06rem;
}

.longform-entry__content > *,
.content-page__body > * {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

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

.longform-entry__content h2,
.content-page__body h2 {
  margin-top: 52px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.longform-entry__content h3,
.content-page__body h3 {
  margin-top: 30px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

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

.longform-entry__content strong,
.content-page__body strong {
  color: var(--text);
}

.longform-entry__content a,
.content-page__body a {
  color: var(--gold);
  font-weight: 800;
}

.longform-entry__content .wp-block-image,
.content-page__body .wp-block-image {
  max-width: 1040px;
  margin-top: 34px;
  margin-bottom: 34px;
}

.longform-entry__content .wp-block-image img,
.content-page__body .wp-block-image img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090909;
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.32);
}

.longform-entry__content .wp-block-group,
.content-page__body .wp-block-group {
  max-width: 960px;
  margin-top: 34px;
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
}

.longform-entry__content .toc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding-left: 1.1rem;
}

.longform-entry__content .toc-list a {
  color: var(--text);
  text-decoration: none;
}

.longform-entry__content .toc-list a:hover {
  color: var(--gold);
}

.wp-block-table {
  overflow-x: auto;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
}

.wp-block-table th,
.wp-block-table td {
  padding: 0.85rem;
  border: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.wp-block-table th {
  color: var(--text);
  background: rgba(242, 182, 50, 0.08);
}

.page-main {
  padding: 42px 0 72px;
}

.page-hero,
.listing-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 32px;
  padding: 34px 0 18px;
  text-align: center;
}

.page-hero h1,
.listing-hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.page-hero p:not(.page-hero__eyebrow) {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--muted);
}

.page-hero__image {
  max-width: 920px;
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.listing-main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

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

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

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

.post-card__body {
  padding: 18px;
}

.post-card h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.search-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 620px;
  margin: 22px auto 0;
}

.search-field {
  width: min(72vw, 420px);
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #111;
  color: var(--text);
}

.search-form button {
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #120d03;
  font-weight: 900;
}

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

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  gap: 24px;
}

.site-footer strong {
  color: var(--text);
  font-size: 1.15rem;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 0.94rem;
}

.site-footer__meta {
  text-align: right;
}

.footer-nav__list {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 16px;
}

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

@media (max-width: 1100px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 16px;
    left: 16px;
    top: calc(100% + 8px);
    display: none;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #070707;
    box-shadow: var(--shadow);
  }

  .site-header.is-menu-open .site-nav {
    display: block;
  }

  .site-nav__list {
    display: grid;
    gap: 8px;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
    background: #101010;
  }

  .post-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    width: min(100% - 24px, var(--max));
    min-height: 60px;
  }

  .brand-mark img {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 24px 0 38px;
  }

  .hero__inner,
  .longform-entry,
  .content-page,
  .page-hero,
  .listing-main,
  .listing-hero,
  .site-footer__inner {
    width: min(100% - 24px, var(--max));
  }

  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.3rem);
  }

  .hero__lead,
  .longform-entry__content,
  .content-page__body {
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero__figure {
    margin-top: 22px;
  }

  .longform-entry__content .toc-list {
    grid-template-columns: 1fr;
  }

  .longform-entry__content .wp-block-group,
  .content-page__body .wp-block-group {
    padding: 18px;
  }

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

  .search-field {
    width: 100%;
  }
}
