:root {
  --bg: #fafafa; --card-bg: #fff; --text: #1a1a1a; --text-muted: #666;
  --border: #e8e8e8; --accent: #ee4d2d; --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --radius: 8px; --max-w: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
.site-header {
  background: var(--card-bg); border-bottom: 1px solid var(--border);
  padding: 1rem 0; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.main-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.main-nav a { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.main-nav a:hover { color: var(--accent); }
.ad-slot { margin: 1.5rem auto; text-align: center; min-height: 20px; }
.ad-mobile { display: none; }
@media (max-width: 768px) {
  .ad-mobile { display: block; }
}
.hero { text-align: center; padding: 3rem 1rem 2rem; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.niche-section { padding: 2rem 0; border-top: 1px solid var(--border); }
.niche-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.25rem; text-transform: capitalize; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; display: block;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.card-img {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #f0e6ff 0%, #ffe0f0 50%, #d0e6ff 100%);
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-meta { padding: 0.6rem 0.8rem; font-size: 0.85rem; color: var(--text); border-top: 1px solid var(--border); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.gallery-item {
  aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden; display: block;
  background: #eee; position: relative; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.gallery-item:hover img { transform: scale(1.05); }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin: 1rem 0; }
.breadcrumb a { color: var(--text-muted); }
.article-title { font-size: 2rem; font-weight: 800; margin: 0.5rem 0; text-transform: capitalize; }
.article-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1rem; }
.article-body { max-width: 720px; margin: 2rem auto 0; padding: 1rem 0; }
.article-body h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ol, .article-body ul { margin: 0 0 1rem 1.5rem; }
.article-body li { margin-bottom: 0.4rem; }
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2rem 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 2rem; cursor: zoom-out;
}
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
@media (max-width: 640px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-subtitle { font-size: 1rem; }
  .niche-title { font-size: 1.4rem; }
  .article-title { font-size: 1.5rem; }
  .main-nav { gap: 0.75rem; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.5rem; }
}
