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

:root {
  --bg: #ffffff;
  --text: #0f1222;
  --muted: #6b7280;
  --purple-600: #6c5ce7;
  --purple-700: #5a4bd6;
  --ring: #b9b3f5;
  --card: #f8f8ff;
  --shadow: 0 10px 25px rgba(17, 17, 17, 0.08);
  --radius: 16px;
  --maxw: 1200px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--purple-600);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

/* Container */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-600);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--purple-700);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--ring);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 4rem 2rem 2rem;
  list-style: none;
  gap: 0;
  z-index: 1000;
  transition: right 0.3s ease;
}

.nav-menu.active {
  right: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ring);
  display: block;
  font-size: 1.1rem;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--purple-600);
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

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

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

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

/* Main Content */
.main {
  min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Signal Chips */
.signal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 2rem 0;
}

.signal-chip {
  background: var(--card);
  color: var(--purple-600);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--ring);
}

/* Summary Section */
.summary {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2rem 1rem;
  border: 1px solid var(--ring);
}

.summary p {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 1rem;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.article {
  background: var(--bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.article:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.12);
}

.article h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.article p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Problem/Approach/Outcome */
.pao-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.pao-item {
  background: var(--card);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--purple-600);
}

.pao-item h4 {
  color: var(--purple-600);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

/* Metrics */
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.metric {
  background: var(--purple-600);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

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

.tag {
  background: var(--card);
  color: var(--purple-600);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  border: 1px solid var(--ring);
}

/* Status Badge */
.status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.status.active {
  background: #dcfce7;
  color: #166534;
}

.status.completed {
  background: #dbeafe;
  color: #1e40af;
}

.status.paused {
  background: #fef3c7;
  color: #92400e;
}

/* How I Work */
.how-i-work {
  background: var(--card);
  padding: 3rem 0;
  margin: 4rem 0;
}

.work-columns {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.work-column {
  text-align: center;
  padding: 2rem;
}

.work-column h3 {
  color: var(--purple-600);
  margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 4rem 0;
  background: var(--card);
  margin: 4rem 0;
}

.cta-button {
  display: inline-block;
  background: var(--purple-600);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
  margin-top: 2rem;
}

.cta-button:hover {
  background: var(--purple-700);
}

/* Blog Post Cards */
.posts-grid {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.post-card {
  background: var(--bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.12);
}

.post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.post-image .image-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  padding: 0;
  min-height: auto;
}

.post-content {
  padding: 2rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.post-category {
  color: var(--purple-600);
  font-weight: 500;
}

.post-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.post-excerpt {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.read-more {
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.read-more:hover {
  color: var(--purple-700);
  text-decoration: underline;
}

/* What I Do Section */
.what-i-do {
  margin: 4rem 0;
}

.section-intro {
  text-align: center;
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.service-card {
  background: var(--bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.12);
}

.service-icon {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
}

.service-icon svg {
  color: var(--purple-600);
  transition: color 0.2s;
}

.service-card:hover .service-icon svg {
  color: var(--purple-700);
}

.service-card h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Featured Field Notes */
.featured-field-notes {
  background: var(--card);
  padding: 4rem 0;
  margin: 4rem 0;
}

.featured-posts {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.featured-post {
  background: var(--bg);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.featured-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(17, 17, 17, 0.12);
}

.featured-post .post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.featured-post .post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--card);
}

.featured-post .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-post .post-content {
  padding: 2rem;
}

.featured-post .post-content .article-date {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.featured-post h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

.featured-post:hover h3 {
  color: var(--purple-600);
}

.featured-post p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cta-center {
  text-align: center;
  margin-top: 2rem;
}

/* Featured Experiments */
.featured-experiments {
  margin: 4rem 0;
}

.experiments-preview {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.experiment-preview {
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.experiment-preview h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.experiment-preview p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.experiment-preview .status {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Work at a Glance */
.work-glance {
  background: var(--card);
  padding: 4rem 0;
  margin: 4rem 0;
}

.work-overview {
  text-align: center;
}

.work-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--purple-600);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.work-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.work-link {
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--purple-600);
  border-radius: 6px;
  transition: all 0.2s;
}

.work-link:hover {
  background: var(--purple-600);
  color: white;
}

/* Newsletter CTA */
.newsletter-cta {
  background: var(--card);
  padding: 4rem 0;
  margin: 4rem 0;
  text-align: center;
}

/* FAQ Section */
.faq {
  margin: 4rem 0;
}

.faq-item {
  margin-bottom: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--ring);
  overflow: hidden;
}

.faq-question {
  font-weight: 600;
  color: var(--text);
  padding: 1.5rem;
  margin: 0;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
  user-select: none;
}

.faq-question:hover {
  background: rgba(108, 92, 231, 0.05);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--purple-600);
  transition: transform 0.3s ease;
}

.faq-item.expanded .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  color: var(--muted);
  padding: 0 1.5rem 1.5rem;
  margin: 0;
  line-height: 1.6;
  overflow: hidden;
}

.faq-answer::before {
  content: attr(data-preview);
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--purple-600);
}

.faq-item.expanded .faq-answer::before {
  display: none;
}

/* Content Image Grid */
.content-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
}

.content-image-grid.reverse {
  grid-template-columns: 1fr 1fr;
}

.content-image-grid.reverse .image-placeholder {
  order: -1;
}

.content h2 {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.content p {
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.image-placeholder {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  color: var(--purple-600);
  font-weight: 500;
  font-size: 1.125rem;
}

/* Remove padding around images in About page sections */
.about-section .image-placeholder,
.background-section .image-placeholder,
.interests-section .image-placeholder,
.current-role-section .image-placeholder {
  padding: 0;
  min-height: 0;
}

/* Improvement section */
.improvement-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.improvement-intro {
  max-width: 800px;
  color: var(--muted);
  font-size: 1.125rem;
}

.improvement-image img {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.improvement-title {
  margin-top: 0.5rem;
}

/* Rounded corners for images in About page sections */
.about-section .image-placeholder img,
.background-section .image-placeholder img,
.interests-section .image-placeholder img,
.current-role-section .image-placeholder img,
.improvement-section .improvement-image img {
  border-radius: var(--radius);
}



/* Principles */
.principles {
  margin: 4rem 0;
}

.principles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.principle-chip {
  background: var(--purple-600);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
}

/* Skills Section */
.skills-section {
  margin: 4rem 0;
}

.skills-container {
  max-width: 800px;
  margin: 0 auto;
}

.skill-category h3 {
  color: var(--purple-600);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.skill-name {
  min-width: 140px;
  font-weight: 500;
  color: var(--text);
  text-transform: capitalize;
}

.skill-bar {
  flex: 1;
  height: 12px;
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--ring);
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-600) 0%, var(--purple-700) 100%);
  border-radius: 6px;
  transition: width 0.8s ease-in-out;
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Contact Section */
.contact-section {
  margin: 4rem 0;
  background: var(--card);
  padding: 4rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--ring);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

.contact-cta {
  margin-top: 2rem;
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid #e5e7eb;
  padding: 3rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer-arrow {
  margin-top: 1rem;
  color: var(--purple-600);
}

.footer-cta {
  margin-bottom: 2rem;
}

.footer-cta h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.footer-cta p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta .cta-button {
  display: inline-block;
  background: var(--purple-600);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.footer-cta .cta-button:hover {
  background: var(--purple-700);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

.footer-link {
  color: var(--purple-600);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    gap: 2rem;
    transition: none;
  }
  
  .nav-menu.active {
    right: auto;
  }
  
  .nav-link {
    padding: 0;
    border-bottom: none;
    display: inline;
    font-size: 1rem;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  
  .posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .featured-posts {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  
  .experiments-preview {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
  
  .work-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .content-image-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  /* Always show image above text on mobile */
  .content-image-grid .image-placeholder {
    order: -1;
  }
  
  .image-placeholder {
    min-height: 200px;
    padding: 2rem 1rem;
  }
  
  .skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .skill-name {
    min-width: auto;
  }
  
  .skill-bar {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }
  
  .hero {
    padding: 6rem 0;
  }
  
  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  }
}

/* Focus States */
a:focus,
button:focus {
  outline: 2px solid var(--purple-600);
  outline-offset: 2px;
}

/* Article Post Styles */
.article-post {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-date {
  color: var(--muted);
}

.article-author {
  color: var(--muted);
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.4;
}

.article-content p {
  margin-bottom: 1.5rem;
  color: var(--text);
}

.article-lead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 2rem;
}

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

.article-content li {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.article-content blockquote {
  border-left: 4px solid var(--purple-600);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted);
}

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

.article-content code {
  background: var(--card);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

.article-content pre {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2rem 0;
}

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

.article-content img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  .article-content img {
    max-width: 100%;
    width: 100%;
    max-height: 600px;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  .article-content img {
    max-height: 400px;
    object-fit: contain;
  }
}

.article-content a {
  color: var(--purple-600);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--purple-700);
}

.article-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.article-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--card);
  color: var(--purple-600);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-share p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.share-link {
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 500;
}

.share-link:hover {
  color: var(--purple-700);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .article-post {
    padding: 2rem 0;
  }
  
  .article-title {
    font-size: 2rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .article-content h2 {
    font-size: 1.75rem;
  }
  
  .article-content h3 {
    font-size: 1.25rem;
  }
  
  .article-lead {
    font-size: 1.125rem;
  }
}

/* Print Styles */
@media print {
  .nav,
  .footer,
  .cta-section {
    display: none;
  }
  
  .article {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
