/* ── Grace Notes Ministries — Core Design System ── */

:root {
  /* ── Colors ── */
  --primary: #c9972a;
  --cream: #fdf8f0;
  --ink: #1a1208;
  --ink-2: #3d2b1a;
  --gold: #c9972a;
  --gold-light: #e8b84b;
  --muted: #7a6044;
  --footer-text: #c4a882;
  --surface-dark: #0d0906;
  --surface-dark-2: #1a1208;
  --surface-dark-3: #1e120a;
  --white: #ffffff;

  /* ── Derived Colors ── */
  --border: rgba(201, 151, 42, 0.2);
  --gold-tint-sm: rgba(201, 151, 42, 0.06);
  --gold-tint-md: rgba(201, 151, 42, 0.08);
  --gold-tint-lg: rgba(201, 151, 42, 0.12);
  --nav-bg: rgba(26, 18, 8, 0.97);
  --page-dot: rgba(201, 151, 42, 0.03);
  --nav-text: rgba(255, 255, 255, 0.7);
  --body-dim: rgba(255, 255, 255, 0.65);

  /* ── Rounded ── */
  --rounded-sm: 4px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
  --rounded-full: 100px;

  /* ── Spacing ── */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 48px;
  --space-2xl: 80px;

  /* ── Typography ── */
  --font-headline: 'Playfair Display', serif;
  --font-body: 'Lora', serif;
  --font-ui: 'Inter', sans-serif;
  --font-accent: 'Bangers', cursive; /* Used for comics and energetic headers */
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.85;
  background-color: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* ── Page Texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, var(--page-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

/* ── Typography Utility ── */
h1, h2, h3, h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
}

.headline-hero {
  font-size: clamp(36px, 8vw, 60px);
  font-weight: 900;
}

.headline-section {
  font-size: 26px;
}

.text-muted {
  color: var(--muted);
}

.label-caps {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Navigation ── */
nav.nav-strip {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 60px;
  padding: 0 var(--space-md);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  overflow: visible;
  white-space: nowrap;
}

nav.nav-strip::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--nav-text);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  transition: color 0.2s, background 0.2s;
  border-radius: var(--rounded-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.05);
}

/* Special Nav Elements from index.html */
.nav-link-special {
  font-weight: 700;
  padding: 6px 16px;
}

.nav-red { background: #ef4444; color: #fff; }
.nav-gold-border { border: 2px solid var(--gold); color: var(--gold); }
.nav-give { 
  background: linear-gradient(135deg, #7a1010, #4a0808); 
  color: #fff; 
  border: 2px solid rgba(220,60,60,0.7);
}

/* ── Components ── */

.grace-byline {
  background: var(--gold-tint-sm);
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg);
  padding: 16px 20px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.grace-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

blockquote {
  background: var(--gold-tint-md);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-family: var(--font-body);
  font-style: italic;
}

blockquote cite {
  color: var(--gold);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-style: normal;
  display: block;
  margin-top: 10px;
}

.cta-box {
  background: linear-gradient(135deg, var(--surface-dark), var(--surface-dark-2));
  border: 1px solid rgba(201, 151, 42, 0.3);
  border-radius: var(--rounded-xl);
  padding: 40px 32px;
  margin: 48px 0;
  text-align: center;
}

.cta-box h2 {
  color: var(--gold-light);
  font-size: 26px;
  margin-bottom: 16px;
}

.cta-box p {
  font-style: italic;
  color: var(--body-dim);
  margin-bottom: 24px;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--rounded-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.card {
  background: var(--white);
  border-radius: var(--rounded-lg);
  padding: 16px;
  transition: background 0.2s, box-shadow 0.2s;
}

.card:hover {
  background: var(--cream);
  box-shadow: 0 4px 12px var(--gold-tint-lg);
}

footer {
  background: var(--ink);
  color: var(--footer-text);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  border-top: 4px solid var(--gold);
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ── Animations ── */
@keyframes pulse-nav { 
  0%, 100% { opacity: 1; transform: scale(1); } 
  50% { opacity: 0.9; transform: scale(1.02); } 
}

@keyframes donate-pulse-nav {
  0%, 100% { box-shadow: 0 0 14px rgba(220,60,60,0.35); }
  50% { box-shadow: 0 0 28px rgba(220,60,60,0.65); }
}

/* ── Mobile ── */
@media (max-width: 640px) {
  nav.nav-strip {
    justify-content: center;
  }
  
  .article-wrap {
    padding: var(--space-lg) var(--space-sm) var(--space-xl);
  }
}

/* ── Navigation More Dropdown ── */
.nav-strip-more {
  position: relative;
  display: inline-block;
}

.nav-strip-more .more-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--nav-text);
  padding: var(--space-xs) var(--space-sm);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-strip-more .more-trigger:hover {
  color: var(--gold-light);
}

.nav-strip-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  background: #120e0a;
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  min-width: 190px;
  padding: 8px 0;
}

/* On desktop, show on hover */
@media (min-width: 769px) {
  .nav-strip-more:hover .nav-strip-dropdown {
    display: block;
  }
}

.nav-strip-dropdown.show {
  display: block !important;
}

.nav-dropdown-link {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 10px 16px;
  transition: all 0.2s;
  text-align: left;
  border-radius: 4px;
  margin: 0 4px;
}

.nav-dropdown-link:hover, .nav-dropdown-link.active {
  background: rgba(201, 151, 42, 0.08);
  color: var(--gold-light);
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-hide {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
}
