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

:root {
  --bg: #fafafa;
  --bg-alt: #f5f5f5;
  --text: #111;
  --text-secondary: #555;
  --text-tertiary: #888;
  --accent: #9B1B30;
  --accent-hover: #7D1526;
  --accent-glow: rgba(155, 27, 48, 0.12);
  --accent-subtle: rgba(155, 27, 48, 0.06);
  --border: #e5e5e5;
  --card-bg: #fff;
  --card-border: #eaeaea;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(250, 250, 250, 0.8);
  --badge-bg: rgba(155, 27, 48, 0.08);
  --badge-text: #9B1B30;
  --badge-border: rgba(155, 27, 48, 0.2);
  --hero-gradient-1: rgba(155, 27, 48, 0.06);
  --hero-gradient-2: rgba(180, 40, 60, 0.04);
  --hero-gradient-3: rgba(200, 60, 80, 0.03);
  --contact-bg: var(--bg-alt);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #111;
  --text: #e5e5e5;
  --text-secondary: #a0a0a0;
  --text-tertiary: #666;
  --accent: #E8415A;
  --accent-hover: #F06070;
  --accent-glow: rgba(232, 65, 90, 0.15);
  --accent-subtle: rgba(232, 65, 90, 0.08);
  --border: #1f1f1f;
  --card-bg: #141414;
  --card-border: #1f1f1f;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(10, 10, 10, 0.8);
  --badge-bg: rgba(232, 65, 90, 0.12);
  --badge-text: #F06070;
  --badge-border: rgba(232, 65, 90, 0.25);
  --hero-gradient-1: rgba(232, 65, 90, 0.1);
  --hero-gradient-2: rgba(200, 50, 70, 0.07);
  --hero-gradient-3: rgba(180, 40, 60, 0.05);
  --contact-bg: var(--bg-alt);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 450;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 1px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-btn:hover {
  color: var(--text);
  border-color: var(--text-tertiary);
}

.theme-toggle {
  position: relative;
  overflow: hidden;
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.hamburger:hover {
  background: var(--accent-subtle);
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 32px 24px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.mobile-nav.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-nav a {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 450;
}

.mobile-nav-controls {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ============================================
   SECTIONS — RHYTHM & SEPARATION
   ============================================ */
section {
  padding: 100px 24px;
  position: relative;
}

section.bg-alt {
  background: var(--bg-alt);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
  padding-left: 16px;
  position: relative;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-bottom: 48px;
  color: var(--text);
  line-height: 1.15;
}

/* ============================================
   HERO — CENTER-ALIGNED, GRADIENT MESH
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 30% 40%, var(--hero-gradient-1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 20%, var(--hero-gradient-2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, var(--hero-gradient-3) 0%, transparent 40%);
  animation: heroFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

/* Profile photo */
.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, var(--accent), #D4606F);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.02em;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background-size: cover;
  background-position: center;
  transition: border-color var(--transition);
}

:root .profile-photo {
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .profile-photo {
  border-color: rgba(255, 255, 255, 0.15);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  text-transform: lowercase;
}

.hero-role {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 450;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, var(--accent) 0%, #D4606F 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

.hero-socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-socials a {
  color: var(--text-tertiary);
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-socials a:hover {
  color: var(--accent);
  transform: scale(1.15);
}

.hero-socials svg {
  width: 22px;
  height: 22px;
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.35;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================
   ABOUT
   ============================================ */
.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 720px;
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  max-width: 720px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

/* ============================================
   EXPERIENCE — CLEAN TYPOGRAPHY
   ============================================ */
.experience-company {
  margin-bottom: 0.5rem;
}

.company-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.company-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin: 0;
}

.company-meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.company-description {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin: 0.25rem 0 1rem 0;
  line-height: 1.5;
}

.roles-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.role-item {
  padding: 0.4rem 0;
}

.role-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.role-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.role-past .role-title {
  color: var(--text-secondary);
  font-weight: 500;
}

.role-highlight .role-title {
  color: #f59e0b;
  font-weight: 600;
}

.role-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.role-desc {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin: 0.15rem 0 0 0;
  line-height: 1.4;
}

.experience-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
  opacity: 0.3;
}

/* ============================================
   PROJECT CARDS — PREMIUM FEEL
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #D4606F);
  opacity: 0;
  transition: opacity var(--transition);
}

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

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

[data-theme="dark"] .card:hover {
  box-shadow: var(--card-shadow-hover), 0 0 40px var(--accent-glow);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 18px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 12px;
  color: var(--text);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-badge {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--badge-border);
  letter-spacing: -0.01em;
}

/* Stagger animation for cards */
.card.fade-in-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

/* ============================================
   SPEAKING — 2-COLUMN GRID
   ============================================ */
.speaking-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.speaking-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  border-left: 3px solid transparent;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.speaking-item:hover {
  border-left-color: var(--accent);
  background: var(--accent-subtle);
  transform: translateX(2px);
}

[data-theme="dark"] .speaking-item:hover {
  box-shadow: 0 0 20px var(--accent-glow);
}

.speaking-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.speaking-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.speaking-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--accent-glow);
  transition: text-decoration-color var(--transition);
}

.speaking-text a:hover {
  text-decoration-color: var(--accent);
}

/* ============================================
   PERSONAL
   ============================================ */
.personal-text {
  font-size: 1.05rem;
  color: var(--text-tertiary);
  font-style: italic;
  text-align: center;
}

#personal {
  padding: 48px 24px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  text-align: center;
  padding: 80px 24px 48px;
  background: var(--contact-bg);
}

.contact-section .section-label {
  display: inline-block;
}

.contact-section .section-title {
  margin-bottom: 16px;
}

.contact-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition);
}

