/* Re-skins the original Darkstone wiki pages to match the new site.
   Loaded after each page's own <style>, so it only overrides colours, type and the nav. */

:root {
  --bg: #170512 !important;
  --bg-card: rgba(236, 226, 230, 0.04) !important;
  --cream: #ece2e6 !important;
  --cream-dim: rgba(236, 226, 230, 0.68) !important;
  --cream-faint: rgba(236, 226, 230, 0.4) !important;
  --border: rgba(236, 226, 230, 0.14) !important;
  --border-hover: rgba(236, 226, 230, 0.4) !important;
}

body { background: #170512 !important; color: #ece2e6 !important; font-family: "Hanken Grotesk", system-ui, sans-serif !important; font-size: 17px; }
body *:not(.card-icon):not(.sigil) { font-family: "Hanken Grotesk", system-ui, sans-serif !important; }
body :is(h1, h2, h3, h4, .brand span, .number):not(.card-icon):not(.sigil):not(#x) {
  font-family: "Bodoni Moda", Didot, serif !important; font-style: italic; font-weight: 400 !important;
  letter-spacing: -0.01em !important; text-transform: none !important;
}
body h1 { letter-spacing: -0.03em !important; }
body [class*="label"], body [class*="meta"], body .section-title, body nav a { text-transform: none !important; letter-spacing: 0.01em !important; }
.noise-overlay { display: none; }

/* New navigation, same as the rest of the site */
body > nav.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(23, 5, 18, 0.82); border: 0;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
nav.site-nav .brand { display: flex; align-items: center; gap: .6rem; color: #ece2e6; text-decoration: none; font-size: 1.25rem; letter-spacing: 0; }
nav.site-nav .sigil {
  display: inline-block; width: 1.1rem; height: 1.9rem; background: currentColor;
  -webkit-mask: url(/img/sigil-white.png) center / contain no-repeat; mask: url(/img/sigil-white.png) center / contain no-repeat;
}
nav.site-nav ul { display: flex; gap: clamp(1rem, 3vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
nav.site-nav ul a { color: #ece2e6; text-decoration: none; font-size: .95rem; font-style: normal; border-bottom: 1px solid transparent; }
nav.site-nav ul a:hover, nav.site-nav ul a[aria-current] { border-bottom-color: currentColor; }
@media (max-width: 720px) { nav.site-nav .brand span { display: none; } }

a:focus-visible { outline: 2px solid #e0707c; outline-offset: 4px; }
::selection { background: #c8323f; color: #efe8ea; }
