/* aTheme.net Editorial Design System */

:root {
  /* Colors */
  --color-primary: #0e291d;      /* Deep Forest Green */
  --color-primary-light: #1b3d2d;
  --color-primary-rgb: 14, 41, 29;
  
  --color-accent: #b8862b;       /* Warm Ochre Gold */
  --color-accent-light: #d69f38;
  
  --color-bg: #faf9f5;           /* Warm Editorial Cream */
  --color-surface: #ffffff;      /* Card/Surface White */
  --color-surface-alt: #f2efe7;  /* Muted Grey-Cream */
  
  --color-text: #1b1e1c;         /* Dark Charcoal Body Text */
  --color-text-muted: #57605b;   /* Muted Sage-Grey */
  
  --color-border: #e3decb;       /* Warm Border Tint */
  --color-border-light: #ece8db;
  
  /* Typography */
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", Arial, sans-serif;
  
  /* Layout */
  --max-width: 1120px;
  --max-width-text: 740px;
  --header-height: 76px;
  
  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px rgba(14, 41, 29, 0.04);
  --shadow-hover: 0 10px 30px rgba(14, 41, 29, 0.08);
}

/* Reset & Base Elements */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Headings */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background-color: var(--color-accent);
  color: #fff;
  padding: 12px 24px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  z-index: 9999;
  transition: top 0.25s ease;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-primary);
}

/* Main Content Focus Wrapper */
main:focus {
  outline: none;
}

/* Header Component */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.site-logo a {
  color: var(--color-primary);
}

.site-logo .logo-text::after {
  content: '.';
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.2s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Main Layout Wrapper */
.main-content-area {
  min-height: calc(100vh - var(--header-height) - 180px);
}

/* Homepage Styles */
.homepage-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* Hero Featured Section */
.hero-featured-section {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.hero-text-container {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-title a {
  color: var(--color-primary);
}

.hero-title a:hover {
  color: var(--color-accent);
}

.hero-summary {
  color: var(--color-text-muted);
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-cta-btn {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--color-primary);
  color: #fff;
  padding: 12px 28px;
  font-weight: 700;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.hero-cta-btn:hover {
  background-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* Editorial Pitch Section */
.editorial-pitch-section {
  text-align: center;
  padding: 56px 40px;
  background-color: var(--color-surface-alt);
  border-radius: 8px;
  margin-bottom: 56px;
  border: 1px solid var(--color-border);
}

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

.pitch-tag {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  display: block;
  margin-bottom: 12px;
}

.pitch-heading {
  font-size: 2rem;
  margin-bottom: 16px;
}

.pitch-body {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Layout section headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 12px;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.75rem;
}

.section-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-accent);
}

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

/* Homepage Cards Grid */
.homepage-grid, .guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .homepage-grid, .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .homepage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-card, .guide-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.grid-card:hover, .guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-border);
}

.card-image-wrapper {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-light);
  background-color: var(--color-surface-alt);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.grid-card:hover .card-image, .guide-card:hover .card-image {
  transform: scale(1.03);
}

.card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.meta-sep {
  margin: 0 8px;
  color: var(--color-border);
}

.card-title {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.card-title a {
  color: var(--color-primary);
}

.card-title a:hover {
  color: var(--color-accent);
}

.card-summary {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
}

.card-read-more:hover {
  color: var(--color-accent);
}

/* Comparison Highlight Block */
.comparison-highlight-section {
  margin-top: 56px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-highlight-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,43,0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.highlight-container {
  max-width: 700px;
}

.highlight-tag {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent-light);
  display: block;
  margin-bottom: 12px;
}

.highlight-title {
  font-size: 2.1rem;
  color: #fff;
  margin-bottom: 16px;
}

.highlight-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}

.highlight-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Base Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  text-align: center;
  transition: var(--transition);
}

.btn-primary-light {
  background-color: var(--color-accent);
  color: #fff;
}

