/* ==========================================================================
   Portfolio 9: Minimalist Substack & Longform Policy Think Tank (বাংলা)
   Aesthetic: Distraction-free Central Reading Column, Editorial Serif Typography,
   Pull Quotes, Margin Annotations, Policy Download Cards, Thoughtful Discourse
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,800;1,600&family=Tiro+Bangla:ital@0;1&display=swap');

:root {
  --reader-bg: #fcfbf9;
  --reader-card: #ffffff;
  --reader-ink: #242424;
  --reader-muted: #6b6b6b;
  --reader-border: #e6e4df;
  --reader-accent: #1a8917;
  --reader-amber: #b45309;
  --font-bangla: 'Hind Siliguri', sans-serif;
  --font-serif: 'Tiro Bangla', Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-bangla);
  background-color: var(--reader-bg);
  color: var(--reader-ink);
  line-height: 1.85;
  font-size: 1.12rem;
}

a {
  color: inherit;
  text-decoration: none;
}

.reader-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Substack-style Clean Topbar */
.substack-nav {
  background: var(--reader-bg);
  border-bottom: 1px solid var(--reader-border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand-ss {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand-ss i {
  color: var(--reader-amber);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-subscribe {
  background: var(--reader-ink);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.btn-subscribe:hover {
  opacity: 0.85;
}

/* Article Header */
.article-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--reader-border);
  margin-bottom: 3rem;
}

.article-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--reader-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #111;
}

.article-subtitle {
  font-size: 1.25rem;
  color: var(--reader-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Author Metadata Box */
.author-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--reader-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.author-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--reader-border);
}

.author-meta-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.author-meta-text span {
  font-size: 0.85rem;
  color: var(--reader-muted);
}

.reading-time {
  font-size: 0.85rem;
  color: var(--reader-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Article Body Typography */
.article-content {
  font-size: 1.15rem;
  color: #292929;
}

.article-content p {
  margin-bottom: 1.75rem;
  line-height: 1.85;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin: 3.5rem 0 1.25rem;
  color: #111;
  border-bottom: 1px solid var(--reader-border);
  padding-bottom: 0.5rem;
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: #222;
}

/* Pull Quotes */
.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.45rem;
  color: #111;
  border-left: 3px solid var(--reader-amber);
  padding: 1rem 0 1rem 1.75rem;
  margin: 2.5rem 0;
  line-height: 1.6;
}

/* Documentary Photo */
.essay-photo-box {
  margin: 3rem 0;
}

.essay-photo-box img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.essay-photo-caption {
  font-size: 0.88rem;
  color: var(--reader-muted);
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

/* Policy Download Cards */
.policy-papers-section {
  margin: 4rem 0;
  background: #ffffff;
  border: 1px solid var(--reader-border);
  border-radius: 8px;
  padding: 2.25rem;
}

.policy-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--reader-border);
  gap: 1.5rem;
}

.policy-card-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.policy-meta h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.policy-meta p {
  font-size: 0.92rem;
  color: var(--reader-muted);
  margin: 0;
  line-height: 1.5;
}

.btn-download-pdf {
  background: var(--reader-bg);
  border: 1px solid var(--reader-border);
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-download-pdf:hover {
  background: var(--reader-ink);
  color: #fff;
}

/* Feedback & Citizen Amendment Box */
.feedback-box-ss {
  background: #ffffff;
  border: 1px solid var(--reader-border);
  border-radius: 8px;
  padding: 2.25rem;
  margin: 3.5rem 0;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-ss {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--reader-border);
  background: var(--reader-bg);
  font-family: var(--font-bangla);
  font-size: 1rem;
  border-radius: 6px;
  outline: none;
}

.input-ss:focus {
  border-color: var(--reader-ink);
  background: #fff;
}

/* Footer */
.reader-footer {
  border-top: 1px solid var(--reader-border);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
  color: var(--reader-muted);
}

.reader-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.reader-footer-col h4 {
  color: var(--reader-ink);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.reader-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.reader-footer-col ul li a {
  color: var(--reader-muted);
  transition: color 0.2s;
}

.reader-footer-col ul li a:hover {
  color: var(--reader-ink);
}

.reader-contact-line {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.reader-bottom {
  border-top: 1px solid var(--reader-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.reader-bottom a {
  color: var(--reader-amber);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--reader-border);
  color: var(--reader-ink);
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav-row { position: relative; }
  .mobile-toggle { display: flex; }

  .nav-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--reader-border);
    border-radius: 6px;
    padding: 1.25rem;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    z-index: 1000;
    margin-top: 0.5rem;
  }

  .nav-actions.active {
    display: flex !important;
  }

  .nav-actions a {
    display: block;
    padding: 0.4rem 0;
    text-align: center;
  }

  .article-header h1 { font-size: 2.2rem; }
  .reader-footer-grid { grid-template-columns: 1fr; }
  .policy-card-item { flex-direction: column; align-items: flex-start; }
}
