:root {
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-accent: #059669;
  --background: #ffffff;
  --surface: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  background: var(--background);
  color: var(--text-primary);
  font-family: Charter, Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  padding: 20px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 50px;
}

.header h1 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header .subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 24px;
}

.header .meta {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-content {
  margin: 50px 0;
}

.article-content h2 {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 30px 0;
  color: #436080;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #384859;
  letter-spacing: -0.01em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content p {
  margin-bottom: 24px;
  text-align: justify;
}

.article-content li {
  margin-bottom: 14px;
  list-style-type: none;
}

.article-content p:last-child {
  margin-bottom: 0;
}

.highlight {
  background: #fef3c7;
  padding: 2px 0;
  font-weight: 500;
}

.quote-callout {
  background: var(--surface);
  border-left: 4px solid var(--text-accent);
  padding: 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 20px;
  color: var(--text-primary);
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--text-accent);
  margin: 35px auto;
  border-radius: 1px;
}

.tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.tag {
  background: var(--surface);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.tag:hover {
  background: var(--text-accent);
  color: white;
  transform: translateY(-1px);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border);
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--text-accent), #10b981);
  width: 0%;
  transition: width 0.1s ease;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: 10px 0 30px;
    margin-bottom: 30px;
  }

  .header .meta {
    flex-direction: column;
    gap: 8px;
  }

  .featured-image {
    margin: 30px 0;
  }

  body {
    font-size: 16px;
  }

  .quote-callout {
    font-size: 18px;
    padding: 20px;
    margin: 24px -16px;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background: #fef3c7;
  color: var(--text-primary);
}

/* =================================
   HEADER & NAVIGATION
   ================================= */

.main-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.main-nav.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 70px;
}

.nav-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  transition: transform 0.2s ease;
}

.nav-brand .logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(5, 150, 105, 0.2));
}

.logo-text {
  background: linear-gradient(135deg, #436080, #384859);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text-accent);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text-accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-search {
  background: var(--surface);
  padding: 10px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* =================================
   BREADCRUMB
   ================================= */

.breadcrumb {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 100px 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--text-accent);
}

.breadcrumb span:not(:last-child) {
  opacity: 0.5;
}

/* =================================
   ARTICLE NAVIGATION
   ================================= */

.article-nav {
  display: flex;
  gap: 24px;
  margin: 60px 0;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nav-prev,
.nav-next {
  flex: 1;
}

.nav-next {
  text-align: right;
}

.article-nav a {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.article-nav a:hover {
  border-color: var(--text-accent);
  transform: translateY(-2px);
}

.nav-label {
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.nav-title {
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =================================
   FOOTER
   ================================= */

.main-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo .logo-icon {
  font-size: 32px;
}

.footer-logo .logo-text {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.footer-section h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 15px;
}

.footer-links a:hover {
  color: var(--text-accent);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--text-accent);
  border-color: var(--text-accent);
  transform: translateY(-2px);
}

.newsletter-signup p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: border-color 0.2s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--text-accent);
}

.newsletter-btn {
  padding: 10px 16px;
  background: var(--text-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-btn:hover {
  background: #047857;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--text-accent);
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-container {
    height: 60px;
  }

  .breadcrumb {
    margin-top: 80px;
    font-size: 13px;
  }

  .article-nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-next {
    text-align: left;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-container {
    padding: 40px 20px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .social-links {
    justify-content: center;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 16px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}