.btn-primary-light:hover {
  background-color: var(--color-accent-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary-light {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/* Static and Detail Page Layouts */
.list-page-container, .static-page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.list-page-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
}

.list-title, .page-title {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.list-description {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 800px;
}

/* Static Page Content Details */
.static-page {
  max-width: var(--max-width-text);
  margin: 0 auto;
}

.page-header {
  margin-bottom: 32px;
  text-align: center;
}

.page-content {
  font-size: 1.08rem;
  line-height: 1.7;
}

.page-content p {
  margin-bottom: 24px;
}

.page-content h3 {
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 16px;
}

.page-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
}

/* Article Page Layout */
.post-article {
  padding-bottom: 64px;
}

.post-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  padding: 64px 24px 0 24px;
  margin-bottom: 48px;
}

.post-header-container {
  max-width: var(--max-width-text);
  margin: 0 auto 32px auto;
  text-align: center;
}

.post-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
}

.post-title {
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 16px 0 20px 0;
}

.post-author-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.post-featured-image-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.post-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* Post Body and Typography */
.post-body-container {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 24px;
}

.post-content {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--color-text);
}

.post-content p {
  margin-bottom: 28px;
}

.post-content h2 {
  font-size: 1.75rem;
  margin-top: 48px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: 8px;
}

.post-content h3 {
  font-size: 1.35rem;
  margin-top: 36px;
  margin-bottom: 16px;
}

.post-content ul, .post-content ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  border-left: 4px solid var(--color-accent);
  background-color: var(--color-surface-alt);
  padding: 24px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  margin: 36px 0;
  border-radius: 0 4px 4px 0;
}

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

.post-content hr {
  border: 0;
  height: 1px;
  background-color: var(--color-border);
  margin: 48px 0;
}

.post-content strong {
  color: var(--color-primary);
}

/* Code block highlight (standard blockquotes for warnings/notes) */
.post-content .alert {
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 28px;
  border-left: 4px solid;
}

/* Table Design in Articles */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 36px;
  font-size: 0.95rem;
}

.post-content th {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
}

.post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.post-content tr:nth-child(even) td {
  background-color: rgba(var(--color-primary-rgb), 0.015);
}

/* Action button configurations inside post content */
.post-content .action-buttons, .post-content .action-buttons-group {
  display: flex;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.post-content .btn {
  text-decoration: none;
  font-size: 0.95rem;
}

.post-content .btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}

.post-content .btn-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.post-content .btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.post-content .btn-secondary:hover {
  background-color: var(--color-surface-alt);
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Captioned Images and Spacing */
.post-content figure {
  margin: 36px 0;
  text-align: center;
}

.post-content figure img {
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.post-content figcaption, .post-content figure + p + em, .post-content p + em {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  display: block;
}

/* Author Bio Card Component */
.author-bio-card {
  background-color: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 32px;
  margin-top: 56px;
  display: flex;
  gap: 24px;
  align-items: center;
}

.bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--font-serif);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bio-details {
  display: flex;
  flex-direction: column;
}

.bio-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-family: var(--font-sans);
}

.bio-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Footer Component */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.75);
  border-top: 4px solid var(--color-accent);
  padding: 64px 24px;
  font-size: 0.9rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-branding {
  max-width: 400px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  line-height: 1.5;
}

.footer-meta {
  max-width: 450px;
  text-align: left;
}

@media (min-width: 768px) {
  .footer-meta {
    text-align: right;
  }
}

.footer-meta p {
  margin-bottom: 8px;
}

.footer-independent {
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Responsive Navigation Styles for Mobile */
@media (max-width: 767px) {
  :root {
    --header-height: auto;
  }

  .site-header {
    height: auto;
  }

  .header-container {
    height: auto;
    padding-top: 18px;
    padding-bottom: 18px;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    width: 100%;
  }

  .nav-menu {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .nav-link {
    display: inline-block;
    padding: 8px 0;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
  }

  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-text-container {
    padding: 24px;
  }
  
  .list-title, .page-title {
    font-size: 2rem;
  }
  
  .post-title {
    font-size: 2rem;
  }
  
  .post-header {
    padding-top: 32px;
  }
  
  .author-bio-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}
