/*
Theme Name: The Doc Lab
Theme URI: https://thedoclabs.com
Author: Isaac
Author URI: https://thedoclabs.com
Description: A modern portfolio theme for showcasing homelab projects, 3D printing, AI experiments, and automation workflows. Optimized for accessibility, SEO, and performance.
Version: 1.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doclab
Tags: portfolio, blog, one-column, custom-colors, custom-menu, featured-images, accessibility-ready, threaded-comments, translation-ready
*/

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

:root {
  --bg: #000;
  --surface: #0f0f0f;
  --elevated: #1a1a1a;
  --text: #fff;
  --text-muted: #b8b8b8;
  --text-dim: #808080;
  --accent: #ff2d55;
  --accent-pink: #ff0066;
  --accent-purple: #9d4edd;
  --accent-blue: #ffd23f;
  --gradient-1: linear-gradient(135deg, #ff2d55 0%, #ffd23f 100%);
  --gradient-2: linear-gradient(135deg, #ff0066 0%, #9d4edd 100%);
  --shadow: 0 8px 24px rgba(0,0,0,0.5);
  --glow: 0 0 40px rgba(255,45,85,0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bg-secondary: #111;
  --border: rgba(255,255,255,0.07);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(at 0% 0%, rgba(255,45,85,0.12) 0px, transparent 50%),
              radial-gradient(at 100% 0%, rgba(157,78,221,0.12) 0px, transparent 50%),
              radial-gradient(at 100% 100%, rgba(255,0,102,0.12) 0px, transparent 50%);
  z-index: 0;
  animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(50px, 50px); }
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }

/* Accessibility improvements */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 1rem 2rem;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,15,15,0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

header.scrolled {
  background: rgba(15,15,15,0.95);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

header.hidden { transform: translateY(-100%); }

nav { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; }

.nav-right { display: flex; align-items: center; gap: 1rem; }

.logo {
  font-size: 1.5rem; font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
  transition: transform 0.3s var(--ease);
}

.logo:hover { transform: scale(1.05); }
.logo:focus { outline: 2px solid var(--accent); outline-offset: 4px; }

.logo::before {
  content: '◉'; font-size: 1.25rem; color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

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

.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  position: relative; transition: color 0.3s var(--ease);
}

.nav-links a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gradient-1); transition: width 0.3s var(--ease);
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 8px;
  cursor: pointer; position: relative; z-index: 1001;
  transition: all 0.3s var(--ease);
}

.nav-toggle:hover { border-color: var(--accent); background: rgba(255, 45, 85, 0.1); }
.nav-toggle:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-toggle span {
  display: block; width: 20px; height: 2px; background: var(--text);
  margin: 0 auto; position: relative; transition: all 0.3s var(--ease);
}

.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; width: 100%; height: 2px;
  background: var(--text); left: 0; transition: all 0.3s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { bottom: -6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { bottom: 0; transform: rotate(-45deg); }

.theme-toggle {
  width: 44px; height: 44px; background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease); font-size: 1.25rem;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent); transform: rotate(180deg);
}

.theme-toggle:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.theme-toggle::before { content: '🌙'; }
[data-theme="light"] .theme-toggle::before { content: '☀️'; }

.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 8rem 0 4rem;
}

.hero-content { text-align: center; max-width: 900px; margin: 0 auto; position: relative; z-index: 3; }

.hero-badge {
  display: inline-block; padding: 0.5rem 1rem;
  background: rgba(255,45,85,0.1); border: 1px solid rgba(255,45,85,0.3);
  border-radius: 50px; color: var(--accent); font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2rem;
  animation: fadeInDown 0.8s var(--ease);
}

.hero h1 {
  font-size: 2rem; margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--ease) 0.2s backwards;
}

/* Desktop: Bigger headings */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem; color: var(--text-muted); margin-bottom: 3rem; line-height: 1.8;
  animation: fadeInUp 0.8s var(--ease) 0.4s backwards;
}

.hero-cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease) 0.6s backwards;
}

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

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

.hero-float {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  filter: blur(100px); opacity: 0.3; animation: float 20s ease-in-out infinite;
}

.hero-float-1 {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 10%; left: 10%;
}

.hero-float-2 {
  background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
  bottom: 10%; right: 10%; animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-50px) scale(1.1); }
  66% { transform: translate(-20px,20px) scale(0.9); }
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  border-radius: 8px; transition: all 0.3s var(--ease);
  cursor: pointer; border: none; position: relative; overflow: hidden;
}

.btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.btn-primary { background: var(--gradient-1); color: var(--bg); box-shadow: var(--shadow); }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow), var(--shadow);
}

.btn-secondary {
  background: rgba(255,255,255,0.05); color: var(--text); border: 2px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  border-color: var(--accent); background: rgba(255,45,85,0.1);
  transform: translateY(-2px);
}

section { padding: 6rem 0; position: relative; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }

.section-label {
  display: inline-block; font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1rem;
}

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

/* Desktop: Bigger section titles */
@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-description {
  font-size: 1.125rem; color: var(--text-muted); line-height: 1.8;
}

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem;
}

.card {
  background: var(--elevated); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 2rem; position: relative; overflow: hidden;
  transition: all 0.4s var(--ease);
}

.card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gradient-1); opacity: 0; transition: opacity 0.4s;
}

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

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,45,85,0.3);
  box-shadow: var(--shadow), 0 0 40px rgba(255,45,85,0.1);
}

.card-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-1); border-radius: 8px; margin-bottom: 1.5rem;
}
.card-icon svg { width: 28px; height: 28px; color: white; }

.card-title {
  font-size: 1.5rem; margin-bottom: 0.75rem; transition: color 0.3s;
}

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

.card-description {
  color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.tag {
  padding: 0.375rem 0.75rem; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 50px;
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
  transition: all 0.3s;
}

.card:hover .tag {
  background: rgba(255,45,85,0.1); border-color: var(--accent); color: var(--accent);
}

.project-featured {
  background: var(--elevated); border-radius: 16px; overflow: hidden; margin-bottom: 3rem;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem;
  border: 1px solid rgba(255,255,255,0.1); transition: all 0.5s var(--ease);
}

.project-featured:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow), 0 0 60px rgba(255,45,85,0.15);
}

.project-image {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  min-height: 400px; display: flex; align-items: center; justify-content: center;
}

.project-image::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gradient-1); opacity: 0.1;
}

.project-content {
  padding: 3rem; display: flex; flex-direction: column; justify-content: center;
}

.project-category {
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1rem;
}

.project-title { font-size: 2rem; margin-bottom: 1rem; }

.project-description {
  color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem;
}

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin: 3rem 0;
}

.stat {
  background: var(--elevated); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 2rem; text-align: center;
  transition: all 0.4s var(--ease);
}

.stat:hover {
  transform: translateY(-5px);
  border-color: rgba(255,45,85,0.3);
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 3rem; font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.05em;
}

.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.5rem;
}

.skill-item {
  background: var(--elevated); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 2rem 1.5rem; text-align: center;
  transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}

.skill-item::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--gradient-1); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.skill-item:hover::before { transform: scaleX(1); }

.skill-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255,45,85,0.3);
  box-shadow: var(--shadow);
}

.skill-icon {
  width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.skill-icon svg { width: 100%; height: 100%; stroke: currentColor; }

.skill-name {
  font-size: 0.875rem; font-weight: 600; color: var(--text-muted);
  transition: color 0.3s;
}

.skill-item:hover .skill-name { color: var(--text); }

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--elevated);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,45,85,0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

footer {
  padding: 4rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.05);
  background: var(--surface);
}

.footer-content {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem;
}

.footer-section h4 { font-size: 1rem; margin-bottom: 1.5rem; }

.footer-section p, .footer-section a {
  color: var(--text-muted); text-decoration: none; display: block;
  margin-bottom: 0.75rem; transition: color 0.3s;
}

.footer-section a:hover { color: var(--accent); }
.footer-section a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: 0.875rem;
}

.fade-in {
  opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease);
}

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

/* Light theme */
[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --elevated: #ffffff;
  --text: #0a0a0a;
  --text-muted: #525252;
  --text-dim: #a3a3a3;
  --bg-secondary: #ebebeb;
  --border: rgba(0,0,0,0.08);
}

[data-theme="light"] body::before {
  background: radial-gradient(at 0% 0%, rgba(255,45,85,0.06) 0px, transparent 50%),
              radial-gradient(at 100% 0%, rgba(157,78,221,0.06) 0px, transparent 50%),
              radial-gradient(at 100% 100%, rgba(255,0,102,0.06) 0px, transparent 50%);
}

[data-theme="light"] .card,
[data-theme="light"] .skill-item,
[data-theme="light"] .stat {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@media (max-width: 1024px) {
  .project-featured { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--elevated); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: flex-start;
    padding: 6rem 2rem 2rem; gap: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: right 0.4s var(--ease);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }
  
  .nav-links.active { right: 0; }
  
  .nav-links li { width: 100%; margin: 0; padding: 0; }
  
  .nav-links a {
    display: block; padding: 1rem 1.5rem; font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-links a::after { bottom: 0; height: 2px; }
  
  body.nav-open { overflow: hidden; }
  
  body.nav-open::after {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 999;
  }
  
  .card-grid, .skills-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* WordPress specific */
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; margin: 0 auto; }
.wp-caption-text { text-align: center; font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ======================
   MOBILE-FIRST OPTIMIZATIONS
   ====================== */

/* Base: Mobile (default) */
body {
  font-size: 16px;
  line-height: 1.6;
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Tap targets - minimum 44x44px for mobile */
button, a, input, select, textarea {
  min-height: 44px;
}

/* Better spacing on mobile */
section {
  padding: 2rem 1rem;
}

.hero {
  min-height: 50vh;
  padding: 3rem 1rem;
}

/* Readable line length on mobile */
.post-content,
.project-content {
  max-width: 100%;
}

.post-content p,
.project-content p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Images: Always responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Cards: Full width on mobile */
.card {
  margin-bottom: 1.5rem;
}

/* Better form inputs on mobile */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  font-size: 16px; /* Prevents zoom on iOS */
  padding: 0.75rem;
}

/* Sticky header on mobile */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Desktop: Enhancements */
@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
  
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  section {
    padding: 4rem 2rem;
  }
  
  .hero {
    min-height: 70vh;
    padding: 6rem 2rem;
  }
  
  .post-content,
  .project-content {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Large Desktop: Max widths */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== v2.3 Apple-like polish ===== */
:root {
  --radius-xl: 20px;
  --radius-lg: 14px;
}

.card, .project-featured, .btn {
  border-radius: var(--radius-lg);
}

.project-featured {
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
}

.hero h1 {
  letter-spacing: -0.02em;
}

.section-title, .card-title, .project-title {
  letter-spacing: -0.015em;
}

.btn {
  transform: translateZ(0);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

/* Mobile nav functionality */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.94);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    z-index: 999;
  }

  .nav-links.is-open { display: flex; }
  .menu-open { overflow: hidden; }
}

/* Better perceived performance */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Light mode tune */
[data-theme="light"] {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --elevated: #ffffff;
  --text: #0e1116;
  --text-muted: #4f5565;
  --text-dim: #6f7789;
  --shadow: 0 8px 28px rgba(0,0,0,0.08);
}
[data-theme="light"] body::before { opacity: 0.45; }

/* ===== v2.4 mobile + performance pass ===== */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-cta .btn,
  .section-header .btn {
    width: 100%;
    justify-content: center;
  }

  .project-content {
    padding: 1.25rem;
  }

  .card {
    padding: 1.25rem;
  }

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

  .stat {
    padding: 1.1rem 0.8rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  .hero-float {
    display: none;
  }
}

/* Touch devices: disable expensive hover transforms */
@media (hover: none) {
  .card:hover,
  .stat:hover,
  .skill-item:hover,
  .btn:hover,
  .project-featured:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .btn::before,
  .card::before,
  .skill-item::before {
    transition: none;
  }
}

/* Improve rendering cost below fold */
section {
  content-visibility: auto;
  contain-intrinsic-size: 700px;
}

/* Keep nav behavior consistent with JS toggles */
.nav-links.is-open,
.nav-links.active {
  display: flex;
}

body.menu-open,
body.nav-open {
  overflow: hidden;
}

/* Global mobile header safety: avoid content being hidden under fixed nav */
@media (max-width: 900px) {
  header {
    position: sticky;
    top: 0;
  }

  nav {
    padding: 0.8rem 0;
  }
}


/* ===== Phase 2: global usability + mobile consistency ===== */
:root {
  --content-max: 860px;
}

main {
  position: relative;
  z-index: 2;
}

/* Prevent anchor targets from hiding under sticky/fixed header */
section[id], [id^="post-"] {
  scroll-margin-top: 96px;
}

.readable-content,
.post-content,
.page-content,
.project-content {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.82;
}

.readable-content p,
.post-content p,
.page-content p,
.project-content p {
  margin-bottom: 1rem;
}

.card-title a,
.related-card a,
article a {
  text-underline-offset: 0.16em;
}

/* Better tap ergonomics and less crowding on phones */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero {
    padding-top: 5.2rem;
  }

  .section-title {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .section-description,
  .hero-description {
    font-size: 1rem;
    line-height: 1.72;
  }

  .card-grid {
    gap: 1rem;
  }

  .card {
    padding: 1rem;
    border-radius: 12px;
  }

  .btn {
    min-height: 46px;
    border-radius: 10px;
  }

  .project-featured {
    gap: 1rem;
  }

  .project-content {
    padding: 1rem;
  }

  footer {
    padding-bottom: 4.5rem;
  }
}

/* Keep site header compact and non-obstructive */
@media (max-width: 900px) {
  header {
    backdrop-filter: blur(14px);
  }

  nav {
    padding: 0.72rem 0;
  }

  .logo {
    font-size: 1.15rem;
  }
}

/* ============================================
   SIDEBAR LAYOUT (fmhy-style)
   ============================================ */

.site-layout-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
  max-width: 1400px;
  margin: 0 auto;
}

