/*
Theme Name: Emir Çebi Minimal
Theme URI: https://mecebi.com.tr
Author: Mustafa Emir Çebi
Author URI: https://mecebi.com.tr
Description: Linear.app ve Vercel standartlarında sade, modern ve minimalist WordPress mühendislik teması.
Version: 2.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: MIT
Text Domain: emircebi
*/

/* ==========================================================================
   1. DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  --bg-page: #0a0a0c;
  --bg-surface: #111317;
  --bg-surface-hover: #16181f;
  --bg-surface-active: #1c1f27;
  --bg-badge: rgba(255, 255, 255, 0.04);
  --bg-badge-hover: rgba(255, 255, 255, 0.08);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.24);

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;

  --accent-primary: #ffffff;
  --accent-muted: #38bdf8;
  --accent-code: #7dd3fc;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Cascadia Code', Consolas, 'Liberation Mono', monospace;

  --container-max: 1040px;
  --container-reading: 700px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--bg-page);
  color: var(--text-secondary);
}

section[id] {
  scroll-margin-top: 90px;
}

body {
  font-family: var(--font-sans);
  font-size: 0.9375rem; /* 15px */
  line-height: 1.65;
  background-color: var(--bg-page);
  color: var(--text-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h1 {
  font-size: 2.125rem; /* 34px */
}

h2 {
  font-size: 1.375rem; /* 22px */
}

h3 {
  font-size: 1.125rem; /* 18px */
}

p {
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

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

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

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* ==========================================================================
   3. LAYOUT CONTAINERS
   ========================================================================== */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.reading-container {
  width: 100%;
  max-width: var(--container-reading);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-main {
  flex: 1 0 auto;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

/* ==========================================================================
   4. HEADER / NAVIGATION (74px Modern Linear Style)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: 74px;
  animation: headerEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes headerEntrance {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.nav-link {
  font-size: 0.9375rem; /* 15px */
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-link-guide {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.625rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary) !important;
  font-size: 0.8125rem !important;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link-guide:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.guide-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.8);
  flex-shrink: 0;
}

.nav-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.25rem;
  padding-left: 1.25rem;
  border-left: 1px solid var(--border-subtle);
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.social-icon-btn:hover {
  color: var(--text-primary);
}

.social-icon-btn svg {
  width: 22px;
  height: 22px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.social-icon-btn:hover svg {
  transform: scale(1.08);
}

/* Header Controls (Language Switcher & Theme Toggle) */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.52rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.theme-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.icon-sun {
  display: block;
}

.icon-moon {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  color: #ffffff;
  transition: all var(--transition-fast);
  z-index: 101;
}

.mobile-menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.hamburger-line {
  width: 18px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}

.mobile-menu-toggle.is-active .line-1 {
  transform: translateY(3.5px) rotate(45deg);
}

.mobile-menu-toggle.is-active .line-2 {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Top Neon Progress Loader */
.top-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc, #38bdf8);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8), 0 0 4px rgba(129, 140, 248, 0.6);
  z-index: 10000;
  pointer-events: none;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 1;
}

/* ==========================================================================
   5. HERO SECTION (Minimalist Linear / Vercel Engineering Focus)
   ========================================================================== */
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.125rem;
  letter-spacing: -0.035em;
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ==========================================================================
   6. BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: #ffffff;
  color: #0a0a0c;
  border-color: #ffffff;
}

.btn-primary:hover {
  background-color: #e2e8f0;
  border-color: #e2e8f0;
  color: #0a0a0c;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-badge);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.badge:hover {
  background-color: var(--bg-badge-hover);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ==========================================================================
   7. SECTION HEADERS
   ========================================================================== */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title-sub {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 400;
}

.section-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.section-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   8. ABOUT SECTION (Hakkımda - 2 Column Photo & Skills)
   ========================================================================== */
.about-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.about-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  align-items: start;
  transition: border-color var(--transition-fast);
}

.about-card:hover {
  border-color: var(--border-hover);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

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

.about-lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
}

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

.about-education {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.education-school-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.education-school {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.education-degree {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.4;
}

.about-photo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.about-photo-frame {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  background: #13151b;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.about-photo-frame:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-photo-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  width: 100%;
  max-width: 220px;
}

.about-photo-skills .badge {
  font-size: 0.6875rem;
  padding: 0.25rem 0.55rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
  user-select: none;
}

.about-photo-skills .badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   9. EXPERIENCE SECTION (Deneyim)
   ========================================================================== */
.experience-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.experience-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.experience-item:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-hover);
}

.experience-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.experience-role-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.experience-role {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.experience-company-wrap {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.experience-company {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.experience-badge {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
}

.experience-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.experience-bullets {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.experience-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.experience-bullets li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.experience-bullets li strong {
  color: var(--text-primary);
  font-weight: 500;
}

.experience-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

/* ==========================================================================
   10. FEATURED PROJECTS (Clean 2-Column Grid)
   ========================================================================== */
.projects-section {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.project-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-hover);
  transform: translateY(-2px);
}

.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #0d0f14;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-fast), transform 0.3s ease;
  display: block;
}

.project-card:hover .project-media img {
  transform: scale(1.02);
}

.project-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 0.5rem;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-title a {
  color: inherit;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1 0 auto;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
}

.project-action-link {
  font-weight: 500;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-ext-link {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.project-ext-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   10.5. EMBEDDED LINUX GUIDE SHOWCASE SECTION
   ========================================================================== */
.guide-showcase-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.guide-showcase-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.guide-showcase-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.guide-showcase-modules {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.125rem;
}

.guide-module-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.guide-module-pill:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateX(2px);
}

.guide-mod-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 20px;
}

.guide-mod-title {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 820px) {
  .guide-showcase-card {
    grid-template-columns: 1fr;
    padding: 1.75rem;
    gap: 1.75rem;
  }
}

/* ==========================================================================
   11. ARTICLES & NOTES SECTION
   ========================================================================== */
.articles-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.notes-list {
  display: flex;
  flex-direction: column;
}

.note-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.note-item:first-child {
  padding-top: 0;
}

.note-item:hover {
  border-color: var(--border-hover);
}

.note-title-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.note-item:hover .note-title-link {
  color: var(--text-primary);
}

.note-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.note-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-fast);
  color: var(--text-primary);
}

.note-item:hover .note-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   12. SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(3px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ==========================================================================
   13. LIGHT THEME PALETTE (Vercel Clean Light Mode)
   ========================================================================== */
html[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-surface-active: #e2e8f0;
  --bg-badge: rgba(15, 23, 42, 0.05);
  --bg-badge-hover: rgba(15, 23, 42, 0.09);

  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-hover: rgba(15, 23, 42, 0.18);
  --border-strong: rgba(15, 23, 42, 0.28);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --accent-primary: #0f172a;
  --accent-muted: #0284c7;
  --accent-code: #0369a1;
}

html[data-theme="light"] body {
  background-color: var(--bg-page);
  color: var(--text-secondary);
}

html[data-theme="light"] .site-header {
  background-color: rgba(248, 250, 252, 0.88);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .site-nav {
  background: rgba(248, 250, 252, 0.98);
  border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .nav-link {
  color: #334155;
}

html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
  color: #0f172a;
}

html[data-theme="light"] .lang-switch-pill {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .lang-btn {
  color: #64748b;
}

html[data-theme="light"] .lang-btn:hover {
  color: #0f172a;
}

html[data-theme="light"] .lang-btn.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #64748b;
}

html[data-theme="light"] .theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
}

html[data-theme="light"] .icon-sun {
  display: none;
}

html[data-theme="light"] .icon-moon {
  display: block;
}

html[data-theme="light"] .btn-primary {
  background-color: #0f172a;
  color: #ffffff;
}

html[data-theme="light"] .btn-primary:hover {
  background-color: #1e293b;
}

html[data-theme="light"] .btn-secondary {
  background-color: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

html[data-theme="light"] .btn-secondary:hover {
  background-color: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.2);
}

html[data-theme="light"] .about-photo-frame {
  background: #e2e8f0;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .hamburger-line {
  background-color: #0f172a;
}

html[data-theme="light"] .mobile-menu-toggle {
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

html[data-theme="light"] .mobile-menu-toggle:hover {
  border-color: rgba(15, 23, 42, 0.28);
  background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .project-media-fallback {
  background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #e2e8f0 100%) !important;
}

html[data-theme="light"] .project-media-fallback svg {
  stroke: #64748b !important;
}

html[data-theme="light"] .project-media-fallback span {
  color: #334155 !important;
}

html[data-theme="light"] .about-photo-skills .badge {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
  color: #475569;
}

html[data-theme="light"] .about-photo-skills .badge:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

html[data-theme="light"] .experience-badge {
  color: #334155;
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .experience-bullets li strong {
  color: #0f172a;
}

html[data-theme="light"] .badge {
  color: #475569;
  background-color: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .badge:hover {
  background-color: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

html[data-theme="light"] .footer-section {
  border-top-color: rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   14. BLOG & SINGLE ARTICLE (single.php & single-project.php)
   ========================================================================== */
.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.article-back-link:hover {
  color: var(--text-primary);
}

.article-title {
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.article-meta-divider {
  color: var(--border-subtle);
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #cbd5e1;
}

html[data-theme="light"] .article-content {
  color: #334155;
}

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

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

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

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

.article-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration-color: var(--text-primary);
}

.article-content pre,
pre.wp-block-code {
  background-color: #0b0c10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.25rem;
  overflow-x: auto;
  margin: 1.75rem 0;
  line-height: 1.55;
}

html[data-theme="light"] pre,
html[data-theme="light"] pre.wp-block-code {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-code);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .article-content code {
  background-color: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0369a1;
}

.article-content pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: #e2e8f0;
}

html[data-theme="light"] .article-content pre code {
  color: #0f172a;
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  background-color: var(--bg-page);
}

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-contact {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.footer-contact:hover {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

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

.footer-link:hover svg {
  transform: translateY(-1px);
  color: var(--text-primary);
}

/* ==========================================================================
   16. RESPONSIVE BREAKPOINTS (Mobile Drawer & Spacing)
   ========================================================================== */
@media (max-width: 860px) {
  .site-header {
    height: 64px !important;
    padding: 0 !important;
  }

  .header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    gap: 0 !important;
  }

  .site-brand {
    font-size: 1.0625rem !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  .header-right-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .header-controls {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    flex-shrink: 0 !important;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    z-index: 99;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    font-size: 1.1875rem !important;
    font-weight: 500;
    color: #f1f5f9;
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
  }

  .nav-link:hover {
    color: #ffffff;
    padding-left: 0.35rem;
  }

  .nav-socials {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
    padding-top: 1.5rem;
  }

  .nav-socials .social-icon-btn svg {
    width: 24px;
    height: 24px;
  }

  html, body {
    overflow-x: hidden;
  }

  .site-container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .hero-section {
    padding-top: 2.25rem !important;
    padding-bottom: 3rem !important;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.25rem) !important;
    line-height: 1.2 !important;
  }

  .hero-lead {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.75rem !important;
  }

  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .about-section,
  .experience-section,
  .projects-section,
  .articles-section {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }

  .about-card {
    grid-template-columns: 1fr !important;
    padding: 1.35rem !important;
    gap: 1.5rem !important;
  }

  .about-photo-wrapper {
    order: -1;
    align-items: flex-start;
  }

  .about-photo-skills {
    max-width: 100% !important;
    justify-content: flex-start !important;
  }

  .about-photo-frame {
    max-width: 140px !important;
    border-radius: var(--radius-md) !important;
  }

  .about-lead {
    font-size: 1.0625rem !important;
  }

  .about-body {
    font-size: 0.9rem !important;
  }

  .experience-item {
    padding: 1.25rem !important;
  }

  .experience-bullets li {
    font-size: 0.8125rem !important;
    line-height: 1.55 !important;
  }

  .experience-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.4rem !important;
  }

  .experience-meta {
    font-size: 0.75rem !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
  }

  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .footer-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
  }

  .footer-links {
    flex-wrap: wrap !important;
    gap: 1rem 1.25rem !important;
  }
}

/* Engineering Notebook: shared scale and content-first layout. */
:root { --container-max:1180px; --container-reading:760px; --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem; --space-6:1.5rem; --space-8:2rem; --space-12:3rem; --space-16:4rem; --bg-page:#101216; --bg-surface:#171b21; --bg-code:#151a22; --text-primary:#edf1f6; --text-secondary:#b5becd; --text-muted:#9ba7ba; --text-faint:#9ba7ba; --accent-muted:#80c5e9; --accent-code:#a6d4ec; --border-subtle:#343c49; --border-hover:#647084; --radius-md:6px; --font-sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; --font-mono:"Cascadia Code",Consolas,"Liberation Mono",monospace; color-scheme:dark; }
html[data-theme="light"] { --bg-page:#f8fafc; --bg-surface:#fff; --bg-code:#edf1f5; --text-primary:#172332; --text-secondary:#3d4d60; --text-muted:#526378; --text-faint:#526378; --accent-muted:#146288; --accent-code:#145b7f; --border-subtle:#cdd5df; --border-hover:#8998ac; color-scheme:light; }
[hidden] { display:none !important; }
.screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:1rem; left:1rem; transform:translateY(-200%); z-index:1000; background:var(--bg-surface); padding:1rem; border:2px solid var(--accent-muted); }
.skip-link:focus { transform:none; }
:focus-visible { outline:2px solid var(--accent-muted); outline-offset:4px; }
html,body { overflow-x:visible; }
img { max-width:100%; height:auto; }
button,input,select { font:inherit; }
button { cursor:pointer; }
.site-main { padding-top:0; }
.site-header,html[data-theme="light"] .site-header { background:var(--bg-page); backdrop-filter:none; animation:none; height:auto; min-height:72px; }
.header-inner { min-height:72px; gap:1rem; }
.site-brand { font-size:1rem; }
.brand-mark { color:var(--accent-muted); font-family:var(--font-mono); }
.header-right-group { gap:1rem; }
.site-nav { display:flex; gap:1.25rem; align-items:center; }
.nav-links { gap:1.1rem; }
.nav-links a { font-size:.8125rem; color:var(--text-secondary); }
.nav-links a:hover { color:var(--text-primary); }
.nav-socials { gap:.75rem; padding-left:1rem; margin-left:0; font-size:.75rem; }
.theme-choice { max-width:80px; padding:.4rem .2rem; color:var(--text-secondary); background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:4px; font-size:.75rem; }
.search-toggle { display:grid; place-items:center; min-width:32px; min-height:36px; font-size:1.6rem; }
.hero-section { padding:3.5rem 0 2.5rem; }
.hero-section h1 { font-size:clamp(2rem,4vw,3rem); letter-spacing:-.04em; margin:.6rem 0; }
.hero-specialties { font-size:.875rem; color:var(--accent-muted); line-height:1.7; margin-bottom:1rem; }
.hero-lead { font-size:1.125rem; max-width:660px; margin-bottom:1.5rem; animation:none; }
.hero-actions { animation:none; gap:1rem; }
.eyebrow,.card-eyebrow { font-family:var(--font-mono); color:var(--text-muted); font-size:.6875rem; letter-spacing:.07em; text-transform:uppercase; margin:0 0 .5rem; }
.text-action { font-size:.8125rem; }
.btn { min-height:42px; line-height:1.3; }
.btn-primary { background:var(--text-primary); color:var(--bg-page); border-color:var(--text-primary); }
.btn-secondary { color:var(--text-primary); background:var(--bg-surface); }
.projects-section,.articles-section,.lab-section,.profile-section { padding:2.5rem 0; border-bottom:1px solid var(--border-subtle); }
.section-header { align-items:center; gap:1rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.section-header h2 { font-size:1.375rem; }
.section-header>a { font-size:.8125rem; }
.projects-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.project-card { min-width:0; border-radius:var(--radius-md); }
.project-card:hover,.project-card:hover img { transform:none; }
.project-body { padding:1.25rem; min-width:0; }
.project-body h3 { margin-bottom:.75rem; }
.project-desc { line-height:1.7; }
.project-thumbnail { display:block; aspect-ratio:8/5; overflow:hidden; }
.project-thumbnail img { display:block; width:100%; height:100%; object-fit:cover; }
.badge { white-space:normal; line-height:1.4; overflow-wrap:anywhere; }
.project-footer { gap:1rem; flex-wrap:wrap; }
.pending-note,.empty-state { color:var(--text-muted); font-size:.875rem; }
.pending-note { border-top:1px solid var(--border-subtle); padding-top:1rem; margin-top:auto; }
.notes-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; }
.note-card { min-width:0; padding:1.25rem 0; border-top:1px solid var(--border-subtle); }
.note-card h2 { font-size:1.125rem; line-height:1.5; margin:.5rem 0 .75rem; }
.note-card p { font-size:.875rem; }
.note-meta,.tag-list { display:flex; flex-wrap:wrap; gap:.75rem; font-size:.75rem; color:var(--text-muted); }
.tag-list { margin-top:.75rem; }
.lab-section { border-left:3px solid var(--accent-muted); padding-left:1.5rem; }
.lab-section .notes-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.guide-section { padding:2rem 0; display:flex; align-items:center; justify-content:space-between; gap:1rem; border-bottom:1px solid var(--border-subtle); flex-wrap:wrap; }
.guide-section h2 { font-size:1.25rem; margin-bottom:.75rem; }
.guide-section p,.guide-section a { font-size:.875rem; }
.profile-grid { display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:3rem; max-width:900px; }
.profile-grid h3 { margin:1.75rem 0 .75rem; }
.profile-photo { width:220px; height:220px; object-fit:cover; border-radius:6px; }
.profile-links { display:flex; flex-wrap:wrap; gap:1rem; font-size:.875rem; }
.profile-lead { font-size:1.125rem; color:var(--text-primary); }
.footer-inner { gap:2rem; }
.site-footer { padding:2rem 0; }
.site-footer strong { font-size:.875rem; }
.footer-direction,.site-footer small { color:var(--text-muted); font-size:.75rem; margin:.4rem 0; }
.footer-links { font-size:.8125rem; flex-wrap:wrap; }
.archive-header { padding:3rem 0 2rem; max-width:800px; }
.archive-header h1 { margin-bottom:1rem; }
.search-form { display:flex; gap:.75rem; margin:1.5rem 0; }
.search-form input { min-width:0; flex:1; border:1px solid var(--border-subtle); background:var(--bg-surface); color:var(--text-primary); padding:.75rem; border-radius:4px; }
.navigation.pagination { margin-top:2rem; }
.nav-links .page-numbers,.page-numbers { display:inline-block; padding:.6rem .9rem; border:1px solid var(--border-subtle); margin:.2rem; }
.page-numbers.current { background:var(--bg-surface); }
.article-container { padding-top:2.5rem; }
.article-header { max-width:var(--container-reading); margin-bottom:2rem; }
.article-title { font-size:clamp(1.75rem,3.5vw,2.6rem); overflow-wrap:anywhere; }
.article-meta { flex-wrap:wrap; gap:.5rem 1rem; margin-bottom:1rem; }
.article-layout { display:grid; grid-template-columns:minmax(0,760px) minmax(180px,1fr); gap:3rem; }
.article-content { min-width:0; color:var(--text-secondary); font-size:1.0625rem; line-height:1.85; overflow-wrap:anywhere; }
.article-content h2,.article-content h3,.article-content h4 { scroll-margin-top:100px; }
.article-content h4 { font-size:1.125rem; margin:1.75rem 0 .75rem; }
.article-content blockquote { border-left:3px solid var(--accent-muted); padding:1rem 1.5rem; margin:1.5rem 0; background:var(--bg-surface); }
.article-content figure { margin:2rem 0; max-width:100%; }
.article-content img { height:auto; }
.article-content figcaption,.article-figure figcaption { text-align:center; font-size:.8125rem; color:var(--text-muted); margin:.75rem 0; }
.article-figure { max-width:760px; margin-bottom:2rem; }
.article-figure img { width:100%; height:auto; display:block; }
.article-content pre,html[data-theme="light"] .article-content pre { max-width:100%; background:var(--bg-code); border-color:var(--border-subtle); padding:1rem; overflow-x:auto; color:var(--text-primary); }
.article-content pre code,html[data-theme="light"] .article-content pre code { color:var(--text-primary); font-size:.875rem; white-space:pre; overflow-wrap:normal; }
.code-shell { min-width:0; border:1px solid var(--border-subtle); border-radius:6px; overflow:hidden; margin:1.75rem 0; background:var(--bg-code); }
.code-shell .code-toolbar { display:flex; justify-content:space-between; align-items:center; padding:.4rem .75rem; border-bottom:1px solid var(--border-subtle); font: .6875rem var(--font-mono); color:var(--text-muted); }
.code-shell pre { margin:0; border:0; border-radius:0; }
.code-toolbar button,.copy-link { padding:.4rem .65rem; color:var(--text-primary); background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:4px; font-size:.75rem; }
.token-comment { color:var(--text-muted); }
.token-keyword { color:#c9adf1; }
.token-string { color:#9bd0a9; }
.token-number { color:#e7bc86; }
html[data-theme="light"] .token-keyword { color:#6f3294; }
html[data-theme="light"] .token-string { color:#236c3b; }
html[data-theme="light"] .token-number { color:#875000; }
.table-scroll,.wp-block-table { max-width:100%; overflow-x:auto; margin:1.5rem 0; }
.table-scroll:focus-visible { outline-offset:0; }
.article-content table { width:100%; border-collapse:collapse; font-size:.875rem; }
.article-content th,.article-content td { padding:.7rem .9rem; border:1px solid var(--border-subtle); text-align:left; vertical-align:top; }
.article-content th { background:var(--bg-surface); color:var(--text-primary); }
.article-content tbody tr:nth-child(even) { background:var(--bg-surface); }
.is-style-note,.is-style-warning { padding:1rem 1.25rem; margin:1.5rem 0; border:1px solid var(--border-subtle); border-left:3px solid var(--accent-muted); background:var(--bg-surface); border-radius:4px; }
.is-style-warning { border-left-color:#c99a53; }
.heading-anchor { font-family:var(--font-mono); font-size:.8em; margin-left:.5rem; color:var(--text-muted)!important; text-decoration:none!important; }
.article-sidebar { min-width:0; }
.toc { position:sticky; top:100px; padding:1rem; border-left:1px solid var(--border-subtle); font-size:.8125rem; }
.toc summary { cursor:pointer; font-weight:600; color:var(--text-primary); }
.toc-links { display:flex; flex-direction:column; gap:.6rem; margin-top:1rem; max-height:65vh; overflow:auto; }
.toc-links a { line-height:1.5; }
.toc-links a[data-level="3"] { padding-left:.75rem; font-size:.75rem; }
.toc-links a[aria-current] { color:var(--accent-muted); }
.article-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-bottom:2rem; }
.associated-project { max-width:760px; padding:1.25rem; border:1px solid var(--border-subtle); margin-top:2rem; display:flex; flex-direction:column; }
.article-footer { max-width:760px; margin:2.5rem 0; border-top:1px solid var(--border-subtle); padding-top:1.5rem; }
.share-actions { display:flex; flex-wrap:wrap; align-items:center; gap:1.25rem; font-size:.8125rem; }
.author-card { margin-top:2rem; padding:1.25rem; background:var(--bg-surface); border:1px solid var(--border-subtle); }
.author-card p { font-size:.8125rem; margin:.5rem 0 .75rem; }
.related-notes { padding-top:1rem; border-top:1px solid var(--border-subtle); }
.related-notes h2 { margin-bottom:1rem; }
.page-links { display:flex; flex-wrap:wrap; gap:.5rem; }
.video-responsive-container { max-width:760px; aspect-ratio:16/9; margin-bottom:2rem; }
.video-responsive-container iframe { width:100%; height:100%; border:0; }
.reading-container { padding-top:2.5rem; }
.reveal-on-scroll { opacity:1; transform:none; filter:none; }
.curriculum-header { animation:none; }
.curriculum-card.is-open,.curriculum-card.is-open .curriculum-num-badge { border-color:var(--border-hover); }
.lesson-link:hover { color:var(--text-primary); }
html[data-theme="light"] .badge-published { color:#246b38!important; }
html[data-theme="light"] .badge-progress { color:#805215!important; }
@media(max-width:1100px) { .nav-socials { display:none; } .article-layout { gap:2rem; grid-template-columns:minmax(0,1fr) 200px; } }
@media(max-width:860px) {
 .site-header,.header-inner { min-height:64px; } .site-brand { font-size:.9375rem!important; } .brand-mark { display:none; }
 .header-right-group { gap:.5rem!important; } .header-controls { gap:.35rem!important; }
 .site-nav,html[data-theme="light"] .site-nav { background:var(--bg-page); backdrop-filter:none; height:auto; max-height:calc(100dvh - 64px); flex-direction:column; align-items:stretch; }
 .nav-links a { display:block; padding:.9rem 0; font-size:1rem; border-bottom:1px solid var(--border-subtle); }
 .nav-socials { display:flex; font-size:.875rem; }
 .mobile-menu-toggle { color:var(--text-primary); font-size:1.1rem; }
 .site-container { padding-inline:1.25rem!important; }
 .hero-actions { flex-direction:row!important; align-items:center!important; } .hero-actions .btn { width:auto!important; }
 .projects-grid,.notes-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
 .article-layout { display:flex; flex-direction:column; gap:1rem; } .article-sidebar { order:-1; } .toc { position:static; border:1px solid var(--border-subtle); border-radius:6px; }
 .profile-grid { grid-template-columns:minmax(0,1fr) 140px; gap:1.5rem; } .profile-photo { width:140px; height:140px; }
}
@media(max-width:560px) {
 .projects-grid,.notes-grid,.lab-section .notes-grid { grid-template-columns:minmax(0,1fr)!important; }
 .profile-grid { grid-template-columns:minmax(0,1fr); } .profile-photo { order:-1; }
 .hero-section { padding-top:2rem!important; padding-bottom:2rem!important; }
 .hero-actions { gap:.75rem; } .hero-specialties { font-size:.8125rem; }
 .section-header { align-items:flex-start; } .lab-section { padding-left:1rem; }
 .search-form { gap:.5rem; } .search-form .btn { padding-inline:.75rem; }
 .article-content { font-size:1rem; } .article-meta { font-size:.75rem; }
 .header-controls .search-toggle { min-width:24px; } .theme-choice { max-width:68px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important; transition:none!important; } }


/* Keep article media proportional and menu usable without JavaScript. */
.article-content .alignwide,.article-content .alignfull { max-width:100%; margin-inline:0; }
@media(max-width:860px) { html:not(.js) .site-header { height:auto!important; } html:not(.js) .header-inner { flex-wrap:wrap; } html:not(.js) .site-nav { position:static; visibility:visible; opacity:1; pointer-events:auto; transform:none; padding:1rem 0; width:100%; } html:not(.js) .header-right-group { flex-wrap:wrap; } html:not(.js) .mobile-menu-toggle { display:none!important; } }

.article-content table { min-width:520px; overflow-wrap:normal; }


.comments-area { max-width:760px; margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid var(--border-subtle); } .comment-list { list-style:none; padding:0; } .comment-list .children { padding-left:1.5rem; list-style:none; } .comment-body { margin:1.5rem 0; } .comment-author img { float:left; margin-right:.75rem; border-radius:50%; } .comment-metadata { font-size:.75rem; color:var(--text-muted); } .comment-form label { display:block; margin-bottom:.4rem; } .comment-form input:not([type=checkbox]),.comment-form textarea { max-width:100%; width:100%; background:var(--bg-surface); color:var(--text-primary); border:1px solid var(--border-subtle); border-radius:4px; padding:.7rem; } .comment-form-cookies-consent label { display:inline; } .comment-form input[type=submit] { width:auto; cursor:pointer; }


/* Original theme typography, restored by request. */
:root { --font-sans:"Geist",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; --font-mono:"Geist Mono","JetBrains Mono",Consolas,monospace; }
/* Complete professional profile. */
.profile-intro { display:grid; grid-template-columns:minmax(0,1fr) 270px; gap:3rem; align-items:start; }
.profile-story { max-width:720px; }
.profile-story>h3 { font-size:1.75rem; letter-spacing:-.035em; margin-bottom:1.25rem; }
.profile-story p { line-height:1.8; }
.profile-story>.profile-links { margin-top:1.5rem; }
.profile-summary { padding:1.25rem; background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:var(--radius-md); display:flex; flex-direction:column; gap:.5rem; }
.profile-summary .profile-photo { width:100%; height:auto; aspect-ratio:1; margin-bottom:.75rem; }
.profile-summary>p { font-size:.8125rem; color:var(--text-muted); }
.profile-summary .profile-links { gap:.75rem; font-size:.75rem; padding-top:1rem; border-top:1px solid var(--border-subtle); }
.profile-education { display:flex; flex-direction:column; gap:.35rem; padding:1rem 0; font-size:.8125rem; border-top:1px solid var(--border-subtle); }
.profile-education>span:last-child { color:var(--text-muted); }
.profile-topics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; margin-top:2.5rem; }
.profile-topics>section { border-top:1px solid var(--border-subtle); padding-top:1.25rem; min-width:0; }
.profile-topics h3 { font-size:1rem; margin:.75rem 0; line-height:1.5; }
.profile-topics p { font-size:.875rem; }
@media(max-width:860px) { .profile-intro { grid-template-columns:minmax(0,1fr) 220px; gap:1.5rem; } .profile-topics { grid-template-columns:minmax(0,1fr); gap:1rem; } }
@media(max-width:560px) { .profile-intro { grid-template-columns:minmax(0,1fr); } .profile-summary { order:-1; display:grid; grid-template-columns:100px minmax(0,1fr); column-gap:1rem; } .profile-summary .profile-photo { grid-row:1 / 4; margin:0; } .profile-summary>strong { align-self:end; } .profile-summary .profile-education,.profile-summary .profile-links { grid-column:1 / -1; } .profile-story>h3 { font-size:1.5rem; } }
/* Compact theme control with a keyboard-accessible choice panel. */
.theme-picker { position:relative; }
.theme-picker summary { list-style:none; display:grid; place-items:center; width:36px; height:36px; border:1px solid transparent; border-radius:6px; cursor:pointer; color:var(--text-muted); }
.theme-picker summary::-webkit-details-marker { display:none; }
.theme-picker summary:hover,.theme-picker[open] summary { color:var(--text-primary); background:var(--bg-surface); border-color:var(--border-subtle); }
.theme-options { position:absolute; right:0; top:calc(100% + 10px); width:150px; padding:5px; background:var(--bg-surface); border:1px solid var(--border-subtle); border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.15); z-index:110; }
.theme-options button { display:flex; justify-content:space-between; align-items:center; width:100%; border:0; border-radius:4px; padding:.65rem .75rem; background:transparent; color:var(--text-secondary); font-size:.8125rem; text-align:left; }
.theme-options button:hover,.theme-options button[aria-pressed=true] { background:var(--bg-surface-hover); color:var(--text-primary); }
.theme-options button[aria-pressed=true] { box-shadow:inset 2px 0 var(--accent-muted); }
.theme-moon { display:none; } html[data-theme=dark] .theme-moon { display:block; } html[data-theme=dark] .theme-sun { display:none; }
.social-link,.text-action { display:inline-flex; align-items:center; gap:.45rem; } .social-glyph { flex-shrink:0; } .nav-socials a { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:5px; color:var(--text-muted); } .nav-socials a:hover { color:var(--text-primary); background:var(--bg-surface); } .nav-socials .social-glyph { width:18px; height:18px; }
.header-controls .search-toggle { display:inline-flex; align-items:center; justify-content:center; width:36px; min-width:36px; height:36px; min-height:36px; padding:0; line-height:1; border:1px solid transparent; border-radius:6px; color:var(--text-muted); flex-shrink:0; } .header-controls .search-toggle svg { display:block; width:18px; height:18px; flex-shrink:0; } .header-controls .search-toggle:hover { color:var(--text-primary); background:var(--bg-surface); border-color:var(--border-subtle); }

.language-switch { display:inline-flex; gap:2px; padding:2px; border:1px solid var(--border-subtle); border-radius:6px; } .language-switch button { border:0; background:transparent; color:var(--text-muted); font-family:var(--font-mono); font-size:.6875rem; padding:.35rem .4rem; line-height:1; border-radius:3px; } .language-switch button[aria-pressed=true] { background:var(--bg-surface-hover); color:var(--text-primary); } @media(max-width:420px) { .header-controls .search-toggle,.theme-picker summary { width:30px; min-width:30px; } .header-controls { gap:.15rem!important; } .language-switch button { padding:.35rem .3rem; } }
