/* ================================================
   NAKED TRAVELER — EDITORIAL DESIGN SYSTEM
   Personal Adventure Blog by Mazari
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

/* ── TOKENS ── */
:root {
  --font-head: 'Lora', serif;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Light Mode */
  --bg:       #f7f4ef;
  --bg-2:     #edeae3;
  --bg-3:     #e2ddd5;
  --surface:  #ffffff;
  --text:     #1c1917;
  --text-2:   #57534e;
  --text-3:   #a8a29e;
  --border:   rgba(28,25,23,0.08);

  /* Brand — Mountain Theme */
  --terra: #7FC8A9;
  --terra-dark: #5FA88A;
  --terra-light: #A8E6CF;
  --sand:         #d4e4db;
  --forest: #10231D;
  --ink: #08120E;

  --shadow-sm:  0 1px 8px rgba(0,0,0,0.05);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.12);

  --ease:       cubic-bezier(0.16,1,0.3,1);
  --tr:         all 0.35s var(--ease);
  --tr-fast:    all 0.18s ease;

  --r:    10px;
  --r-lg: 20px;
  --r-xl: 32px;
}

[data-theme="dark"] {
 --bg: #0B1215;
  --bg-2: #101A1E;
  --bg-3: #16252B;
  --surface:  #152019;
  --text: #F5F7F6;
  --text-2: #B6C2BC;
  --text-3: #7A8782;
  --border:   rgba(106,171,142,0.10);
  --shadow-sm:  0 1px 8px rgba(0,0,0,0.4);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.5);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.6);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.45s ease, color 0.45s ease;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--terra); border-radius: 99px; }

/* ── READING PROGRESS BAR ── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--terra), var(--terra-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 2rem; }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  background: rgba(192,113,74,0.1);
  padding: 0.28rem 0.8rem;
  border-radius: 99px;
  border: 1px solid rgba(192,113,74,0.2);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before {
  content: '';
  width: 24px; height: 1.5px;
  background: var(--terra);
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.8rem;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 99px;
  transition: var(--tr);
  letter-spacing: 0.02em;
}
.btn-terra {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 4px 18px rgba(192,113,74,0.3);
}
.btn-terra:hover {
  background: var(--terra-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192,113,74,0.4);
}
.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--text-2);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--terra);
  color: var(--terra);
  transform: translateY(-2px);
}

/* ── PRELOADER ── */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.preloader-icon {
  font-size: 2.5rem;
  color: var(--terra);
  animation: spin 2s linear infinite;
}
.preloader-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}
.preloader-dots {
  display: flex;
  gap: 0.4rem;
}
.preloader-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terra);
  animation: dotBounce 1.2s infinite;
}
.preloader-dots span:nth-child(2) { animation-delay: 0.2s; }
.preloader-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  padding: 1.2rem 0;
  transition: var(--tr);
}
.navbar.scrolled {
  background: rgba(15,14,13,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(247,244,239,0.9);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  transition: var(--tr-fast);
}
.nav-logo .dot { color: var(--terra); }
.navbar.scrolled .nav-logo { color: var(--text); }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: var(--tr-fast);
  position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--terra);
  transition: var(--tr);
}
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--text-2); }
.navbar.scrolled .nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.nav-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
  transition: var(--tr-fast);
}
.nav-icon-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.navbar.scrolled .nav-icon-btn { color: var(--text-2); background: var(--bg-2); }
.navbar.scrolled .nav-icon-btn:hover { color: var(--terra); background: var(--bg-3); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #0a0f0d;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: transform 8s ease;
  transform: scale(1.06);
}
.hero-bg-img.zoomed { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,15,13,0.92) 40%, rgba(10,15,13,0.25) 100%),
              linear-gradient(to top, rgba(10,15,13,0.7) 0%, transparent 50%);
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(to right, rgba(10,15,13,0.90) 40%, rgba(10,15,13,0.2) 100%),
              linear-gradient(to top, rgba(10,15,13,0.6) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  padding: 9rem 0 6rem;
}

.hero-text-side {}
.hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra-light);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.3s forwards;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--terra); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.06;
  margin-bottom: 1.4rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.5s forwards;
}
.hero-title em { font-style: italic; color: var(--terra-light); }