/* SIDEBAR */
.site-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg-secondary);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  z-index: 10;
}

.sidebar-inner {
  padding: 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-section {
  padding: 0 0 1.25rem;
}

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.5rem 1.25rem 0.35rem;
}

.sidebar-nav-links {
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  border-left: 2px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  line-height: 1.3;
}

.sidebar-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-left-color: var(--border);
}

.sidebar-link.active {
  color: var(--accent);
  background: rgba(255,45,85,0.06);
  border-left-color: var(--accent);
  font-weight: 600;
}

.sidebar-link.active svg { opacity: 1; }

.sidebar-link-sub {
  padding-left: 2.5rem;
  font-size: 0.82rem;
}

.sidebar-count {
  margin-left: auto;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.08);
  color: var(--text-dim);
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  font-weight: 600;
}

/* MAIN CONTENT AREA */
.site-main {
  padding: 2rem 2.5rem 4rem;
  min-width: 0;
}

/* PAGE HEADER */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header-label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255,45,85,0.1);
  border: 1px solid rgba(255,45,85,0.3);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.page-header-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.page-header-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  max-width: 640px;
  line-height: 1.6;
}

/* POSTS GRID */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.post-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

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

.post-card-thumb { overflow: hidden; height: 180px; }
.post-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.post-card:hover .post-card-img { transform: scale(1.03); }

.post-card-body { padding: 1.25rem; }

.post-card-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid rgba(255,45,85,0.35);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.post-card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

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

.post-card-excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.post-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}

.post-card-link:hover { opacity: 0.75; }

/* PAGINATION */
.pagination-wrap {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination-wrap .page-numbers a,
.pagination-wrap .page-numbers span {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.15s;
}

.pagination-wrap .page-numbers .current,
.pagination-wrap .page-numbers a:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* SINGLE POST */
.single-post { max-width: 760px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.single-post-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.single-post-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.single-post-thumb { margin-bottom: 2rem; }

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.post-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.post-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
}

.post-content p { margin: 0 0 1.25rem; }

.post-content pre, .post-content code {
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}

.post-content code { padding: 0.15em 0.4em; }
.post-content pre { padding: 1rem 1.25rem; overflow-x: auto; margin: 0 0 1.25rem; }
.post-content pre code { background: none; border: none; padding: 0; }

.post-content img { max-width: 100%; border-radius: 8px; }

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(255,45,85,0.04);
  border-radius: 0 6px 6px 0;
  color: var(--text-muted);
}

.post-content a { color: var(--accent); }
.post-content a:hover { opacity: 0.8; }

/* POST TAGS */
.post-tags {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-tag {
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.post-tag:hover { border-color: var(--accent); color: var(--accent); }

/* POST NAV */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s;
}

.post-nav-link:hover { border-color: var(--accent); }
.post-nav-next { text-align: right; }

.post-nav-dir { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; }
.post-nav-name { font-size: 0.875rem; color: var(--text); font-weight: 600; line-height: 1.3; }

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

/* MOBILE SIDEBAR TOGGLE */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.sidebar-toggle svg { width: 20px; height: 20px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .site-layout-wrapper {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    width: 260px;
    transition: left 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: none;
    z-index: 200;
  }

  .site-sidebar.sidebar-open {
    left: 0;
    box-shadow: 4px 0 40px rgba(0,0,0,0.5);
  }

  .site-main { padding: 1.5rem 1rem 3rem; }

  .sidebar-toggle { display: flex; }

  .single-post-title { font-size: 1.5rem; }
  .post-nav { grid-template-columns: 1fr; }
}

/* ============================================
   FMHY-STYLE TAB STRIP
   ============================================ */

.tab-strip {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tab-strip::-webkit-scrollbar { display: none; }

.tab-strip-inner {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0 1rem;
  min-width: max-content;
  max-width: 1400px;
  margin: 0 auto;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.tab-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.tab-item:hover {
  color: var(--text);
  border-bottom-color: var(--border);
}

.tab-item.tab-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.tab-item.tab-active svg { opacity: 1; }

.tab-item.tab-external {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.tab-item.tab-external:hover { color: var(--text-muted); }

.tab-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 0.3rem;
  flex-shrink: 0;
}

/* adjust sticky sidebar top offset now that tab strip is sticky too */
.site-sidebar {
  top: 106px !important;
  height: calc(100vh - 106px) !important;
}

/* ============================================
   FMHY-STYLE BROWSE CARDS
   ============================================ */

.browse-section {
  padding: 3rem 1rem 3.5rem;
  border-bottom: 1px solid var(--border);
}

.browse-container {
  max-width: 1100px;
  margin: 0 auto;
}

.browse-header {
  margin-bottom: 1.5rem;
}

.browse-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.browse-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  background: var(--bg-secondary);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.browse-card:hover {
  border-color: var(--accent);
  background: rgba(255,45,85,0.03);
  transform: translateY(-1px);
}

.browse-card-external:hover {
  border-color: #5865F2;
  background: rgba(88,101,242,0.04);
}

.browse-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,45,85,0.1);
  border: 1px solid rgba(255,45,85,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.browse-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.browse-card-external .browse-card-icon {
  background: rgba(88,101,242,0.1);
  border-color: rgba(88,101,242,0.2);
  color: #5865F2;
}

.browse-card-body { flex: 1; min-width: 0; }

.browse-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.browse-card:hover .browse-card-title { color: var(--accent); }
.browse-card-external:hover .browse-card-title { color: #5865F2; }

.browse-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .browse-grid { grid-template-columns: 1fr; }
  .tab-strip { top: 56px; }
  .site-sidebar { top: 98px !important; height: calc(100vh - 98px) !important; }
}

/* ═══════════════════════════════════════════════════════════════
   SITE IMPROVEMENTS v2 — Feb 2026
   Appended below existing styles
═══════════════════════════════════════════════════════════════ */

/* ── Kill CPU-heavy animation, use static gradient ─────────── */
body::before {
  animation: none !important;
  background:
    radial-gradient(at 0% 0%, rgba(255,45,85,0.09) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(157,78,221,0.07) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(255,0,102,0.06) 0px, transparent 50%);
}

/* ── Hero: remove float orbs ─────────────────────────────────── */
.hero-float { display: none !important; }

/* ── Hero: better layout ─────────────────────────────────────── */
.hero { padding: 7rem 0 5rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(255,45,85,.08); border: 1px solid rgba(255,45,85,.2);
  padding: .35rem .85rem; border-radius: 100px; margin-bottom: 1.75rem;
}
.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800; letter-spacing: -.04em;
  line-height: 1.1; margin-bottom: 1.25rem;
}
.hero-description {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 600px; margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats-row {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  max-width: 520px; margin: 0 auto;
}
.hero-stat { text-align: center; }
.hero-stat-n {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em;
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-l { font-size: .72rem; color: var(--text-dim); margin-top: .15rem; letter-spacing: .04em; }

/* ── Better buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.5rem; border-radius: 9px;
  font-size: .9rem; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none; border: none; cursor: pointer;
  transition: opacity .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--accent); color: #000;
  box-shadow: 0 0 20px rgba(255,45,85,.25);
}
.btn-primary:hover { opacity: .9; box-shadow: 0 0 32px rgba(255,45,85,.4); }
.btn-secondary {
  background: rgba(255,255,255,.06);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); color: var(--text); }

/* ── Browse cards: improved ──────────────────────────────────── */
.browse-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.07);
  border-left: 3px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .12s;
}
.browse-card:hover {
  background: var(--elevated);
  border-left-color: var(--accent);
  transform: translateX(4px);
}
.browse-card-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 9px;
  background: rgba(255,45,85,.08);
  border: 1px solid rgba(255,45,85,.15);
  display: flex; align-items: center; justify-content: center;
}
.browse-card-icon svg { width: 18px; height: 18px; color: var(--accent); }
.browse-card-title {
  font-size: .92rem; font-weight: 700; color: var(--text);
  margin-bottom: .3rem;
}
.browse-card-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.55; }

.browse-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem;
}
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .6rem;
}

/* ── Post cards: improved ────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.post-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.post-card:hover {
  border-color: rgba(255,45,85,.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.post-card-thumb {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--elevated);
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,45,85,.05) 0%, rgba(157,78,221,.05) 100%);
}
.post-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex; align-items: center; gap: .6rem;
  font-size: .72rem; color: var(--text-dim); margin-bottom: .6rem;
}
.post-card-meta .dot { opacity: .4; }
.post-card-cat {
  display: inline-block;
  font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); background: rgba(255,45,85,.1);
  border: 1px solid rgba(255,45,85,.2);
  padding: .2rem .55rem; border-radius: 5px; margin-bottom: .6rem;
}
.post-card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.4;
  margin-bottom: .6rem; letter-spacing: -.01em;
}
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { font-size: .85rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.post-card-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .82rem; font-weight: 700; color: var(--accent);
  transition: gap .15s;
}
.post-card-link:hover { gap: .5rem; }

/* ── Section styles ──────────────────────────────────────────── */
.section-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800; letter-spacing: -.03em;
  line-height: 1.2; margin-bottom: 1rem;
}
.section-description {
  font-size: .95rem; color: var(--text-muted);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}

/* ── Stats section ───────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem;
}
.stat {
  padding: 1.5rem 1.25rem; text-align: center;
  background: var(--surface); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  transition: border-color .15s, transform .15s;
}
.stat:hover { border-color: rgba(255,45,85,.2); transform: translateY(-2px); }
.stat-value {
  font-size: 2.25rem; font-weight: 900; letter-spacing: -.04em;
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .78rem; color: var(--text-dim); margin-top: .4rem; }

/* ── Single post: better reading ────────────────────────────── */
.single-post-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.2;
  margin-bottom: 1rem;
}
.single-post-meta {
  display: flex; align-items: center; gap: .75rem;
  font-size: .8rem; color: var(--text-dim); margin-bottom: 1.5rem;
}
.single-post-meta span { display: flex; align-items: center; gap: .3rem; }
.single-post-thumb {
  margin: 1.5rem 0 2rem;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
}
.single-post-thumb img { width: 100%; height: auto; display: block; }
.post-content {
  font-size: 1rem; line-height: 1.8; color: var(--text-muted);
  max-width: 720px;
}
.post-content h2 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--text); margin: 2.5rem 0 1rem;
  padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.post-content h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin: 2rem 0 .75rem;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .85em; background: rgba(255,255,255,.07);
  padding: .15em .4em; border-radius: 4px; color: var(--accent-blue);
}
.post-content pre {
  background: #0d0d0d; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 1.25rem 1.5rem;
  overflow-x: auto; margin: 1.5rem 0;
}
.post-content pre code {
  background: none; padding: 0; color: var(--text-muted); font-size: .875rem;
}
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: .4rem; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: .75rem 1.25rem;
  background: rgba(255,45,85,.04);
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0; font-style: italic; color: var(--text-muted);
}

