/* ========================================
   Pday — Shared Article Styles
   Used by all article pages and the articles index.
   ======================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #3d3d3d;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4em;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 -5px 15px 1px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  width: 100%;
  max-width: 68em;
  padding: 0 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #8b5cf6;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2em;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #3d3d3d;
}

/* ARTICLE CONTENT */
.article-content {
  max-width: 44em;
  margin: 0 auto;
  padding: 7em 2em 4em;
}

.article-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.3em;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.article-subtitle {
  font-size: 1.15rem;
  color: #888;
  margin-bottom: 2.5em;
  line-height: 1.6;
}

.article-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2.5em;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

.article-content p {
  margin-bottom: 1.2em;
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
}

.article-content ul li, .article-content ol li {
  margin-bottom: 0.5em;
}

.article-content strong {
  color: #3d3d3d;
}

.article-content a {
  color: #8b5cf6;
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content blockquote {
  border-left: 3px solid #8b5cf6;
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background: #faf5ff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

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

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

/* FOOTER */
footer {
  border-top: 1px solid #f0f0f0;
  padding: 3em 0;
}

.footer-inner {
  max-width: 68em;
  margin: 0 auto;
  padding: 0 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #8b5cf6;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 2em;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: #888;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #3d3d3d;
}

.footer-copy {
  font-size: 0.8rem;
  color: #bbb;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .article-content h1 {
    font-size: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* DARK MODE */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #e5e5e5;
  }

  nav {
    background: rgba(26, 26, 26, 0.85);
    box-shadow: 0 -5px 15px 1px rgba(0, 0, 0, 0.3);
  }

  .nav-links a {
    color: #999;
  }

  .nav-links a:hover {
    color: #e5e5e5;
  }

  .article-content h1,
  .article-content h2,
  .article-content h3 {
    color: #f0f0f0;
  }

  .article-subtitle {
    color: #999;
  }

  .article-content p,
  .article-content ul,
  .article-content ol {
    color: #ccc;
  }

  .article-content strong {
    color: #e5e5e5;
  }

  .article-content a {
    color: #a78bfa;
  }

  .article-content blockquote {
    background: #2a2035;
    border-left-color: #a78bfa;
    color: #ccc;
  }

  footer {
    border-top: 1px solid #333;
    background: #1a1a1a;
  }

  .footer-links a {
    color: #999;
  }

  .footer-links a:hover {
    color: #e5e5e5;
  }

  .footer-copy {
    color: #666;
  }
}
