/* ============================================================
   SepiaLog — cookie / privacy consent banner
   Self-contained styles. Uses the same palette as the site,
   but only system fonts (so it works before fonts are loaded).
   ============================================================ */

#sl-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 760px;
  margin: 0 auto;
  background: #211e1b;
  color: #ece7e1;
  border: 1px solid rgba(236, 231, 225, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 48px -16px rgba(0, 0, 0, 0.7);
  padding: 22px 24px 20px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  /* hidden by default; .is-open reveals it */
  display: none;
  animation: sl-consent-in 0.35s ease both;
}

#sl-consent.is-open { display: block; }

@keyframes sl-consent-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

#sl-consent h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
}

#sl-consent p {
  margin: 0 0 16px;
  color: #b3aaa1;
}

#sl-consent a {
  color: #d97757;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#sl-consent .sl-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#sl-consent button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.16s;
  /* equal prominence for Accept and Reject (GDPR requirement) */
  flex: 1 1 auto;
  min-width: 140px;
}
#sl-consent button:active { transform: translateY(1px); }

#sl-consent .sl-accept {
  background: #d97757;
  color: #1c1411;
}
#sl-consent .sl-accept:hover { background: #e58a6b; }

#sl-consent .sl-reject {
  background: transparent;
  color: #ece7e1;
  border-color: rgba(236, 231, 225, 0.22);
}
#sl-consent .sl-reject:hover { border-color: rgba(217, 119, 87, 0.5); color: #d97757; }

@media (max-width: 520px) {
  #sl-consent { padding: 20px 18px 18px; }
  #sl-consent .sl-consent-actions { flex-direction: column; }
  #sl-consent button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #sl-consent { animation: none; }
}
