/* BASE — shared across all blog pages (index + posts) */

:root {
  --bg: #0A0C0E;
  --bg-card: #0F1113;
  --orange: #F2891B;
  --orange-light: #F5A04A;
  --text: #E2E0DC;
  --text-muted: rgba(226,224,220,0.45);
  --text-secondary: rgba(226,224,220,0.70);
  --border: rgba(255,255,255,0.07);
  --border-orange: rgba(242,137,27,0.30);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,12,14,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav--scrolled { box-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.nav__container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: 0.01em; }
.nav__logo:hover { color: var(--orange); }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__link { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); transition: color 0.3s; }
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link.active { color: var(--orange); }
.nav__cta { font-size: 0.8rem; font-weight: 700; color: #0A0C0E; background: var(--orange); padding: 0.45rem 1.1rem; border-radius: 4px; transition: all 0.3s; }
.nav__cta:hover { background: var(--orange-light); color: #0A0C0E; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; background: none; border: none; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s; border-radius: 1px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__close { display: none; position: absolute; top: 1.25rem; right: 1.25rem; background: none; border: none; color: var(--text); font-size: 1.75rem; line-height: 1; cursor: pointer; padding: 0.25rem; opacity: 0.7; }
.nav__close:hover { opacity: 1; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--text-secondary); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--orange); }
.footer-copy { width: 100%; font-size: 0.78rem; color: var(--text-muted); margin-top: 1rem; text-align: center; }

/* MOBILE NAV */
@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
    background: #0A0C0E; flex-direction: column; justify-content: center;
    padding: 2rem; gap: 1.5rem; transition: right 0.35s; box-shadow: -4px 0 30px rgba(0,0,0,0.3);
    z-index: 1001; border-bottom: none;
  }
  .nav__menu.is-open { right: 0; }
  .nav__close { display: flex; }
  .nav__link { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--text); }
  .nav__cta { text-align: center; }
}
