/* ═══════════════════════════════════════════════════════════════
   Thesis — Long-form article styles
   Extends landing.css design system
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset body for dark long-form reading ───────────────────── */
body.thesis-page {
  background: var(--bg);
  color: var(--text-dim);
  line-height: 1.85;
  padding-top: 64px; /* nav height */
}

/* ── Article container ───────────────────────────────────────── */
.thesis-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Hero / Title block ──────────────────────────────────────── */
.thesis-hero {
  padding: 100px 0 80px;
  text-align: center;
}

.thesis-hero .eyebrow {
  margin-bottom: 28px;
}

.thesis-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 28px;
}

.thesis-subtitle {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 40px;
}

.thesis-meta {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.thesis-meta-item {
  text-align: center;
}

.thesis-meta-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.thesis-meta-value {
  font-size: 0.9375rem;
  color: var(--text-dim);
}

/* ── Section spacing ─────────────────────────────────────────── */
.thesis-section {
  padding: 60px 0;
  position: relative;
}

.thesis-section + .thesis-section {
  padding-top: 0;
}

.thesis-section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  margin-bottom: 60px;
}

.thesis-section:first-of-type::before {
  display: none;
}

/* ── Section numbers ─────────────────────────────────────────── */
.section-num {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ── Headings ─────────────────────────────────────────────────── */
.thesis-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 28px;
}

.thesis-section h3 {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  color: var(--text);
  margin: 40px 0 16px;
  line-height: 1.25;
}

/* ── Body text ────────────────────────────────────────────────── */
.thesis-section p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0 0 22px;
  max-width: 68ch;
}

.thesis-section p:last-child {
  margin-bottom: 0;
}

/* ── Drop caps ────────────────────────────────────────────────── */
.drop-cap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.2em;
  line-height: 0.78;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--accent);
  font-weight: 400;
}

/* ── Pull quotes ──────────────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  max-width: 620px;
}

.pull-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Lists ────────────────────────────────────────────────────── */
.thesis-section ul,
.thesis-section ol {
  padding-left: 24px;
  margin: 0 0 22px;
  max-width: 68ch;
}

.thesis-section li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.thesis-section li strong {
  color: var(--text);
}

/* ── Emphasis blocks (for technical/computational sections) ──── */
.computation-block {
  margin: 32px 0;
  padding: 24px 28px;
  border-radius: 16px;
  background: rgba(212, 165, 116, 0.04);
  border: 1px solid rgba(212, 165, 116, 0.1);
}

.computation-block h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.computation-block p {
  font-size: 1rem !important;
  line-height: 1.78;
  color: var(--text) !important;
  margin: 0 0 14px;
}

.computation-block p:last-child {
  margin-bottom: 0;
}

/* ── Divider ornament ─────────────────────────────────────────── */
.section-ornament {
  text-align: center;
  padding: 20px 0;
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  opacity: 0.4;
}

/* ── Footnotes / inline references ────────────────────────────── */
.ref {
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
  display: block;
  margin-top: 6px;
}

/* ── Closing section ──────────────────────────────────────────── */
.thesis-closing {
  text-align: center;
  padding: 80px 0 100px;
}

.thesis-closing h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}

.thesis-closing p {
  max-width: 560px;
  margin: 0 auto 20px;
  color: var(--text-dim);
  font-size: 1.0625rem;
  line-height: 1.85;
}

/* ── Footer override for thesis ──────────────────────────────── */
.thesis-page .site-footer {
  border-top: 1px solid var(--border);
  margin-top: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .thesis-hero {
    padding: 60px 0 50px;
  }

  .thesis-article {
    padding: 0 20px;
  }

  .thesis-section {
    padding: 40px 0;
  }

  .thesis-section::before {
    margin-bottom: 40px;
  }

  .pull-quote {
    font-size: 1.15rem;
    padding-left: 20px;
    margin: 28px 0;
  }

  .drop-cap::first-letter {
    font-size: 3.4em;
    padding-right: 8px;
  }

  .thesis-meta {
    gap: 24px;
  }

  .computation-block {
    padding: 20px 22px;
  }
}

@media (max-width: 480px) {
  .thesis-hero {
    padding: 40px 0 36px;
  }

  .thesis-meta {
    flex-direction: column;
    gap: 16px;
  }

  .pull-quote {
    font-size: 1.05rem;
  }
}