/* ── Footer: full rewrite ───────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand-name {
  font-size: 1.1rem; font-weight: 800; letter-spacing: -.025em;
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: .75rem;
}
.footer-about-text {
  font-size: .875rem; color: var(--text-muted); line-height: 1.65;
  margin-bottom: 1.25rem; max-width: 320px;
}
.footer-socials {
  display: flex; gap: .6rem; flex-wrap: wrap;
}
.footer-social {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px; color: var(--text-muted); text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.footer-social:hover { background: rgba(255,45,85,.1); color: var(--accent); border-color: rgba(255,45,85,.25); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col-title {
  font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-link {
  font-size: .875rem; color: var(--text-muted); text-decoration: none;
  transition: color .12s;
}
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
}
.footer-copy { font-size: .8rem; color: var(--text-dim); }
.footer-tagline { font-size: .78rem; color: var(--text-dim); font-style: italic; }

/* ── Tab strip: refined ──────────────────────────────────────── */
.tab-strip {
  position: sticky; top: 64px; z-index: 998;
  background: rgba(15,15,15,.95);
  border-bottom: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tab-strip-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; overflow-x: auto; scrollbar-width: none; gap: .15rem;
}
.tab-strip-inner::-webkit-scrollbar { display: none; }
.tab-item {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .8rem; font-size: .78rem; font-weight: 500;
  color: rgba(255,255,255,.45); white-space: nowrap;
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.tab-item svg { width: 13px; height: 13px; opacity: .6; }
.tab-item:hover { color: rgba(255,255,255,.8); }
.tab-item.tab-active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-item.tab-active svg { opacity: 1; }
.tab-external { color: rgba(255,255,255,.3); }
.tab-divider { width: 1px; background: rgba(255,255,255,.07); margin: .4rem .25rem; flex-shrink: 0; }

/* ── Page header ─────────────────────────────────────────────── */
.page-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.page-header-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .5rem;
}
.page-header-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: .5rem; }
.page-header-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; max-width: 600px; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination-wrap { margin-top: 2.5rem; }
.pagination-wrap .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination-wrap .page-numbers {
  padding: .5rem .85rem; background: var(--surface);
  border: 1px solid rgba(255,255,255,.08); border-radius: 8px;
  font-size: .85rem; color: var(--text-muted); text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.pagination-wrap .page-numbers:hover { background: var(--elevated); color: var(--text); }
.pagination-wrap .page-numbers.current {
  background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700;
}
.pagination-wrap .prev, .pagination-wrap .next { font-weight: 600; }

/* ── Post tags + nav ─────────────────────────────────────────── */
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.5rem 0; }
.post-tag {
  font-size: .75rem; color: var(--text-muted);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09);
  padding: .3rem .75rem; border-radius: 100px; text-decoration: none;
  transition: background .15s, color .15s;
}
.post-tag:hover { background: rgba(255,45,85,.1); color: var(--accent); }
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.post-nav-link {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1rem 1.25rem;
  background: var(--surface); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.post-nav-link:hover { border-color: rgba(255,45,85,.25); background: var(--elevated); }
.post-nav-next { text-align: right; }
.post-nav-dir { font-size: .72rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.post-nav-name { font-size: .875rem; font-weight: 600; color: var(--text-muted); line-height: 1.4; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-about-text { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .posts-grid { grid-template-columns: 1fr; }
  .browse-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .hero { padding: 6rem 0 3.5rem; }
  .hero-stats-row { gap: 1.5rem; padding: 1.25rem; }
  .hero-stat-n { font-size: 1.35rem; }
}
@media (max-width: 480px) {
  .tab-item { padding: .55rem .65rem; font-size: .75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}

/* ── SVG explicit sizing override (iOS Safari fix) ──────────── */
.tab-item svg { width: 14px !important; height: 14px !important; flex-shrink: 0; }
.browse-card-icon svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }
.sidebar-link svg { width: 15px !important; height: 15px !important; flex-shrink: 0; }
.footer-social svg { width: 16px !important; height: 16px !important; flex-shrink: 0; }
.sidebar-toggle svg { width: 20px !important; height: 20px !important; }
/* Prevent any SVG from expanding beyond its container */
.tab-item svg, .browse-card-icon svg, .sidebar-link svg, .footer-social svg {
  max-width: none; max-height: none;
  display: block; overflow: visible;
}

/* ── Hero stats: always inline, never wrap ──────────────────── */
.hero-stats-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-around !important;
  gap: 1rem !important;
  max-width: 420px !important;
  padding: 1.25rem 1.5rem !important;
}
.hero-stat { flex: 1; min-width: 0; }
.hero-stat-n { font-size: 1.4rem; }
.hero-stat-l { font-size: .65rem; white-space: nowrap; }

/* ── Hero CTA: stack on mobile ───────────────────────────────── */
@media (max-width: 500px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; justify-content: center; }
  .hero-badge { font-size: .68rem; padding: .3rem .75rem; text-align: center; }
}

/* ── 404 page ────────────────────────────────────────────────── */
.error-404-wrap {
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 2rem;
}
.error-404-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: 1;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .5rem;
  opacity: .35;
}
.error-404-badge {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); background: rgba(255,45,85,.08);
  border: 1px solid rgba(255,45,85,.2);
  padding: .3rem .85rem; border-radius: 100px;
  margin-bottom: 1.25rem;
}
.error-404-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.error-404-desc {
  font-size: .95rem; color: var(--text-muted); max-width: 480px; margin: 0 auto 1.75rem;
  line-height: 1.65;
}
.error-404-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Search form bar ─────────────────────────────────────────── */
.search-form-bar {
  display: flex; gap: .5rem; margin-bottom: 1.5rem;
}
.search-form-input {
  flex: 1; min-width: 0;
  padding: .75rem 1.1rem;
  background: var(--surface); border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px; color: var(--text); font-size: 1rem;
  outline: none; transition: border-color .15s;
  -webkit-appearance: none;
}
.search-form-input:focus { border-color: rgba(255,45,85,.35); }
.search-form-input::placeholder { color: var(--text-dim); }
.search-form-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.25rem; border-radius: 10px;
  background: var(--accent); color: #000;
  font-size: .875rem; font-weight: 700; border: none; cursor: pointer;
  transition: opacity .15s;
  white-space: nowrap;
}
.search-form-btn:hover { opacity: .88; }

/* ── Search/archive empty state ──────────────────────────────── */
.search-empty, .empty-state {
  text-align: center; padding: 4rem 2rem;
}
.search-empty-icon {
  display: block; margin: 0 auto 1.5rem;
  color: rgba(255,255,255,.15);
}
.search-empty-text {
  font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem;
}
.search-empty-sub { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.search-empty-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.empty-state p { color: var(--text-muted); margin-bottom: 1rem; }

@media (max-width: 480px) {
  .search-form-bar { flex-direction: column; }
  .search-form-btn { justify-content: center; }
  .error-404-actions { flex-direction: column; align-items: center; }
  .error-404-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ── Theme toggle: replace emoji with SVG ────────────────────── */
.theme-toggle::before { content: none !important; }
.theme-toggle { font-size: 0; }
.theme-toggle .icon-moon { display: block; color: var(--text-muted); }
.theme-toggle .icon-sun  { display: none;  color: #f59e0b; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

/* ═══════════════════════════════════════════════════════════════
   iOS-STYLE NAV + ABOUT PAGE — Feb 2026
═══════════════════════════════════════════════════════════════ */

/* ── Kill old tab strip (replaced by single iOS nav) ────────── */
.tab-strip { display: none !important; }

/* ── Nav bar ─────────────────────────────────────────────────── */
#header {
  position: sticky; top: 0; z-index: 1000;
  transition: transform .3s var(--ease), background .2s;
}
#header.hidden { transform: translateY(-100%); }

.nav-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.25rem;
  height: 58px;
  background: rgba(9,9,11,.82);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
[data-theme="light"] .nav-bar {
  background: rgba(255,255,255,.85);
  border-bottom-color: rgba(0,0,0,.07);
}

/* ── Logo ────────────────────────────────────────────────────── */
.nav-logo {
  font-size: .95rem; font-weight: 800; letter-spacing: -.025em;
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.nav-logo:hover { opacity: .8; }

/* ── Desktop pill links ──────────────────────────────────────── */
.nav-links-ios {
  display: flex; align-items: center; gap: .15rem;
  flex: 1; overflow: hidden;
}
.nav-pill {
  display: inline-flex; align-items: center;
  padding: .35rem .75rem; border-radius: 100px;
  font-size: .82rem; font-weight: 500;
  color: rgba(255,255,255,.55); text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-pill:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.07); }
.nav-pill.active {
  color: #fff; font-weight: 600;
  background: rgba(255,255,255,.11);
}
[data-theme="light"] .nav-pill { color: rgba(0,0,0,.5); }
[data-theme="light"] .nav-pill:hover { color: rgba(0,0,0,.85); background: rgba(0,0,0,.06); }
[data-theme="light"] .nav-pill.active { color: #000; background: rgba(0,0,0,.09); }

/* ── Actions (theme toggle + hamburger) ──────────────────────── */
.nav-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; margin-left: auto; }

.theme-toggle {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(255,255,255,.12); }
[data-theme="light"] .theme-toggle { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.1); }
[data-theme="light"] .theme-toggle:hover { background: rgba(0,0,0,.1); }

/* hamburger */
.nav-toggle {
  display: none; /* hidden on desktop */
  width: 34px; height: 34px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%; cursor: pointer;
  align-items: center; justify-content: center;
  transition: background .15s;
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }
.nav-toggle .icon-hamburger { display: block; }
.nav-toggle .icon-close     { display: none; }
.nav-toggle[aria-expanded="true"] .icon-hamburger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close     { display: block; }
[data-theme="light"] .nav-toggle { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.1); }

