/* ============================================
   JORDAN LEWIS PORTFOLIO - MODERN BEIGE
   Sleek, modern design with warm beige tones
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Core palette - warm beige and cream tones */
  --bg-primary: #faf9f6;
  --bg-secondary: #f5f3ef;
  --bg-tertiary: #ebe8e0;
  --bg-card: #ffffff;
  
  --text-primary: #2c2416;
  --text-secondary: #5a5245;
  --text-muted: #8b8577;
  
  /* Accent - warm brown/terracotta */
  --accent: #b8865b;
  --accent-dim: rgba(184, 134, 91, 0.1);
  --accent-glow: rgba(184, 134, 91, 0.2);
  
  /* Secondary accent */
  --tactical: #8b7355;
  --tactical-dim: rgba(139, 115, 85, 0.1);
  
  /* Borders and lines */
  --border: #e0ddd5;
  --border-accent: #d4d0c6;
  
  /* Status colors */
  --success: #7a8b5a;
  --warning: #c9a961;
  --danger: #c97a6b;
  
  /* Typography */
  --font-display: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Layout */
  --max-width: 1200px;
  --content-width: 800px;
  --sidebar-width: 280px;
  
  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle texture background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(184, 134, 91, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 115, 85, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

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

a:hover {
  color: var(--text-primary);
}

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

/* ============================================
   LAYOUT
   ============================================ */

body {
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: var(--space-2xl) var(--space-3xl);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding-top: calc(var(--space-3xl) + 100px);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-3xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xl);
}

.header-name {
  flex-shrink: 0;
}

.site-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.site-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: var(--space-xs) 0 0 0;
}

/* Header Navigation */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-nav .nav-list {
  list-style: none;
  display: flex;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
}

.header-nav .nav-item {
  margin: 0;
}

.header-nav .nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.header-nav .nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.header-nav .nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}


.page-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ============================================
   POST CARDS
   ============================================ */

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.post-card-link {
  display: block;
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
}

.post-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.post-card-link * {
  color: inherit;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(184, 134, 91, 0.12);
}

.post-card:hover::before {
  opacity: 1;
}

.post-card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.post-card-excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.post-card-date {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.post-card-date svg {
  width: 14px;
  height: 14px;
}

.post-card-tags {
  display: flex;
  gap: var(--space-sm);
}

.tag {
  background: var(--bg-tertiary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.tag:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ============================================
   PROJECT CARDS
   ============================================ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(184, 134, 91, 0.15);
}

.project-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.project-card-link * {
  color: inherit;
}

.project-card-image {
  height: 180px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.project-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-body {
  padding: var(--space-lg);
}

.project-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.project-card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-tertiary);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 2px;
}

/* ============================================
   SINGLE POST / PAGE
   ============================================ */

.post-header {
  margin-bottom: var(--space-2xl);
}

.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.post-content {
  max-width: var(--content-width);
}

.post-content h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}


.post-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.post-content p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: 1.8;
}

.post-content ul, .post-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  color: var(--text-secondary);
}

.post-content li {
  margin-bottom: var(--space-sm);
}

.post-content code {
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--accent);
}

.post-content pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  margin-bottom: var(--space-xl);
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-content img {
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
}

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

.about-content {
  max-width: var(--content-width);
}

.about-section {
  margin-bottom: var(--space-2xl);
}

.about-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}


.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.skill-category-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skill-list {
  list-style: none;
}

.skill-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
}

/* Experience timeline */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) - 4px);
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.timeline-company {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   SIDEBAR (RIGHT) - WIDGETS
   ============================================ */

.widgets {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 280px;
  margin-left: auto;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.widget-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
  color: var(--text-muted);
}

.recent-posts-list {
  list-style: none;
}

.recent-posts-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.recent-posts-list li:last-child {
  border-bottom: none;
}

.recent-posts-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.recent-posts-list a:hover {
  color: var(--accent);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ============================================
   SEARCH
   ============================================ */

.search-box {
  position: relative;
  margin-bottom: var(--space-xl);
}

.search-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  padding-left: 36px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

/* ============================================
   FOOTER
   ============================================ */

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  margin-top: var(--space-3xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

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

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-copyright a {
  color: var(--text-muted);
}

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

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

@media (max-width: 1024px) {
  .main-content {
    padding: var(--space-xl);
    padding-top: calc(var(--space-2xl) + 100px);
  }
  
  .header-content {
    padding: var(--space-md) var(--space-xl);
  }
  
  .footer-content {
    padding: 0 var(--space-xl);
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: var(--space-lg);
    padding-top: calc(var(--space-xl) + 120px);
  }
  
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
  }
  
  .header-nav {
    width: 100%;
    justify-content: flex-start;
  }
  
  .header-nav .nav-list {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  
  .site-name {
    font-size: 1.25rem;
  }
  
  .site-title {
    font-size: 0.8rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .post-title {
    font-size: 1.75rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    padding: 0 var(--space-lg);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post-card {
  animation: fadeInUp 0.4s ease forwards;
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }

.project-card {
  animation: fadeInUp 0.4s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.2s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }
