/*
Theme Name: BanglaLeaks
Theme URI: https://banglaleaks.com
Author: BanglaLeaks
Description: বাংলাদেশের জন্য নিরাপদ, বেনামী তথ্য ফাঁস প্ল্যাটফর্ম — ডকুমেন্ট ও ভিডিও প্রকাশের জন্য একটি সংবাদমাধ্যম-শৈলীর থিম।
Version: 1.0
Text Domain: banglaleaks
*/

/* =========================================================
   DESIGN TOKENS
   Subject: a case-file / redacted-document archive.
   Palette:
     --ink        #0d0d0f   near-black, "the room after hours"
     --paper      #f2ede3   aged paper / declassified page
     --paper-dim  #d9d2c2   paper in shadow (cards, borders)
     --redact     #8a1010   redaction-stamp red, the single accent
     --redact-dim #5c0c0c   pressed/hover state of the accent
     --steel      #5a6470   cold metadata grey (timestamps, case no.)
   Type:
     Display : "Tiro Bangla" (serif, editorial, used for headlines)
     Body    : "Noto Sans Bengali" / "Hind Siliguri" fallback stack
     Mono    : "JetBrains Mono" / monospace — case numbers, stamps, metadata
     (No external font requests are made — see functions.php. Fonts load
     from locally hosted files only, or fall back to the OS's own Bengali
     font, so visiting this site never pings a third-party font CDN.)
   Signature element:
     Every leak is a "case file": a card that looks like a manila folder
     with a black redaction bar over part of the title until you hover/
     focus it, a stamped case number (মামলা নং) in mono type, and a
     torn-edge top border. No decorative 01/02/03 numbering — the case
     number *is* the real sequence, drawn from the post ID.
   ========================================================= */

:root {
  --ink: #0d0d0f;
  --ink-soft: #16171a;
  --paper: #f2ede3;
  --paper-dim: #d9d2c2;
  --redact: #8a1010;
  --redact-dim: #5c0c0c;
  --steel: #8890a0;
  --steel-dim: #5a6470;
  --font-display: "Tiro Bangla", "Noto Serif Bengali", "Kalpurush", serif;
  --font-body: "Hind Siliguri", "Noto Sans Bengali", "Kalpurush", "Nirmala UI", sans-serif;
  --font-mono: "JetBrains Mono", "Space Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --radius: 2px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--redact);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

/* -------- header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #232327;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.site-logo .mark {
  background: var(--redact);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: var(--radius);
  transform: translateY(-2px);
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-size: 15px;
  color: #cfc9bd;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--paper); border-color: var(--redact); }

/* hamburger button — hidden on desktop, shown under 640px */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid #34343a;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .03em;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--redact);
  color: var(--paper);
  background: transparent;
  transition: background .15s, color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--redact); }
.btn.solid { background: var(--redact); }
.btn.solid:hover { background: var(--redact-dim); }