/* ── Mobile slide-down sheet ─────────────────────────────────── */
.nav-sheet {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(9,9,11,.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: .5rem 1rem 1rem;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-sheet.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
[data-theme="light"] .nav-sheet { background: rgba(250,250,250,.97); border-bottom-color: rgba(0,0,0,.08); }

.nav-sheet-links { display: flex; flex-direction: column; gap: .1rem; }
.nav-sheet-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem .9rem; border-radius: 12px;
  font-size: .92rem; font-weight: 500;
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: background .12s, color .12s;
}
.nav-sheet-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-sheet-item.active { color: var(--accent); background: rgba(255,45,85,.07); }
.nav-sheet-item svg { opacity: .6; flex-shrink: 0; }
.nav-sheet-item.active svg { opacity: 1; }
[data-theme="light"] .nav-sheet-item { color: rgba(0,0,0,.6); }
[data-theme="light"] .nav-sheet-item:hover { background: rgba(0,0,0,.05); color: #000; }
[data-theme="light"] .nav-sheet-item.active { color: #00b060; background: rgba(255,45,85,.06); }

.nav-sheet-divider { height: 1px; background: rgba(255,255,255,.07); margin: .4rem .9rem; }
[data-theme="light"] .nav-sheet-divider { background: rgba(0,0,0,.07); }

.nav-backdrop {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.4); backdrop-filter: blur(2px);
}
.nav-backdrop.open { display: block; }

/* ── Sidebar: fix top offset (single nav now) ────────────────── */
.site-sidebar { top: 58px !important; height: calc(100svh - 58px) !important; }
@media (max-width: 640px) {
  .tab-strip { top: 58px; } /* keep fallback even though hidden */
  .site-sidebar { top: 58px !important; height: calc(100svh - 58px) !important; }
}

/* ── Responsive: show hamburger, hide desktop links ─────────── */
@media (max-width: 860px) {
  .nav-links-ios { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 861px) {
  .nav-sheet, .nav-backdrop { display: none !important; }
}

/* ══════════════════════════════
   ABOUT PAGE
══════════════════════════════ */

/* Hero */
.about-hero {
  display: flex; align-items: flex-start; gap: 1.5rem;
  margin-bottom: 2rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.about-avatar-wrap { flex-shrink: 0; }
.about-avatar-placeholder {
  width: 80px; height: 80px;
  background: rgba(255,45,85,.07);
  border: 1px solid rgba(255,45,85,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.about-hero-text { flex: 1; }
.about-name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; letter-spacing: -.03em;
  margin-bottom: .35rem;
}
.about-tagline {
  font-size: .95rem; color: var(--text-muted);
  margin-bottom: 1.1rem; line-height: 1.5;
}
.about-social-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.about-social-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border-radius: 100px;
  font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted); text-decoration: none;
  transition: background .13s, color .13s, border-color .13s;
}
.about-social-btn:hover {
  background: rgba(255,45,85,.08);
  border-color: rgba(255,45,85,.25);
  color: var(--accent);
}
.about-social-btn svg { flex-shrink: 0; }

/* Body text */
.about-section { margin-bottom: 2rem; }
.about-intro {
  display: grid;
  gap: .85rem;
}
.about-body {
  font-size: 1rem; color: var(--text-muted); line-height: 1.8;
  max-width: 680px;
  margin: 0;
}

/* Focus cards */
.about-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .75rem; margin-bottom: 2.5rem;
}
.about-card {
  padding: 1.2rem 1.25rem;
  border-radius: 14px;
  border-width: 1px; border-style: solid;
}
.about-card-green { background: rgba(255,45,85,.06); border-color: rgba(255,45,85,.2); }
.about-card-blue  { background: rgba(0,212,255,.05); border-color: rgba(0,212,255,.18); }
.about-card-purple{ background: rgba(157,78,221,.06); border-color: rgba(157,78,221,.22); }
.about-card-amber { background: rgba(255,210,63,.06); border-color: rgba(255,210,63,.22); }
.about-card-title {
  font-size: .92rem; font-weight: 700;
  margin-bottom: .5rem;
}
.about-card-green .about-card-title  { color: var(--accent); }
.about-card-blue  .about-card-title  { color: #ffd23f; }
.about-card-purple .about-card-title { color: #c084fc; }
.about-card-amber .about-card-title  { color: #ffd23f; }
.about-card-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* Hardware grid */
.about-section-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 1rem;
}
.about-hw-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem; margin-bottom: 2.5rem;
}
.about-hw-card {
  border-radius: 14px; padding: 1.15rem 1.2rem;
  border-width: 1px; border-style: solid;
}
.about-hw-purple { background: linear-gradient(135deg, rgba(139,92,246,.1),rgba(139,92,246,.03)); border-color: rgba(139,92,246,.3); }
.about-hw-green  { background: linear-gradient(135deg, rgba(255,45,85,.1), rgba(255,45,85,.03));  border-color: rgba(255,45,85,.35); }
.about-hw-blue   { background: linear-gradient(135deg, rgba(59,130,246,.1),rgba(59,130,246,.03)); border-color: rgba(59,130,246,.3); }
.about-hw-name { font-size: .92rem; font-weight: 700; margin-bottom: .3rem; }
.about-hw-purple .about-hw-name { color: #c4b5fd; }
.about-hw-green  .about-hw-name { color: var(--accent); }
.about-hw-blue   .about-hw-name { color: #93c5fd; }
.about-hw-os   { font-size: .75rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.about-hw-spec { font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.about-hw-role { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* CTA */
.about-cta {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(255,45,85,.08), rgba(0,212,255,.05));
  border: 1px solid rgba(255,45,85,.2);
  border-radius: 16px; margin-top: 1rem;
}
.about-cta-text { font-size: .95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.about-cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Mobile adjustments */
@media (max-width: 600px) {
  .about-hero { flex-direction: column; gap: 1rem; }
  .about-avatar-placeholder { width: 64px; height: 64px; }
  .about-cards, .about-hw-grid, .about-interest-grid { grid-template-columns: 1fr; }
  .about-cta-actions { flex-direction: column; }
  .about-cta-actions .btn { text-align: center; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════
   HOME PAGE
═══════════════════════════════════════════════════════════════ */

.home-main { display: flex; flex-direction: column; }

/* ── Hero ────────────────────────────────────────────────────── */
.home-hero {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(255,45,85,.14) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(0,212,255,.07) 0%, transparent 60%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.home-hero-inner { max-width: 680px; }

.home-badge {
  display: inline-flex; align-items: center;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,45,85,.08); border: 1px solid rgba(255,45,85,.2);
  padding: .3rem 1rem; border-radius: 100px;
  margin-bottom: 1.5rem;
}

.home-h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900; letter-spacing: -.04em; line-height: 1;
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1.1rem;
}

.home-sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: var(--text-muted); line-height: 1.7;
  max-width: 520px; margin: 0 auto 2rem;
}

.home-cta-row {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem;
}

.home-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem;
}
.home-chip {
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  color: var(--text-dim);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  padding: .25rem .65rem; border-radius: 100px;
}

/* ── Generic section wrapper ─────────────────────────────────── */
.home-section { padding: 3rem 1.5rem; }
.home-container { max-width: 1080px; margin: 0 auto; }
.home-section-label {
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
}
.home-section-header { margin-bottom: 1.75rem; }
.home-section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800; letter-spacing: -.03em;
}

/* ── Stats ───────────────────────────────────────────────────── */
.home-stats-section {
  background: rgba(255,45,85,.03);
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.05);
  border-radius: 16px; overflow: hidden;
}
.home-stat {
  background: var(--surface);
  padding: 1.75rem 1rem;
  text-align: center;
}
.home-stat .stat-value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900; letter-spacing: -.04em;
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: .35rem;
}
.home-stat .stat-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ── More link ───────────────────────────────────────────────── */
.home-more-link { margin-top: 2rem; text-align: center; }

/* ── Light mode ──────────────────────────────────────────────── */
[data-theme="light"] .home-hero {
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(0,200,100,.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(0,180,220,.06) 0%, transparent 60%);
  border-bottom-color: rgba(0,0,0,.06);
}
[data-theme="light"] .home-chip { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); color: rgba(0,0,0,.45); }
[data-theme="light"] .home-stats-section { background: rgba(0,0,0,.02); border-color: rgba(0,0,0,.06); }
[data-theme="light"] .home-stats-grid { background: rgba(0,0,0,.04); }
[data-theme="light"] .home-stat { background: #fafafa; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .home-hero { padding: 3.5rem 1.25rem 3rem; }
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .home-section { padding: 2rem 1.25rem; }
}
@media (max-width: 380px) {
  .home-stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   HOME PAGE — SCROLL HINT + COMMUNITY STRIP — Feb 2026
═══════════════════════════════════════════════════════════════ */

/* ── Hero scroll hint arrow ──────────────────────────────── */
.home-scroll-hint {
  position: absolute;
  bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.2);
  animation: scrollBounce 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .25; }
  50%       { transform: translateX(-50%) translateY(6px); opacity: .55; }
}
/* Make the hero position:relative so the hint can be absolute */
.home-hero { position: relative; }

[data-theme="light"] .home-scroll-hint { color: rgba(0,0,0,.2); }

/* ── Community / join strip ──────────────────────────────── */
.home-community-section {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 2.5rem; padding-bottom: 3rem;
}
.home-community-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, rgba(255,45,85,.07) 0%, rgba(0,212,255,.04) 100%);
  border: 1px solid rgba(255,45,85,.18);
  border-radius: 20px;
}
.home-community-title {
  font-size: 1.15rem; font-weight: 800; letter-spacing: -.025em;
  margin-bottom: .35rem;
}
.home-community-sub {
  font-size: .88rem; color: var(--text-muted); max-width: 500px; line-height: 1.6;
}
.home-community-actions {
  display: flex; align-items: center; gap: .65rem; flex-shrink: 0; flex-wrap: wrap;
}
.home-community-actions .btn {
  display: inline-flex; align-items: center; gap: .4rem;
}

[data-theme="light"] .home-community-inner {
  background: linear-gradient(135deg, rgba(0,200,100,.06) 0%, rgba(0,180,220,.03) 100%);
  border-color: rgba(0,160,80,.2);
}

@media (max-width: 640px) {
  .home-community-inner { flex-direction: column; align-items: flex-start; }
  .home-community-actions { width: 100%; }
  .home-community-actions .btn { flex: 1; justify-content: center; }
  .home-scroll-hint { display: none; } /* cramped on small hero */
}

/* ═══════════════════════════════════════════════════════════════
   NAV CONFLICT FIXES — Feb 2026
   Override old generic element-selector rules that bleed into
   the new iOS nav components.
═══════════════════════════════════════════════════════════════ */

/* Old: `header { position:fixed; background:…; backdrop-filter:… }`
   Override: header is sticky, background lives on .nav-bar only */
#header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Old: `nav { justify-content:space-between; padding:1.25rem 0 }`
   These bleed into .nav-links-ios and .nav-sheet-links */
nav.nav-links-ios {
  justify-content: flex-start !important;
  padding: 0 !important;
}
nav.nav-sheet-links {
  justify-content: flex-start !important;
  align-items: stretch !important;
  padding: 0 !important;
}

/* Old @media rules force .nav-toggle visible at wrong breakpoints.
   Re-declare baseline: hidden on desktop, visible on mobile */
.nav-toggle {
  display: none !important;
}
@media (max-width: 860px) {
  .nav-toggle { display: flex !important; }
  nav.nav-links-ios { display: none !important; }
}
@media (min-width: 861px) {
  .nav-toggle { display: none !important; }
  nav.nav-links-ios { display: flex !important; }
  .nav-sheet, .nav-backdrop { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   AUDIT FIXES — Feb 2026
═══════════════════════════════════════════════════════════════ */

/* Fix: category badge stretches full-width inside flex-column post-card-body */
.post-card-cat {
  align-self: flex-start !important;
  width: fit-content !important;
}

/* Fix: home-section browse-card label same treatment */
.browse-card-title, .browse-card-desc { align-self: auto; }

/* ==========================================================================
   The Doc Lab homepage overhaul - May 2026
   ========================================================================== */

:root {
  --lab-bg: #050807;
  --lab-bg-soft: #09110d;
  --lab-surface: #0d1812;
  --lab-panel: #132119;
  --lab-panel-strong: #17291f;
  --lab-line: rgba(177, 210, 184, .16);
  --lab-line-strong: rgba(85, 255, 169, .28);
  --lab-text: #f2f7ef;
  --lab-muted: #adbbb2;
  --lab-dim: #728077;
  --lab-green: #ff3b5c;
  --lab-cyan: #77d5ff;
  --lab-amber: #ffc857;
  --lab-red: #ff6b6b;
  --lab-radius: 18px;
  --lab-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

body.home {
  background: var(--lab-bg);
}

.doclab-redesign {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 45, 85, .05) 0%, rgba(5, 8, 7, 0) 34rem),
    linear-gradient(135deg, #050807 0%, #07100c 48%, #050807 100%);
  color: var(--lab-text);
  isolation: isolate;
}

.doclab-redesign::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 45% at 52% 0%, rgba(255, 45, 85, .14), transparent 65%),
    radial-gradient(ellipse 60% 45% at 100% 34%, rgba(119, 213, 255, .08), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, black 58%, transparent 100%);
}

.doclab-redesign .lab-hero,
.doclab-redesign .lab-section {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.lab-hero {
  min-height: calc(100dvh - 72px);
  padding: clamp(4rem, 7vw, 7rem) clamp(1rem, 3vw, 2rem) 2rem;
  border-bottom: 1px solid var(--lab-line);
}

.lab-hero-grid,
.lab-section,
.lab-proof-strip {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.lab-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .78fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.lab-hero-copy {
  max-width: 760px;
}

.lab-kicker,
.lab-feature-label {
  margin: 0 0 .75rem;
  color: var(--lab-green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lab-title {
  margin: 0;
  color: var(--lab-text);
  font-size: clamp(4.3rem, 12vw, 10.5rem);
  line-height: .9;
  letter-spacing: 0;
  text-wrap: balance;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.lab-subtitle {
  margin: 1.35rem 0 0;
  max-width: 62ch;
  color: var(--lab-muted);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.lab-actions,
.home-community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.75rem;
}

.lab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .8rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--lab-line);
  color: var(--lab-text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.lab-button:hover,
.lab-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--lab-line-strong);
}

.lab-button-primary {
  background: #eaf8ef;
  color: #07110c;
  border-color: #eaf8ef;
}

.lab-button-secondary {
  background: rgba(255,255,255,.045);
}

.lab-button-admin {
  border-color: rgba(255, 200, 87, .34);
  background: rgba(255, 200, 87, .08);
  color: var(--lab-amber);
}

.lab-console {
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: linear-gradient(180deg, rgba(19, 33, 25, .88), rgba(8, 15, 11, .94));
  box-shadow: var(--lab-shadow);
  overflow: hidden;
}

.lab-console-top {
  display: grid;
  grid-template-columns: 10px 10px 10px 1fr;
  gap: .55rem;
  align-items: center;
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--lab-line);
  color: var(--lab-dim);
  font-size: .78rem;
}

.lab-console-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--lab-green);
}

