/* ═══════════════════════════════════════════════════════════════
   UNHINGED — Thesis article styles
   Extends site dark theme with Cormorant Garamond + Space Grotesk
   ═══════════════════════════════════════════════════════════════ */

:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --bg: #120f0d;
  --bg-warm: #1d1714;
  --text: #fff6e8;
  --text-dim: #d7c8b8;
  --muted: #a89888;
  --accent: #ff6f3c;
  --accent-deep: #ff3d00;
  --accent-soft: rgba(255, 111, 60, 0.12);
  --card: rgba(255, 246, 232, 0.08);
  --border: rgba(255, 246, 232, 0.08);
  --border-accent: rgba(255, 111, 60, 0.18);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 111, 60, 0.2) transparent;
}

body {
  font-family: var(--sans);
  color: var(--text-dim);
  background:
    radial-gradient(circle at top left, rgba(255, 111, 60, 0.10), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 61, 0, 0.06), transparent 28%),
    linear-gradient(180deg, #201612 0%, var(--bg) 48%, #0d0908 100%);
  min-height: 100vh;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ─── Topbar ─── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(18, 15, 13, 0.7);
  border-bottom: 1px solid rgba(255, 246, 232, 0.08);
}
.topbar-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto; padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.92rem;
}
.brand-mark {
  width: 12px; height: 12px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 176, 136, 1), var(--accent-deep));
  box-shadow: 0 0 24px rgba(255, 111, 60, 0.7);
}
.nav {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.nav a {
  color: var(--muted); font-size: 0.96rem; font-weight: 400;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

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

/* ─── Hero ─── */
.thesis-hero {
  padding: 120px 0 80px; text-align: center;
}
.thesis-hero .eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 28px;
}
.thesis-title {
  font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.02em;
  color: var(--text); margin: 0 0 28px;
}
.thesis-subtitle {
  font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem);
  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: 700;
  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.9rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.10; letter-spacing: -0.01em;
  color: var(--text); margin: 0 0 28px;
}
.thesis-section h3 {
  font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600; 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.4em;
  line-height: 0.78; padding-right: 12px; padding-top: 6px;
  color: var(--accent); font-weight: 700;
}

/* ─── 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.35rem;
  font-style: italic; line-height: 1.5; 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); }

/* ─── Computation / emphasis blocks ─── */
.computation-block {
  margin: 32px 0; padding: 24px 28px; border-radius: 16px;
  background: var(--accent-soft); border: 1px solid var(--border-accent);
}
.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; }

/* ─── Closing ─── */
.thesis-closing { text-align: center; padding: 80px 0 100px; }
.thesis-closing h2 {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; 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;
}
.thesis-closing .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; transition: transform 0.14s;
}
.thesis-closing .button:hover { transform: translateY(-1px); }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border); padding: 48px 0;
}
.footer .site-shell {
  width: min(calc(100% - 32px), var(--max)); margin: 0 auto;
}
.footer-links {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px;
}
.footer-links a {
  font-size: 0.82rem; color: var(--muted); text-decoration: none;
  letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer p, .footer-tag {
  font-size: 0.82rem; color: var(--muted); line-height: 1.6; text-align: center;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav { display: none; }
  .thesis-hero { padding: 80px 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: 60px 0 36px; }
  .thesis-meta { flex-direction: column; gap: 16px; }
  .pull-quote { font-size: 1.05rem; }
}
