/* mehriston.shop - Unique custom styles: Sage green + burnt red palette, asymmetric layouts, modern clean blog feel */
:root {
  --primary-green: #4A6657;
  --accent-red: #B7410E;
  --bg-cream: #F7F3EB;
  --text-dark: #1F2937;
  --text-muted: #4B5563;
  --card-bg: #FFFFFF;
  --border-subtle: #E5E0D5;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  line-height: 1.7;
}

/* Modern header */
header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
}

.logo {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary-green);
}

.nav-link {
  color: var(--text-dark);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-red);
}

/* Hero split layout unique */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  align-items: center;
}

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

.hero-text {
  padding: 3rem 2.5rem;
}

.hero-visual {
  background: linear-gradient(135deg, var(--primary-green) 0%, #3A5245 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 140%;
  background: rgba(255,255,255,0.08);
  transform: rotate(25deg);
}

.hero-quote {
  color: white;
  font-size: 1.35rem;
  line-height: 1.4;
  max-width: 420px;
  position: relative;
  z-index: 2;
}

/* Asymmetric grid for story cards */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .stories-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
  }
  
  .story-card.featured {
    grid-column: span 7;
  }
  
  .story-card {
    grid-column: span 5;
  }
  
  .story-card:nth-child(3) {
    grid-column: span 6;
  }
  
  .story-card:nth-child(5) {
    grid-column: span 6;
  }
}

.story-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  border-color: var(--primary-green);
}

.story-card .category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.story-card .category-tag.green {
  background-color: #E8F0E9;
  color: var(--primary-green);
}

.story-card .category-tag.red {
  background-color: #F8E9E3;
  color: var(--accent-red);
}

.story-card h3 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  color: var(--text-dark);
}

.story-card .excerpt {
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.story-card .meta {
  font-size: 0.875rem;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Zigzag sections */
.zigzag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .zigzag {
    grid-template-columns: 1fr;
  }
}

.zigzag.reverse {
  direction: rtl;
}

.zigzag.reverse > * {
  direction: ltr;
}

.zigzag-text {
  padding-right: 1rem;
}

.zigzag-visual {
  background-color: var(--primary-green);
  border-radius: 16px;
  padding: 2.5rem;
  color: white;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Sidebar sticky */
.sidebar {
  position: sticky;
  top: 2rem;
}

.category-list a {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: var(--text-dark);
  transition: all 0.2s;
}

.category-list a:hover {
  background-color: #F0EBE3;
  color: var(--primary-green);
  padding-left: 1.25rem;
}

/* Buttons unique style: pill-ish with red accent */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--accent-red);
  color: white;
  border: 2px solid var(--accent-red);
}

.btn-primary:hover {
  background-color: #9A3610;
  border-color: #9A3610;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
  background-color: var(--primary-green);
  color: white;
}

/* Article full blocks - clean readable */
.article-block {
  max-width: 820px;
  margin: 0 auto;
}

.article-block h2 {
  font-size: 1.85rem;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.article-block .article-meta {
  color: #6B7280;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.article-block p {
  margin-bottom: 1.35rem;
}

/* Footer */
footer {
  background-color: #2C3A32;
  color: #D1D5DB;
}

footer a {
  color: #D1D5DB;
  transition: color 0.2s;
}

footer a:hover {
  color: white;
}

/* Form styles */
input, textarea {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 4px rgba(74, 102, 87, 0.1);
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .hero-text {
    padding: 2rem 1.25rem;
  }
  
  .stories-grid {
    grid-template-columns: 1fr;
  }
}