/* Minimal Retro Theme - Artistic & Minimal Design */
:root {
  /* Colors - Warm, muted retro palette */
  --color-primary: #D2691E;          /* Burnt orange */
  --color-secondary: #CD853F;        /* Peru */
  --color-accent: #F4A460;           /* Sandy brown */
  --color-background: #FDF6E3;       /* Warm cream */
  --color-surface: #FAF0E6;          /* Linen */
  --color-text: #3E2723;             /* Dark brown */
  --color-text-muted: #8D6E63;       /* Medium brown */
  --color-text-light: #A1887F;       /* Light brown */
  --color-border: #D7CCC8;           /* Light beige */
  --color-tag: #FFCC80;              /* Light orange */
  --color-tag-text: #5D4037;         /* Dark brown */

  /* Typography - Artistic fonts */
  --font-serif: 'Crimson Text', 'Playfair Display', Georgia, serif;
  --font-mono: 'Space Mono', 'Courier Prime', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

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

  /* Typography scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Line heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

html {
  font-size: 18px; /* Larger base for better readability */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Container */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header - Minimal and Artistic */
.site-header {
  text-align: center;
  padding: var(--spacing-xl) 0 var(--spacing-2xl);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-2xl);
  position: relative;
}

.site-title {
  margin-bottom: var(--spacing-sm);
}

.site-title a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--text-4xl);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  transition: color var(--transition-normal);
}

.site-title a:hover {
  color: var(--color-secondary);
}

.site-subtitle {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 400;
}

/* Main Content */
.main-content {
  flex: 1;
}

/* Posts Container - Home Page */
.posts-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

/* Post Entry - Expandable Cards */
.post-entry {
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: all var(--transition-normal);
  background-color: var(--color-surface);
}

.post-entry:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(210, 105, 30, 0.1);
}

.post-entry.expanded {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(210, 105, 30, 0.15);
}

/* Post Entry Header */
.post-entry-header {
  padding: var(--spacing-lg);
  cursor: pointer;
  position: relative;
}

.post-entry-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  line-height: var(--leading-tight);
}

.post-entry-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.post-date, .post-author, .reading-time {
  position: relative;
}

.post-date::after, .post-author::after {
  content: "·";
  margin-left: var(--spacing-sm);
  color: var(--color-text-light);
}

/* Tag Bubbles */
.post-tags-preview {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.tag-bubble {
  background-color: var(--color-tag);
  color: var(--color-tag-text);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: lowercase;
}

/* Expand Indicator */
.expand-indicator {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.post-entry:hover .expand-indicator {
  color: var(--color-primary);
}

.expand-arrow {
  transition: transform var(--transition-normal);
}

.post-entry.expanded .expand-arrow {
  transform: rotate(180deg);
}

/* Post Entry Content - Expandable */
.post-entry-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
  border-top: 1px solid transparent;
}

.post-entry-content.expanded {
  max-height: 50000px;
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  border-top-color: var(--color-border);
}

.post-description {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  line-height: var(--leading-relaxed);
}

.post-full-content {
  margin-bottom: var(--spacing-lg);
}

/* Post Entry Footer */
.post-entry-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
  gap: var(--spacing-lg);
}

.post-tags-full {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.tags-label {
  font-style: italic;
  margin-right: var(--spacing-xs);
}

.tag-link {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tag-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.post-actions {
  display: flex;
  gap: var(--spacing-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.permalink, .collapse-btn {
  color: var(--color-text-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: color var(--transition-fast);
}

.permalink:hover, .collapse-btn:hover {
  color: var(--color-primary);
}

/* Standalone Post Page */
.post-standalone {
  max-width: 700px;
  margin: 0 auto;
}

.post-standalone-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border);
}

.post-standalone-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  line-height: var(--leading-tight);
}

.post-standalone-description {
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
  line-height: var(--leading-relaxed);
}

.post-standalone-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.post-tags-standalone {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.tags-intro {
  font-style: italic;
  margin-right: var(--spacing-xs);
}

.tag-link-standalone {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tag-link-standalone:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Post Content Typography */
.post-standalone-content,
.post-full-content {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
}

.post-standalone-content h1,
.post-full-content h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin: var(--spacing-2xl) 0 var(--spacing-lg);
  line-height: var(--leading-tight);
}

.post-standalone-content h2,
.post-full-content h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin: var(--spacing-xl) 0 var(--spacing-md);
  line-height: var(--leading-tight);
}

.post-standalone-content h3,
.post-full-content h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
  line-height: var(--leading-normal);
}

.post-standalone-content p,
.post-full-content p {
  margin-bottom: var(--spacing-lg);
}

.post-standalone-content blockquote,
.post-full-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.post-standalone-content ul,
.post-standalone-content ol,
.post-full-content ul,
.post-full-content ol {
  margin: var(--spacing-lg) 0;
  padding-left: var(--spacing-xl);
}

.post-standalone-content li,
.post-full-content li {
  margin-bottom: var(--spacing-sm);
}

.post-standalone-content pre,
.post-full-content pre {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.post-standalone-content code,
.post-full-content code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background-color: var(--color-surface);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  color: var(--color-text);
}

.post-standalone-content pre code,
.post-full-content pre code {
  background: none;
  padding: 0;
}

/* Additional markdown elements */
.post-standalone-content img,
.post-full-content img {
  max-width: 100%;
  height: auto;
  margin: var(--spacing-lg) 0;
  border-radius: 4px;
}

.post-standalone-content table,
.post-full-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
  font-size: var(--text-sm);
}

