/* ============================================
   ARSH THE LEARNER — Research Dossier Theme
   ============================================ */

:root {
  /* Color tokens */
  --paper: #EDE6D6;
  --paper-raised: #F6F1E6;
  --ink: #1C1F2B;
  --ink-soft: #3C3A36;
  --rust: #8C2F39;
  --rust-dark: #6E2530;
  --gold: #C08A28;
  --line: #D8CDB4;
  --muted: #6B6356;
  --white: #FFFDF8;

  /* Type */
  --font-display: 'Lora', 'Noto Serif Devanagari', serif;
  --font-body: 'Work Sans', 'Noto Sans Devanagari', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse at top left, rgba(192,138,40,0.06), transparent 40%),
    radial-gradient(ellipse at bottom right, rgba(140,47,57,0.05), transparent 45%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5em 0;
  line-height: 1.15;
  font-weight: 600;
}

a {
  color: var(--rust);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(2px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.brand .mark {
  color: var(--rust);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--rust);
  text-decoration: none;
  border-bottom: 2px solid var(--rust);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    width: 100%;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0 4px;
  }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--rust);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  max-width: 16ch;
}

.hero p.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 18px 0 28px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--rust-dark);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--paper-raised);
  text-decoration: none;
}

/* ---------- Stamp signature element ---------- */
.stamp {
  position: relative;
  width: 132px;
  height: 132px;
  border: 2.5px solid var(--rust);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--rust);
  transform: rotate(-8deg);
  margin-left: auto;
  opacity: 0.92;
  flex-shrink: 0;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--rust);
  border-radius: 50%;
}
.stamp span { padding: 0 14px; }

.stamp-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rust);
  border: 1px solid var(--rust);
  border-radius: 999px;
  padding: 3px 10px;
}
.stamp-mini::before {
  content: "✓";
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-head {
  margin-bottom: 36px;
  max-width: 60ch;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.section-head p {
  color: var(--muted);
}

/* ---------- Episode / Case file cards ---------- */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.episode-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.episode-card:hover {
  box-shadow: 0 10px 26px rgba(28,31,43,0.08);
  transform: translateY(-2px);
}

.case-number {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.episode-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.episode-card .desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex-grow: 1;
}

.episode-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.episode-card .watch-link {
  font-weight: 600;
  color: var(--rust);
}

.episode-card.locked {
  opacity: 0.6;
}

/* ---------- Source / Data ledger ---------- */
.ledger {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: var(--radius);
  overflow: hidden;
}

.ledger-row {
  display: grid;
  grid-template-columns: 140px 1fr 160px;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row.head {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ledger-row .figure {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--rust);
  font-size: 1.05rem;
}
.ledger-row a {
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 700px) {
  .ledger-row { grid-template-columns: 1fr; gap: 4px; }
  .ledger-row.head { display: none; }
  .ledger-row .figure { font-size: 1.2rem; }
}

/* ---------- Membership tiers ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.tier-card {
  border: 1px solid var(--line);
  background: var(--paper-raised);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tier-card.featured {
  border: 2px solid var(--rust);
  position: relative;
}
.tier-card.featured::before {
  content: "सबसे पसंदीदा";
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--rust);
  color: var(--white);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
}

.tier-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--ink);
}
.tier-price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
}

.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  flex-grow: 1;
}
.tier-card li::before {
  content: "—";
  color: var(--rust);
  margin-right: 8px;
}

/* ---------- Newsletter band ---------- */
.newsletter {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter h3 { color: var(--paper); margin-bottom: 6px; }
.newsletter p { color: #B9B4A4; margin: 0; max-width: 42ch; }

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.form-row input[type="email"] {
  padding: 12px 14px;
  border: 1px solid #4A4A40;
  background: #262A38;
  color: var(--paper);
  border-radius: var(--radius);
  min-width: 220px;
  font-family: var(--font-body);
}
.form-row input::placeholder { color: #8A8676; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--muted); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
}

/* ---------- Page header (non-home pages) ---------- */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}
.page-hero p {
  color: var(--muted);
  max-width: 56ch;
  font-size: 1.05rem;
}

/* ---------- Disclosure / transparency note ---------- */
.disclosure {
  border-left: 3px solid var(--gold);
  background: var(--paper-raised);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 32px 0;
}
.disclosure strong { color: var(--ink); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  z-index: 100;
}
