/* ================================================================ *
 *  INSIGHTS ARTICLE STYLESHEET                                     *
 *  Shared across /insights/{slug}/ article pages                   *
 *  Pit-agnostic (typography and layout only).                      *
 * ================================================================ */

:root {
  --accent: #c8b57a;
  --ink: #e8e4dc;
  --ink-soft: rgba(232, 228, 220, 0.78);
  --ink-faint: rgba(232, 228, 220, 0.45);
  --border: rgba(232, 228, 220, 0.12);
  --bg: #000000;
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- header (shared with /insights/ index) --- */
.i-header {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 18px 32px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.i-header a {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 180ms;
}
.i-header a:hover { color: var(--accent); }
.i-wordmark {
  font-family: 'Playfair Display', serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0.28em !important;
  color: var(--ink) !important;
  text-transform: uppercase;
}

/* --- article main --- */
.a-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 140px 32px 80px;
}

.a-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.a-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
  color: var(--ink);
}

.a-lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.5;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0 0 40px;
  font-weight: 400;
}

.a-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.a-meta .a-pit {
  color: var(--accent);
}

/* --- article body (long-form prose) --- */
.a-body {
  margin-top: 48px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.a-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 56px 0 20px;
}

.a-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin: 40px 0 16px;
}

.a-body p {
  margin: 0 0 22px;
}

.a-body em {
  color: var(--ink);
  font-style: italic;
}

.a-body strong {
  color: var(--ink);
  font-weight: 500;
}

.a-body ul, .a-body ol {
  margin: 0 0 24px;
  padding-left: 28px;
}

.a-body li {
  margin-bottom: 12px;
}

.a-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 181, 122, 0.3);
  transition: border-color 160ms;
}
.a-body a:hover {
  border-bottom-color: var(--accent);
}

.a-body blockquote {
  margin: 32px 0;
  padding: 20px 32px;
  border-left: 2px solid var(--accent);
  font-style: italic;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.55;
}

/* --- coord-native footer inline --- */
.a-footer-inline {
  margin-top: 80px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.a-kqas-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.a-kqas-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(200, 181, 122, 0.6);
}
.a-footer-inline__right a {
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.22em;
}
.a-footer-inline__right a:hover { text-decoration: underline; }

/* --- next/prev cards --- */
.a-nextprev {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.a-nextprev__card {
  background: var(--bg);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 180ms;
}
.a-nextprev__card:hover {
  background: rgba(200, 181, 122, 0.04);
}
.a-nextprev__cat {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}
.a-nextprev__title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}

/* --- shared page footer --- */
.i-footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  margin-top: 120px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.i-footer a { color: var(--ink-faint); text-decoration: none; }
.i-footer a:hover { color: var(--accent); }

/* --- responsive --- */
@media (max-width: 640px) {
  .a-main { padding: 120px 20px 60px; }
  .i-header { padding: 14px 20px; }
  .a-body { font-size: 17px; line-height: 1.7; }
}

/* --- RTL for Arabic --- */
html[dir="rtl"] .a-body ul,
html[dir="rtl"] .a-body ol {
  padding-left: 0;
  padding-right: 28px;
}
html[dir="rtl"] .a-body blockquote {
  border-left: none;
  border-right: 2px solid var(--accent);
}
