/* Load local Copperplate Gothic font  */
@font-face {
  font-family: 'Copperplate';
  src: url('../fonts/Copperplate-Gothic-Std-29-AB.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html, body { height: 100%; }
body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: 'Copperplate', serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* centered fleur-de-lis watermark (only on pages that add the 'welcome' body class) */
body.welcome {
  background: url('../images/fleur-de-lis.png') center top/cover no-repeat, #000;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh 20px;
  box-sizing: border-box;
}

/* Ensure book covers stay constrained even if a per-page body class is removed */
.book-cover img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.site-title {
  font-size: 4em;
  letter-spacing: 0.08em;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  font-weight: 900;
}

.site-subtitle {
  margin: 0 0 18px 0;
  font-size: 1.5rem;
  letter-spacing: 1rem; /* spaced-out letters */
  text-transform: uppercase;
  color: #f8f8f8;
  font-weight: 700;
}

.divider-img {
  width: 48%;
  max-width: 520px;
  margin: 28px auto;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 44px;
  margin-top: 36px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.15s ease, transform 0.15s ease;
}

.nav-links a:hover{
  color: #ffd96a;
  transform: translateY(-3px);
}

@media (max-width: 700px) {
  .site-title { font-size: 2.2rem; }
  .site-subtitle { font-size: 1rem; letter-spacing: 0.45rem; }
  .divider-img { width: 70%; }
  .nav-links a { font-size: 1.25rem; }
}

/* Novels listing page styles */
body.novels {
  background: url('../images/demon-angel.png') center top/cover no-repeat, #000;
}

.novels-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4px 20px;
  position: relative;
  z-index: 1; /* ensure content sits above background */
}

.novels-title {
  font-family: 'Copperplate', serif;
  font-size: 2.8em;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 900;
}

.subtitle {
  font-family: 'Copperplate', serif;
  font-size: 1.5em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 900;
}

.section-divider {
  text-align: center;
  margin: 10px 0 20px;
}

.section-divider img {
  width: 35%;
  max-width: 520px;
  height: auto;
  opacity: 0.9;
  display: block;
  margin: 0 auto;
}

.trilogy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 4px; /* bring the covers closer together */
  margin-bottom: 20px;
  align-items: start;
  justify-items: center;
}

.novel-item {
  text-align: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.novel-item:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.35));
}

.novel-item img {
  width: 100%;
  max-width: 160px; /* reduced cover size */
  height: auto;
  border-radius: 5%;
}

.novel-label {
  font-family: 'Copperplate', serif;
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-top: 12px;
  font-weight: 700;
}

.new-section-title {
  font-family: 'Copperplate', serif;
  font-size: 1.5em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 900;
}

.standalone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  align-items: start;
}

body.novels .back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

