/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #030712;
  --bg-secondary: #0a1628;
  --bg-card: #0c1a30;
  --bg-card-hover: #0f2240;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-dark: #0284c7;
  --accent-glow: rgba(14, 165, 233, 0.12);
  --accent-glow-strong: rgba(14, 165, 233, 0.25);
  --green: #10b981;
  --orange: #f59e0b;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --blue-deep: #1d4ed8;
  --border: #1e293b;
  --border-light: #2a3f5f;
  --radius: 12px;
  --radius-lg: 16px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* === BACKGROUND EFFECTS === */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 60% at 50% -30%, rgba(14, 165, 233, 0.07), transparent),
    radial-gradient(ellipse 50% 50% at 0% 50%, rgba(29, 78, 216, 0.05), transparent),
    radial-gradient(ellipse 50% 50% at 100% 80%, rgba(14, 165, 233, 0.03), transparent);
  pointer-events: none;
  z-index: 0;
}

/* === GRID OVERLAY (subtle techy vibe) === */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(14, 165, 233, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* === CONTAINER === */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* === HERO === */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.5; transform: scale(0.8); box-shadow: 0 0 16px var(--accent); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero__subtitle em {
  color: var(--accent-light);
  font-style: normal;
  font-weight: 500;
}

.hero__links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: white;
  border: 1px solid var(--accent);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.35);
}

.btn-ghost {
  background: rgba(14, 165, 233, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* === SECTIONS === */
section {
  padding: 60px 0;
}

.section__header {
  margin-bottom: 32px;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === PROJECT CARDS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top left, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(14, 165, 233, 0.4);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(14, 165, 233, 0.06);
}

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

.project-card:hover::after {
  opacity: 1;
}

.project-card__icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.project-card__banner {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.project-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.project-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 6px;
  color: var(--accent-light);
}

/* === INTERESTS === */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.interest-item:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.05);
  transform: translateX(4px);
}

.interest-item__icon {
  font-size: 1.2rem;
}

/* === TECH STACK === */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.stack-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.stack-row:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: inset 0 0 30px rgba(14, 165, 233, 0.03);
}

.stack-row__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 80px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stack-row__tools {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* === CONNECT === */
.connect-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.connect-link:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(14, 165, 233, 0.1);
}

.connect-link svg {
  width: 18px;
  height: 18px;
}

/* === FOOTER === */
.footer {
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer__quote {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-light);
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .hero {
    padding: 60px 0 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .interests-grid {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .hero__links {
    flex-direction: column;
    align-items: center;
  }

  .connect-grid {
    justify-content: center;
  }
}

/* === SCROLL ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* === SELECTION === */
::selection {
  background: rgba(14, 165, 233, 0.3);
  color: white;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* === CV PAGE === */
.cv-header {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}

.cv-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.cv-back:hover {
  color: var(--accent-light);
}

.cv-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cv-header h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cv-header__role {
  font-size: 1.1rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.cv-header__location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cv-header__links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cv-header__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cv-header__links a:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

/* CV Sections */
.cv-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.cv-section__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.cv-section__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
}

/* CV Skills */
.cv-skills {
  display: grid;
  gap: 20px;
}

.cv-skill-group__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cv-skill-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-skill-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 12px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 6px;
  color: var(--accent-light);
}

/* CV Timeline */
.cv-timeline {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 24px;
}

.cv-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 5px;
  bottom: 8px;
  width: 1px;
  background: var(--border-light);
}

.cv-timeline__item {
  position: relative;
  padding: 0 0 32px 0;
}

.cv-timeline__item:last-child {
  padding-bottom: 0;
}

.cv-timeline__dot {
  position: absolute;
  top: 6px;
  left: -23px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.cv-timeline__content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cv-timeline__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.cv-timeline__content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.cv-timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.cv-timeline__tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 9px;
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 5px;
  color: var(--accent-light);
}

/* CV List */
.cv-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.cv-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.cv-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* CV Languages */
.cv-langs {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.cv-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cv-lang__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cv-lang__level {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* === POST PAGE === */
.post {
  padding: 80px 0 40px;
}

.post__header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post__back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.post__back:hover {
  color: var(--accent-light);
}

.post__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post__description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.post__date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post__footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* === PROSE (Markdown Content) === */
.prose {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.prose > * + * {
  margin-top: 1.5em;
}

/* Headings */
.prose h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2.5em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.3;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.prose h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose h5,
.prose h6 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.25em;
  margin-bottom: 0.5em;
}

.prose h6 {
  color: var(--text-secondary);
}

/* Paragraphs */
.prose p {
  margin-top: 1.25em;
  margin-bottom: 0;
}

/* Links */
.prose a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--cyan);
}

/* Bold, italic, strikethrough */
.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

.prose del {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Inline code */
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 6px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: 4px;
  color: var(--accent-light);
}

/* Code blocks */
.prose pre {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose pre code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--text-primary);
  white-space: pre;
}

