/* Usenti — Articles / Blog styles.
 *
 * The articles section is served as plain static HTML (not the React SPA), so
 * search engines and AI answer engines get fully-rendered, crawlable content.
 * Because the prebuilt Tailwind stylesheet (css/tailwind.css) only scans
 * index.html + js/, utility classes used here would be purged out — so this
 * file is a small, self-contained stylesheet that mirrors the brand
 * (warm rust gradient, Inter + Playfair Display, cream accents, glass cards).
 */

:root {
  --gradient-start: #2D1810;
  --gradient-end: #A86232;
  --rust-900: #2D1810;
  --rust-800: #4A2516;
  --cream-50: #FDF8F3;
  --cream-100: #F5E6D3;
  --cream-200: #EBD9C4;
  --gold: #D99A5C;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.50);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-secondary);
  background-color: var(--rust-900);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fixed warm gradient backdrop on its own layer (matches the app). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  pointer-events: none;
}

a { color: var(--cream-100); text-decoration: none; }
a:hover { color: var(--cream-200); }

/* ====== Layout ====== */
.wrap { max-width: 768px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 10, 5, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}
.site-header .bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 28px; width: auto; display: block; }
.brand span {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
}
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
}
.header-actions .nav-link:hover { color: #fff; }

/* ====== Buttons ====== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream-100);
  color: var(--rust-900);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--cream-200); color: var(--rust-900); transform: translateY(-1px); }
.btn-primary.lg { padding: 18px 36px; font-size: 18px; font-weight: 700; box-shadow: 0 0 40px -10px rgba(245,230,211,.5); }

/* ====== Typography ====== */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: #fff; line-height: 1.2; }

.article-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.article-lede {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0 0 28px;
}
.article-body { font-size: 1.075rem; }
.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 48px 0 16px;
}
.article-body h3 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--cream-50);
}
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin: 0 0 10px; }
.article-body strong { color: #fff; font-weight: 600; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }

/* Meta row */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 36px;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ====== Glass cards ====== */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Callout / key-stat box */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.stat {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
}
.stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--cream-100);
  line-height: 1.1;
}
.stat .lbl { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }

.callout {
  background: rgba(245, 230, 211, 0.06);
  border: 1px solid rgba(245, 230, 211, 0.22);
  border-left: 3px solid var(--cream-100);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* TL;DR / key takeaways */
.keytakeaways {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px 26px;
  margin: 0 0 40px;
}
.keytakeaways h2 { font-size: 1.15rem; margin: 0 0 12px; }
.keytakeaways ul { margin: 0; padding-left: 20px; }

/* ====== FAQ ====== */
.faq details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 14px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #fff;
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--cream-100);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 16px 0 0; color: var(--text-secondary); }

/* ====== Sources ====== */
.sources { font-size: 0.95rem; }
.sources ol { padding-left: 22px; }
.sources li { margin-bottom: 12px; color: var(--text-muted); }
.sources a { word-break: break-word; }

/* ====== Article listing cards ====== */
.article-card {
  display: block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  transition: background .2s ease, transform .2s ease;
}
.article-card:hover { background: rgba(255,255,255,0.10); transform: translateY(-2px); }
.article-card h2 { font-size: 1.5rem; margin: 12px 0 10px; }
.article-card p { color: var(--text-muted); margin: 0; }
.article-card .read { display: inline-block; margin-top: 16px; color: var(--cream-100); font-weight: 600; }

/* ====== CTA band ====== */
.cta {
  text-align: center;
  background: rgba(26, 10, 5, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 28px;
  margin: 56px 0;
}
.cta h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 14px; }
.cta p { color: var(--text-secondary); max-width: 520px; margin: 0 auto 26px; }
.cta .fineprint { color: var(--text-muted); font-size: 0.9rem; margin-top: 14px; }

/* ====== Breadcrumb ====== */
.crumbs { font-size: 0.9rem; color: var(--text-muted); margin: 28px 0 8px; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--cream-100); }

/* ====== Footer ====== */
.site-footer {
  background: rgba(26, 10, 5, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--glass-border);
  padding: 40px 24px;
  margin-top: 40px;
}
.site-footer .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.site-footer .copyright { color: var(--text-muted); font-size: 0.88rem; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text-muted); font-size: 0.88rem; }
.site-footer nav a:hover { color: var(--cream-100); }

hr.rule { border: none; border-top: 1px solid var(--glass-border); margin: 48px 0; }

/* ====== Responsive ====== */
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr; }
  .header-actions .nav-link { display: none; }
  .article-body { font-size: 1.02rem; }
}