.hero-desc {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.9s forwards;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.1s forwards;
}
.hero-stat {}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--terra-light);
  line-height: 1;
}
.hero-stat-lbl {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

/* Author Profile Card */
.hero-profile-card {
  background: rgba(30,27,24,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.6s forwards;
}
.author-avatar-wrap {
  position: relative;
  width: 120px;
  margin: 0 auto 1.2rem;
}
.author-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--terra);
}
.author-verified {
  position: absolute;
  bottom: 4px; right: 4px;
  background: var(--terra);
  color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  border: 2px solid var(--surface);
}
.author-name-hero {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}
.author-role-hero {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}
.author-social-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.social-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  transition: var(--tr-fast);
}
.social-pill:hover { border-color: var(--terra); color: var(--terra); }
.author-quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.2rem;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.scroll-hint i { font-size: 1rem; }

/* ── SEARCH BAR ── */
.search-section {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.search-bar-wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}
.search-input-wrap {
  flex: 1;
  position: relative;
}
.search-input-wrap i {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 0.9rem;
}
.search-input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--tr-fast);
}
.search-input:focus { border-color: var(--terra); }
.search-input::placeholder { color: var(--text-3); }

/* ── BLOG SECTION ── */
.blog-section { padding: 6rem 0; }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

/* Category Filter */
.cat-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.cat-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  background: transparent;
  transition: var(--tr-fast);
}
.cat-btn:hover, .cat-btn.active {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}

/* Featured Post */
.featured-post {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  cursor: pointer;
  transition: var(--tr);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.featured-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.featured-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.featured-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.featured-post:hover .featured-img { transform: scale(1.05); }
.featured-badge {
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  background: var(--terra);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 99px;
}

.featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}
.featured-cat { font-size: 0.75rem; }
.featured-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
.featured-excerpt {
  font-size: 0.93rem;
  color: var(--text-2);
  line-height: 1.7;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-3);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.featured-meta span { display: flex; align-items: center; gap: 0.3rem; }

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Blog Card */
.blog-card {
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--tr);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(192,113,74,0.2);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  padding-bottom: 58%;
  background: var(--bg-3);
}
.card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.blog-card:hover .card-img { transform: scale(1.06); }
.card-cat-badge {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
}

.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.card-excerpt {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 0.3rem;
}
.card-footer span { display: flex; align-items: center; gap: 0.3rem; }
.card-read-more {
  color: var(--terra);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--tr-fast);
}
.card-read-more:hover { gap: 0.6rem; }

/* No results */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-3);
}
.no-results i { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 100px; }

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--terra);
  display: inline-block;
}

/* About mini card */
.author-mini { text-align: center; }
.author-mini-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.8rem;
  border: 2px solid var(--terra);
}
.author-mini-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.author-mini-bio { font-size: 0.83rem; color: var(--text-2); margin-bottom: 1rem; line-height: 1.6; }

/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-item {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: var(--tr-fast);
}
.tag-item:hover { border-color: var(--terra); color: var(--terra); background: rgba(192,113,74,0.07); }

/* Popular posts */
.popular-list { display: flex; flex-direction: column; gap: 1rem; }
.popular-item { display: flex; gap: 0.8rem; cursor: pointer; transition: var(--tr-fast); }
.popular-item:hover .popular-title { color: var(--terra); }
.popular-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terra);
  opacity: 0.3;
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
}
.popular-info {}
.popular-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.2rem;
  transition: var(--tr-fast);
}
.popular-date { font-size: 0.75rem; color: var(--text-3); }

/* ── POST READER MODAL ── */
.reader-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 900;
  opacity: 0; visibility: hidden;
  transition: var(--tr);
}
.reader-backdrop.open { opacity: 1; visibility: visible; }

.reader-modal {
  position: fixed;
  inset: 0;
  z-index: 901;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateY(30px);
  transition: var(--tr);
}
.reader-modal.open {
  opacity: 1; visibility: visible;
  transform: translateY(0);
}

