/* ═══════════════════════════════════════════
   BLOG — JANAPAZ.COM
   Dark Luxury Identity (cores novas)
═══════════════════════════════════════════ */
:root {
  --bg:        #1A1612;
  --bg-raised: #211E19;
  --bg-card:   #252017;
  --cream:     #F5F0E8;
  --cream-dim: #B8B0A0;
  --amber:     #FFCA3A;
  --amber-dim: #6A4C93;
  --amber-glow:rgba(255,202,58,.12);
  --border:    rgba(255,202,58,.18);
  --border-dim:rgba(245,240,232,.08);

  --font-head: 'Rajdhani', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --ease: cubic-bezier(0.16,1,0.3,1);
  --t:   0.35s;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amber); text-decoration: none; transition: opacity var(--t); }
a:hover { opacity: .8; }
img { display: block; max-width: 100%; }

/* Grain */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: .6;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(26,22,18,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
  letter-spacing: .1em; color: var(--cream);
}
.nav__logo span { color: var(--amber); }
.nav__back {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cream-dim);
}
.nav__back:hover { color: var(--amber); }

/* Article layout */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 9rem 2rem 5rem; }

.article-meta {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .25em; text-transform: uppercase; color: var(--amber);
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem;
}
.article-meta::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--amber);
}

h1.article-title {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -.01em;
  color: var(--cream); margin-bottom: 1.5rem;
}
.article-lead {
  font-size: 1.2rem; color: var(--cream-dim); font-weight: 300;
  line-height: 1.75; margin-bottom: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border-dim);
}

.article-body h2 {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 600;
  color: var(--cream); margin: 2.5rem 0 1rem; letter-spacing: .01em;
}
.article-body h3 {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 600;
  color: var(--amber); margin: 2rem 0 .75rem;
}
.article-body p { margin-bottom: 1.25rem; color: var(--cream); font-weight: 300; }
.article-body ul, .article-body ol { margin: 0 0 1.5rem 1.5rem; color: var(--cream); font-weight: 300; }
.article-body li { margin-bottom: .6rem; }
.article-body strong { color: var(--cream); font-weight: 600; }
.article-body blockquote {
  border-left: 2px solid var(--amber); padding: .5rem 0 .5rem 1.5rem;
  margin: 1.5rem 0; color: var(--cream-dim); font-style: italic;
}

/* CTA box */
.article-cta {
  background: var(--bg-raised); border: 1px solid var(--border);
  padding: 2.5rem; margin: 3rem 0 0; text-align: center;
}
.article-cta h3 {
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  color: var(--cream); margin-bottom: .75rem;
}
.article-cta p { color: var(--cream-dim); margin-bottom: 1.5rem; font-weight: 300; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-head); font-size: .9rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .9rem 2rem; background: var(--amber); color: var(--bg);
  transition: opacity var(--t);
}
.btn:hover { opacity: .85; }

/* Footer */
.blog-footer {
  border-top: 1px solid var(--border-dim); padding: 3rem 2rem;
  text-align: center; color: var(--cream-dim);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em;
}

/* Blog index grid */
.blog-hero { max-width: 1100px; margin: 0 auto; padding: 9rem 2rem 3rem; }
.blog-hero h1 {
  font-family: var(--font-head); font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1; color: var(--cream); margin-bottom: 1rem;
}
.blog-hero h1 em { font-style: normal; color: var(--amber); }
.blog-hero p { font-size: 1.15rem; color: var(--cream-dim); font-weight: 300; max-width: 560px; }

.post-grid {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem 6rem;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem;
}
.post-card {
  background: var(--bg-raised); border: 1px solid var(--border-dim);
  padding: 2rem; transition: border-color var(--t), transform var(--t);
  display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--border); transform: translateY(-4px); }
.post-card__cat {
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 1rem;
}
.post-card__title {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600;
  color: var(--cream); line-height: 1.15; margin-bottom: .75rem;
}
.post-card__excerpt {
  font-size: .95rem; color: var(--cream-dim); font-weight: 300;
  line-height: 1.65; margin-bottom: 1.5rem; flex: 1;
}
.post-card__read {
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--amber);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
