/* ============================================
   INKWELL BLOG — GLOBAL STYLES
   Dark theme: #0a0a0a bg, #fff text, #e63946 accent
   Font: Fraunces (display) + DM Sans (body)
============================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --bg-4: #222222;
  --text: #f0ede8;
  --text-muted: #888;
  --text-dim: #555;
  --accent: #e63946;
  --accent-dark: #b52a35;
  --accent-glow: rgba(230, 57, 70, 0.15);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.7);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --nav-h: 70px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* === TYPOGRAPHY === */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { color: var(--text); opacity: 0.85; }

/* === LAYOUT UTILS === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.02em; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.1); opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 0 32px var(--accent-glow), 0 4px 16px rgba(230,57,70,0.3);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid var(--border-hover); color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-1px);
}
.btn-ghost { color: var(--text-muted); padding: 8px 16px; }
.btn-ghost:hover { color: var(--accent); }

/* === TAGS / CHIPS === */
.tag {
  display: inline-block; padding: 4px 12px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  transition: all var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag-accent { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

/* === DIVIDER === */
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.divider-sm { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* === SECTION HEADER === */
.section-header { margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-header .eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--accent);
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--text-muted); max-width: 520px; font-size: 1.05rem; }

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10,10,10,0.96);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  border-radius: var(--radius); transition: all var(--transition); position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 1.5px; background: var(--accent); transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { left: 16px; right: 16px; }
.nav-cta { margin-left: 8px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; height: 32px; justify-content: center; align-items: center;
  padding: 4px; border-radius: var(--radius);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-3); }
.hamburger span {
  display: block; width: 22px; height: 1.5px; background: var(--text);
  transition: all var(--transition); transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--bg); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu .nav-link { font-size: 1.5rem; padding: 16px 32px; width: 100%; text-align: center; }

/* ============================================
   HERO — HOME
============================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h);
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(230,57,70,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(230,57,70,0.04) 0%, transparent 60%),
    var(--bg);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; width: 100%; padding: 80px 0;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; background: var(--accent-glow);
  border: 1px solid rgba(230,57,70,0.3); border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:0.5; transform:scale(1.4); } }

.hero h1 { margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); max-width: 460px; margin-bottom: 36px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--text);
  display: block; line-height: 1;
}
.hero-stat-label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-img-wrap {
  position: relative; width: 100%; max-width: 480px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
}
.hero-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(230,57,70,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-img-wrap img { width: 100%; height: 420px; object-fit: cover; }
.hero-floating-card {
  position: absolute; bottom: -16px; left: -24px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
  max-width: 220px;
}
.hero-floating-card-icon { font-size: 1.6rem; }
.hero-floating-card-text { font-size: 0.8rem; font-weight: 600; }
.hero-floating-card-text span { color: var(--text-muted); font-weight: 400; display: block; font-size: 0.72rem; }

/* ============================================
   BLOG CARDS
============================================ */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(230,57,70,0.15);
}
.card-img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.card:hover .card-img { transform: scale(1.04); }
.card-img-wrap { overflow: hidden; position: relative; }
.card-img-wrap .card-cat {
  position: absolute; top: 14px; left: 14px; z-index: 1;
}
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.76rem; color: var(--text-dim); margin-bottom: 12px;
}
.card-meta .dot-sep::before { content: '·'; }
.card-title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  line-height: 1.35; margin-bottom: 10px; color: var(--text);
  transition: color var(--transition);
}
.card:hover .card-title { color: var(--accent); }
.card-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; flex: 1; margin-bottom: 20px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card-author { display: flex; align-items: center; gap: 10px; }
.card-author-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border);
}
.card-author-name { font-size: 0.8rem; font-weight: 600; }
.card-read-more {
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.card:hover .card-read-more { gap: 8px; }

/* Featured card — spans 2 columns */
.card-featured { grid-column: span 2; flex-direction: row; }
.card-featured .card-img-wrap { width: 50%; flex-shrink: 0; }
.card-featured .card-img { height: 100%; min-height: 260px; }
.card-featured .card-body { padding: 36px; }
.card-featured .card-title { font-size: 1.7rem; }
.card-featured .card-excerpt { font-size: 0.95rem; }

/* ============================================
   FEATURED / HOME SECTIONS
============================================ */
.topics-strip {
  background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 0; overflow: hidden;
}
.topics-track {
  display: flex; gap: 12px; width: max-content;
  animation: marquee 30s linear infinite;
}
.topics-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.topic-chip {
  display: flex; align-items: center; gap: 8px; padding: 8px 18px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted); white-space: nowrap;
  cursor: pointer; transition: all var(--transition);
}
.topic-chip:hover { border-color: var(--accent); color: var(--accent); }
.topic-chip .chip-icon { font-size: 1rem; }

