@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
  --background: hsl(30, 25%, 97%);
  --foreground: hsl(220, 15%, 15%);
  --card: hsl(30, 20%, 99%);
  --card-foreground: hsl(220, 15%, 15%);
  --primary: hsl(350, 45%, 40%);
  --primary-foreground: hsl(30, 25%, 97%);
  --secondary: hsl(30, 15%, 92%);
  --secondary-foreground: hsl(220, 15%, 20%);
  --muted: hsl(30, 12%, 90%);
  --muted-foreground: hsl(220, 10%, 45%);
  --accent: hsl(350, 35%, 92%);
  --accent-foreground: hsl(350, 45%, 35%);
  --border: hsl(30, 15%, 88%);
  --radius: 0.75rem;
  --hero-gradient: linear-gradient(135deg, hsl(30,25%,97%) 0%, hsl(30,20%,94%) 50%, hsl(350,20%,95%) 100%);
  --card-shadow: 0 4px 24px -4px hsl(220 15% 15% / 0.08);
  --card-shadow-hover: 0 12px 32px -8px hsl(220 15% 15% / 0.12);
  --text-gradient: linear-gradient(135deg, hsl(350,45%,35%) 0%, hsl(350,50%,45%) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

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

/* Hero background */
.hero-bg { background: var(--hero-gradient); }

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

/* Nav button */
.nav-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  color: var(--foreground);
  border: 2px solid hsl(220 15% 15% / 0.2);
  border-radius: 2rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}
.nav-btn:hover, .nav-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent);
}

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(30 25% 97% / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(30 15% 88% / 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  transition: transform 0.2s;
}
.logo:hover { transform: scale(1.02); }
nav { display: flex; align-items: center; gap: 0.5rem; }

/* Mobile menu */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--foreground); }
.mobile-nav { display: none; flex-direction: column; gap: 0.5rem; padding: 1rem 0; }
.mobile-nav.open { display: flex; }

/* Hero section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-photo-wrap { position: relative; display: flex; justify-content: center; }
.hero-photo {
  width: 18rem;
  height: 24rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 20px 60px -10px hsl(220 15% 15% / 0.25);
  position: relative;
  z-index: 1;
  transition: transform 0.1s ease;
}
.hero-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(350 45% 40% / 0.2), hsl(350 35% 92% / 0.4));
  border-radius: 1rem;
  filter: blur(2rem);
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
.hero h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.15; margin-bottom: 1.5rem; }
.hero p { font-size: 1.1rem; color: var(--muted-foreground); max-width: 36rem; line-height: 1.75; margin-bottom: 2rem; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 0.5rem; font-weight: 500;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid hsl(220 15% 15% / 0.2); color: var(--foreground);
  border-radius: 0.5rem; font-weight: 500;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Quote section */
.quote-section {
  padding: 5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: hsl(30 20% 98%);
}
.quote-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.5;
  color: var(--foreground);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.quote-text::before { content: '"'; color: var(--primary); }
.quote-text::after { content: '"'; color: var(--primary); }
.quote-author { color: var(--muted-foreground); font-style: italic; }

/* Gallery section */
.gallery-section { padding: 4rem 0; }
.gallery-title { font-size: 2rem; margin-bottom: 0.5rem; }
.gallery-subtitle { color: var(--muted-foreground); margin-bottom: 2rem; }
.city-switcher { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.city-btn {
  padding: 0.4rem 1rem;
  border: 2px solid var(--border);
  border-radius: 2rem;
  font-size: 0.9rem;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted-foreground);
}
.city-btn.active, .city-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--accent); }
.gallery-grid { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: thin; }
.gallery-img-wrap {
  flex: 0 0 260px;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}
.gallery-img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.5s; }
.gallery-img-wrap:hover .gallery-img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, hsl(220 15% 15% / 0.7));
  color: white; font-size: 0.8rem;
}
.gallery-placeholder { color: var(--muted-foreground); font-style: italic; padding: 2rem 0; }

