/*
 * The Chronicler Stylesheet
 *
 * This stylesheet defines the look and feel of The Chronicler website. It
 * embraces a fantasy‑meets‑technology aesthetic using deep blues and
 * magical accents. Colors and layout decisions are driven by the
 * provided palette and should not be altered without updating the
 * variables in the :root selector below. The design emphasizes
 * readability, subtle depth, and ease of expansion.
 */

/* Color palette variables for easy customization */
:root {
  --bg-primary: #0E1621;        /* Deep Arcane Night */
  --bg-secondary: #1B2A3A;      /* Muted Slate Blue */
  --accent-primary: #5CCFE6;    /* Arcane Cyan Glow */
  --accent-secondary: #B38CFF;  /* Ethereal Lavender Rune */
  --highlight: #F2F4F8;        /* Parchment Glow */
  --text-muted: #A7B0C0;       /* Ancient Ink Gray */
  --border-radius: 6px;        /* Consistent rounded corners */
  --transition: 0.3s ease;     /* Animation timing */
}

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

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--highlight);
  line-height: 1.6;
}

/* Header and navigation */
header {
  background-color: var(--bg-primary);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links a {
  color: var(--text-muted);
  margin-left: 1rem;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--accent-primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius);
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  text-decoration: none;
  font-weight: 600;
  transition: background-color var(--transition), transform var(--transition);
}

.btn:hover {
  background-color: var(--accent-secondary);
  transform: translateY(-2px);
}

/* Hero section */
.hero {
  background-color: var(--bg-secondary);
  /* Use a generic banner image; update the filename to match your actual asset */
  background-image: url('../img/banner.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 1rem;
  box-shadow: 0 0 20px rgba(92, 207, 230, 0.3);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--highlight);
  font-family: 'Merriweather', Georgia, serif;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* Generic section styling */
.section {
  padding: 4rem 2rem;
  background-color: var(--bg-primary);
}

.section:nth-of-type(even) {
  background-color: var(--bg-secondary);
}

/* Card layout */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background-color: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background-color: var(--bg-secondary);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Social links */
.socials a {
  margin: 0 0.75rem;
  color: var(--accent-primary);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color var(--transition);
}

.socials a:hover {
  color: var(--accent-secondary);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 100%;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    margin-top: 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}