.reader-inner {
  min-height: 100vh;
  background: var(--bg);
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.reader-top-bar {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.reader-progress-text { font-size: 0.8rem; color: var(--text-3); }
.close-reader {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-2);
  padding: 0.4rem 0.9rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  transition: var(--tr-fast);
}
.close-reader:hover { color: var(--terra); border-color: var(--terra); }

.reader-hero-img {
  width: 100%; height: 420px;
  object-fit: cover;
}

.reader-content { padding: 3rem; }
.reader-cat { margin-bottom: 0.8rem; }
.reader-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.reader-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
}
.reader-meta span { display: flex; align-items: center; gap: 0.35rem; }
.reader-author-meta { display: flex; align-items: center; gap: 0.5rem; }
.reader-author-meta img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--terra);
}

.reader-body { font-size: 1.05rem; line-height: 1.85; color: var(--text-2); }
.reader-body p { margin-bottom: 1.5rem; }
.reader-body h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}
.reader-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 2rem 0 0.8rem;
}
.reader-body blockquote {
  border-left: 4px solid var(--terra);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(192,113,74,0.06);
  border-radius: 0 var(--r) var(--r) 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.6;
}
.reader-body .inline-img {
  width: 100%;
  border-radius: var(--r);
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}
.reader-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 2.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Comment section */
.comment-section { padding: 2.5rem 3rem; border-top: 1px solid var(--border); background: var(--bg-2); }
.comment-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.comment-form { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.comment-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--tr-fast);
}
.comment-input:focus { border-color: var(--terra); }
.comment-input::placeholder { color: var(--text-3); }
textarea.comment-input { resize: vertical; min-height: 100px; }

.comment-list { display: flex; flex-direction: column; gap: 1.2rem; }
.comment-item {
  background: var(--surface);
  border-radius: var(--r);
  padding: 1.2rem;
  border: 1px solid var(--border);
}
.comment-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; }
.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--terra);
}
.comment-author-name { font-weight: 700; font-size: 0.9rem; }
.comment-date { font-size: 0.75rem; color: var(--text-3); margin-left: auto; }
.comment-text { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

/* ── ABOUT SECTION ── */
.about-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-collage {
  position: relative;
  height: 500px;
}
.collage-main {
  position: absolute;
  top: 0; left: 0;
  width: 72%; height: 78%;
  border-radius: var(--r-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.collage-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 52%; height: 52%;
  border-radius: var(--r-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg);
}
.collage-badge {
  position: absolute;
  top: 52%; right: 8%;
  transform: translateY(-50%);
  background: var(--terra);
  color: #fff;
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.collage-badge .cb-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.collage-badge .cb-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
}

.about-content {}
.about-bio {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
  margin: 1.2rem 0 2rem;
}
.about-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
.about-skill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-2);
}
.about-skill i { color: var(--terra); font-size: 0.85rem; }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: linear-gradient(135deg, #0a0f0d 0%, #111a15 50%, #0e1a12 100%);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(61,122,95,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.newsletter-section::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(61,122,95,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.newsletter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}
.newsletter-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.newsletter-sub { font-size: 0.95rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

.nl-form { display: flex; flex-direction: column; gap: 0.7rem; }
.nl-input-row { display: flex; gap: 0.7rem; }
.nl-input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--tr-fast);
}
.nl-input::placeholder { color: rgba(255,255,255,0.3); }
.nl-input:focus { border-color: var(--terra); }
.nl-note { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* ── FOOTER ── */
footer {
  background: #0a0905;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}
.footer-logo-dot { color: var(--terra); }
.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--terra);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-about-text { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.7; margin-bottom: 1.5rem; }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-social {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: var(--tr-fast);
}
.footer-social:hover { background: var(--terra); border-color: var(--terra); color: #fff; transform: translateY(-2px); }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.35); transition: var(--tr-fast); }
.footer-col a:hover { color: var(--terra); padding-left: 4px; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.25); }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--terra);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(192,113,74,0.4);
  z-index: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--tr);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--terra-dark); transform: translateY(-3px); }

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.toast-msg {
  background: var(--text);
  color: var(--bg);
  padding: 0.7rem 1.4rem;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s var(--ease) forwards;
}
.toast-msg i { color: var(--terra); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes dotBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-collage { height: 320px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-profile-card { max-width: 400px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-img-wrap { min-height: 220px; }
  .hero-stats { gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-img-collage { height: 260px; }
  .comment-form-row { grid-template-columns: 1fr; }
  .reader-content { padding: 1.8rem; }
  .comment-section { padding: 2rem 1.8rem; }
  .nl-input-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .about-skills { grid-template-columns: 1fr; }
}