.contact-link:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.contact-link:hover svg {
  color: #fff;
  fill: #fff;
}

.contact-link svg {
  width: 18px;
  height: 18px;
  transition: fill var(--transition), color var(--transition);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  transition: border-color var(--transition);
}

/* ============================================
   ANIMATIONS — FADE IN ON SCROLL
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-nav {
    display: block;
  }

  section {
    padding: 72px 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .profile-photo {
    width: 90px;
    height: 90px;
    font-size: 1.75rem;
    margin-bottom: 20px;
  }

  .company-header {
    flex-direction: column;
    gap: 0.15rem;
  }

  .role-line {
    flex-direction: column;
    gap: 0.1rem;
  }

  .company-name {
    font-size: 1.2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

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

  .speaking-list {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 32px;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-link {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding: 12px 22px;
  }

  .scroll-indicator {
    display: none;
  }

  /* Stats row: 2x2 grid on tablet/mobile */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  /* Bigger touch targets for social icons */
  .hero-socials a {
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
  }

  .hero-socials svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-role {
    font-size: 1.05rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .card {
    padding: 24px;
  }

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

  .about-text {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Tighter section padding on small screens */
  section {
    padding: 56px 16px;
  }

  #personal {
    padding: 36px 16px;
  }

  .personal-text {
    font-size: 0.95rem;
  }

  .contact-section {
    padding: 60px 16px 40px;
  }

  .nav-inner {
    padding: 0 16px;
  }
}

/* ============================================
   WRITINGS — LISTING PAGE
   ============================================ */
.writings-page {
  padding-top: 100px;
  min-height: 100vh;
  padding-left: 24px;
  padding-right: 24px;
}

.writings-header {
  margin-bottom: 3rem;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
  color: var(--text);
  line-height: 1.15;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  gap: 1rem;
}

.article-card:hover {
  padding-left: 0.5rem;
}

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

.article-card-info {
  flex: 1;
}

.article-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.2s;
  color: var(--text);
  margin: 0;
}

.article-card-desc {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.article-card-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ============================================
   WRITINGS — PREVIEW ON MAIN PAGE
   ============================================ */
.writings-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 640px;
  line-height: 1.7;
}

.writings-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.writing-preview-card {
  padding: 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: var(--card-bg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

.writing-preview-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

[data-theme="dark"] .writing-preview-card:hover {
  box-shadow: var(--card-shadow-hover), 0 0 20px var(--accent-glow);
}

.writing-preview-card .writing-date {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.writing-preview-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
  color: var(--text);
  line-height: 1.3;
}

.writing-preview-card p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: 0;
}

.view-all-link {
  display: inline-block;
  color: var(--accent);
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}

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

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-page {
  padding-top: 100px;
  min-height: 100vh;
}

.article-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color var(--transition);
}

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

.article-date {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.article-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: var(--text);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.article-lang-toggle {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 2.5rem;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.article-lang-toggle:hover {
  opacity: 1;
  text-decoration: underline;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content h2,
.article-content h3 {
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 1rem;
}

.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.2rem; }

.article-content ul,
.article-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-tertiary);
}

.article-content .reference-list {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-nav {
  display: flex;
  justify-content: space-between;
}

.article-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

/* ============================================
   RESPONSIVE — WRITINGS
   ============================================ */
@media (max-width: 768px) {
  .writings-preview-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    flex-direction: column;
    gap: 0.25rem;
  }

  .article-container {
    padding: 0 20px 60px;
  }

  .writings-page {
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .article-page {
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  .writings-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-container {
    padding: 0 16px 48px;
  }

  .article-content {
    font-size: 1rem;
  }
}
