/*
Theme Name: bk22 Ivory Editorial Journal
Theme URI: https://bk22.beer/
Author: bk22.beer
Description: A restrained ivory editorial theme for the independent Bengali bk22 information guide.
Version: 2.0.0
Text Domain: bk22-journal
*/
:root {
  --paper: #f5f0e7;
  --surface: #fffcf7;
  --soft: #ebe2d5;
  --ink: #252321;
  --muted: #6d6861;
  --line: #d7cdbf;
  --brick: #9e3f35;
  --green: #2f6f62;
  --gold: #c28b35;
  --info: #eaf1ed;
  --warning: #fff1d0;
  --focus: #2f6f62;
  --shadow: 0 10px 28px rgba(60,45,30,.08);
  --wrap: 1160px;
  --reading: 740px;
  --wide: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0, rgba(158,63,53,.035), transparent 32rem),
    linear-gradient(rgba(47,111,98,.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 100% 28px, auto;
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brick); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
}
.skip-link:focus { transform: none; }
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(245,240,231,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.masthead {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.wordmark, .footer-wordmark {
  color: var(--ink);
  font-family: Georgia, "Noto Serif Bengali", serif;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  text-decoration: none;
}
.site-kicker {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.menu-toggle {
  display: none;
  justify-self: end;
  min-width: 84px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
}
.primary-nav { border-top: 1px solid var(--line); }
.site-menu {
  min-height: 48px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.site-menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-menu .current-menu-item > a, .site-menu a:hover { color: var(--brick); border-color: var(--brick); }
main { display: block; }
.hero {
  padding: 82px 0 68px;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  gap: 60px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--brick);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: Georgia, "Noto Serif Bengali", "Noto Sans Bengali", serif;
  color: var(--ink);
  line-height: 1.17;
  text-wrap: balance;
}
h1 {
  margin: 0 0 24px;
  font-size: clamp(2.35rem, 5.3vw, 4.25rem);
  letter-spacing: -.04em;
}
.hero-deck { margin: 0 0 18px; font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.65; }
.hero-intro { margin: 0; color: #403c38; }
.hero-media { margin: 0; transform: translateY(18px); }
.hero-media img, .section-figure img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
.hero-media figcaption, .section-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.55;
}
.cta {
  min-height: 46px;
  margin-top: 26px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 4px;
  font-size: .91rem;
  font-weight: 800;
  text-decoration: none;
}
.cta:hover { color: #fff; background: var(--brick); border-color: var(--brick); }
.editorial-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.section-head, .reading { width: min(var(--reading), calc(100% - 48px)); margin-inline: auto; }
.section-head { margin-bottom: 32px; }
.section-index { color: var(--brick); font: 800 .78rem/1.2 system-ui, sans-serif; letter-spacing: .12em; }
h2 { margin: 10px 0 20px; font-size: clamp(1.85rem, 3.4vw, 2.8rem); }
h3 { margin: 34px 0 10px; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.reading > p:first-child { font-size: 1.08em; }
.reading p { margin: 0 0 1.3em; }
.reading ul, .reading ol { padding-inline-start: 1.25em; }
.reading .cta { margin-top: 10px; }
.section-figure { width: min(var(--wide), calc(100% - 48px)); margin: 42px auto; }
.note {
  margin: 32px 0;
  padding: 22px 24px;
  background: var(--info);
  border-left: 4px solid var(--green);
}
.warning { background: var(--warning); border-left-color: var(--gold); }
.fact-strip {
  width: min(var(--wide), calc(100% - 48px));
  margin: -1px auto 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.fact-strip div { padding: 8px 24px; border-right: 1px solid var(--line); }
.fact-strip div:last-child { border-right: 0; }
.fact-strip strong { display: block; color: var(--brick); font: 800 1.5rem/1.2 Georgia, serif; }
.fact-strip span { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.faq-list { width: min(var(--reading), calc(100% - 48px)); margin-inline: auto; }
.faq-list details { background: var(--surface); border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  min-height: 58px;
  padding: 16px 46px 16px 0;
  position: relative;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 12px; top: 13px; color: var(--brick); font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 28px 22px 0; }
.page-shell { padding: 76px 0 96px; }
.page-shell .reading { padding: 48px 56px; background: var(--surface); box-shadow: var(--shadow); }
.page-shell h1 { font-size: clamp(2.25rem, 5vw, 3.8rem); }
.page-shell .reading > p:first-of-type { font-size: 1.15em; }
.inline-links { margin-top: 34px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; border-top: 1px solid var(--line); }
.inline-links a { font-weight: 750; }
.site-footer { color: #ece8e0; background: #252321; }
.footer-grid { padding: 62px 0 44px; display: grid; grid-template-columns: 1.4fr .8fr .9fr; gap: 58px; }
.footer-wordmark { color: #fff; font-size: 2.25rem; }
.site-footer h2 { margin: 0 0 15px; color: #fff; font: 800 .92rem/1.3 system-ui, sans-serif; }
.site-footer p { margin: 12px 0 0; color: #cfc8bd; font-size: .86rem; line-height: 1.65; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: #fff; }
.footer-base { padding: 20px 0; border-top: 1px solid #49443f; }
.footer-base p { margin: 0; }
.error404 .page-shell { min-height: 60vh; }
@media (max-width: 800px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .masthead { min-height: 64px; grid-template-columns: 1fr auto; }
  .site-kicker { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; }
  .menu-open .primary-nav { display: block; }
  .site-menu { min-height: 0; padding: 10px 0 18px; flex-direction: column; align-items: stretch; gap: 0; }
  .site-menu a { width: 100%; padding: 0 4px; }
  .hero { padding: 50px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { transform: none; }
  .editorial-section { padding: 58px 0; }
  .section-head, .reading, .section-figure, .faq-list { width: min(100% - 32px, var(--reading)); }
  .fact-strip { width: calc(100% - 32px); grid-template-columns: 1fr 1fr; }
  .fact-strip div:nth-child(2) { border-right: 0; }
  .fact-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .page-shell { padding: 38px 0 56px; }
  .page-shell .reading { padding: 34px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 76px; }
  h1 { font-size: clamp(2.05rem, 11vw, 2.65rem); }
  .hero-deck { font-size: 1.05rem; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact-strip div:last-child { border-bottom: 0; }
  .page-shell .reading { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .inline-links { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