.post-standalone-content th,
.post-standalone-content td,
.post-full-content th,
.post-full-content td {
  border: 1px solid var(--color-border);
  padding: var(--spacing-sm);
  text-align: left;
}

.post-standalone-content th,
.post-full-content th {
  background-color: var(--color-surface);
  font-weight: 600;
  color: var(--color-text);
}

.post-standalone-content a,
.post-full-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.post-standalone-content a:hover,
.post-full-content a:hover {
  color: var(--color-secondary);
  text-decoration-color: var(--color-secondary);
}

.post-standalone-content strong,
.post-full-content strong {
  font-weight: 600;
  color: var(--color-text);
}

.post-standalone-content em,
.post-full-content em {
  font-style: italic;
  color: var(--color-text-muted);
}

/* Syntax highlighting overrides */
.post-standalone-content .highlight,
.post-full-content .highlight {
  background-color: var(--color-surface);
  border-radius: 4px;
  overflow-x: auto;
}

/* Post Footer */
.post-standalone-footer {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.related-tags {
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.related-label {
  font-style: italic;
  margin-right: var(--spacing-xs);
}

.related-tag {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.related-tag:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.author-credit {
  font-style: italic;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.github-link, .blogr-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.github-link:hover, .blogr-link:hover {
  color: var(--color-primary);
}

.separator {
  color: var(--color-text-light);
  margin: 0 var(--spacing-xs);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-3xl) 0;
}

.empty-state h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.empty-state p {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-container {
    padding: var(--spacing-md);
  }

  .site-title a {
    font-size: var(--text-3xl);
  }

  .post-entry-header {
    padding: var(--spacing-md);
  }

  .post-entry-content.expanded {
    padding: 0 var(--spacing-md) var(--spacing-md);
  }

  .expand-indicator {
    top: var(--spacing-md);
    right: var(--spacing-md);
  }

  .post-entry-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .post-navigation {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .related-tags {
    text-align: left;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }

  .post-standalone-title {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .site-title a {
    font-size: var(--text-2xl);
  }

  .post-entry-title {
    font-size: var(--text-xl);
  }

  .post-standalone-title {
    font-size: var(--text-2xl);
  }

  .post-tags-preview {
    flex-wrap: wrap;
  }

  .post-entry-meta {
    flex-wrap: wrap;
  }
}

/* Search Styles */
.search-form {
  margin-top: var(--spacing-md);
  position: relative;
}

/* Position search to top-right on desktop */
.site-header .search-form {
  position: absolute;
  top: var(--spacing-xl);
  right: 0;
  margin-top: 0;
}

.search-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(215, 204, 200, 0.5);
  border-radius: 6px;
  padding: 0.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
}

.search-container:focus-within {
  border-color: rgba(210, 105, 30, 0.6);
  box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

#search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 400;
  color: #2c2c2c;
  outline: none;
}

#search-input::placeholder {
  color: #999;
  font-weight: 400;
}

.search-button {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #888;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.search-button:hover {
  color: rgba(210, 105, 30, 0.8);
  background: rgba(210, 105, 30, 0.05);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(215, 204, 200, 0.4);
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: -1px;
}

.search-results-visible {
  display: block !important;
}

.search-result-item {
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--color-surface);
}

.search-result-item.is-active {
  background-color: var(--color-surface);
  outline: 2px solid var(--color-primary);
}

.search-result-title {
  margin: 0 0 0.5rem 0;
  font-size: var(--text-base);
  font-weight: 600;
}

.search-result-link {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.search-result-link:hover {
  color: var(--color-primary);
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: 0.5rem;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.search-result-tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.search-tag {
  background: var(--color-tag);
  color: var(--color-tag-text);
  padding: 0.125rem 0.375rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.search-result-excerpt {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.search-highlight {
  background: var(--color-tag);
  color: var(--color-tag-text);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  font-weight: 600;
}

.search-result-actions {
  display: flex;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
}

.search-action {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: var(--text-xs);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.search-action:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.search-results-footer {
  padding: var(--spacing-sm);
  display: flex;
  justify-content: center;
  background: var(--color-background);
}

.search-results-more {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.375rem 0.75rem;
  font-size: var(--text-xs);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-results-more:hover {
  background: var(--color-secondary);
}

.search-no-results,
.search-error {
  padding: var(--spacing-md);
  text-align: center;
  color: var(--color-text-muted);
}

.search-suggestions {
  font-size: var(--text-sm);
  margin-top: 0.5rem;
}

/* Mobile search adjustments */
@media (max-width: 768px) {
  /* Revert search to normal flow on mobile */
  .site-header .search-form {
    position: static;
    margin-top: var(--spacing-md);
  }

  .search-container {
    max-width: 100%;
  }
  
  .search-results {
    left: 0;
    right: 0;
  }
}

/* Newsletter Subscription Styles - Modern & Subtle */
.newsletter-section {
  margin: var(--spacing-3xl) 0;
  padding: 0;
}

.newsletter-subscription {
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(215, 204, 200, 0.4);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 4px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.newsletter-subscription:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.newsletter-subscription::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(210, 105, 30, 0.6), 
    rgba(205, 133, 63, 0.4), 
    rgba(244, 164, 96, 0.3)
  );
  opacity: 0.7;
}

.newsletter-header {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-md);
}

.newsletter-header h3 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: #2c2c2c;
  margin: 0 0 var(--spacing-sm) 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.newsletter-header p {
  font-family: var(--font-serif);
  color: #6b6b6b;
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  font-weight: 400;
}

.newsletter-form {
  padding: 0 var(--spacing-lg) var(--spacing-xl);
}

.newsletter-input-group {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(215, 204, 200, 0.5);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: var(--spacing-md);
  backdrop-filter: blur(5px);
}

.newsletter-input-group:focus-within {
  border-color: rgba(210, 105, 30, 0.6);
  box-shadow: 
    0 0 0 3px rgba(210, 105, 30, 0.08),
    0 2px 12px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.newsletter-email-input {
  flex: 1;
  padding: 14px var(--spacing-lg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  border: none;
  background: transparent;
  color: #2c2c2c;
  outline: none;
  transition: color 0.2s ease;
}

.newsletter-email-input::placeholder {
  color: #999;
  font-style: normal;
  font-weight: 400;
}

.newsletter-submit-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  background: linear-gradient(135deg, #D2691E 0%, #CD853F 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.newsletter-submit-btn:hover {
  background: linear-gradient(135deg, #B8591A 0%, #B8743A 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(210, 105, 30, 0.25);
}

.newsletter-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(210, 105, 30, 0.2);
}

.btn-icon {
  transition: transform var(--transition-fast);
}

.newsletter-submit-btn:hover .btn-icon {
  transform: translateX(1px);
}

.newsletter-privacy {
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: #888;
  margin: 0;
  line-height: var(--leading-relaxed);
  font-weight: 400;
  opacity: 0.8;
}

.newsletter-fallback {
  text-align: center;
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  margin: var(--spacing-md) 0 0 0;
}

.newsletter-fallback a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: all var(--transition-fast);
}

.newsletter-fallback a:hover {
  color: var(--color-secondary);
  text-decoration-color: var(--color-secondary);
}

/* Responsive design for newsletter */
@media (max-width: 640px) {
  .newsletter-subscription {
    margin: 0 var(--spacing-md);
    border-radius: 14px;
  }

  .newsletter-header {
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
  }

  .newsletter-header h3 {
    font-size: var(--text-xl);
  }

  .newsletter-header p {
    font-size: var(--text-sm);
  }

  .newsletter-form {
    padding: 0 var(--spacing-md) var(--spacing-lg);
  }

  .newsletter-input-group {
    flex-direction: column;
    gap: 0;
    border-radius: 8px;
  }

  .newsletter-email-input {
    padding: 12px var(--spacing-md);
    font-size: var(--text-sm);
    border-bottom: 1px solid rgba(215, 204, 200, 0.3);
  }

  .newsletter-submit-btn {
    padding: 12px var(--spacing-md);
    font-size: var(--text-sm);
    justify-content: center;
  }
}

/* Dark mode newsletter adjustments */
@media (prefers-color-scheme: dark) {
  .newsletter-subscription {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
      0 4px 24px rgba(0, 0, 0, 0.2),
      0 1px 4px rgba(0, 0, 0, 0.1);
  }

  .newsletter-subscription::before {
    background: linear-gradient(90deg, 
      rgba(210, 105, 30, 0.8), 
      rgba(205, 133, 63, 0.6), 
      rgba(244, 164, 96, 0.5)
    );
  }

  .newsletter-header h3 {
    color: #e8e8e8;
  }

  .newsletter-header p {
    color: #b0b0b0;
  }

  .newsletter-input-group {
    background: rgba(40, 40, 40, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .newsletter-input-group:focus-within {
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(210, 105, 30, 0.7);
    box-shadow: 
      0 0 0 3px rgba(210, 105, 30, 0.12),
      0 2px 12px rgba(0, 0, 0, 0.15);
  }

  .newsletter-email-input {
    color: #e8e8e8;
  }

  .newsletter-email-input::placeholder {
    color: #888;
  }

  .newsletter-privacy {
    color: #999;
  }
}