/* -------- hero -------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  border-bottom: 1px solid #232327;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(255,255,255,0.025) 28px);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  max-width: 15ch;
  position: relative;
}
.hero .redact-bar {
  display: inline-block;
  background: var(--ink);
  color: transparent;
  border-radius: 1px;
  cursor: default;
  transition: color .4s, background .4s;
  padding: 0 4px;
}
.hero:hover .redact-bar, .hero .redact-bar:focus-visible {
  background: transparent;
  color: var(--redact);
}
.hero p.lede {
  max-width: 56ch;
  font-size: 19px;
  color: #cfc9bd;
  margin-top: 18px;
}
.hero .actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.trust-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #232327;
  border: 1px solid #232327;
}
.trust-strip div {
  background: var(--ink);
  padding: 20px 22px;
}
.trust-strip .num {
  font-family: var(--font-mono);
  color: var(--redact);
  font-size: 13px;
  letter-spacing: .08em;
}
.trust-strip p { margin: 6px 0 0; color: #cfc9bd; font-size: 14.5px; }

/* -------- section shell -------- */
.section { padding: 72px 0; border-bottom: 1px solid #232327; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; }
.section-head .see-all { font-family: var(--font-mono); font-size: 13.5px; text-decoration: none; color: var(--steel); border-bottom: 1px solid var(--steel-dim); }
.section-head .see-all:hover { color: var(--paper); border-color: var(--paper); }

/* -------- case file cards (leaks grid) -------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.case-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  text-decoration: none;
  display: block;
  position: relative;
  border-top: 3px solid var(--ink);
  clip-path: polygon(0 0, 96% 0, 100% 6px, 100% 100%, 0 100%);
  transition: transform .18s ease;
}
.case-card:hover, .case-card:focus-visible { transform: translateY(-3px); }
.case-card .case-no {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--redact);
  letter-spacing: .05em;
  display: block;
  margin-bottom: 10px;
}
.case-card h3 {
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
}
.case-card .title-redact {
  background: var(--ink);
  color: transparent;
  border-radius: 1px;
  transition: color .3s, background .3s;
}
.case-card:hover .title-redact, .case-card:focus-visible .title-redact { background: transparent; color: var(--ink); }
.case-card p.excerpt { font-size: 14.5px; color: #45403a; margin: 0 0 14px; }
.case-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--steel-dim);
  border-top: 1px dashed var(--paper-dim);
  padding-top: 12px;
}
.status-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.status-verified { background: #12351c; color: #5fd58a; }
.status-review { background: #3a2f10; color: #e0b74a; }
.status-developing { background: #2a1414; color: #e08a8a; }

/* -------- how it works -------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { border: 1px solid #232327; padding: 24px 20px; border-radius: var(--radius); }
.step .step-tag { font-family: var(--font-mono); font-size: 12px; color: var(--redact); display: block; margin-bottom: 14px; }
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: #b9b2a4; margin: 0; }

/* -------- security band -------- */
.security-band { background: var(--ink-soft); }
.security-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; margin-top: 8px; }
.security-list li { list-style: none; padding-left: 26px; position: relative; font-size: 15px; color: #cfc9bd; }
.security-list li::before {
  content: "▮";
  color: var(--redact);
  position: absolute; left: 0; top: 1px; font-size: 12px;
}

/* -------- submit page -------- */
.submit-hero { text-align: center; padding: 64px 0 40px; }
.submit-hero .stamp {
  display: inline-block;
  border: 2px solid var(--redact);
  color: var(--redact);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  padding: 6px 14px;
  transform: rotate(-3deg);
  margin-bottom: 20px;
}
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.channel-card { background: var(--paper); color: var(--ink); padding: 26px; border-radius: var(--radius); }
.channel-card .chan-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--redact); display: block; margin-bottom: 10px; }
.channel-card h3 { font-size: 18px; margin-bottom: 8px; }
.channel-card p { font-size: 14px; color: #45403a; }
/* -------- submission form -------- */
.submit-form {
  background: var(--paper);
  color: var(--ink);
  padding: 32px;
  border-radius: var(--radius);
  max-width: 720px;
}
.submit-form .form-row { margin-bottom: 22px; }
.submit-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--redact-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.submit-form input[type="text"],
.submit-form select,
.submit-form textarea,
.submit-form input[type="file"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 12px 14px;
  border: 1px solid var(--paper-dim);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
}
.submit-form textarea { resize: vertical; }
.submit-form input:focus, .submit-form select:focus, .submit-form textarea:focus {
  outline: 2px solid var(--redact);
  outline-offset: 1px;
}
.submit-form .field-hint { font-size: 12.5px; color: #6b6558; margin: 8px 0 0; }
.submit-form .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #3a352c;
  margin-bottom: 24px;
}
.submit-form .checkbox-row input { margin-top: 3px; }

.warn-box {
  border: 1px solid var(--redact);
  background: #1c0e0e;
  padding: 22px 24px;
  border-radius: var(--radius);
  margin-top: 40px;
}
.warn-box h4 { color: #f0a9a9; font-size: 15px; margin-bottom: 10px; }
.warn-box ul { margin: 0; padding-inline-start: 20px; color: #e6c9c9; font-size: 14.5px; }
.warn-box li { margin-bottom: 6px; }

/* -------- footer -------- */
.site-footer { padding: 48px 0 40px; }
.site-footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h5 { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; color: var(--steel); text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: #cfc9bd; font-size: 14.5px; }
.site-footer a:hover { color: var(--paper); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #232327; font-family: var(--font-mono); font-size: 12px; color: var(--steel-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* -------- single leak -------- */
.leak-header { padding: 60px 0 30px; border-bottom: 1px solid #232327; }
.leak-header .case-no { font-family: var(--font-mono); color: var(--redact); font-size: 13px; }
.leak-header h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 12px; }
.leak-meta-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 20px; font-family: var(--font-mono); font-size: 13px; color: var(--steel); }
.leak-body { padding: 48px 0; max-width: 74ch; }
.leak-body p { margin-bottom: 1.2em; }
.leak-body img, .leak-body video { border-radius: var(--radius); margin: 24px 0; }
.verify-note { background: var(--ink-soft); border-left: 3px solid var(--redact); padding: 18px 22px; font-size: 14.5px; color: #cfc9bd; margin: 32px 0; }

/* -------- responsive -------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .security-list { grid-template-columns: 1fr; }
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .trust-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header .wrap { height: 60px; }
  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid #232327;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    z-index: 49;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav li { border-bottom: 1px solid #1e1e22; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(26px, 8vw, 36px); }
  .hero p.lede { font-size: 16.5px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 24px; }

  .steps { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .submit-form { padding: 22px; }
  .submit-hero { padding: 44px 0 28px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .site-logo { font-size: 19px; }
}

/* focus visibility, kept deliberately strong for this kind of site */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--redact);
  outline-offset: 2px;
}
