/* ==========================================================================
   ArchByte - Design System & Modern CSS (Vanilla CSS with Theme Variables)
   ========================================================================== */

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

/* --- Root & Color Themes --- */
:root {
  /* Common Brand Palette */
  --brand-orange: #ff6b00;
  --brand-orange-hover: #e05b00;
  --brand-orange-light: #fff0e6;
  --brand-orange-glow: rgba(255, 107, 0, 0.25);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme (Warm Amber & Clean White) */
[data-theme="light"] {
  --bg-primary: #fcfbfa;
  --bg-secondary: #f4efe9;
  --bg-surface: #ffffff;
  --bg-surface-hover: #fbf7f2;
  --bg-overlay: rgba(252, 251, 250, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.75);
  
  --border-color: #e6dfd5;
  --border-focus: #ff6b00;
  
  --text-primary: #1c1815;
  --text-secondary: #5c534c;
  --text-muted: #8c827a;
  
  --card-shadow: 0 4px 20px -2px rgba(28, 24, 21, 0.06);
  --card-shadow-hover: 0 12px 30px -4px rgba(255, 107, 0, 0.12);
  
  --code-bg: #1e1e24;
  --code-text: #f0f0f5;
  --tag-bg: rgba(255, 107, 0, 0.1);
  --tag-text: #d95300;
}

/* Dark Theme (Obsidian Orange & Deep Graphite) - Default */
[data-theme="dark"] {
  --bg-primary: #0d0e11;
  --bg-secondary: #14161c;
  --bg-surface: #1a1d24;
  --bg-surface-hover: #222630;
  --bg-overlay: rgba(13, 14, 17, 0.88);
  --bg-glass: rgba(26, 29, 36, 0.75);
  
  --border-color: #2b303c;
  --border-focus: #ff6b00;
  
  --text-primary: #f5f6f9;
  --text-secondary: #a0a7b5;
  --text-muted: #646d7e;
  
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 12px 32px -4px rgba(255, 107, 0, 0.22);
  
  --code-bg: #111216;
  --code-text: #e6e8f0;
  --tag-bg: rgba(255, 107, 0, 0.15);
  --tag-text: #ff8533;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

/* --- Header & Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Brand Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--brand-orange), #ff944d);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 4px 12px var(--brand-orange-glow);
  transform: rotate(-3deg);
  transition: transform var(--transition-bounce);
}

.logo:hover .logo-icon {
  transform: rotate(0deg) scale(1.08);
}

.logo-accent {
  color: var(--brand-orange);
}

/* Nav Links */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--brand-orange);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

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

/* Theme Switcher Button */
.btn-theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-theme-toggle:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--brand-orange);
  box-shadow: 0 0 12px var(--brand-orange-glow);
}

.theme-icon {
  font-size: 1rem;
  display: inline-block;
  transition: transform var(--transition-bounce);
}

.btn-theme-toggle:hover .theme-icon {
  transform: rotate(20deg) scale(1.15);
}

