/* Solar System Explorers — Clean Light Theme */

:root {
  --bg: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #2563EB;
  --border: #E5E5E5;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container: 1200px;
  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden }
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block }
a { color: inherit; text-decoration: none }
ul, ol { list-style: none }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); font-size: 15px }
input, textarea { font-family: inherit }

/* ===== TYPOGRAPHY — Font System ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 700 }
h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 600 }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 600 }
h4 { font-size: clamp(18px, 2vw, 22px); font-weight: 600 }
p { color: var(--text-secondary); line-height: 1.7; font-size: 16px }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px }

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 0;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none }
.breadcrumbs a:hover { color: var(--accent) }
.breadcrumbs .sep { color: var(--border) }
.breadcrumbs .current { color: var(--text-secondary) }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.navbar.hidden { transform: translateY(-100%); pointer-events: none }
.navbar-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  flex-shrink: 0;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.navbar-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  white-space: nowrap;
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--accent);
}
.navbar-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0 }
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: var(--text-secondary);
}
.nav-btn:hover { color: var(--text-primary); background: var(--bg-secondary) }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text-primary); border-radius: 1px }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg) }
.hamburger.open span:nth-child(2) { opacity: 0 }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg) }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open { opacity: 1; pointer-events: all }
.mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none }
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--accent) }

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 24px 48px;
  opacity: 0;
  pointer-events: none;
}
.search-overlay.open { opacity: 1; pointer-events: all }
.search-overlay-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--text-secondary);
  font-size: 1.5rem;
  padding: 8px;
  cursor: pointer;
}
.search-overlay-close:hover { color: var(--text-primary) }
.search-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.search-input-wrapper { width: 100%; max-width: 560px; position: relative; margin-bottom: 32px }
.search-input-wrapper svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
#search-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 14px 14px 48px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
}
#search-input::placeholder { color: var(--text-muted) }
#search-input:focus { border-color: var(--accent) }
#search-results { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 8px }
.search-result-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
}
.search-result-item:hover { border-color: var(--accent) }
.search-result-img { width: 56px; height: 42px; border-radius: 4px; object-fit: cover; flex-shrink: 0 }
.search-result-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.search-result-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== HERO SLIDESHOW ===== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 80px;
  overflow: hidden;
  background: var(--bg-secondary);
  margin-top: var(--nav-height);
}
.hero-slides { position: absolute; inset: 0 }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
}
.hero-slide.active { opacity: 1 }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.05) 100%);
}
.hero-content-slides {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--container);
  padding: 0 40px;
}
.hero-content-slide {
  display: none;
  max-width: 540px;
}
.hero-content-slide.active { display: block }
.hero-category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.hero-slide-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hero-content-slide .btn {
  font-size: 13px;
  padding: 8px 20px;
}
.hero-slide-excerpt {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 520px;
}
.hero-nav {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
}
.hero-arrow:hover { background: rgba(255,255,255,0.3) }
.hero-dots {
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
  padding: 0;
}
.hero-dot.active { background: #ffffff }

/* ===== SECTIONS ===== */
.section { padding: 80px 0 }
.section-sm { padding: 56px 0 }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
}
.section-title::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-top: 8px;
}

/* ===== GRIDS ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px }

/* ===== CARDS ===== */
.card {
  background: var(--bg);
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-image-wrapper { position: relative; overflow: hidden; aspect-ratio: 16/9 }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.card-category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 2px;
  text-decoration: none;
}
.card-category:hover { opacity: 0.9; text-decoration: none }
.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card-date, .card-read-time {
  font-size: 12px;
  font-weight: 500;
  color: #111111;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff }
.btn-primary:hover { opacity: 0.9 }
.btn-ghost { background: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border) }
.btn-ghost:hover { background: var(--border) }

/* ===== PAGE HEADER (Category / List) ===== */
.page-header {
  padding: calc(var(--nav-height) + 48px) 0 32px;
  text-align: center;
  background: var(--bg);
}
.page-header-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}
.page-header h1 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
}
.page-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin: 0 auto;
}

/* ===== SINGLE ARTICLE ===== */
.single-article-wrapper {
  max-width: var(--container);
  margin: calc(var(--nav-height) + 24px) auto 0;
  padding: 0 24px 80px;
}
.article-hero-container { padding: 0 }
.article-hero-caption {
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}
.article-hero-caption .article-image-credit {
  color: var(--accent);
  font-weight: 500;
}
.article-content-container {
  flex: 1 1 600px;
  max-width: 760px;
  margin: 0 auto;
  min-width: 0;
}
.article-sidebar-container {
  flex: 1 1 360px;
  max-width: 400px;
}

/* Article body typography — DARK readable text */
.article-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  color: #1A1A1A;
}
.article-body p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  color: #1A1A1A;
  margin-bottom: 18px;
}
.article-body h1, .article-body h2, .article-body h3,
.article-body h4, .article-body h5, .article-body h6 {
  color: #111111;
}
.article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
}
.article-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-body a:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}
.article-body strong {
  color: #111111;
  font-weight: 600;
}
.article-body em {
  color: #1A1A1A;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--bg-secondary);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: #1A1A1A;
}
.article-body blockquote p {
  color: #1A1A1A;
  margin-bottom: 0;
}
.article-body figure { margin: 32px 0 }
.article-body figure img { width: 100%; border-radius: 4px; border: 1px solid var(--border) }
.article-body figcaption {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 8px;
}
.article-body ul, .article-body ol {
  list-style: initial;
  padding-left: 24px;
  margin-bottom: 18px;
  color: #1A1A1A;
}
.article-body ol { list-style: decimal }
.article-body li {
  margin-bottom: 8px;
  color: #1A1A1A;
  font-size: 17px;
  line-height: 1.7;
}
.article-body img { border-radius: 4px }
.article-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 3px;
  color: #111111;
}
.article-body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin: 24px 0;
}
.article-body pre code {
  background: none;
  border: none;
  padding: 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.article-body th, .article-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 15px;
  color: #1A1A1A;
}
.article-body th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: #111111;
}
.article-body hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ===== RELATED ARTICLES (bottom of single page) ===== */
.related-section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.related-section h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 24px;
}
.related-section h3::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin-top: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 64px;
}
.footer-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-huge-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  line-height: 1.2;
}
.footer-social-centered { display: flex; gap: 12px; justify-content: center }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.social-btn:hover { color: var(--accent); border-color: var(--accent) }
.social-btn svg { stroke: var(--text-secondary) !important }
.social-btn:hover svg { stroke: var(--accent) !important }
.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-bottom-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.footer-bottom-links a:hover { color: var(--accent) }
.footer-copy {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

/* ===== PAGE BODY (About, Contact, Privacy) ===== */
.page-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}
.page-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 8px;
}
.page-body p {
  margin-bottom: 1.2rem;
  color: #1A1A1A;
  font-size: 16px;
  line-height: 1.7;
}
.page-body ul, .page-body ol { padding-left: 24px; margin-bottom: 16px; list-style: disc }
.page-body ol { list-style: decimal }
.page-body li {
  margin-bottom: 6px;
  color: #1A1A1A;
  font-size: 16px;
  line-height: 1.7;
}
.page-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-body a:hover { text-decoration-thickness: 2px }
.page-body strong { color: #111111; font-weight: 600 }
.page-body hr { border: none; height: 1px; background: var(--border); margin: 32px 0 }

/* Contact Form */
.page-body input[type="text"],
.page-body input[type="email"],
.page-body textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg);
  outline: none;
  margin-bottom: 16px;
}
.page-body input:focus,
.page-body textarea:focus {
  border-color: var(--accent);
}

/* ===== FAQ ===== */
.faq-item button,
.faq-item button span {
  font-family: var(--font-body);
  font-weight: 500;
}
.faq-answer-inner,
.faq-answer-inner p {
  font-family: var(--font-body);
  font-weight: 400;
  color: #1A1A1A;
  font-size: 15px;
}

/* ===== UTILITIES ===== */
.fade-in { opacity: 1; transform: none }
.fade-in.visible { opacity: 1; transform: none }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px }
  .container { padding: 0 16px }
  .navbar { padding: 0 16px }
  .navbar-nav { display: none }
  .hamburger { display: flex }
  .hero { height: 50vh; min-height: 360px }
  .hero-content-slides { padding: 0 16px }
  .hero-slide-title { font-size: clamp(20px, 5vw, 26px) }
  .hero-slide-excerpt { font-size: 14px }
  .grid-4, .grid-3 { grid-template-columns: 1fr }
  .section { padding: 48px 0 }
  .section-sm { padding: 32px 0 }

  .single-article-wrapper { padding: 0 0 48px }
  .article-hero-container { padding: 0 16px }
  .article-content-container { padding-inline: 16px; max-width: 100% }
  .article-sidebar-container { padding-inline: 16px; max-width: 100% }

  .navbar-inner { position: relative }
  .navbar-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 0;
  }
  .logo-text { display: none }
  .navbar-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-direction: row-reverse;
  }
  .navbar-logo img { width: 28px !important; height: 28px !important }
  .mobile-menu { top: var(--nav-height) }

  .breadcrumbs { padding: 12px 16px }
}

@media (max-width: 480px) {
  .hero { height: 45vh; min-height: 300px }
  .hero-slide-title { font-size: clamp(18px, 5vw, 24px) }
  .footer-bottom-links { gap: 12px }
}