/* Newsletter */
.newsletter {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 64px; text-align: center; position: relative; overflow: hidden;
}
.newsletter::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(230,57,70,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.newsletter h2 { margin-bottom: 12px; }
.newsletter p { color: var(--text-muted); max-width: 440px; margin: 0 auto 32px; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 13px 18px; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
.newsletter-form input::placeholder { color: var(--text-dim); }

/* ============================================
   BLOG LIST PAGE
============================================ */
.blog-header {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(230,57,70,0.06) 0%, transparent 70%);
  border-bottom: 1px solid var(--border); text-align: center;
}
.blog-header h1 { margin-bottom: 14px; }
.blog-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 480px; margin: 0 auto; }

/* Search + Filter bar */
.blog-controls {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 32px 0 0;
}
.search-wrap {
  position: relative; flex: 1; min-width: 240px;
}
.search-wrap .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 1rem; pointer-events: none;
}
.search-input {
  width: 100%; padding: 12px 16px 12px 42px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem;
  transition: border-color var(--transition);
}
.search-input:focus { outline: none; border-color: var(--accent); }
.search-input::placeholder { color: var(--text-dim); }

.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  padding: 9px 18px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  transition: all var(--transition); cursor: pointer;
}
.filter-tab:hover, .filter-tab.active {
  border-color: var(--accent); color: var(--accent); background: var(--accent-glow);
}

.posts-grid { margin-top: 40px; }
.no-results {
  text-align: center; padding: 80px 24px; color: var(--text-muted);
  display: none;
}
.no-results h3 { margin-bottom: 8px; color: var(--text-dim); }

.load-more-wrap { text-align: center; margin-top: 56px; }
.post-count { font-size: 0.82rem; color: var(--text-dim); margin-top: 16px; }

/* ============================================
   SINGLE POST PAGE
============================================ */
.post-hero {
  padding-top: var(--nav-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.post-hero-inner { padding: 64px 0 0; }
.post-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-dim); margin-bottom: 28px;
}
.post-breadcrumb a:hover { color: var(--accent); }
.post-breadcrumb .sep { color: var(--text-dim); }
.post-hero-content { max-width: 760px; }
.post-hero h1 { margin-bottom: 20px; letter-spacing: -0.02em; }
.post-hero-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.post-author-block { display: flex; align-items: center; gap: 12px; }
.post-author-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.post-author-info .name { font-weight: 700; font-size: 0.9rem; }
.post-author-info .date { font-size: 0.78rem; color: var(--text-dim); }
.post-meta-extras {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.8rem; color: var(--text-dim);
  padding-left: 20px; border-left: 1px solid var(--border);
}
.post-meta-extras span { display: flex; align-items: center; gap: 6px; }
.post-featured-img {
  width: 100%; height: 480px; object-fit: cover; margin-top: 40px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border); border-bottom: none;
}

/* Post body layout */
.post-layout {
  display: grid; grid-template-columns: 1fr 280px; gap: 64px;
  align-items: start; padding: 64px 0 96px;
}
.post-content { max-width: 720px; }
.post-content h2 { margin: 40px 0 16px; }
.post-content h3 { margin: 32px 0 12px; }
.post-content p { margin-bottom: 20px; line-height: 1.85; opacity: 0.88; font-size: 1.05rem; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; line-height: 1.7; opacity: 0.85; font-size: 1.05rem; }
.post-content blockquote {
  border-left: 3px solid var(--accent); margin: 32px 0;
  padding: 20px 28px; background: var(--bg-2); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.15rem; font-style: italic; font-family: var(--font-display);
  color: var(--text);
}
.post-content code {
  background: var(--bg-3); padding: 2px 7px; border-radius: 3px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.85em; color: var(--accent);
}
.post-content pre {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin: 24px 0;
  overflow-x: auto;
}
.post-content pre code { background: none; padding: 0; color: var(--text); }

/* Share row */
.post-share {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 48px 0;
}
.post-share-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.share-btn {
  padding: 8px 16px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  transition: all var(--transition); display: flex; align-items: center; gap: 6px;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Sidebar */
.post-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
.sidebar-card h4 { margin-bottom: 16px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.sidebar-post { display: flex; gap: 12px; margin-bottom: 16px; }
.sidebar-post:last-child { margin-bottom: 0; }
.sidebar-post img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.sidebar-post-title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.sidebar-post-title:hover { color: var(--accent); }
.sidebar-post-date { font-size: 0.72rem; color: var(--text-dim); }
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 8px; }
.toc-link { font-size: 0.85rem; color: var(--text-muted); padding: 4px 0 4px 12px; border-left: 2px solid var(--border); display: block; transition: all var(--transition); }
.toc-link:hover, .toc-link.active { color: var(--accent); border-left-color: var(--accent); padding-left: 16px; }

/* ============================================
   ABOUT PAGE
============================================ */
.about-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(230,57,70,0.06) 0%, transparent 65%);
}
.about-hero-inner {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: center;
}
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
}
.about-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--accent); color: #fff; border-radius: var(--radius-lg);
  padding: 16px 20px; font-weight: 700; font-family: var(--font-display);
  box-shadow: var(--shadow);
}
.about-badge .num { font-size: 2rem; display: block; line-height: 1; }
.about-badge .label { font-size: 0.75rem; font-weight: 400; opacity: 0.85; }
.about-content .eyebrow {
  color: var(--accent); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; display: block;
}
.about-content h1 { margin-bottom: 20px; }
.about-content p { color: var(--text-muted); line-height: 1.85; margin-bottom: 16px; font-size: 1.05rem; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.skill-chip {
  padding: 8px 18px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  transition: all var(--transition);
}
.skill-chip:hover { border-color: var(--accent); color: var(--accent); }

.values-section { background: var(--bg-2); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: all var(--transition);
}
.value-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.value-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.value-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; opacity: 1; }

