@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&family=Anek+Bangla:wght@500;600;700;800&family=Noto+Serif+Bengali:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

html {
  scroll-behavior: smooth;
}

/* Real paper texture for the "Open letter" page */
.letter-paper {
  position: relative;
  background-color: #fffcf3;
  background-image: linear-gradient(135deg, #fffdf6 0%, #fdf8ea 100%);
  box-shadow:
    inset 0 0 30px rgba(170, 130, 60, 0.05),
    0 10px 25px -10px rgba(60, 40, 10, 0.15);
  border: 1px solid #efe6cc;
}
.letter-paper::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 26px 26px;
  border-color: transparent transparent #f1e8cf transparent;
  filter: drop-shadow(-2px -2px 3px rgba(0, 0, 0, 0.1));
}
.letter-underline {
  border: 0;
  border-bottom: 2px dashed #c9c2ae;
  background: transparent;
  border-radius: 0;
}
.letter-underline:focus {
  border-bottom-color: #15815a;
  border-bottom-style: solid;
}
/* Ruled-paper lines — make the main message area look like a real letter page */
.letter-ruled {
  font-size: 1.125rem;
  line-height: 2.25rem !important;
  background-image: repeating-linear-gradient(to bottom, transparent, transparent calc(2.25rem - 1px), #d8cfb8 calc(2.25rem - 1px), #d8cfb8 2.25rem);
  background-position: 0 2.05rem;
}
body {
  font-family: 'Noto Sans Bengali', sans-serif;
  background-color: #fbfbfa;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f2f3; }
::-webkit-scrollbar-thumb { background: #b1bac4; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #8695a4; }

/* Keyboard focus (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #22a06e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #11543c;
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 .5rem 0;
}
.skip-link:focus { left: 0; }

/* Line clamp (without the plugin on Tailwind CDN) */
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Status badge base */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 9999px;
  line-height: 1;
  white-space: nowrap;
  ring-width: 1px;
}

/* Timeline connector */
.timeline-line {
  background-image: linear-gradient(to bottom, #aee6c9, #aee6c9 60%, transparent 0);
  background-size: 2px 10px;
  background-repeat: repeat-y;
}

/* Progress bar animation trigger */
.progress-fill { transition: width 1.1s cubic-bezier(.22,.9,.3,1); }

/* Hover-lift card */
.hover-lift { transition: transform .25s ease, box-shadow .25s ease; }
.hover-lift:hover { transform: translateY(-4px); }

/* Safe-area padding for the mobile bottom bar */
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

/* Dropdown menu */
.nav-dropdown { opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; }
.nav-group:hover .nav-dropdown, .nav-group:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

/* Backdrop-blur header (on scroll) */
#site-header.is-scrolled { box-shadow: 0 1px 2px 0 rgb(16 24 40 / 0.06), 0 1px 3px 0 rgb(16 24 40 / 0.08); }

/* Modern editorial/political design — used in header and hero */

/* Cut-corner panel/button — angled poster feel instead of a card (stays a plain rectangle on mobile) */
@media (min-width: 1024px) {
  .cut-tl-lg { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
}
.cut-corner { clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }

/* Rubber stamp — for verification/approval/importance (accountability, report problem, manifesto) */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 3px solid currentColor;
  border-radius: 9999px;
  padding: .35rem 1.1rem;
  font-family: 'Anek Bangla', sans-serif;
  font-weight: 800;
  letter-spacing: .04em;
  transform: rotate(-7deg);
  position: relative;
}
.stamp::before {
  content: '';
  position: absolute; inset: 3px;
  border: 1px solid currentColor;
  border-radius: 9999px;
  opacity: .55;
}

/* Perforation / ticket tear line — receipt and stub seam (circles cut assuming page background #fbfbfa) */
.perf-line {
  height: 18px;
  background-image: radial-gradient(circle at center, #fbfbfa 9px, transparent 9.5px);
  background-size: 22px 18px;
  background-repeat: repeat-x;
  background-position: center;
}
.receipt-edge { position: relative; }
.receipt-edge::before, .receipt-edge::after {
  content: '';
  position: absolute; left: 0; right: 0; height: 14px;
  background-image: radial-gradient(circle at 7px 7px, #fbfbfa 7px, transparent 7.3px);
  background-size: 14px 14px;
  background-repeat: repeat-x;
}
.receipt-edge::before { top: -7px; }
.receipt-edge::after { bottom: -7px; transform: rotate(180deg); }

/* Ledger/register margin — public account-book feel for accountability */
.ledger-margin { border-left: 2px solid #f16b74; position: relative; padding-left: 1.5rem; }
.ledger-margin::before {
  content: '';
  position: absolute; left: 6px; top: 0; bottom: 0;
  border-left: 1px solid #fbc5c9;
}

/* Polaroid / contact sheet — photo gallery */
.polaroid { background: #fff; padding: .6rem .6rem 2.2rem; box-shadow: 0 8px 20px -6px rgba(0,0,0,.2), 0 2px 5px rgba(0,0,0,.08); }
.polaroid-cap { font-family: 'Noto Serif Bengali', serif; font-style: italic; }
.tape { position: absolute; background: rgba(255, 219, 95, .55); box-shadow: 0 1px 3px rgba(0,0,0,.18); }

/* Drop cap and pull quote — editorial biography/essay */
.dropcap-letter {
  float: left;
  font-family: 'Noto Serif Bengali', serif;
  font-weight: 800;
  font-size: 3.3em;
  line-height: .78;
  margin: .04em .15em 0 0;
  color: #006a4e;
}
.pull-quote { font-family: 'Noto Serif Bengali', serif; font-style: italic; border-left: 4px solid #006a4e; padding-left: 1.25rem; }

/* Newspaper masthead rule — only for the "News" page */
.masthead-rule { border-top: 4px solid #16191e; border-bottom: 1px solid #16191e; }
.eyebrow-tag { font-family: 'Anek Bangla', sans-serif; letter-spacing: .08em; }

/* Chapter number — manifesto gazette/declaration feel */
.chapter-num {
  font-family: 'Noto Serif Bengali', serif;
  font-weight: 800;
  -webkit-text-stroke: 1.5px currentColor;
  color: transparent;
}

/* Ticker — scrolling strip for urgent/latest updates */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* Ballot-style square checkmark */
.ballot-box { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border: 2px solid currentColor; border-radius: .3rem; }

/* Hide the scrollbar on horizontal scroll (filter row) */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Filter track — inactive options transparent, white on hover, active green (JS toggles bg-white/bg-brand-700) */
.filter-track button.bg-white { background-color: transparent; color: #4b5563; }
.filter-track button.bg-white:hover { background-color: #ffffff; color: #0b5d43; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
