/* Global Design System - Nickerson Chronicles
 * Brand Palette:
 *   Primary Blue:      #3157d6
 *   Deep Navy:         #1b2a4a
 *   Light Background:  #f6f8fc
 */

:root {
  --color-primary: #3157d6;
  --color-navy: #1b2a4a;
  --color-bg: #f6f8fc;
  --color-cta-bg: #eef3fc;      /* soft blue-tinted CTA background */
  --color-cta-border: #c7d9f8;  /* CTA section top border */
  --color-muted: #475569;       /* muted body text (slate-600) */
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-navy);
}

/* Consistent max-width containers */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Rounded buttons — opt-in via .btn class */
.btn {
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
}

/* Radius-lg (16px) for content images inside <main> */
main img {
  border-radius: 16px;
}

/* Allow full-bleed / hero images to opt out of rounding */
main img.img-no-radius {
  border-radius: 0;
}

/* Line-clamp utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Utility: hide the default details marker */
summary::-webkit-details-marker {
  display: none;
}

details[open] .chevron {
  transform: rotate(180deg);
}

/* ===== Shared CTA Section ("Explore More") =====
 * Soft blue-tinted background used sitewide for all bottom CTA sections.
 * Usage: add class="cta-section" to the <section> element.
 */
.cta-section {
  background-color: var(--color-cta-bg);
  border-top: 1px solid var(--color-cta-border);
  padding: 4rem 0;
}

.cta-section h2 {
  color: var(--color-navy);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--color-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Primary CTA button — solid brand blue */
.cta-btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background-color: var(--color-navy);
  transform: scale(1.05);
}
