/*
Theme Name: 999k Ivory Editorial VCzdA1xo
Theme URI: https://999k.beer/
Author: 999k বাংলা গাইড
Description: Fresh ivory editorial journal theme for the 999k Bengali guide.
Version: 1.0.0
Text Domain: guide999k
*/

:root {
  --paper: #f5f0e7;
  --surface: #fffcf7;
  --soft: #ebe2d5;
  --ink: #252321;
  --muted: #6d6861;
  --brick: #9e3f35;
  --green: #2f6f62;
  --gold: #c28b35;
  --line: #d7cdbf;
  --info: #eaf1ed;
  --focus: #145e52;
  --wide: 1160px;
  --reading: 740px;
  --cross: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(158,63,53,.035), transparent 23rem),
    var(--paper);
  font-family: "Noto Sans Bengali", "FreeSans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: .09em; text-underline-offset: .16em; }
a:hover { color: var(--brick); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header { background: rgba(255,252,247,.97); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.masthead { max-width: var(--wide); min-height: 68px; margin: auto; padding: 10px 24px; display: flex; align-items: center; justify-content: center; }
.custom-logo-link { display: inline-flex; line-height: 0; }
.custom-logo { display: block; width: auto; height: 52px; max-width: min(640px, 75vw); }
.site-name-fallback { color: var(--ink); text-decoration: none; font-size: 1.55rem; font-weight: 800; }
.nav-bar { border-top: 1px solid var(--line); }
.nav-inner { max-width: var(--wide); margin: auto; padding: 0 24px; position: relative; }
.menu-toggle { display: none; width: 48px; height: 48px; margin: 7px 0 7px auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; }
.primary-menu { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 0; padding: 0; }
.primary-menu a { display: flex; min-height: 52px; align-items: center; padding: .55rem .74rem; color: var(--ink); text-decoration: none; font-size: .91rem; font-weight: 700; border-bottom: 3px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--brick); border-color: var(--brick); }

.site-main { min-height: 60vh; }
.article-shell { max-width: var(--wide); margin: 0 auto; padding: 72px 24px 96px; }
.article-head { max-width: var(--cross); margin: 0 auto 46px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.article-head h1 { margin: 0; max-width: 920px; font-size: clamp(2.55rem, 5.8vw, 4.5rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.article-body { max-width: var(--reading); margin: auto; }
.article-body > p:first-child { font-size: 1.19rem; line-height: 1.75; color: #37332f; }
.article-body p { margin: 0 0 1.35rem; }
.article-body h2 { margin: 4.8rem 0 1.35rem; padding-top: 1.1rem; border-top: 2px solid var(--brick); font-size: clamp(1.75rem, 3.2vw, 2.45rem); line-height: 1.25; letter-spacing: -.018em; }
.article-body h3 { margin: 2.7rem 0 .9rem; font-size: 1.35rem; line-height: 1.35; }
.article-body ul, .article-body ol { padding-left: 1.35rem; margin: 0 0 1.7rem; }
.article-body li { margin: .45rem 0; }
.article-body section { scroll-margin-top: 28px; }
.article-body section:first-child h2 { margin-top: 0; }
.editorial-figure { width: min(var(--cross), calc(100vw - 48px)); max-width: none; margin: 3rem 50%; transform: translateX(-50%); }
.editorial-figure img { display: block; width: 100%; border-radius: 8px; box-shadow: 0 10px 28px rgba(60,45,30,.12); background: var(--soft); }
.editorial-figure figcaption { margin: .7rem auto 0; max-width: 780px; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.hero-figure { width: min(1080px, calc(100vw - 48px)); }
.hero-figure img { aspect-ratio: 16/9; object-fit: cover; }
.comparison-table, .asset-table { border-collapse: collapse; width: min(var(--cross), calc(100vw - 48px)); max-width: none; margin: 2.4rem 50% 2.8rem; transform: translateX(-50%); background: var(--surface); box-shadow: 0 10px 28px rgba(60,45,30,.07); }
.comparison-table th, .comparison-table td, .asset-table th, .asset-table td { border: 1px solid var(--line); padding: .9rem; text-align: left; vertical-align: top; }
.comparison-table th, .asset-table th { background: var(--soft); color: #3a302b; font-weight: 800; }
.evidence-note, blockquote { margin: 2rem 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--green); background: var(--info); }
.home-review section { padding-bottom: .25rem; }
.faq-list { margin-top: 1.5rem; }
.faq-item { margin: 0 0 .85rem; border: 1px solid var(--line); background: var(--surface); }
.faq-item summary { min-height: 52px; padding: .85rem 1rem; cursor: pointer; font-weight: 800; color: #352f2b; }
.faq-answer { padding: 0 1rem 1rem; }

.site-footer { background: #282623; color: #eee7dc; border-top: 5px solid var(--brick); }
.footer-inner { max-width: var(--wide); margin: auto; padding: 44px 24px 30px; }
.footer-statement { max-width: 760px; margin: 0 0 1.4rem; font-size: 1.08rem; }
.footer-identity { color: #fff; font-weight: 800; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 1.25rem 0; padding: 0; }
.footer-links a, .site-footer a { color: #fff1d0; }
.footer-meta { color: #cfc6b9; font-size: .9rem; }
.not-found { max-width: 720px; margin: auto; padding: 80px 24px; }

@media (max-width: 900px) {
  .masthead { justify-content: flex-start; min-height: 64px; padding: 8px 18px; }
  .custom-logo { height: 46px; max-width: 68vw; }
  .nav-bar { border-top: 0; position: absolute; right: 14px; top: 7px; }
  .nav-inner { padding: 0; }
  .menu-toggle { display: block; }
  .primary-menu { display: none; position: absolute; right: 0; top: 56px; width: min(330px, calc(100vw - 28px)); padding: .4rem; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(60,45,30,.16); }
  .primary-menu.is-open { display: block; }
  .primary-menu a { min-height: 48px; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
  .article-shell { padding-top: 52px; }
  .table-wrap { width: calc(100vw - 48px); max-width: none; margin: 2.4rem 50%; transform: translateX(-50%); overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { width: 900px; max-width: none; margin: 0; transform: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .article-shell { padding: 42px 16px 64px; }
  .article-head { margin-bottom: 34px; padding-bottom: 25px; }
  .article-head h1 { font-size: clamp(2.12rem, 11vw, 2.75rem); }
  .article-body h2 { margin-top: 3.35rem; font-size: 1.75rem; }
  .editorial-figure, .hero-figure, .comparison-table, .asset-table { width: calc(100vw - 32px); margin-left: 50%; margin-right: 0; }
  .hero-figure img { aspect-ratio: 4/5; }
  .table-wrap { width: calc(100vw - 32px); margin-left: 50%; transform: translateX(-50%); overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { width: 720px; margin: 0; transform: none; }
  .footer-links { display: block; }
  .footer-links li { margin: .45rem 0; }
}

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