.lab-console-top span:nth-child(2) { background: var(--lab-amber); }
.lab-console-top span:nth-child(3) { background: var(--lab-red); }
.lab-console-top strong { justify-self: end; font-weight: 700; }

.lab-console-body {
  padding: 1rem;
}

.lab-console-row {
  display: grid;
  grid-template-columns: 6.8rem 1fr;
  gap: 1rem;
  padding: .82rem 0;
  border-bottom: 1px solid rgba(177, 210, 184, .11);
  color: var(--lab-muted);
  font-size: .9rem;
}

.lab-console-row span {
  color: var(--lab-dim);
}

.lab-console-row strong {
  color: var(--lab-text);
  font-weight: 760;
}

.lab-console-command {
  display: block;
  margin-top: .55rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 45, 85, .22);
  border-radius: 12px;
  background: rgba(255, 45, 85, .06);
  color: var(--lab-green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.lab-proof-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.2rem, 5vw, 5rem);
  overflow: hidden;
  border: 1px solid var(--lab-line);
  border-radius: 16px;
  background: var(--lab-line);
}

.lab-proof-strip span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .85rem;
  background: rgba(13, 24, 18, .78);
  color: var(--lab-muted);
  font-size: .82rem;
  font-weight: 750;
  text-align: center;
}

.lab-section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.lab-section-head {
  display: grid;
  gap: .7rem;
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.lab-section-head h2,
.lab-dashboard-card h2,
.home-community-title {
  margin: 0;
  color: var(--lab-text);
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.lab-section-head p,
.home-community-sub {
  margin: 0;
  color: var(--lab-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.lab-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lab-feature-card,
.lab-dashboard-card,
.lab-community-inner {
  position: relative;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: linear-gradient(180deg, rgba(19, 33, 25, .9), rgba(9, 17, 13, .94));
  box-shadow: 0 18px 52px rgba(0, 0, 0, .24);
}

.lab-feature-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.lab-feature-card:hover,
.lab-feature-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--lab-line-strong);
  background: linear-gradient(180deg, rgba(25, 45, 34, .96), rgba(10, 19, 14, .98));
}

.lab-feature-card h3 {
  margin: 0;
  color: var(--lab-text);
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.lab-feature-card p {
  margin: .8rem 0 1.2rem;
  color: var(--lab-muted);
  line-height: 1.65;
}

.lab-feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: auto;
}

.lab-feature-meta span {
  padding: .38rem .55rem;
  border: 1px solid rgba(177, 210, 184, .14);
  border-radius: 999px;
  color: var(--lab-muted);
  font-size: .72rem;
  font-weight: 750;
}

.lab-personal-grid {
  display: grid;
  grid-template-columns: 1.3fr .85fr .85fr .85fr;
  gap: 1rem;
}

.lab-personal-panel {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background:
    linear-gradient(180deg, rgba(19, 33, 25, .18), rgba(5, 8, 7, .94)),
    linear-gradient(135deg, rgba(255, 45, 85, .12), rgba(119, 213, 255, .05));
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.lab-personal-panel:hover,
.lab-personal-panel:focus-visible {
  transform: translateY(-4px);
  border-color: var(--lab-line-strong);
}

.lab-personal-panel span,
.photo-kicker,
.photo-card-meta,
.photo-album-card span {
  color: var(--lab-green);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lab-personal-panel h3 {
  margin: .45rem 0 .55rem;
  color: var(--lab-text);
  font-size: clamp(1.45rem, 2.8vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.lab-personal-panel p {
  margin: 0;
  max-width: 46ch;
  color: var(--lab-muted);
  line-height: 1.55;
}

.lab-personal-feature {
  min-height: 360px;
  background:
    linear-gradient(180deg, rgba(8, 15, 11, .08), rgba(5, 8, 7, .96)),
    radial-gradient(ellipse 85% 75% at 10% 0%, rgba(255, 45, 85, .18), transparent 70%),
    linear-gradient(135deg, rgba(119, 213, 255, .11), rgba(255, 45, 85, .08));
}

.lab-browse-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .85rem;
}

.lab-browse-grid .browse-card {
  min-height: 192px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--lab-line) !important;
  border-radius: 16px;
  background: rgba(13, 24, 18, .68);
}

.lab-browse-grid .browse-card:hover,
.lab-browse-grid .browse-card:focus-visible {
  border-color: var(--lab-line-strong) !important;
}

.lab-browse-grid .browse-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 45, 85, .1);
  color: var(--lab-green);
  font-size: .78rem;
  font-weight: 900;
}

.lab-browse-grid .browse-card-title {
  color: var(--lab-text);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.lab-browse-grid .browse-card-desc {
  margin-top: .35rem;
  color: var(--lab-muted);
  line-height: 1.55;
}

.lab-dashboard-card,
.lab-community-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.lab-stat-grid {
  border: 1px solid var(--lab-line);
  border-radius: 16px;
  background: rgba(177, 210, 184, .1);
}

.lab-stat-grid .home-stat {
  background: rgba(5, 8, 7, .45);
}

.lab-stat-grid .stat-value {
  color: var(--lab-text);
  background: none;
  -webkit-text-fill-color: currentColor;
  letter-spacing: 0;
}

.lab-stat-grid .stat-label {
  color: var(--lab-muted);
  letter-spacing: 0;
}

.lab-latest-head {
  grid-template-columns: 1fr auto;
  align-items: end;
  max-width: none;
}

.lab-text-link {
  color: var(--lab-green);
  font-weight: 850;
  text-decoration: none;
}

.lab-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lab-posts-grid .post-card {
  border: 1px solid var(--lab-line);
  border-radius: 16px;
  background: rgba(13, 24, 18, .72);
}

.lab-posts-grid .post-card-title {
  letter-spacing: 0;
}

.lab-posts-grid .post-card-title a {
  color: var(--lab-text);
}

.lab-posts-grid .post-card-excerpt,
.lab-posts-grid .post-card-meta {
  color: var(--lab-muted);
}

.lab-community {
  padding-bottom: clamp(3rem, 7vw, 7rem);
}

.lab-community-inner {
  grid-template-columns: minmax(0, 1fr) auto;
}

.lab-community-inner .home-community-actions {
  justify-content: flex-end;
  margin-top: 0;
}

[data-theme="light"] .doclab-redesign {
  --lab-bg: #f3f7f1;
  --lab-bg-soft: #eaf1eb;
  --lab-surface: #ffffff;
  --lab-panel: #ffffff;
  --lab-panel-strong: #f6faf6;
  --lab-line: rgba(21, 54, 34, .14);
  --lab-line-strong: rgba(0, 132, 77, .28);
  --lab-text: #102016;
  --lab-muted: #4f6356;
  --lab-dim: #708176;
  background:
    linear-gradient(180deg, rgba(0, 132, 77, .08) 0%, rgba(243, 247, 241, 0) 34rem),
    #f3f7f1;
}

[data-theme="light"] .lab-button-primary {
  background: #102016;
  color: #f6fbf5;
  border-color: #102016;
}

[data-theme="light"] .lab-proof-strip span,
[data-theme="light"] .lab-stat-grid .home-stat {
  background: rgba(255, 255, 255, .72);
}

@media (max-width: 960px) {
  .lab-hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .lab-hero-grid,
  .lab-dashboard-card,
  .lab-community-inner {
    grid-template-columns: 1fr;
  }

  .lab-feature-grid,
  .lab-posts-grid,
  .lab-personal-grid {
    grid-template-columns: 1fr;
  }

  .lab-browse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-community-inner .home-community-actions {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Social link hub
   ========================================================================== */

.link-hub {
  min-height: 100dvh;
  width: min(780px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
  color: var(--lab-text);
}

.link-hub-hero {
  margin-bottom: 1.4rem;
}

.link-kicker {
  margin: 0 0 .7rem;
  color: var(--lab-green);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.link-hub-hero h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--lab-text);
  font-size: clamp(3.4rem, 10vw, 6.6rem);
  line-height: .92;
  letter-spacing: 0;
}

.link-hub-hero p {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--lab-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.link-hub-grid {
  display: grid;
  gap: .85rem;
}

.link-card {
  display: grid;
  gap: .5rem;
  padding: 1.05rem;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: rgba(13, 24, 18, .72);
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--lab-line-strong);
  background: rgba(19, 33, 25, .92);
}

.link-card span {
  color: var(--lab-green);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.link-card strong {
  color: var(--lab-text);
  font-size: clamp(1.4rem, 4vw, 2.25rem);
  line-height: 1.05;
}

.link-card p {
  margin: 0;
  color: var(--lab-muted);
  line-height: 1.55;
}

.link-card-primary {
  min-height: 220px;
  justify-content: end;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, .12), rgba(5, 8, 7, .96)),
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255, 200, 87, .22), transparent 70%),
    radial-gradient(ellipse 75% 70% at 100% 100%, rgba(255, 45, 85, .14), transparent 70%);
}

.link-card-primary span {
  color: var(--lab-amber);
}

.link-hub-stack {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}

.link-hub-stack a,
.link-hub-admin a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lab-line);
  border-radius: 13px;
  background: rgba(255,255,255,.045);
  color: var(--lab-text);
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.link-hub-stack a:hover,
.link-hub-stack a:focus-visible,
.link-hub-admin a:hover,
.link-hub-admin a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--lab-line-strong);
}

.link-hub-admin {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(255, 200, 87, .28);
  border-radius: var(--lab-radius);
  background: rgba(255, 200, 87, .07);
}

.link-hub-admin div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}

