
/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600;700&display=swap");

/* CSS Variables - BURGUNDY & GOLD PALETTE */
:root {
  /* Colors */
  --primary-color: #be123c; /* Deep rose/burgundy */
  --primary-dark: #9f1239;
  --accent-color: #ca8a04; /* Rich gold */
  --text-primary: #1c1917; /* Dark brown */
  --text-secondary: #57534e;
  --text-light: #a8a29e;
  --bg-primary: #fafaf9;
  --bg-secondary: #fef2f2; /* Light rose tint */
  --bg-dark: #292524; /* Dark brown */
  --border-color: #fecdd3; /* Soft pink border */
  --overlay-dark: rgba(28, 25, 23, 0.7);
  --overlay-gradient: linear-gradient(
    180deg,
    transparent 0%,
    rgba(28, 25, 23, 0.9) 100%
  );

  /* Typography */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 17px;
  --line-height-base: 1.7;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* ============================================
   HEADER - Magazine masthead style
   ============================================ */
header {
  background-color: var(--bg-dark);
  color: var(--bg-primary);
  border-bottom: 3px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--bg-primary);
}

.logo img {
  border-radius: 4px;
  border: 2px solid var(--accent-color);
}

.site-name {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Navigation - Editorial style */
.main-nav ul {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.main-nav a {
  color: var(--bg-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--spacing-xs) 0;
  position: relative;
  opacity: 0.8;
}

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

.main-nav a::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.main-nav a.active::before,
.main-nav a:hover::before {
  transform: scaleX(1);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
  background-color: var(--bg-primary);
}

/* Main content typography improvements */
main > h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--spacing-xl);
  letter-spacing: -0.03em;
}

main > p {
  font-size: 1.35rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  font-weight: 400;
}

main section {
  margin-bottom: var(--spacing-xl);  
  padding-bottom: 0;  
}

main section h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);  
  letter-spacing: -0.02em;
  line-height: 1.3;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

main section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
}

main section h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

main section p {
  font-size: 1.25rem;
  line-height: 2;
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
}

main section img {
  width: 100%;
  height: auto;
  margin: var(--spacing-lg) 0;
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
}

/* Списки в main */
main section ol,
main section ul {
  margin: var(--spacing-lg) 0;
  padding-left: var(--spacing-lg);
}

main section ol li,
main section ul li {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-sm);
}

main section ol li {
  padding-left: var(--spacing-xs);
}

main section ol li::marker {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.3rem;
}

main section ul li::marker {
  color: var(--accent-color);
}

/* Таблицы */
main section table {
  width: 100%;
  margin: var(--spacing-lg) 0;
  border-collapse: collapse;
  box-shadow: var(--shadow-md);
  background: var(--bg-primary);
  border-radius: 4px;
  overflow: hidden;
}

main section table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--bg-primary);
}

main section table th {
  padding: var(--spacing-md);
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

main section table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

main section table tbody tr:hover {
  background-color: var(--bg-secondary);
}

main section table tbody tr:last-child td {
  border-bottom: none;
}

/* FAQ секция */
main section h2 + div[itemscope] {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
  margin-bottom: var(--spacing-md);
}

main section div[itemscope] h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

main section div[itemscope] p {
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* ============================================
   ASIDE SECTIONS
   ============================================ */
aside {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-lg); 
  position: relative;
}

aside:nth-of-type(odd) {
  background-color: var(--bg-primary);
}

aside:nth-of-type(even) {
  background-color: var(--bg-secondary);
}

/* Section Titles - Editorial style */
aside h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.03em;
  line-height: 1.1;
  position: relative;
  display: inline-block;
}

aside h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* About Header Section */
.about-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--border-color);
}

.about-header h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.03em;
}

.intro-text {
  font-size: 1.5rem;
  line-height: 2;
  color: var(--text-secondary);
  margin: 0 auto;
  font-weight: 400;
}

/* About Mission & Story Sections */
.about-mission,
.about-story {
  margin-bottom: var(--spacing-xl);
}

