/* =============================================================
   Safari Trip Planner — Blog shared styles
   Linked by: index.html, post-template.html, and every post page
   ============================================================= */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ── */
:root {
  --sand:    #F5EDD8;
  --earth:   #C4935A;
  --bark:    #6B4226;
  --savanna: #311D10;
  --dust:    #E8DBBF;
  --accent:  #D4723A;
}

/* ── Base ── */
body {
  background: #1a1208;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  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.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

a { color: var(--earth); text-decoration: none; }
a:hover { opacity: 0.8; }
img { max-width: 100%; }

/* ── Nav ── */
nav {
  border-bottom: 0.5px solid rgba(196,147,90,0.3);
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  letter-spacing: 0.5px;
  color: var(--earth);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 14px;
}
.nav-links a { color: rgba(255,255,255,0.5); }
.nav-links a:hover { color: #ffffff; opacity: 1; }
.nav-links .active { color: var(--earth); }
.nav-cta {
  font-size: 13px;
  background: var(--accent);
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.18s;
}
.nav-cta:hover { background: #c4622e; opacity: 1; }

/* ── Post tag / eyebrow label ── */
.post-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--earth);
}

/* ── Footer ── */
footer {
  border-top: 0.5px solid rgba(196,147,90,0.2);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}
footer a { color: rgba(255,255,255,0.4); }
footer a:hover { color: var(--earth); opacity: 1; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
}