/* Blockquotes */
.prose blockquote {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(14, 165, 233, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose blockquote p {
  margin-top: 0.5em;
  color: var(--text-secondary);
}

.prose blockquote p:first-child {
  margin-top: 0;
}

.prose blockquote blockquote {
  margin-top: 1em;
  margin-left: 8px;
}

/* Lists */
.prose ul,
.prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 24px;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-top: 0.5em;
  padding-left: 4px;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.5em;
  margin-bottom: 0;
}

/* Task lists */
.prose ul.task-list,
.prose .task-list {
  list-style: none;
  padding-left: 0;
}

.prose .task-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.prose .task-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: var(--bg-card);
  flex-shrink: 0;
  position: relative;
  top: 2px;
}

.prose .task-list input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.prose .task-list input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 2px;
  font-size: 11px;
  color: white;
  font-weight: 700;
}

/* Tables */
.prose table {
  width: 100%;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border-collapse: collapse;
  font-size: 0.85rem;
  overflow-x: auto;
  display: block;
}

.prose thead {
  border-bottom: 2px solid var(--border-light);
}

.prose th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.prose tbody tr:hover {
  background: rgba(14, 165, 233, 0.03);
}

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

/* Horizontal rules */
.prose hr {
  margin-top: 2em;
  margin-bottom: 2em;
  border: none;
  height: 1px;
  background: var(--border);
}

/* Footnotes */
.prose .footnotes {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.prose .footnotes ol {
  padding-left: 20px;
}

.prose sup a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* Definition lists */
.prose dl {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

.prose dt {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1em;
}

.prose dd {
  margin-left: 20px;
  margin-top: 0.25em;
  color: var(--text-secondary);
}

/* Details/Summary */
.prose details {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.prose details[open] {
  border-color: var(--accent);
}

.prose summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  padding: 4px 0;
}

.prose summary:hover {
  color: var(--accent-light);
}

.prose details > *:not(summary) {
  margin-top: 1em;
}

/* Keyboard */
.prose kbd {
  font-family: var(--font-mono);
  font-size: 0.8em;
  padding: 3px 7px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
}

/* Mark (highlight) */
.prose mark {
  background: rgba(245, 158, 11, 0.2);
  color: var(--orange);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Superscript / Subscript */
.prose sup {
  font-size: 0.75em;
  color: var(--accent-light);
}

.prose sub {
  font-size: 0.75em;
  color: var(--text-muted);
}

/* Responsive prose */
@media (max-width: 640px) {
  .prose {
    font-size: 0.9rem;
  }

  .prose pre {
    padding: 14px 16px;
    border-radius: 8px;
  }

  .prose table {
    font-size: 0.8rem;
  }

  .prose th,
  .prose td {
    padding: 8px 10px;
  }
}

/* === POSTS LIST === */
.posts-list {
  display: grid;
  gap: 12px;
  padding-bottom: 60px;
}

.posts-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.25s ease;
}

.posts-list__item:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.posts-list__info {
  flex: 1;
  min-width: 0;
}

.posts-list__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.posts-list__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.posts-list__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .posts-list__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .posts-list__desc {
    white-space: normal;
  }
}
