/* Currently - Clean, minimal styling */

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

:root {
  --primary-color: #2c3e50;
  --accent-color: #3498db;
  --text-color: #333;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --border-color: #dee2e6;
  --max-width: 1200px;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-heading: 'Lora', Georgia, serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-wrapper {
  flex: 1;
}

/* Discourage casual copy-paste of content */
.article-content,
.intro-section,
.series-intro {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2.5rem;
  border-bottom: 1px solid var(--border-color);
  max-width: var(--max-width);
  margin: 0 auto;
}

.main-nav .logo-container {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  text-decoration: none;
}

.main-nav .logo-image {
  height: 1.4rem;
  width: 1.4rem;
}

.main-nav .logo-text {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
  min-height: 60vh;
}

/* Hero section */
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem 2rem 3rem 2rem;
  margin-bottom: 2rem;
  background-size: cover;
  background-position: center top;
  position: relative;
  height: clamp(160px, 22vh, 240px);
  border-radius: 10px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0) 70%
  );
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hero .tagline {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  max-width: 900px;
  text-shadow: 
    2px 2px 8px rgba(0, 0, 0, 0.9),
    -1px -1px 4px rgba(0, 0, 0, 0.9),
    1px -1px 4px rgba(0, 0, 0, 0.9),
    -1px 1px 4px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 1;
  transform: translateY(-10%);
}

/* Intro section */
.intro-section {
  max-width: 800px;
  margin: 2.5rem auto 1.75rem auto;
  padding: 0 2rem;
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.2px;
  color: var(--text-color);
}

.intro-section p {
  margin-bottom: 1.2rem;
}

.intro-section p:first-child strong {
  font-size: 1rem;
  line-height: 1.3;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

/* Series hero */
.series-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.series-hero {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.series-hero-image {
  width: 100%;
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {
  .series-hero-image {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
  }
}

/* Series intro */
.series-intro {
  max-width: 800px;
  margin: 2rem auto 3rem auto;
  padding: 0 2rem;
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.2px;
  color: var(--text-color);
}

.series-page .series-intro {
  max-width: none;
  padding: 0;
}

.series-intro h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.series-intro p {
  margin-bottom: 1.75rem;
}

.series-intro p:last-child {
  margin-bottom: 0;
}

/* Page headers */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: #666;
  font-size: 0.95rem;
}

/* Article cards */
.article-card {
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

/* Compact style for Recent/list section cards — horizontal layout */
.article-list .article-card {
  flex-direction: row;
  max-height: none;
}

.article-list .article-card .card-image-wrapper {
  width: 200px;
  min-width: 200px;
  height: 140px;
  border-radius: 10px 0 0 10px;
}

.article-list .article-card .card-content {
  padding: 1rem 1.25rem;
}

.article-list .article-card h3 {
  font-size: 1rem;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.article-card .card-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.article-card .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
}

.article-card .card-content {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card h3 {
  color: var(--primary-color);
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.article-card:hover h3 {
  color: var(--accent-color);
}

.article-card .excerpt {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Recent section excerpts — no clamp, full excerpt shown */

.article-list .article-card .card-meta {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.article-card .card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #999;
  margin-top: auto;
}

.article-card .card-meta time {
  display: block;
}

/* Grids and lists */
.featured-grid,
.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Series cards */
.series-card {
  display: flex;
  flex-direction: column;
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.series-card:hover {
  background: var(--medium-gray);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.series-card-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.series-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.series-card-content {
  padding: 1.25rem;
  text-align: center;
}

.series-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 0;
}

.series-card p {
  color: #666;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

/* Sections */
.featured-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.recent-section,
.sticky-section,
.articles-section {
  margin-bottom: 3rem;
}

.featured-section h2,
.recent-section h2,
.sticky-section h2,
.articles-section h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

/* Start Here heading - more subtle */
.sticky-section h2 {
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--light-gray);
  color: #666;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Tag filters */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tag-filter {
  background: #fafafa;
  border: 1px solid #eaeaea;
  color: #666;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-filter:hover {
  background: var(--light-gray);
  border-color: #ddd;
}

.tag-filter.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.filterable-article {
  transition: opacity 0.2s;
}

/* Article page */
.article-page {
  max-width: 800px;
  margin: 0 auto;
}

.article-page .hero-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  color: #999;
  font-size: 0.95rem;
}

.article-content {
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.2px;
}

.article-content h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 2rem 0 1rem 0;
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1.5rem 0 0.75rem 0;
}

.article-content p {
  margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.2rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #666;
  font-style: italic;
}

.article-content code {
  background: var(--light-gray);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.article-content pre {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1.2rem;
}

.article-content pre code {
  background: none;
  padding: 0;
}

/* Related articles */
.related-articles {
  max-width: 800px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.related-articles h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.related-link {
  display: block;
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.related-link:hover {
  background: var(--medium-gray);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.related-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.related-link h4 {
  color: var(--primary-color);
  margin: 0.75rem 1rem 0.5rem;
}

.related-link p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 1rem 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.25rem 2rem;
  text-align: center;
  color: #666;
  font-size: 0.8rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
}

.footer-logo {
  height: 0.95rem;
  width: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
}

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

.footer-copyright {
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .featured-grid,
  .series-grid {
    grid-template-columns: 1fr;
  }
  
  .article-header h1 {
    font-size: 2rem;
  }
  
  main {
    padding: 1rem;
  }
  
  /* Shrink horizontal card thumbnails on mobile */
  .article-list .article-card .card-image-wrapper {
    width: 120px;
    min-width: 120px;
    height: 100px;
  }
  
  .hero .tagline {
    max-width: 22ch;
    transform: translateY(12px);
  }
}