/* Article card */
.article-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.article-card:hover {
  border-color: hsl(350 45% 40% / 0.5);
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
}
.article-card.featured { background: hsl(350 45% 40% / 0.05); border-color: hsl(350 45% 40% / 0.3); }
.article-card-inner { display: flex; gap: 1rem; align-items: flex-start; }
.article-card-body { flex: 1; min-width: 0; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.category-badge {
  font-size: 0.7rem; font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  background: var(--accent); color: var(--accent-foreground);
}
.meta-item { font-size: 0.75rem; color: var(--muted-foreground); display: flex; align-items: center; gap: 0.25rem; }
.article-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem; font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.4rem;
  line-height: 1.35;
  transition: color 0.2s;
}
.article-card:hover h3 { color: var(--primary); }
.article-excerpt {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-thumb {
  flex-shrink: 0;
  width: 7rem; height: 7rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--muted);
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .article-thumb img { transform: scale(1.05); }

/* Blog page */
.section-header { padding: 3rem 0 1.5rem; }
.section-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.section-header p { color: var(--muted-foreground); margin-top: 0.5rem; }
.category-filter {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: hsl(30 25% 97% / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.filter-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  background: var(--muted);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active { background: var(--primary); color: var(--primary-foreground); }
.filter-btn:hover:not(.active) { background: var(--accent); color: var(--accent-foreground); }
.articles-grid { display: grid; gap: 1rem; padding: 2rem 0; }
.hidden-card { display: none; }

/* Blog post */
.post-header {
  padding: 8rem 0 3rem;
  background: var(--hero-gradient);
  text-align: center;
}
.post-header h1 { font-size: clamp(1.75rem, 4vw, 3rem); max-width: 700px; margin: 1rem auto; }
.post-body {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--foreground);
}
.post-body h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; color: var(--foreground); }
.post-body h3 { font-size: 1.3rem; margin: 2rem 0 0.75rem; color: var(--foreground); }
.post-body p { margin-bottom: 1.25rem; }
.post-body a { color: var(--primary); text-decoration: underline; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body blockquote { border-left: 3px solid var(--primary); padding-left: 1rem; color: var(--muted-foreground); margin: 1.5rem 0; font-style: italic; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.post-body img { border-radius: 0.75rem; box-shadow: 0 4px 16px -4px hsl(220 15% 15% / 0.12); margin: 1.5rem 0; }
.post-body code { background: var(--muted); padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.9em; }
.post-body pre { background: var(--muted); padding: 1rem; border-radius: 0.5rem; overflow-x: auto; margin-bottom: 1.25rem; }
.post-body pre code { background: none; padding: 0; }

/* Post nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 700px; margin: 3rem auto; padding: 0 1.5rem 3rem; }
.post-nav-link { padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; color: var(--muted-foreground); transition: all 0.2s; }
.post-nav-link:hover { border-color: var(--primary); color: var(--primary); }
.post-nav-link span { display: block; font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 600; color: var(--foreground); margin-top: 0.25rem; line-height: 1.3; }

/* CTA section */
.cta-section { padding: 5rem 1.5rem; background: var(--primary); text-align: center; }
.cta-section h2 { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; color: var(--primary-foreground); margin-bottom: 1rem; }
.cta-section p { color: hsl(30 25% 97% / 0.8); max-width: 32rem; margin: 0 auto 2rem; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--background); color: var(--foreground);
  border-radius: 0.5rem; font-weight: 500;
  transition: opacity 0.2s;
}
.btn-cta:hover { opacity: 0.9; }

/* Latest articles section */
.latest-articles { padding: 5rem 0; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.section-row h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.section-row p { color: var(--muted-foreground); margin-top: 0.25rem; }
.browse-link { color: var(--primary); font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.browse-link:hover { gap: 0.7rem; }
.articles-2col { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: hsl(30 15% 92% / 0.3);
  padding: 2.5rem 0;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-brand p { color: var(--muted-foreground); font-size: 0.875rem; max-width: 22rem; margin-top: 0.75rem; }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.75rem; }
.footer-nav a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s; }
.footer-nav a:hover { color: var(--primary); }
.footer-h { font-weight: 600; color: var(--foreground); font-size: 0.95rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 0.75rem; }
.social-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--muted); color: var(--muted-foreground);
  transition: all 0.3s;
}
.social-icon:hover { transform: translateY(-2px); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { font-size: 0.875rem; color: var(--muted-foreground); }

/* Page content (about, now, contact) */
.page-hero { padding: 8rem 0 4rem; background: var(--hero-gradient); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.page-content { padding: 3rem 0 5rem; }
.prose { max-width: 700px; }
.prose p { color: var(--muted-foreground); line-height: 1.8; margin-bottom: 1.25rem; }
.prose strong { color: var(--foreground); }
.prose em { font-style: italic; }

/* Skills grid */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.skill-card { padding: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; box-shadow: var(--card-shadow); transition: all 0.2s; }
.skill-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.skill-icon { width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--primary); }
.skill-card h3 { font-family: 'Fraunces', serif; font-weight: 600; margin-bottom: 0.5rem; font-size: 1rem; }
.skill-card p { font-size: 0.875rem; color: var(--muted-foreground); }

/* Values */
.values-list { display: flex; flex-direction: column; gap: 1.5rem; }
.value-item { display: flex; gap: 1rem; }
.value-icon { width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.value-item h3 { font-weight: 600; color: var(--foreground); margin-bottom: 0.25rem; }
.value-item p { font-size: 0.875rem; color: var(--muted-foreground); }

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -1.6rem; top: 0.4rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.timeline-year { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 0.2rem 0.7rem; border-radius: 2rem; background: var(--accent); color: var(--primary); margin-bottom: 0.75rem; }
.timeline-item h3 { font-weight: 600; color: var(--foreground); margin-bottom: 0.4rem; }
.timeline-item p { font-size: 0.9rem; color: var(--muted-foreground); line-height: 1.7; }

/* Journey map */
.journey-map { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2rem; }
.journey-city { text-align: center; }
.journey-city .emoji { font-size: 2.5rem; }
.journey-city h3 { font-weight: 600; font-size: 1.1rem; }
.journey-city p { font-size: 0.8rem; color: var(--muted-foreground); }
.journey-line { width: 2px; height: 3rem; background: var(--border); display: flex; align-items: center; justify-content: center; position: relative; }
.journey-plane { font-size: 1.5rem; transform: rotate(90deg); }

/* Now page */
.now-section { margin-bottom: 4rem; }
.now-section-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--foreground); }
.now-section-title svg { color: var(--primary); }
.book-card { padding: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; }
.book-title { font-weight: 600; color: var(--foreground); }
.book-author { color: var(--muted-foreground); font-size: 0.9rem; }
.progress-bar { width: 100%; height: 6px; background: var(--muted); border-radius: 3px; margin-top: 0.75rem; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 3px; }
.tool-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.tool-name { font-weight: 600; color: var(--foreground); font-size: 0.95rem; }
.tool-name a { color: var(--primary); }
.tool-name a:hover { text-decoration: underline; }
.tool-desc { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.contact-form h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.form-note { font-size: 0.8rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--foreground); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.req { color: var(--primary); }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-method-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contact-method h3 { font-weight: 600; font-size: 0.95rem; }
.contact-method p { font-size: 0.875rem; color: var(--muted-foreground); }

/* Animations */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Reading progress bar */
#reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--primary); z-index: 100;
  transition: width 0.1s ease;
}

/* Back to blog */
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted-foreground); font-size: 0.9rem; transition: color 0.2s; margin-bottom: 2rem; }
.back-link:hover { color: var(--primary); }