.about-mission h2,
.about-story h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.about-mission h2::after,
.about-story h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
}

.about-mission p,
.about-story p {
  font-size: 1.25rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* Author Hero Section */
.about-author {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid var(--border-color);
}

.author-hero {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-color) 0%, #881337 100%);
  border-radius: 4px;
  margin-top: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.author-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent-color);
}

.author-hero-photo {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--accent-color);
}

.author-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--bg-primary);
}

.author-hero-content h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--spacing-xs);
}

.author-tagline {
  font-size: 1.1rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
}

.author-bio-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: var(--spacing-md);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.social-links a {
  color: var(--bg-primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-links a:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Comments Section (used in aside) */
.comments-section {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-primary);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.comments-section h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.comments-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--accent-color) 100%
  );
}

.comments-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

/* Team Member Cards */
.team-member {
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.team-member:hover {
  border-left-color: var(--accent-color);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.team-member h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.team-member-role {
  font-size: 1rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.team-member-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Author Bio - Magazine feature style */
.author-bio {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary-color) 0%, #881337 100%);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
}

.author-bio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent-color);
}

.author-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--accent-color);
}

.author-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--bg-primary);
}

.author-details p {
  color: var(--bg-secondary);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  line-height: 1.8;
}

.author-links {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.social-link,
.author-links a {
  color: var(--bg-primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.social-link:hover,
.author-links a:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Content Block */
.content-block {
  margin-bottom: var(--spacing-xl);
}

.content-block p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1.9;
  font-weight: 400;
  margin-bottom: var(--spacing-lg);
}

.content-block p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 8px;
  color: var(--primary-color);
  font-family: var(--font-serif);
}

.content-block img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  margin-top: var(--spacing-md);
}

/* ============================================
   ARTICLES GRID - Asymmetric magazine layout
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* First article - Featured (large) */
.article-card:nth-child(1) {
  grid-column: span 8;
  grid-row: span 2;
}

/* Second article - Medium */
.article-card:nth-child(2) {
  grid-column: span 4;
}

/* Third article - Medium */
.article-card:nth-child(3) {
  grid-column: span 4;
}

.article-card {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  border-radius: 0;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 350px;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.article-card a {
  display: block;
  height: 100%;
  position: relative;
}

/* Image with overlay effect */
.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  top: 0;
  left: 0;
}

.article-card:hover img {
  transform: scale(1.08);
}

/* Content overlay */
.article-card h3,
.article-card p {
  position: relative;
  z-index: 2;
  color: var(--bg-primary);
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--overlay-gradient);
  z-index: 1;
  transition: var(--transition-base);
}

.article-card:hover::before {
  background: var(--overlay-dark);
}

.article-card h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  padding: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  line-height: 1.2;
  position: absolute;
  bottom: 120px;
  left: 0;
  right: 0;
}

.article-card:nth-child(1) h3 {
  font-size: 2.5rem;
  bottom: 170px; 
}

.article-card p {
  padding: 0 var(--spacing-md) var(--spacing-md);
  font-size: 0.9375rem;
  line-height: 1.6;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0.9;
}

.article-card:nth-child(1) p {
  font-size: 1.125rem;
  padding-bottom: var(--spacing-lg);
}

/* Category tag effect */
.article-card::after {
  content: "READ MORE";
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background-color: var(--accent-color);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  z-index: 3;
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition-base);
}

.article-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FOOTER - Editorial style
   ============================================ */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  margin-top: var(--spacing-xl);
  border-top: 3px solid var(--accent-color);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