@media (max-width: 640px) {
  .link-hub {
    width: min(100% - 1.25rem, 780px);
    padding-top: 4.5rem;
  }

  .link-hub-admin div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lab-hero,
  .lab-section {
    width: auto;
  }

  .lab-hero-grid,
  .lab-section,
  .lab-proof-strip {
    width: min(100% - 1.25rem, 1160px);
  }

  .lab-title {
    font-size: clamp(3.6rem, 18vw, 5rem);
  }

  .lab-actions,
  .home-community-actions {
    width: 100%;
  }

  .lab-button {
    width: 100%;
  }

  .lab-console-row {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .lab-proof-strip,
  .lab-browse-grid {
    grid-template-columns: 1fr;
  }

  .lab-proof-strip span {
    justify-content: flex-start;
  }

  .lab-latest-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ==========================================================================
   Photography journal and weekly albums
   ========================================================================== */

.photo-journal {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 82% 34% at 18% 0%, rgba(255, 45, 85, .11), transparent 70%),
    linear-gradient(180deg, #050807 0%, #09110d 48%, #050807 100%);
  color: var(--lab-text);
}

.photo-hero,
.photo-section {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.photo-hero {
  min-height: calc(88dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .58fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  padding: clamp(5rem, 8vw, 8rem) 0 clamp(2rem, 5vw, 4rem);
}

.photo-hero h1 {
  max-width: 8ch;
  margin: 0;
  color: var(--lab-text);
  font-size: clamp(4rem, 10vw, 8.8rem);
  line-height: .9;
  letter-spacing: 0;
}

.photo-hero p {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  color: var(--lab-muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.68;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
}

.photo-guide {
  padding: 1.2rem;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: linear-gradient(180deg, rgba(19, 33, 25, .9), rgba(8, 15, 11, .94));
  box-shadow: var(--lab-shadow);
}

.photo-guide span {
  display: block;
  margin-bottom: .9rem;
  color: var(--lab-green);
  font-size: .75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.photo-guide ol {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--lab-muted);
  line-height: 1.55;
}

.photo-section {
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.photo-section-head {
  max-width: 760px;
  margin-bottom: 1.3rem;
}

.photo-section-head h2 {
  margin: 0;
  color: var(--lab-text);
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.photo-section-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.photo-section-row > span {
  color: var(--lab-muted);
  font-weight: 800;
}

.photo-album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.photo-album-card,
.photo-empty {
  border: 1px solid var(--lab-line);
  border-radius: 16px;
  background: rgba(13, 24, 18, .72);
}

.photo-album-card {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease;
}

.photo-album-card:hover,
.photo-album-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--lab-line-strong);
}

.photo-album-card strong {
  margin-top: .5rem;
  color: var(--lab-text);
  font-size: 1.18rem;
  line-height: 1.1;
}

.photo-album-card p {
  margin: .55rem 0 0;
  color: var(--lab-muted);
  line-height: 1.5;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.photo-card {
  overflow: hidden;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: rgba(13, 24, 18, .76);
}

.photo-card-media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 45, 85, .08);
  color: var(--lab-green);
  text-decoration: none;
  font-weight: 900;
}

.photo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .32s ease;
}

.photo-card:hover .photo-card-media img {
  transform: scale(1.035);
}

.photo-card-body {
  padding: 1rem;
}

.photo-card-meta {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: .55rem;
}

.photo-card h3 {
  margin: 0;
  color: var(--lab-text);
  font-size: 1.2rem;
  letter-spacing: 0;
}

.photo-card h3 a {
  color: inherit;
  text-decoration: none;
}

.photo-card p,
.photo-card-details,
.gallery-meta-strip {
  color: var(--lab-muted);
  line-height: 1.55;
}

.photo-card-details,
.gallery-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .85rem;
}

.photo-card-details span,
.gallery-meta-strip span {
  padding: .36rem .5rem;
  border: 1px solid rgba(177, 210, 184, .14);
  border-radius: 999px;
  font-size: .72rem;
}

.photo-empty {
  padding: 1.35rem;
  color: var(--lab-muted);
}

.photo-empty h3 {
  margin: 0 0 .55rem;
  color: var(--lab-text);
  font-size: 1.35rem;
}

.photo-empty-large {
  padding: clamp(1.35rem, 4vw, 2rem);
}

[data-theme="light"] .photo-journal {
  background:
    radial-gradient(ellipse 82% 34% at 18% 0%, rgba(0, 132, 77, .1), transparent 70%),
    #f3f7f1;
}

@media (max-width: 960px) {
  .photo-hero,
  .photo-grid,
  .photo-album-grid {
    grid-template-columns: 1fr;
  }

  .photo-hero {
    min-height: auto;
    align-items: start;
    padding-top: 4.5rem;
  }
}

@media (max-width: 640px) {
  .photo-hero,
  .photo-section {
    width: min(100% - 1.25rem, 1160px);
  }
}

/* ==========================================================================
   Doc Lab hacker-lab expansion
   ========================================================================== */

body {
  background:
    radial-gradient(ellipse 70% 28% at 16% 0%, rgba(255, 45, 85, .1), transparent 72%),
    radial-gradient(ellipse 62% 26% at 100% 12%, rgba(255, 0, 76, .07), transparent 70%),
    #020403;
}

.doclab-redesign {
  background:
    linear-gradient(180deg, rgba(255, 45, 85, .07) 0%, rgba(2, 4, 3, 0) 34rem),
    linear-gradient(135deg, #020403 0%, #041009 46%, #070207 100%);
}

.doclab-redesign::before,
.photo-journal::before,
.now-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(255, 45, 85, .06), transparent 24%, rgba(255, 0, 76, .05));
  opacity: .32;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.lab-title {
  max-width: 8ch;
  text-shadow: 0 0 28px rgba(255, 45, 85, .16);
}

.lab-console,
.now-terminal,
.link-card,
.photo-card,
.photo-album-card,
.lab-track-card {
  box-shadow:
    inset 0 0 0 1px rgba(255, 45, 85, .035),
    0 24px 90px rgba(0, 0, 0, .42);
}

.lab-identity {
  border-bottom: 1px solid var(--lab-line);
}

.lab-track-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1rem;
}

.lab-track-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background:
    linear-gradient(180deg, rgba(5, 8, 7, .05), rgba(5, 8, 7, .94)),
    radial-gradient(ellipse 72% 58% at 0% 0%, rgba(255, 45, 85, .14), transparent 70%);
}

.lab-track-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(5, 8, 7, .08), rgba(5, 8, 7, .94)),
    radial-gradient(ellipse 74% 58% at 100% 0%, rgba(119, 213, 255, .14), transparent 70%);
}

.lab-track-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(5, 8, 7, .08), rgba(5, 8, 7, .94)),
    radial-gradient(ellipse 74% 58% at 100% 0%, rgba(255, 0, 76, .12), transparent 70%);
}

.lab-track-card span {
  color: var(--lab-green);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lab-track-card h3 {
  margin: .55rem 0 .65rem;
  color: var(--lab-text);
  font-size: clamp(1.55rem, 3vw, 3rem);
  line-height: 1;
}

.lab-track-card p {
  margin: 0;
  color: var(--lab-muted);
  line-height: 1.6;
}

.lab-personal-grid {
  grid-template-columns: 1.25fr repeat(4, minmax(0, 1fr));
}

.about-learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 2rem;
}

.about-interest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 2.4rem;
}

.about-interest-card {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid rgba(255, 45, 85, .2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 45, 85, .055), rgba(255, 210, 63, .025)),
    var(--bg-secondary);
}

.about-interest-card span {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  font-weight: 800;
}

.about-interest-card strong {
  display: block;
  margin: 1.3rem 0 .5rem;
  color: var(--text);
  font-size: 1rem;
}

.about-interest-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.55;
}

.about-learning-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border: 1px solid rgba(255, 45, 85, .18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 45, 85, .05), rgba(0, 0, 0, .12)),
    var(--bg-secondary);
}

.about-learning-card span {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  font-weight: 800;
}

.about-learning-card strong {
  margin: .45rem 0 .5rem;
  color: var(--text);
  font-size: 1.1rem;
}

.about-learning-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.now-page {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  padding: clamp(5rem, 8vw, 7rem) clamp(1rem, 3vw, 2rem) clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(ellipse 72% 35% at 18% 0%, rgba(255, 45, 85, .15), transparent 72%),
    radial-gradient(ellipse 62% 32% at 100% 22%, rgba(255, 0, 76, .09), transparent 74%),
    linear-gradient(135deg, #020403 0%, #06140c 52%, #060206 100%);
  color: var(--lab-text);
  isolation: isolate;
}

.now-hero,
.now-grid,
.now-terminal,
.now-actions {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.now-hero {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.now-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--lab-text);
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: .92;
}

.now-hero p {
  max-width: 66ch;
  margin: 1.25rem 0 0;
  color: var(--lab-muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.now-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
}

.now-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: rgba(13, 24, 18, .74);
}

.now-card-large {
  grid-row: span 2;
  min-height: 560px;
  background:
    linear-gradient(180deg, rgba(5, 8, 7, .1), rgba(5, 8, 7, .96)),
    radial-gradient(ellipse 80% 62% at 0% 0%, rgba(255, 45, 85, .18), transparent 70%);
}

.now-card span {
  color: var(--lab-green);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.now-card h2 {
  margin: .5rem 0 .65rem;
  color: var(--lab-text);
  font-size: clamp(1.55rem, 3vw, 3.2rem);
  line-height: 1;
}

.now-card p {
  margin: 0;
  color: var(--lab-muted);
  line-height: 1.65;
}

.now-terminal {
  margin-top: 1rem;
  border: 1px solid var(--lab-line);
  border-radius: var(--lab-radius);
  background: rgba(0, 0, 0, .42);
  overflow: hidden;
}

.now-terminal-body {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
}

.now-terminal-body p {
  margin: 0;
  color: var(--lab-muted);
}

.now-terminal-body strong {
  color: var(--lab-green);
}

.now-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.25rem;
}

@media (max-width: 1100px) {
  .lab-personal-grid,
  .lab-track-grid,
  .about-learning-grid {
    grid-template-columns: 1fr;
  }

  .about-interest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .now-grid {
    grid-template-columns: 1fr;
  }

  .now-card-large {
    grid-row: auto;
    min-height: 320px;
  }

  .now-actions .lab-button {
    width: 100%;
  }
}

  .photo-hero h1 {
    font-size: clamp(3.4rem, 17vw, 4.8rem);
  }

  .photo-section-row {
    display: grid;
    align-items: start;
  }

  .photo-actions,
  .photo-actions .lab-button {
    width: 100%;
  }
}

/* Personal field notes blog */
.blog-journal {
  --journal-ink: #f4f0e6;
  --journal-muted: #b9b19f;
  --journal-amber: #f2b75b;
  --journal-teal: #71d6c2;
  --journal-red: #e46f5c;
  background:
    radial-gradient(ellipse 68% 36% at 22% 0%, rgba(242, 183, 91, .15), transparent 72%),
    radial-gradient(ellipse 56% 28% at 86% 8%, rgba(113, 214, 194, .12), transparent 74%),
    #080b09;
}

