/* ============================================
   Niche Affiliate Magazine — Shared Styles
   ============================================ */

:root {
  --primary: #0D4F4F;
  --accent: #F4A261;
  --bg: #FAFAF8;
  --text: #1A1A1A;
  --heading-font: Georgia;
  --body-font: system-ui;

  --max-width: 1200px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --transition: 0.2s ease;
}

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

body {
  font-family: var(--body-font), system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.brand {
  font-family: var(--heading-font), Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.875rem;
  color: var(--text);
  opacity: 0.6;
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 2rem 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(0,0,0,0.02) 100%);
}

.hero h1 {
  font-family: var(--heading-font), Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.125rem;
  opacity: 0.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Section */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section-title {
  font-family: var(--heading-font), Georgia, serif;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* Article Grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.card h3 {
  font-family: var(--heading-font), Georgia, serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 1.25rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: gap var(--transition);
}

.read-more:hover { gap: 0.7rem; }

/* CTA Banner */
.cta-banner {
  max-width: var(--max-width);
  margin: 2rem auto 4rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-family: var(--heading-font), Georgia, serif;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-banner a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.875rem 2rem;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: transform var(--transition);
}

.cta-banner a:hover { transform: scale(1.05); }

/* Article Page */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-page h1 {
  font-family: var(--heading-font), Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-excerpt {
  font-size: 1.125rem;
  opacity: 0.7;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content p { margin-bottom: 1.5rem; }

/* Footer */
.footer {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