/* Responsive */
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo { width: 22rem; height: 22rem; }
  .articles-2col { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .hero-photo { width: 22rem; height: 28rem; }
  .articles-grid { grid-template-columns: 1fr 1fr 1fr; }
  nav .hamburger { display: none; }
}
@media (max-width: 1023px) {
  nav.desktop-nav { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

/* Icon button (search) */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0.4rem;
  display: inline-flex;
  align-items: center;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--primary); background: var(--accent); }

/* Search modal */
.search-group { padding: 0.5rem 0; display: flex; flex-direction: column; }
.search-group-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); padding: 0.25rem 0.75rem 0.5rem; }
.search-item { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem; color: var(--foreground); font-size: 0.9rem; transition: background 0.15s; text-decoration: none; }
.search-item:hover { background: var(--accent); color: var(--primary); }
.search-item-hash { color: var(--muted-foreground); font-weight: 500; flex-shrink: 0; }
.search-item-meta { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-foreground); margin-top: 0.1rem; }
.search-item-snippet { font-size: 0.8rem; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 0.15rem; }
mark.search-hl { background: hsl(350 45% 40% / 0.2); color: var(--foreground); border-radius: 2px; padding: 0 2px; }

/* Share buttons (blog post) */
.share-btn { padding: 0.4rem; border-radius: 0.4rem; background: var(--muted); color: var(--muted-foreground); display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s; }
.share-btn:hover { background: var(--accent); color: var(--primary); }

/* 404 page responsive */
@media (min-width: 768px) {
  #not-found-wrap { flex-direction: row !important; gap: 4rem !important; }
  #not-found-wrap > div:last-child { text-align: left !important; }
  #contact-hero-wrap { flex-direction: row !important; align-items: center !important; }
}

/* Language switcher */
.lang-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 0.3rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  cursor: default;
}

/* Gallery city pills scroll */
@keyframes pillsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hide scrollbar on gallery strip */
#gallery-strip::-webkit-scrollbar { display: none; }