.blog-hero,
.blog-lanes,
.blog-featured,
.blog-posts-section {
  width: min(100% - 2rem, 1160px);
  margin: 0 auto;
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.blog-hero {
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .55fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
}

.blog-hero h1 {
  max-width: 9ch;
  margin: .4rem 0 0;
  color: var(--journal-ink);
  font-size: clamp(4rem, 10.5vw, 9rem);
  line-height: .88;
  letter-spacing: 0;
}

.blog-hero p {
  max-width: 68ch;
  margin: 1.35rem 0 0;
  color: var(--journal-muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.blog-hero-actions,
.blog-section-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}

.blog-hero-actions {
  margin-top: 1.65rem;
}

.blog-hero-panel {
  padding: clamp(1.1rem, 3vw, 1.55rem);
  border: 1px solid rgba(242, 183, 91, .22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(33, 26, 18, .92), rgba(9, 16, 13, .95)),
    rgba(14, 20, 16, .92);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .28);
}

.blog-hero-panel span,
.blog-section-head .lab-eyebrow {
  color: var(--journal-amber);
}

.blog-hero-panel strong {
  display: block;
  color: var(--journal-ink);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.blog-command-strip {
  width: min(100% - 2rem, 1160px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
}

.blog-command-strip div {
  padding: 1rem;
  border-top: 1px solid rgba(242, 183, 91, .24);
  background: rgba(13, 19, 16, .58);
}

.blog-command-strip span {
  display: block;
  color: var(--journal-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.blog-command-strip p {
  margin: .35rem 0 0;
  color: var(--journal-muted);
  font-weight: 800;
}

.blog-lanes,
.blog-featured,
.blog-posts-section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.blog-section-head {
  max-width: 760px;
  margin-bottom: 1.2rem;
}

.blog-section-head h2 {
  margin: .35rem 0 0;
  color: var(--journal-ink);
  font-size: clamp(2.15rem, 4.8vw, 4.5rem);
  line-height: .98;
  letter-spacing: 0;
}

.blog-section-row {
  max-width: none;
  justify-content: space-between;
}

.blog-lane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

.blog-lane-card {
  min-height: 205px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border: 1px solid rgba(177, 210, 184, .14);
  border-radius: 16px;
  background: rgba(13, 19, 16, .72);
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.blog-lane-card:hover,
.blog-lane-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(242, 183, 91, .34);
  background: rgba(23, 24, 18, .88);
}

.lane-dot {
  width: .55rem;
  height: .55rem;
  display: inline-flex;
  border-radius: 999px;
  background: var(--journal-amber);
  box-shadow: 0 0 0 4px rgba(242, 183, 91, .12);
}

.blog-lane-card strong {
  margin-top: .85rem;
  color: var(--journal-ink);
  font-size: 1.35rem;
  line-height: 1.05;
}

.blog-lane-card p {
  margin: .65rem 0 0;
  color: var(--journal-muted);
  line-height: 1.55;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, .55fr);
  gap: 1rem;
  align-items: stretch;
  border: 1px solid rgba(242, 183, 91, .18);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(31, 27, 19, .88), rgba(8, 14, 12, .92));
  overflow: hidden;
}

.blog-featured-copy {
  padding: clamp(1.1rem, 4vw, 2rem);
}

.blog-featured-copy h2 {
  margin: .8rem 0 0;
  color: var(--journal-ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.blog-featured-copy h2 a,
.blog-post-row-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-featured-copy p,
.blog-post-row-copy p {
  color: var(--journal-muted);
  line-height: 1.65;
}

.blog-featured-media {
  min-height: 320px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(242, 183, 91, .18), rgba(113, 214, 194, .12)),
    rgba(13, 19, 16, .9);
  color: var(--journal-amber);
  font-weight: 950;
  text-decoration: none;
}

.blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-list {
  display: grid;
  gap: .8rem;
}

.blog-post-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(177, 210, 184, .12);
  border-radius: 16px;
  background: rgba(13, 19, 16, .64);
}

.blog-post-date {
  min-height: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(242, 183, 91, .22);
  border-radius: 14px;
  background: rgba(242, 183, 91, .08);
}

.blog-post-date span,
.blog-post-date strong {
  display: block;
  color: var(--journal-ink);
  line-height: 1;
}

.blog-post-date span {
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-post-date strong {
  margin-top: .2rem;
  font-size: 1.7rem;
}

.blog-post-row-copy h3 {
  margin: .35rem 0 0;
  color: var(--journal-ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.blog-post-row-copy p {
  margin: .55rem 0 0;
}

.blog-post-open {
  min-width: 74px;
  display: inline-flex;
  justify-content: center;
  padding: .7rem .9rem;
  border: 1px solid rgba(242, 183, 91, .26);
  border-radius: 999px;
  color: var(--journal-ink);
  text-decoration: none;
  font-weight: 900;
}

.field-note-header {
  border: 1px solid rgba(242, 183, 91, .18);
  border-radius: 20px;
  padding: clamp(1.15rem, 4vw, 2rem);
  background: linear-gradient(135deg, rgba(31, 27, 19, .82), rgba(8, 14, 12, .9));
}

.field-note-kicker {
  max-width: 68ch;
  margin: .85rem 0 0;
  color: var(--journal-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.post-return-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(177, 210, 184, .14);
}

.post-return-strip a {
  padding: .68rem .9rem;
  border: 1px solid rgba(177, 210, 184, .14);
  border-radius: 999px;
  color: var(--journal-ink);
  text-decoration: none;
  font-weight: 850;
}

[data-theme="light"] .blog-journal {
  background:
    radial-gradient(ellipse 72% 34% at 18% 0%, rgba(181, 105, 22, .11), transparent 70%),
    radial-gradient(ellipse 56% 26% at 88% 6%, rgba(0, 121, 108, .1), transparent 72%),
    #f6f3eb;
}

@media (max-width: 960px) {
  .blog-hero,
  .blog-featured-card {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    min-height: auto;
    align-items: start;
    padding-top: 4.5rem;
  }

  .blog-lane-grid,
  .blog-command-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .blog-hero,
  .blog-lanes,
  .blog-featured,
  .blog-posts-section,
  .blog-command-strip {
    width: min(100% - 1.25rem, 1160px);
  }

  .blog-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .blog-hero-actions,
  .blog-hero-actions .lab-button,
  .blog-section-row,
  .blog-section-row .lab-button {
    width: 100%;
  }

  .blog-section-row {
    align-items: stretch;
  }

  .blog-post-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .blog-post-open {
    grid-column: 1 / -1;
  }
}

/* Terminal pass: stronger computer journal direction */
:root {
  --lab-terminal: #9cff78;
  --lab-cyan-soft: #59d8c5;
}

.doclab-redesign,
.blog-journal {
  background:
    repeating-linear-gradient(to bottom, rgba(156, 255, 120, .026) 0 1px, transparent 1px 8px),
    radial-gradient(ellipse 70% 34% at 18% 0%, rgba(255, 45, 85, .13), transparent 70%),
    radial-gradient(ellipse 58% 28% at 90% 10%, rgba(89, 216, 197, .09), transparent 72%),
    linear-gradient(135deg, #050807 0%, #07100c 48%, #050807 100%);
}

.doclab-redesign::before {
  background:
    repeating-linear-gradient(to bottom, rgba(156, 255, 120, .05) 0 1px, transparent 1px 9px),
    radial-gradient(ellipse 80% 45% at 52% 0%, rgba(255, 45, 85, .12), transparent 65%),
    radial-gradient(ellipse 60% 45% at 100% 34%, rgba(89, 216, 197, .08), transparent 70%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, auto, auto, 72px 72px, 72px 72px;
}

.lab-console,
.lab-status-card,
.blog-hero-panel,
.blog-featured-card,
.field-note-header {
  background:
    linear-gradient(180deg, rgba(6, 18, 10, .94), rgba(4, 9, 7, .98)),
    repeating-linear-gradient(to bottom, rgba(156, 255, 120, .06), rgba(156, 255, 120, .06) 1px, transparent 1px, transparent 9px);
  border-color: rgba(156, 255, 120, .22);
}

.lab-console-command,
.blog-hero-panel span,
.blog-section-head .lab-eyebrow,
.lab-status-state {
  color: var(--lab-terminal);
}

.lab-status-notes {
  border-top: 1px solid var(--lab-line);
}

/* ==========================================================================
   Red terminal homepage pass
   ========================================================================== */

:root {
  --robot-green: #ff2d55;
  --robot-lime: #f4eee4;
  --robot-red: #ff2d55;
  --robot-gold: #ffd23f;
  --robot-black: #030604;
}

.home .nav-logo {
  color: var(--robot-lime);
  text-shadow: 0 0 22px rgba(255, 45, 85, .36);
}

.doclab-redesign {
  background:
    repeating-linear-gradient(to bottom, rgba(244, 238, 228, .035) 0 1px, transparent 1px 7px),
    radial-gradient(ellipse 80% 36% at 14% 0%, rgba(255, 45, 85, .32), transparent 70%),
    radial-gradient(ellipse 58% 30% at 100% 12%, rgba(255, 45, 85, .22), transparent 72%),
    radial-gradient(ellipse 60% 42% at 66% 95%, rgba(255, 210, 63, .1), transparent 72%),
    linear-gradient(135deg, #020403 0%, #06110a 46%, #0d0306 100%);
}

.doclab-redesign::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 238, 228, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 238, 228, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .28;
  mask-image: linear-gradient(to bottom, black 0%, transparent 62%);
}

.lab-hero {
  position: relative;
  border-bottom-color: rgba(244, 238, 228, .22);
}

.lab-hero::before {
  content: "RED TERMINAL // BUILD IN PUBLIC";
  position: absolute;
  left: max(1rem, calc((100vw - 1160px) / 2));
  right: max(1rem, calc((100vw - 1160px) / 2));
  top: 1.2rem;
  padding: .6rem .75rem;
  border: 1px solid rgba(244, 238, 228, .24);
  border-radius: 12px;
  color: rgba(244, 238, 228, .82);
  background: rgba(3, 6, 4, .72);
  font: 800 .72rem/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-align: center;
}

.lab-kicker-alert {
  width: fit-content;
  padding: .55rem .75rem;
  border: 1px solid rgba(244, 238, 228, .36);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 85, .18);
  border-radius: 10px;
  background: rgba(255, 45, 85, .13);
  color: var(--robot-lime);
}

.lab-title {
  max-width: 10ch;
  color: #f6fff0;
  text-shadow:
    0 0 24px rgba(244, 238, 228, .24),
    0 0 70px rgba(255, 45, 85, .16);
}

.lab-subtitle {
  color: #d9ead7;
}

.lab-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.1rem;
}

.lab-signal-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .45rem .7rem;
  border: 1px solid rgba(244, 238, 228, .25);
  border-radius: 9px;
  background: rgba(3, 6, 4, .62);
  color: var(--robot-lime);
  font-size: .78rem;
  font-weight: 850;
}

.lab-signal-row span:nth-child(2) {
  color: #ffd7df;
  border-color: rgba(255, 45, 85, .32);
  background: rgba(255, 45, 85, .1);
}

.lab-signal-row span:nth-child(3) {
  color: #fff1ac;
  border-color: rgba(255, 210, 63, .3);
  background: rgba(255, 210, 63, .08);
}

.lab-button-primary {
  background: linear-gradient(135deg, var(--robot-lime), var(--robot-green));
  border-color: rgba(244, 238, 228, .88);
  color: #020403;
  box-shadow: 0 14px 42px rgba(255, 45, 85, .24);
}

.lab-button-secondary {
  border-color: rgba(244, 238, 228, .18);
  background: rgba(3, 6, 4, .58);
}

.lab-console {
  border-color: rgba(244, 238, 228, .26);
  background:
    linear-gradient(180deg, rgba(7, 24, 10, .92), rgba(4, 7, 5, .98)),
    repeating-linear-gradient(to bottom, rgba(244, 238, 228, .06) 0 1px, transparent 1px 8px);
}

.lab-console-top {
  color: var(--robot-lime);
  border-bottom-color: rgba(244, 238, 228, .2);
}

.lab-console-command {
  border-color: rgba(244, 238, 228, .32);
  background: rgba(244, 238, 228, .08);
  color: var(--robot-lime);
}

.lab-creator-zones {
  padding-top: clamp(2.5rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(244, 238, 228, .16);
}

.lab-zone-grid {
  display: grid;
  grid-template-columns: 1.15fr .9fr .9fr 1fr;
  gap: .9rem;
}

.lab-zone-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem;
  border: 1px solid rgba(244, 238, 228, .18);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(3, 6, 4, .06), rgba(3, 6, 4, .94)),
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255, 45, 85, .22), transparent 68%);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.lab-zone-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(3, 6, 4, .08), rgba(3, 6, 4, .94)),
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(255, 45, 85, .2), transparent 68%);
}

.lab-zone-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(3, 6, 4, .08), rgba(3, 6, 4, .94)),
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(255, 210, 63, .18), transparent 68%);
}

.lab-zone-card:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(3, 6, 4, .08), rgba(3, 6, 4, .94)),
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(89, 216, 197, .2), transparent 68%);
}

.lab-zone-card:hover,
.lab-zone-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(244, 238, 228, .42);
}

.lab-zone-card span {
  width: fit-content;
  margin-bottom: .65rem;
  padding: .35rem .5rem;
  border: 1px solid rgba(244, 238, 228, .22);
  border-radius: 8px;
  color: var(--robot-lime);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-zone-card h3 {
  margin: 0;
  color: var(--lab-text);
  font-size: clamp(1.5rem, 2.8vw, 2.7rem);
  line-height: 1;
}

.lab-zone-card p {
  margin: .7rem 0 0;
  color: var(--lab-muted);
  line-height: 1.55;
}

@media (max-width: 960px) {
  .lab-zone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .lab-hero {
    padding-top: 5.6rem;
  }

  .lab-hero::before {
    top: .8rem;
    font-size: .62rem;
  }

  .lab-title {
    font-size: clamp(3.35rem, 16vw, 4.75rem);
  }

  .lab-signal-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-signal-row span {
    justify-content: center;
    text-align: center;
  }

  .lab-zone-grid {
    grid-template-columns: 1fr;
  }

  .lab-zone-card {
    min-height: 220px;
  }
}

.lab-status-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: .85rem;
}

.lab-status-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  border: 1px solid rgba(156, 255, 120, .15);
  border-radius: 18px;
}

