/* ============================================
   Aadhil Anwar — "Quiet Authority" Design System
   Linear / Vercel / Opal inspired dark theme
   ============================================ */

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

:root {
  /* Backgrounds — 4-tier elevation system */
  --bg-primary: #0c0c0e;
  --bg-secondary: #141418;
  --bg-card: #18181c;
  --bg-elevated: #1e1e24;
  --bg-code: #161619;

  /* Text — 3-tier hierarchy */
  --text-primary: #ededef;
  --text-secondary: #a0a0ab;
  --text-muted: #5c5c6a;

  /* Accent — muted violet, used sparingly */
  --accent: #6e56cf;
  --accent-hover: #7c66d4;
  --accent-subtle: rgba(110, 86, 207, 0.08);

  /* Links — blue-violet, distinct from accent */
  --link: #8a8fff;
  --link-hover: #a0a4ff;

  /* Borders & dividers */
  --border: #23232b;
  --divider: #1c1c22;

  /* Buttons */
  --button-bg: #ededef;
  --button-text: #0c0c0e;
  --button-hover: #d4d4d8;

  /* Status — only for indicators */
  --success: #45c882;
  --warning: #e5a93d;
  --error: #e5534b;

  /* Selection */
  --selection: rgba(110, 86, 207, 0.3);

  /* Scrollbar */
  --scrollbar: #2a2a33;
  --scrollbar-hover: #36363f;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;

  /* Layout */
  --max-width: 1100px;
  --max-width-prose: 800px;

  /* Spacing */
  --section-gap: 4rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

/* --- Selection --- */
::selection {
  background: var(--selection);
  color: var(--text-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-color: var(--scrollbar) transparent;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

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

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

strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

/* --- SVG Icons --- */
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.contact-icon-svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width-prose);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.main {
  min-height: calc(100vh - 200px);
}

/* --- Columns --- */
.columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.nav-logo {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--text-primary) !important;
}

.nav-links {
  display: flex;
  gap: 0.125rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-secondary);
  background: var(--accent-subtle);
}

.nav-links a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform var(--transition-base);
}

/* --- Hero --- */
.hero {
  padding: 4rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.hero-name {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.hero-bio {
  margin-bottom: 1.75rem;
}

.hero-bio p {
  margin-bottom: 1rem;
  line-height: 1.75;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.hero-bio a {
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  color: var(--text-primary);
}

.hero-bio a:hover {
  text-decoration-color: var(--accent);
  color: var(--text-primary);
}

.highlight {
  color: var(--accent);
}

.hero-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all var(--transition-fast);
  background: transparent;
}

.social-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.social-btn:hover {
  color: var(--text-primary) !important;
  border-color: var(--text-muted);
  background: var(--bg-card);
}

.social-btn:hover svg {
  opacity: 1;
}

.hero-image {
  padding-top: 0.5rem;
}

.hero-image img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--border);
}

.hero-image.no-image {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image.no-image::after {
  content: 'AA';
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

.hero-image.no-image img {
  display: none;
}


/* --- Sections --- */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--divider);
}

.section-title {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.header-dot {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.section-link {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted) !important;
}

.section-link:hover {
  color: var(--text-secondary) !important;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  margin-top: 0.35rem;
}

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

.section-more {
  margin-top: 1.5rem;
}

.section-more a {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
}

.section-more a:hover {
  color: var(--text-secondary);
}

/* --- Bullet List --- */
.bullet-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.bullet-list li {
  padding: 0.3rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.bullet-list li::marker {
  color: var(--text-muted);
}

.bullet-date {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
}

.bullet-sep {
  color: var(--text-muted);
  margin: 0 0.2rem;
}

.bullet-list li a {
  color: var(--link);
  font-weight: 450;
}

.bullet-list li a:hover {
  color: var(--link-hover);
}

/* --- Page Sections --- */
.page-section {
  padding: 3rem 0;
}

.page-title {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* --- Post List (Archive pages) --- */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--divider);
  color: var(--text-secondary) !important;
  transition: background var(--transition-fast);
}

.post-item:first-child {
  border-top: 1px solid var(--divider);
}

.post-item:hover h3 {
  color: var(--link);
}

.post-item h3 {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
  margin-bottom: 0.25rem;
}

.post-item p {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.post-item time,
.post-item-meta {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.post-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.post-tags {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* --- Empty State --- */
.empty-state {
  padding: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-style: italic;
}

/* --- Bookshelf --- */

.shelf-metrics {
  display: flex;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.shelf-metric {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.shelf-metric-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 0.25rem;
}

.shelf-compact {
  columns: 2;
  column-gap: 3rem;
}

.shelf-block {
  break-inside: avoid;
  margin-bottom: 1.75rem;
}

.shelf-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.shelf-entry {
  display: block;
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
  padding: 0.175rem 0;
}

.shelf-entry .text-muted {
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .shelf-compact {
    columns: 1;
  }

  .shelf-entry {
    font-size: 0.8rem;
  }
}

/* --- Talks --- */
.talks-list {
  margin-top: 0.5rem;
}

.talk-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--divider);
}

.talk-item:first-child {
  border-top: 1px solid var(--divider);
}

.talk-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.talk-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--bg-card);
  transition: border-color var(--transition-fast);
}

.project-card:hover {
  border-color: var(--text-muted);
}

.project-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}