body.novels .back-link a {
  font-family: 'Copperplate', serif;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.novels .back-link a:hover {
  color: #ffd96a;
}

@media only screen and (max-width: 768px) {
  .novels-title { font-size: 2em; }
  .trilogy-grid { gap: 18px; }
  .section-divider img { width: 55%; }
}

/* Dark Easy novel page specific styles */
/* Use a normal background on the body for this page instead of an overlay pseudo-element
   (avoids overlaying a fixed pseudo-element that can interfere with stacking/interaction). */
body.dark-easy {
  background: url('../images/dark-easy-angel.png') center top/cover no-repeat, #000;
}

body.dark-easy .back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

body.dark-easy .back-link a {
  font-family: 'Copperplate', serif;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.dark-easy .back-link a:hover {
  color: #ffd96a;
}

body.dark-easy .book-container {
  display: grid;
  /* three columns: flexible left gutter, fixed image column centered on the page,
     and a flexible right column for the details */
  grid-template-columns: 1fr 420px minmax(300px, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  align-items: start;
  position: relative;
  z-index: 1; /* ensure content sits above any background or pseudo-elements */
}

body.dark-easy .book-cover {
  display: flex;
  justify-content: center; /* center the cover inside the middle column */
  align-items: start;
  text-align: center;
  grid-column: 2; /* place the cover in the center column so it appears centered on the page */
}

body a {
  text-decoration: none;
}

body.dark-easy .book-cover img {
  width: 90%;
  max-width: 400px;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.dark-easy .book-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 3; /* place details in the right column */
}

body.dark-easy .book-title {
  font-family: 'Copperplate', serif;
  font-size: 2.5em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 700;
}

body.dark-easy .book-subtitle {
  font-family: 'Copperplate', serif;
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 30px;
  font-weight: 700;
}

body.dark-easy .book-description {
  font-size: 1.3em;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 30px;
  text-transform: uppercase;
}

body.dark-easy .book-link {
  color: magenta;
  text-decoration: underline;
  font-family: 'Copperplate', serif;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.dark-easy .book-link:hover {
  color: #ffd96a;
}

@media only screen and (max-width: 768px) {
  body.dark-easy .book-container {
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px auto;
  }

  body.dark-easy .book-title {
    font-size: 1.8em;
  }

  body.dark-easy .book-description {
    font-size: 1.1em;
  }
}

/* Mobile: ensure single-column flow with back-link first, then cover, then details */
@media only screen and (max-width: 768px) {
  body.dark-easy .back-link { position: static; top: auto; left: auto; margin: 12px 20px; }
  body.dark-easy .book-container { grid-template-columns: 1fr; gap: 30px; margin: 20px auto; }
  body.dark-easy .book-cover { grid-column: auto; grid-row: auto; justify-content: center; }
  body.dark-easy .book-details { grid-column: auto; grid-row: auto; }
}

/* Infernal Blues novel page specific styles */
body.infernal-blues {
  background: url('../images/infernal-blues-demon.png') center top/cover no-repeat, #000;
}

body.infernal-blues .back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

body.infernal-blues .back-link a {
  font-family: 'Copperplate', serif;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.infernal-blues .back-link a:hover {
  color: #ffd96a;
}

body.infernal-blues .book-container {
  display: grid;
  grid-template-columns: 1fr 420px minmax(300px, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  align-items: start;
  position: relative;
  z-index: 1;
}

body.infernal-blues .book-cover {
  display: flex;
  justify-content: center;
  align-items: start;
  text-align: center;
  grid-column: 2;
}

body.infernal-blues .book-cover img {
  width: 90%;
  max-width: 400px;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.infernal-blues .book-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 3;
}

body.infernal-blues .book-title { font-family: 'Copperplate', serif; font-size:2.2rem; text-transform:uppercase; color:#fff; }
body.infernal-blues .book-subtitle { font-family: 'Copperplate', serif; font-size:1.05rem; text-transform:uppercase; color:#fff; margin-bottom:20px; }

body.infernal-blues .book-description {
  font-size: 1.3em;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 30px;
  text-transform: uppercase;
}

body.infernal-blues .book-link { 
    color:skyblue; 
    text-decoration:underline; 
    font-family:'Copperplate', serif; 
    font-size: 1.05rem;
    text-transform:uppercase;
    letter-spacing: 0.08em; 
}

body.infernal-blues .book-link:hover {
  color: #ffd96a;
}

@media only screen and (max-width: 768px) {
  body.infernal-blues .book-container { grid-template-columns: 1fr; gap:30px; margin:40px auto; }
}

@media only screen and (max-width: 768px) {
  body.infernal-blues .back-link { position: static; top: auto; left: auto; margin: 12px 20px; }
  body.infernal-blues .book-container { grid-template-columns: 1fr; gap: 30px; margin: 20px auto; }
  body.infernal-blues .book-cover { grid-column: auto; grid-row: auto; justify-content: center; }
  body.infernal-blues .book-details { grid-column: auto; grid-row: auto; }
}

/* Hell Flower War page specific styles */
body.hell-flower-war {
  background: url('../images/hell-flower-bond.png') center top/cover no-repeat, #000;
}

body.hell-flower-war .back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

body.hell-flower-war .back-link a {
  font-family: 'Copperplate', serif;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.hell-flower-war .back-link a:hover { color: #ffd96a; }

body.hell-flower-war .book-container {
  display: grid;
  grid-template-columns: 1fr 420px minmax(300px, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  align-items: start;
  position: relative;
  z-index: 1;
}

body.hell-flower-war .book-cover { display:flex; justify-content:center; align-items:start; text-align:center; grid-column:2; }
body.hell-flower-war .book-cover img {
  width: 90%;
  max-width: 400px;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
body.hell-flower-war .book-details { display:flex; flex-direction:column; justify-content:center; grid-column:3; }
body.hell-flower-war .book-title { font-family:'Copperplate', serif; font-size:2.2rem; text-transform:uppercase; color:#fff; }
body.hell-flower-war .book-subtitle { font-family:'Copperplate', serif; font-size:1.05rem; text-transform:uppercase; color:#fff; margin-bottom:20px; }

body.hell-flower-war .book-description { 
  font-size: 1.3em;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 30px;
  text-transform: uppercase;
}
body.hell-flower-war .book-link {
    color:goldenrod; 
    text-decoration:underline; 
    font-family:'Copperplate', serif; 
    text-transform:uppercase;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}
body.hell-flower-war .book-link:hover { color: #ffd96a; }

@media only screen and (max-width:768px) {
  body.hell-flower-war .book-container { grid-template-columns:1fr; gap:30px; margin:40px auto; }
}

@media only screen and (max-width:768px) {
  body.hell-flower-war .back-link { position: static; top: auto; left: auto; margin: 12px 20px; }
  body.hell-flower-war .book-container { grid-template-columns: 1fr; gap: 30px; margin: 20px auto; }
  body.hell-flower-war .book-cover { grid-column: auto; grid-row: auto; justify-content: center; }
  body.hell-flower-war .book-details { grid-column: auto; grid-row: auto; }
}

/* Dark Charm Killers (standalone) page styles */
body.dark-charm-killers {
  background: url('../images/dark-charm-joker.png') center top/cover no-repeat, #000;
}

body.dark-charm-killers .back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

body.dark-charm-killers .back-link a {
  font-family: 'Copperplate', serif;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.dark-charm-killers .back-link a:hover { color: #ffd96a; }

body.dark-charm-killers .book-container {
  display: grid;
  grid-template-columns: 1fr 420px minmax(300px, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  align-items: start;
  position: relative;
  z-index: 1;
}

body.dark-charm-killers .book-cover {
  display:flex;
  justify-content:center;
  align-items:start;
  text-align:center;
  grid-column:2;
}

/* match main site book-cover image sizing */
body.dark-charm-killers .book-cover img {
  width: 90%;
  max-width: 400px;
  height: auto;
  border-radius: 5%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.dark-charm-killers .book-details { display:flex; flex-direction:column; justify-content:center; grid-column:3; }
body.dark-charm-killers .book-title { font-family:'Copperplate', serif; font-size:2.2rem; text-transform:uppercase; color:#fff; }
body.dark-charm-killers .book-subtitle { font-family:'Copperplate', serif; font-size:1.05rem; text-transform:uppercase; color:#fff; margin-bottom:20px; }

body.dark-charm-killers .book-description { 
  font-size: 1.3em;
  color: #fff;
  line-height: 1.8;
  margin-bottom: 30px;
  text-transform: uppercase;
}

body.dark-charm-killers .book-link { 
    color:forestgreen; 
    text-decoration:underline; 
    font-family:'Copperplate', serif; 
    text-transform:uppercase; 
    font-size: 1.05rem;
    letter-spacing: 0.08em;    
}
body.dark-charm-killers .book-link:hover { color: #ffd96a; }

@media only screen and (max-width:768px) {
  body.dark-charm-killers .book-container { grid-template-columns:1fr; gap:30px; margin:40px auto; }
}

@media only screen and (max-width:768px) {
  body.dark-charm-killers .back-link { position: static; top: auto; left: auto; margin: 12px 20px; }
  body.dark-charm-killers .book-container { grid-template-columns: 1fr; gap: 30px; margin: 20px auto; }
  body.dark-charm-killers .book-cover { grid-column: auto; grid-row: auto; justify-content: center; }
  body.dark-charm-killers .book-details { grid-column: auto; grid-row: auto; }
}

/* About the author page */
body.about-mike {
  background: url('../images/about-cards.png') center center/cover no-repeat, #000;
}

body.about-mike .back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

body.about-mike .back-link a {
  font-family: 'Copperplate', serif;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

body.about-mike .back-link a:hover { color: #ffd96a; }

.author-container {
  display: grid;
  /* left gutter, centered content column, right column for social icons */
  grid-template-columns: 1fr 380px 320px;
  gap: 10px;
  max-width: 1200px;
  margin: 10px auto;
  padding: 0 20px;
  align-items: left;
  position: relative;
  z-index: 1;
}

.author-content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.author-title {
  font-family: 'Copperplate', serif;
  font-size: 2.2rem;
  text-transform: uppercase;
  color: #fff;
  margin: 10px 0 18px 0;
  font-weight: 700;
}

.author-image img {
  width: 90%;
  max-width: 320px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 60px rgba(0,0,0,0.6);
  display: block;
}

.author-bio {
  font-size: 1.15rem;
  color: #fff;
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-links {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  justify-content: center;
}

.social-link {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: left;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.social-link:hover { transform: scale(1.06); }

/* Ensure image icons inside social links are sized and scaled nicely */
.social-link img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

@media only screen and (max-width: 900px) {
  .author-container { grid-template-columns: 1fr; gap: 30px; margin: 40px auto; }
  .social-links { grid-column: 1; flex-direction: row; gap: 18px; }
}

/* Mobile: ensure about page content stacks in a single centered column
   Order (document order already: author-content then social-links)
   Ensure centering and comfortable max widths for text and images */
@media only screen and (max-width: 900px) {
  body.about-mike .author-container {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 24px auto;
    justify-items: center; /* center cells horizontally */
    align-items: start;
  }

  body.about-mike .author-content {
    grid-column: 1;
    width: 100%;
    margin-top: 30px;
    max-width: 720px; /* keep readable line-length */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.about-mike .author-image img {
    width: 92%;
    max-width: 360px;
    margin: 0 auto;
    display: block;
  }

  body.about-mike .author-bio {
    max-width: 720px;
    margin-top: 16px;
    text-align: center;
  }

  body.about-mike .social-links {
    grid-column: 1;
    display: flex;
    flex-direction: row;
    gap: 18px;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  body.about-mike .social-link { margin: 0; }
}