.lab-status-state {
  width: fit-content;
  margin-bottom: .85rem;
  padding: .32rem .48rem;
  border: 1px solid rgba(156, 255, 120, .28);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-status-card h3 {
  margin: 0;
  color: var(--lab-text);
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.lab-status-card p {
  margin: .8rem 0 0;
  color: var(--lab-muted);
  line-height: 1.58;
}

.blog-journal {
  --journal-ink: #f1faea;
  --journal-muted: #a9b8a8;
  --journal-amber: #9cff78;
  --journal-teal: #59d8c5;
}

.blog-command-strip div,
.blog-lane-card,
.blog-post-row,
.blog-post-date,
.blog-post-open {
  border-color: rgba(156, 255, 120, .18);
}

.lane-dot {
  background: var(--lab-terminal);
  box-shadow: 0 0 0 4px rgba(156, 255, 120, .12);
}

@media (max-width: 960px) {
  .lab-status-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Red terminal pass
   ========================================================================== */

:root {
  --lab-bg: oklch(8% .012 24);
  --lab-bg-soft: oklch(11% .018 24);
  --lab-surface: oklch(13% .02 24);
  --lab-panel: oklch(15% .024 24);
  --lab-panel-strong: oklch(18% .03 24);
  --lab-line: oklch(83% .055 36 / .16);
  --lab-line-strong: oklch(68% .20 25 / .42);
  --lab-text: oklch(94% .014 70);
  --lab-muted: oklch(76% .025 52);
  --lab-dim: oklch(58% .03 42);
  --lab-green: oklch(62% .25 25);
  --lab-terminal: oklch(72% .22 25);
  --lab-red: oklch(61% .25 25);
  --lab-amber: oklch(82% .16 82);
  --lab-cyan: oklch(83% .15 82);
}

html[data-theme="light"] {
  color-scheme: dark;
}

body,
body.home,
[data-theme="light"] body {
  background:
    radial-gradient(ellipse 70% 30% at 14% 0%, oklch(62% .25 25 / .12), transparent 70%),
    radial-gradient(ellipse 60% 34% at 96% 8%, oklch(61% .25 25 / .12), transparent 72%),
    oklch(8% .012 24);
  color: var(--lab-text);
}

body::before {
  background:
    linear-gradient(oklch(94% .014 70 / .035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(94% .014 70 / .025) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: none;
  opacity: .28;
}

.doclab-redesign,
[data-theme="light"] .doclab-redesign,
.photo-journal,
.now-page {
  background:
    radial-gradient(ellipse 78% 34% at 16% 0%, oklch(62% .25 25 / .17), transparent 72%),
    radial-gradient(ellipse 58% 30% at 96% 12%, oklch(61% .25 25 / .13), transparent 72%),
    linear-gradient(135deg, oklch(8% .012 24) 0%, oklch(10% .018 24) 48%, oklch(9% .022 24) 100%);
  color: var(--lab-text);
}

.doclab-redesign::before,
.photo-journal::before,
.now-page::before {
  background:
    repeating-linear-gradient(0deg, oklch(94% .014 70 / .05) 0 1px, transparent 1px 6px),
    linear-gradient(90deg, oklch(62% .25 25 / .08), transparent 34%, oklch(61% .25 25 / .08));
  opacity: .38;
  mix-blend-mode: screen;
}

.nav-bar,
.nav-sheet {
  background: oklch(10% .018 24 / .92) !important;
  border-color: oklch(62% .25 25 / .18) !important;
}

.nav-logo,
.nav-pill.active,
.nav-sheet-item.active,
.lab-kicker,
.lab-feature-label,
.lab-signal-row span,
.photo-kicker,
.link-kicker {
  color: var(--lab-terminal) !important;
}

.nav-logo::before {
  content: "thedoclabs";
  display: block;
  color: var(--lab-red);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: lowercase;
}

.nav-logo {
  display: grid;
  gap: .05rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: lowercase;
}

.lab-hero {
  min-height: calc(100dvh - 72px);
  border-bottom-color: oklch(62% .25 25 / .16);
}

.lab-title {
  max-width: 9ch;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(3.15rem, 9vw, 8.6rem);
  font-weight: 900;
  text-transform: lowercase;
  text-shadow:
    .05em 0 0 oklch(61% .25 25 / .4),
    -.035em 0 0 oklch(62% .25 25 / .35),
    0 0 30px oklch(62% .25 25 / .2);
}

.lab-title::after {
  content: "_";
  color: var(--lab-red);
  animation: doclab-caret 1.05s steps(1, end) infinite;
}

@keyframes doclab-caret {
  50% { opacity: 0; }
}

.lab-subtitle,
.lab-section-head p,
.lab-feature-card p,
.lab-personal-panel p,
.lab-status-card p,
.lab-track-card p,
.photo-hero p,
.link-hub-hero p,
.now-card p {
  color: var(--lab-muted);
}

.lab-button-primary,
[data-theme="light"] .lab-button-primary {
  background: var(--lab-terminal);
  color: oklch(9% .018 24);
  border-color: var(--lab-terminal);
  box-shadow: 0 0 28px oklch(62% .25 25 / .22);
}

.lab-button-secondary,
.link-hub-stack a,
.link-hub-admin a {
  background: oklch(14% .024 24 / .78);
  border-color: oklch(62% .25 25 / .22);
}

.lab-button-admin {
  color: var(--lab-red);
  border-color: oklch(61% .25 25 / .36);
  background: oklch(61% .25 25 / .08);
}

.lab-console,
.lab-feature-card,
.lab-dashboard-card,
.lab-community-inner,
.lab-zone-card,
.lab-stack-card,
.lab-track-card,
.lab-status-card,
.lab-personal-panel,
.browse-card,
.photo-guide,
.photo-card,
.photo-album-card,
.link-card,
.now-card,
.now-terminal {
  border-color: oklch(62% .25 25 / .18) !important;
  background:
    linear-gradient(180deg, oklch(16% .026 24 / .92), oklch(8% .012 24 / .96)) !important;
  box-shadow:
    inset 0 0 0 1px oklch(62% .25 25 / .035),
    0 24px 90px oklch(3% .01 24 / .55);
}

.lab-console {
  position: relative;
}

.lab-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, oklch(94% .014 70 / .05) 0 1px, transparent 1px 7px);
  opacity: .32;
}

.lab-console-top {
  border-bottom-color: oklch(62% .25 25 / .18);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.lab-console-top span:first-child,
.lab-console-top span:nth-child(2),
.lab-console-top span:nth-child(3) {
  background: var(--lab-red);
  box-shadow: 0 0 18px oklch(61% .25 25 / .38);
}

.lab-console-row,
.lab-console-command,
.now-terminal-body {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.lab-console-command {
  border-color: oklch(62% .25 25 / .26);
  background: oklch(62% .25 25 / .07);
  color: var(--lab-terminal);
}

.lab-proof-strip {
  border-color: oklch(62% .25 25 / .18);
  background: oklch(62% .25 25 / .14);
}

.lab-proof-strip span,
[data-theme="light"] .lab-proof-strip span {
  background: oklch(11% .018 24 / .86);
  color: var(--lab-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: lowercase;
}

.lab-section-head h2,
.lab-feature-card h3,
.lab-personal-panel h3,
.lab-track-card h3,
.lab-status-card h3,
.photo-section-head h2,
.now-hero h1,
.link-hub-hero h1 {
  color: var(--lab-text);
}

.lab-signal-row span {
  border: 1px solid oklch(62% .25 25 / .22);
  background: oklch(62% .25 25 / .065);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.lab-kicker-alert {
  color: var(--lab-red) !important;
}

.lab-feature-card:hover,
.lab-feature-card:focus-visible,
.lab-personal-panel:hover,
.lab-personal-panel:focus-visible,
.lab-zone-card:hover,
.lab-zone-card:focus-visible,
.lab-stack-card:hover,
.lab-stack-card:focus-visible,
.link-card:hover,
.link-card:focus-visible {
  border-color: oklch(62% .25 25 / .45) !important;
  transform: translateY(-4px);
}

@media (max-width: 640px) {
  .lab-title {
    font-size: clamp(2.9rem, 15vw, 4.6rem);
  }
}

/* ===== May 25 hard color correction: no green main theme ===== */
:root {
  --bg: #070405;
  --surface: #10090b;
  --elevated: #181012;
  --text: #f4eee4;
  --text-muted: #c6b7ae;
  --text-dim: #8f7d77;
  --accent: #ff2d55;
  --accent-pink: #ff2d55;
  --accent-purple: #b36bff;
  --accent-blue: #ffd23f;
  --gradient-1: linear-gradient(135deg, #ff2d55 0%, #ffd23f 100%);
  --gradient-2: linear-gradient(135deg, #ff2d55 0%, #b36bff 100%);
  --glow: 0 0 40px rgba(255,45,85,.48);
  --bg-secondary: #10090b;
  --border: rgba(244,238,228,.11);

  --lab-bg: oklch(8% .012 24);
  --lab-bg-soft: oklch(11% .018 24);
  --lab-surface: oklch(13% .02 24);
  --lab-panel: oklch(15% .024 24);
  --lab-panel-strong: oklch(18% .03 24);
  --lab-line: oklch(83% .055 36 / .18);
  --lab-line-strong: oklch(68% .20 25 / .46);
  --lab-text: oklch(94% .014 70);
  --lab-muted: oklch(76% .025 52);
  --lab-dim: oklch(58% .03 42);
  --lab-green: oklch(62% .25 25);
  --lab-terminal: oklch(72% .22 25);
  --lab-red: oklch(62% .25 25);
  --lab-amber: oklch(82% .16 82);
  --lab-cyan: oklch(82% .16 82);
  --robot-green: #ff2d55;
  --robot-lime: #f4eee4;
  --robot-red: #ff2d55;
  --robot-gold: #ffd23f;
  --robot-black: #070405;
}

body,
body.home,
[data-theme="light"] body {
  background:
    radial-gradient(ellipse 72% 30% at 14% 0%, rgba(255,45,85,.18), transparent 70%),
    radial-gradient(ellipse 62% 34% at 96% 8%, rgba(255,210,63,.1), transparent 72%),
    #070405 !important;
  color: var(--lab-text) !important;
}

.doclab-redesign,
[data-theme="light"] .doclab-redesign,
.blog-journal,
.photo-journal,
.now-page,
.link-hub-page {
  background:
    repeating-linear-gradient(to bottom, rgba(255,45,85,.028) 0 1px, transparent 1px 7px),
    radial-gradient(ellipse 78% 34% at 16% 0%, rgba(255,45,85,.22), transparent 72%),
    radial-gradient(ellipse 58% 30% at 96% 12%, rgba(244,238,228,.09), transparent 72%),
    linear-gradient(135deg, #070405 0%, #14070a 48%, #090607 100%) !important;
}

body::before,
.doclab-redesign::before,
.photo-journal::before,
.now-page::before {
  background:
    repeating-linear-gradient(0deg, rgba(244,238,228,.05) 0 1px, transparent 1px 6px),
    linear-gradient(90deg, rgba(255,45,85,.08), transparent 34%, rgba(255,210,63,.06)) !important;
}

.nav-logo,
.nav-pill.active,
.nav-sheet-item.active,
.lab-kicker,
.lab-feature-label,
.lab-signal-row span,
.photo-kicker,
.link-kicker,
.page-header-label,
.card:hover .card-title,
.footer-section a:hover,
.skill-icon,
.project-category,
.section-label {
  color: var(--lab-terminal) !important;
}

.logo,
.gradient-text,
.stat-value {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--lab-terminal) !important;
}

.btn-primary,
.lab-button-primary,
[data-theme="light"] .lab-button-primary {
  background: linear-gradient(135deg, #ff2d55 0%, #ffd23f 100%) !important;
  color: #070405 !important;
  border-color: rgba(255,45,85,.82) !important;
  box-shadow: 0 0 32px rgba(255,45,85,.34) !important;
}

.btn-secondary:hover,
.nav-toggle:hover,
.card:hover .tag,
.sidebar-link.active,
.page-header-label,
.post-card-cat,
.lab-console-command,
.lab-signal-row span,
.now-terminal-body {
  background: rgba(255,45,85,.08) !important;
  border-color: rgba(255,45,85,.3) !important;
}

.card:hover,
.stat:hover,
.skill-item:hover,
.post-card:hover,
.lab-feature-card:hover,
.lab-personal-panel:hover,
.lab-zone-card:hover,
.link-card:hover {
  border-color: rgba(255,45,85,.42) !important;
  box-shadow: var(--shadow), 0 0 36px rgba(255,45,85,.13) !important;
}

.sidebar-link {
  border-left-width: 1px;
}

.sidebar-link.active {
  color: var(--lab-terminal) !important;
  border-left-color: var(--lab-terminal) !important;
}

.lab-title {
  color: var(--lab-text) !important;
  text-shadow:
    .05em 0 0 rgba(255,45,85,.48),
    -.035em 0 0 rgba(244,238,228,.2),
    0 0 30px rgba(255,45,85,.24) !important;
}

/* Keep WordPress pagination from inheriting legacy mobile nav styles. */
.pagination-wrap .nav-links,
.pagination-wrap .nav-links.active,
.pagination-wrap .nav-links.is-open {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .5rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  z-index: auto !important;
}

.lab-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.lab-stack-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--lab-line);
  border-radius: 8px;
  text-decoration: none;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.lab-stack-card span {
  width: fit-content;
  color: var(--lab-terminal);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-stack-card h3 {
  color: var(--lab-text);
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
}

.lab-stack-card p {
  color: var(--lab-muted);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 960px) {
  .lab-stack-grid {
    grid-template-columns: 1fr;
  }
}