.project-link {
  font-size: 0.825rem;
  font-weight: 500;
}

/* --- Certifications --- */
.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cert-badge {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  background: var(--bg-card);
  font-weight: 450;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

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

.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cert-card-img {
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated, #14141a);
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cert-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert-card-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.625rem 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

/* --- Achievements --- */
.achievements-list {
  list-style: none;
  margin-top: 0.5rem;
}

.achievements-list li {
  padding: 0.75rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--divider);
  color: var(--text-secondary);
}

.achievements-list li:first-child {
  border-top: 1px solid var(--divider);
}

.achievements-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- About Page --- */
.about-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--divider);
  letter-spacing: -0.01em;
}

.about-content h2:first-child {
  margin-top: 1rem;
}

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

.skill-group h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

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

.skill-group li {
  font-size: 0.825rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.skill-group li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* --- Button --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--button-text) !important;
  background: var(--button-bg);
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  transition: background var(--transition-fast);
  letter-spacing: -0.01em;
}

.btn:hover {
  background: var(--button-hover);
  color: var(--button-text) !important;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  letter-spacing: -0.01em;
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
  color: var(--text-primary) !important;
}

.resume-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.copy-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary) !important;
  transition: border-color var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--text-muted);
}

.contact-icon {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.contact-value {
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* --- Post Full (Single Post) --- */
.post-full {
  padding: 3rem 0;
}

.post-header {
  margin-bottom: 2.5rem;
}

.post-header h1 {
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: 0.75rem;
  letter-spacing: -0.02em;
}

.post-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-sep {
  color: var(--border);
}

/* --- Prose (Post Content) --- */
.prose {
  line-height: 1.8;
  color: var(--text-secondary);
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose h2 { font-size: 1.25rem; }
.prose h3 { font-size: 1.05rem; }
.prose h4 { font-size: 0.95rem; }

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.3rem;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--link);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-code);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.prose pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.825rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.prose blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.prose img {
  border-radius: 8px;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th, .prose td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.875rem;
}

.prose th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--divider);
  margin: 2rem 0;
}

/* --- Post Footer --- */
.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider);
}

.back-link {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted) !important;
  padding: 0.2rem 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-secondary) !important;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    max-width: 220px;
    order: -1;
  }

  .columns-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 2rem 1rem;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.625rem 0;
    border-bottom: none;
    border-radius: 0;
  }

  .hero {
    padding: 2.5rem 0 1.5rem;
  }

  .hero-name {
    font-size: 1.75rem;
  }

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

  .post-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .post-item-meta {
    flex-direction: row;
    gap: 0.75rem;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .section {
    padding: 2rem 0;
  }

  .container-wide,
  .container {
    padding: 0 1.25rem;
  }

  .nav-inner {
    padding: 0 1.25rem;
  }

  .bullet-date {
    display: none;
  }

  .bullet-sep {
    display: none;
  }

  .hero-links {
    gap: 0.375rem;
  }

  .social-btn {
    font-size: 0.775rem;
    padding: 0.35rem 0.7rem;
  }

  .social-btn span {
    display: none;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .shelf-metrics {
    gap: 1.25rem;
  }

  .shelf-metric-num {
    font-size: 0.95rem;
  }

  .shelf-metric {
    font-size: 0.7rem;
  }

  .prose img {
    margin: 1rem -1.25rem;
    max-width: calc(100% + 2.5rem);
    border-radius: 0;
  }

  .prose pre {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    border-radius: 0;
    padding: 1rem 1.25rem;
  }

  .post-header h1 {
    font-size: 1.35rem;
  }

  .cert-list {
    gap: 0.375rem;
  }

  .cert-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .cert-card-name {
    font-size: 0.7rem;
    padding: 0.5rem 0.6rem;
  }
}

/* --- Animations --- */
@media (prefers-reduced-motion: no-preference) {
  .hero,
  .section,
  .page-section {
    animation: fadeIn 0.3s ease-out;
  }

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

/* --- Syntax Highlighting (Muted palette) --- */
.highlight .c, .highlight .cm, .highlight .c1, .highlight .cs { color: #5c5c6a; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr { color: #b392f0; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .sh, .highlight .sx { color: #9ecbff; }
.highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo { color: #dbab79; }
.highlight .na { color: #79b8ff; }
.highlight .nb { color: #b392f0; }
.highlight .nc { color: #e1c07d; }
.highlight .nf { color: #79b8ff; }
.highlight .nn { color: #e1c07d; }
.highlight .o, .highlight .ow { color: #a0a0ab; }
.highlight .p { color: #a0a0ab; }
.highlight .nv { color: #d4878f; }