/* Mobile Hamburger Toggle */
.mobile-toggle-btn {
  display: none;
  font-size: 1.4rem;
  color: var(--text-primary);
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

/* --- Mobile Drawer Menu --- */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-close-btn {
  font-size: 1.6rem;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.mobile-close-btn:hover {
  background-color: var(--brand-orange-glow);
  color: var(--brand-orange);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover {
  color: var(--brand-orange);
}

.mobile-theme-btn {
  margin-top: auto;
  margin-bottom: 2rem;
  padding: 1rem;
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  background-color: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
}

.mobile-theme-btn:hover {
  background-color: var(--brand-orange-hover);
  color: #ffffff;
}

/* --- Hero Section --- */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--brand-orange-glow) 0%, rgba(255, 107, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background-color: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-title-highlight {
  background: linear-gradient(135deg, var(--brand-orange), #ff944d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-orange), #e05b00);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 20px var(--brand-orange-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 0, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--brand-orange);
}

/* --- Section Styling --- */
.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-orange);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* --- Topics Section ("What We Cover") --- */
.topics-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.topic-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.topic-card:hover, .topic-card.active {
  border-color: var(--brand-orange);
  background-color: var(--bg-surface-hover);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.topic-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--tag-bg);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.topic-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.topic-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* --- Posts Section --- */
.posts-section {
  padding: 4rem 0 6rem;
}

.posts-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 450px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.8rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 14px var(--brand-orange-glow);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.post-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0%;
  background-color: var(--brand-orange);
  transition: height var(--transition-fast);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: var(--card-shadow-hover);
}

.post-card:hover::before {
  height: 100%;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-tag {
  background-color: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.78rem;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.post-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.post-read-link {
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition-fast);
}

.post-card:hover .post-read-link {
  gap: 0.6rem;
}

/* --- About Section ("Get to Know") --- */
.about-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.about-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--card-shadow);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-paragraph {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 500;
  padding-left: 1.2rem;
  border-left: 3px solid var(--brand-orange);
  margin: 0.5rem 0 1rem;
}

.about-avatar-wrapper {
  text-align: center;
  position: relative;
}

.about-avatar {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin: 0 auto;
  border: 2px solid var(--brand-orange);
  box-shadow: 0 8px 30px var(--brand-orange-glow);
}

.author-name-tag {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}

.author-role-tag {
  font-size: 0.85rem;
  color: var(--brand-orange);
  font-weight: 600;
}

/* --- Article Detail Modal Overlay --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 2rem 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-normal);
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
}

.reading-progress-bar {
  position: sticky;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-orange), #ff944d);
  width: 0%;
  z-index: 20;
  transition: width 0.1s linear;
}

.article-content-wrapper {
  padding: 3.5rem 1rem 4rem;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.article-category {
  display: inline-block;
  background-color: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.article-author-info img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.8rem 0 0.8rem;
  color: var(--brand-orange);
}

.article-body blockquote {
  border-left: 4px solid var(--brand-orange);
  background-color: var(--bg-secondary);
  padding: 1.2rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.8rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-body code {
  font-family: var(--font-code);
  font-size: 0.9em;
  background-color: var(--bg-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  color: var(--brand-orange);
}

.code-block-wrapper {
  position: relative;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.code-block-header {
  background-color: #17181c;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: #8c92a4;
  border-bottom: 1px solid #262933;
}

.btn-copy-code {
  color: #8c92a4;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-copy-code:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.article-body pre {
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-code);
  font-size: 0.92rem;
  line-height: 1.6;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* --- Author Detail Modal --- */
.author-modal-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 3rem;
}

.tech-stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-badge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font-code);
  color: var(--text-primary);
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 2rem;
  }
  
  .about-bio {
    border-left: none;
    border-top: 3px solid var(--brand-orange);
    padding-left: 0;
    padding-top: 1rem;
  }
  
  .author-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .mobile-toggle-btn {
    display: block;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .posts-grid {
    grid-template-columns: 1fr;
  }
  
  .article-content-wrapper {
    padding: 2rem 0.5rem;
  }
}
.skeleton {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  animation: shimmer 1.8s infinite;
  background-image: linear-gradient(
    90deg,
    var(--bg-surface) 0%,
    var(--bg-secondary) 50%,
    var(--bg-surface) 100%
  );
  background-size: 200% 100%;
}
.skeleton .skeleton-meta {
  height: 14px;
  width: 40%;
  background: var(--border-color);
  border-radius: 4px;
  margin-bottom: 0.8rem;
}
.skeleton .skeleton-title {
  height: 24px;
  width: 80%;
  background: var(--border-color);
  border-radius: 4px;
  margin-bottom: 0.8rem;
}
.skeleton .skeleton-excerpt {
  height: 16px;
  width: 100%;
  background: var(--border-color);
  border-radius: 4px;
  margin-bottom: 1rem;
}
.skeleton .skeleton-footer {
  height: 14px;
  width: 50%;
  background: var(--border-color);
  border-radius: 4px;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}