.footer-info p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-nav ul {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.footer-nav a {
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

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

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

/* Desktop large */
@media (max-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .article-card:nth-child(1) {
    grid-column: span 6;
    grid-row: span 1;
  }

  .article-card:nth-child(2),
  .article-card:nth-child(3) {
    grid-column: span 3;
  }
}

/* Tablet */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }

  .header-container {
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
  }

  .site-name {
    font-size: 1.5rem;
  }

  .main-nav ul {
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav a {
    font-size: 0.75rem;
  }

  main > h1 {
    font-size: 2.5rem;
  }

  main > p {
    font-size: 1.2rem;
  }

  main section h2 {
    font-size: 2rem;
  }

  main section h3 {
    font-size: 1.5rem;
  }

  main section p {
    font-size: 1.15rem;
  }

  aside h2 {
    font-size: 2rem;
  }

  .author-bio {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-photo {
    margin: 0 auto;
  }

  /* About page responsive */
  .about-header h1 {
    font-size: 2.5rem;
  }

  .intro-text {
    font-size: 1.25rem;
  }

  .author-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-hero-photo {
    margin: 0 auto;
    width: 200px;
    height: 200px;
  }

  .social-links {
    justify-content: center;
  }

  .comments-section {
    padding: var(--spacing-md);
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .article-card:nth-child(1),
  .article-card:nth-child(2),
  .article-card:nth-child(3) {
    grid-column: span 1;
    min-height: 300px;
  }

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

  .article-card:nth-child(1) h3 {
    font-size: 1.75rem;
  }

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

  .footer-nav ul {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
}

/* Mobile */
@media (max-width: 480px) {
  aside {
    padding: var(--spacing-md);
  }

  aside h2 {
    font-size: 1.75rem;
  }

  main > h1 {
    font-size: 2rem;
  }

  main > p {
    font-size: 1.1rem;
  }

  main section h2 {
    font-size: 1.75rem;
  }

  main section h3 {
    font-size: 1.35rem;
  }

  main section p {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  main section ol li,
  main section ul li {
    font-size: 1.05rem;
  }

  /* About page mobile */
  .about-header h1 {
    font-size: 2rem;
  }

  .intro-text {
    font-size: 1.1rem;
  }

  .author-hero-photo {
    width: 150px;
    height: 150px;
  }

  .author-hero-content h3 {
    font-size: 1.5rem;
  }

  .author-tagline {
    font-size: 0.95rem;
  }

  .author-bio-text {
    font-size: 1rem;
  }

  .comments-section h3 {
    font-size: 1.5rem;
  }

  .team-member h4 {
    font-size: 1.25rem;
  }

  .content-block p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .content-block p:first-of-type::first-letter {
    font-size: 2.5rem;
  }

  .article-card {
    min-height: 250px;
  }

  .article-card h3 {
    font-size: 1.25rem;
    bottom: 80px;
  }

  .article-card:nth-child(1) h3 {
    font-size: 1.5rem;
    bottom: 100px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

/* Print styles */
@media print {
  header,
  footer,
  .author-links {
    display: none;
  }

  body {
    background: white;
  }

  .article-card::before,
  .article-card::after {
    display: none;
  }
}

.pagination {
  margin: var(--spacing-xl) 0;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: 4px;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: var(--spacing-xs);
}

.pagination-number {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
  border-radius: 4px;
}

.pagination-number:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-color);
}

.pagination-number.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Featured article styling */
.blog-post.featured {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #fff5f5 100%);
  border: 2px solid var(--primary-color);
  padding: var(--spacing-lg);
  border-radius: 4px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.featured-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--accent-color);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

.blog-post.featured h2 {
  font-size: 2.25rem;
  color: var(--primary-color);
}

/* Blog sidebar sections */
aside section {
  background: var(--bg-primary);
  padding: var(--spacing-md);
  border-radius: 4px;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

aside section h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--border-color);
}

aside section ul {
  list-style: none;
  padding: 0;
}

aside section ul li {
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.6;
}

aside section ul li:last-child {
  border-bottom: none;
}

aside section ul li a {
  color: var(--text-secondary);
  font-size: 1.05rem;
  transition: var(--transition-fast);
}

aside section ul li a:hover {
  color: var(--primary-color);
  padding-left: var(--spacing-xs);
}

aside section ul li strong {
  color: var(--primary-color);
  font-weight: 600;
}