/* ----------------------------
   Global Styles
---------------------------- */
@font-face {
  font-family: 'Darkwoman';
  src: url('assets/fonts/Darkwoman.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'Darkwoman', serif;
  color: #bfa36b;
  overflow-x: hidden;
  background-color: #0d0b09;
}

/* ----------------------------
   Background Layer
---------------------------- */
.desk_bg {
  background: url('assets/desk_bg.png') center center / cover no-repeat fixed;
  filter: brightness(1) blur(3px) grayscale(100%);
  position: fixed;
  inset: 0;
  z-index: -2;
}

/* Overlay for depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 10%, rgba(0,0,0,0.9) 100%);
  z-index: -1;
}

/* ----------------------------
   Header & Nav – Fixed Size and Static Layout
---------------------------- */

/* Keep header separate from font scaling below */
.site-header, 
.grimoire-tabs {
  font-family: 'Cinzel Decorative', serif; /* more elegant classical font */
  font-size: 1rem; /* keeps size consistent */
  transform: none;
  position: fixed; /* make it static at top */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(20, 18, 16, 0.85);
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Ensure the site title doesn't scale with pages */
.site-header h1 {
  font-size: 1.8rem;
  margin: 1rem 0;
  text-align: left;
  color: #d1b46a;
  font-family: 'Cinzel Decorative', serif;
  letter-spacing: 1px;
}

/* Adjust spacing so content starts below fixed header */
body {
  padding-top: 100px;
}

/* ----------------------------
   Navigation Tabs
---------------------------- */
.grimoire-tabs {
  display: flex;
  justify-content: center;
  background: rgba(20, 18, 16, 0.7);
  border-bottom: 2px solid #bfa36b;
  position: fixed;
  top: 0;
  z-index: 1000;
}

.grimoire-tabs ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0.8rem 0;
}

.grimoire-tabs a {
  font-family: 'Cinzel Decorative', serif;
  color: #fff8e1;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 10px 10px 0 0;
  background: rgba(80, 60, 20, 0.25);
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(191,163,107,0.15);
}

.grimoire-tabs a:hover,
.grimoire-tabs a.active {
  color: #ffeb99;
  background: rgba(80, 60, 20, 0.45);
  text-shadow: 0 0 10px rgba(255,235,153,0.6);
  box-shadow: 0 0 16px rgba(255,248,225,0.3);
}

/* ----------------------------
   Open Book Layout (Foreground)
---------------------------- */
.grimoire-content.open-book {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 3rem;
  z-index: 1;
}

main {
  display: flex;
  justify-content: center; /* centers left-right */
  align-items: center;     /* centers top-bottom */
  min-height: 100vh;       /* make main take full height */
  padding: 2rem;
  box-sizing: border-box;
}


/* Background book foreground image */
.grimoire-content.open-book::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1250px;
  height: 925px;
  background: url('assets/blank-open-notebook_fg.png') center center / contain no-repeat;
  opacity: 0.95;
  z-index: 0;
  filter: grayscale(100%);
  pointer-events: none;
}

/* Left and Right text columns overlay the book */
.page {
  flex: 1 1 45%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  color: #06080F;
  padding: 2rem 2rem;
  font-family: 'Darkwoman', serif;
  line-height: 1.8;
}

/* Left & right alignment */
.left-page {
  text-align: left;
}

.right-page {
  text-align: left;
}

/* Optional hover glow */
.page:hover {
  text-shadow: 0 0 6px rgba(255, 235, 153, 0.25);
}

/* Mobile layout — single page view */
@media (max-width: 768px) {
  .grimoire-content.open-book {
    flex-direction: column;
    align-items: center;
  }

  .grimoire-content.open-book::before {
    width: 95%;
    height: 500px;
  }

  .page {
    width: 90%;
    text-align: left;
  }
}


/* ----------------------------
   Spell Titles & Text
---------------------------- */
.spell-title {
  font-family: 'Darkwoman', serif;
  color: #06080F;
  text-align: center;
  margin-bottom: 1rem;
}

.spell-text {
  font-family: 'Darkwoman', serif;
  font-size: 1.05rem;
  color: #06080F;
  line-height: 1.8;
}

/* Drop Cap */
.dropcap {
  font-family: 'Darkwoman', serif;
  font-size: 2.8rem;
  float: left;
  margin-right: 6px;
  line-height: 0.9;
  color: #d1b46a;
  text-shadow: 0 0 10px rgba(191,163,107,0.3);
}

/* Date / Time styling */
.page time {
  display: block;
  text-align: right;
  color: #06080F;
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 1.2rem;
}

h1 {
  font-family: 'Darkwoman', serif;
  font-size: 3rem;      /* large title */
  color: #06080F;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1;
}

h2 {
  font-family: 'Darkwoman', serif;
  font-size: 2.5rem;
  color: #06080F;
  line-height: 1;
}

h3 {
  font-size: 2rem;
  color: #06080F;
  line-height: 1;
}

p {
  font-size: 1.5rem;  /* paragraph text */
  line-height: 1;
}

li {
  font-size: 1.5rem;  
  line-height: 1;
  margin-bottom: 1rem;
}
  
blockquote {
  font-size: 1.5rem; 
  font-style: italic;
  line-height: 0.8;
}

/* ----------------------------
   Links
---------------------------- */
a {
  color: #0D0332;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: #ffeb99;
  text-shadow: 0 0 12px rgba(255,235,153,0.7);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url('assets/crosshatch-texture.webp') repeat;
  opacity: 0.6; /* adjust how visible the texture is */
  pointer-events: none; /* allows clicks through it */
  z-index: 9999; /* stays above everything */
  mix-blend-mode: multiply; /* blends with all layers beneath */
}


/* ----------------------------
   Footer
---------------------------- */
footer {
  text-align: center;
  padding:4rem 1rem;
  color: #bfa36b;
  font-size: 0.85rem;
}
