/* ============================================
   Lead to Deliver — Global Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-deep: #0d0d14;
  --bg: #1a1f2e;
  --surface: #242a3a;
  --border: rgba(255, 255, 255, 0.10);

  --text: #e8e0d4;
  --muted: #9a9aab;
  --white: #ffffff;
  --text-dark: #1a1a1a;

  --gold: #d4a04a;
  --gold-light: #e8c47a;
  --gold-dark: #b8862e;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1080px;
  --container-article: 720px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 700px at 15% 10%, rgba(212, 160, 74, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-deep), var(--bg) 35%, var(--bg-deep));
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--gold-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section --- */
.section {
  padding: clamp(48px, 7vw, 100px) 0;
}

.section-alt {
  background: rgba(15, 15, 20, 0.5);
}

.section-title {
  text-align: center;
  font-size: clamp(24px, 2.5vw, 34px);
  color: var(--white);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* --- Nav --- */
.page-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.page-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

.page-nav-brand:hover {
  color: var(--gold-light);
}

.page-nav-links {
  display: flex;
  gap: 24px;
}

.page-nav-links a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.page-nav-links a:hover,
.page-nav-links a.active {
  color: var(--white);
}

/* --- Hero --- */
.hero {
  min-height: 70svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(26px, 3.5vw, 44px);
  color: var(--white);
  letter-spacing: 0.01em;
}

.hero-rule {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: none;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 17px);
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.hero-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--text-dark);
  box-shadow: 0 8px 24px rgba(212, 160, 74, 0.18);
}

.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: var(--text-dark);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212, 160, 74, 0.06);
  color: var(--white);
}

/* --- Featured Article --- */
.featured-card {
  display: block;
  max-width: var(--container-article);
  margin: 0 auto;
  background: linear-gradient(135deg, var(--surface), rgba(36, 42, 58, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.featured-card:hover {
  border-color: rgba(212, 160, 74, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.featured-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.featured-card h2 {
  font-size: clamp(20px, 2vw, 26px);
  color: var(--white);
  margin-bottom: 12px;
}

.featured-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* --- Article Grid --- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.article-card {
  display: block;
  background: linear-gradient(135deg, var(--surface), rgba(36, 42, 58, 0.6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.article-card:hover {
  border-color: rgba(212, 160, 74, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.article-card h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 8px;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-read-more {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}

.article-card:hover .article-read-more {
  color: var(--gold-light);
}

/* --- Tags --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 20px;
  background: rgba(212, 160, 74, 0.08);
  border: 1px solid rgba(212, 160, 74, 0.2);
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* --- Topic Cards --- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-card {
  background: linear-gradient(135deg, var(--surface), rgba(36, 42, 58, 0.6));
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px;
}

.topic-card h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.topic-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* --- About Blurb (homepage) --- */
.about-blurb {
  max-width: var(--container-article);
  margin: 0 auto;
  text-align: center;
}

.about-blurb p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* --- Newsletter --- */
.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-fields {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  min-height: 44px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.newsletter-input::placeholder {
  color: var(--muted);
}

.newsletter-input:focus {
  border-color: var(--gold);
}

.newsletter-btn {
  white-space: nowrap;
}

.newsletter-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 20px;
  text-align: center;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- About Page --- */
.about-content {
  max-width: var(--container-article);
  margin: 0 auto;
}

.about-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.about-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.about-section h2 {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--white);
  margin-bottom: 16px;
}

.about-section p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.author-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.author-headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212, 160, 74, 0.25);
  box-shadow: 0 0 30px rgba(212, 160, 74, 0.08);
  margin-bottom: 16px;
}

.author-card h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.author-card .author-role {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.author-card .author-bio {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 16px;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gold);
}

.author-link:hover {
  color: var(--gold-light);
}

/* --- Page Content (shared) --- */
.page-content {
  padding: 120px 0 80px;
}

.page-title {
  font-size: clamp(28px, 3vw, 40px);
  color: var(--white);
  margin-bottom: 12px;
}

.page-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 600px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .topics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-nav-links {
    gap: 16px;
  }

  .page-nav-links a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-fields {
    flex-direction: column;
  }

  .featured-card {
    padding: 24px;
  }

  .page-nav-links {
    gap: 12px;
  }
}