/* ============================================
   CONTACT PAGE
============================================ */
.contact-hero {
  padding: calc(var(--nav-h) + 80px) 0 64px; text-align: center;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(230,57,70,0.06) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.contact-hero h1 { margin-bottom: 14px; }
.contact-hero p { color: var(--text-muted); max-width: 480px; margin: 0 auto; font-size: 1.1rem; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; padding: 80px 0; align-items: start; }

.contact-info { }
.contact-info h3 { margin-bottom: 8px; }
.contact-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 40px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item-text .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 2px; }
.contact-item-text .value { font-size: 0.92rem; font-weight: 500; }
.contact-socials { margin-top: 40px; display: flex; gap: 12px; }
.social-link-icon {
  width: 40px; height: 40px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--transition);
}
.social-link-icon:hover { border-color: var(--accent); background: var(--accent-glow); transform: translateY(-2px); }

/* Form */
.contact-form-wrap {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.03em; }
.form-label span { color: var(--accent); }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 13px 16px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 0.92rem;
  transition: all var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-input.error, .form-textarea.error { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--bg-2); }
.form-error { font-size: 0.78rem; color: var(--accent); margin-top: 5px; display: none; }
.form-error.show { display: block; }
.form-success {
  padding: 16px 20px; background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.3);
  border-radius: var(--radius); font-size: 0.9rem; color: #34d399;
  display: none; margin-top: 16px; text-align: center;
}
.form-success.show { display: block; }
.char-count { font-size: 0.75rem; color: var(--text-dim); text-align: right; margin-top: 4px; }

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid var(--border); margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; max-width: 280px; margin: 14px 0 24px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: all var(--transition); color: var(--text-muted);
}
.footer-social:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-col h5 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-newsletter-input-wrap { display: flex; gap: 8px; margin-top: 16px; }
.footer-newsletter-input-wrap input {
  flex: 1; padding: 10px 14px; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--font-body); font-size: 0.85rem;
}
.footer-newsletter-input-wrap input:focus { outline: none; border-color: var(--accent); }
.footer-newsletter-input-wrap input::placeholder { color: var(--text-dim); }
.footer-newsletter-input-wrap button { padding: 10px 16px; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600; font-size: 0.82rem; transition: background var(--transition); }
.footer-newsletter-input-wrap button:hover { background: var(--accent-dark); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }
.footer-copy a { color: var(--accent); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.8rem; color: var(--text-dim); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--text-muted); }

/* ============================================
   RELATED POSTS
============================================ */
.related-posts { background: var(--bg-2); padding: 80px 0; border-top: 1px solid var(--border); }

/* ============================================
   ANIMATIONS
============================================ */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ============================================
   BACK TO TOP
============================================ */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 44px; height: 44px; background: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; box-shadow: 0 4px 20px rgba(230,57,70,0.4);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all var(--transition);
}
.back-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-top:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* ============================================
   READING PROGRESS
============================================ */
.reading-progress {
  position: fixed; top: var(--nav-h); left: 0; right: 0; height: 2px;
  background: transparent; z-index: 999;
}
.reading-progress-bar { height: 100%; background: var(--accent); width: 0; transition: width 0.1s linear; }

/* ============================================
   PAGINATION
============================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 56px; }
.page-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600; color: var(--text-muted); transition: all var(--transition);
}
.page-btn:hover, .page-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.page-btn.prev-next { width: auto; padding: 0 16px; gap: 6px; display: flex; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-img-wrap { max-width: 100%; }
  .hero-img-wrap img { height: 320px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-featured { grid-column: span 2; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .about-hero-inner { grid-template-columns: 1fr; }
  .about-img { max-height: 400px; object-fit: cover; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 64px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .card-featured { grid-column: span 1; flex-direction: column; }
  .card-featured .card-img-wrap { width: 100%; }
  .card-featured .card-img { height: 220px; }
  .card-featured .card-body { padding: 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .newsletter { padding: 40px 24px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .post-featured-img { height: 260px; }
  .hero-floating-card { display: none; }
  .about-badge { right: 0; bottom: -8px; }
  .form-row { grid-template-columns: 1fr; }
  .blog-controls { flex-direction: column; align-items: stretch; }
  .post-hero-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .post-meta-extras { padding-left: 0; border-left: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form-wrap { padding: 24px 16px; }
}
