/* styles.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #121212;
  color: #c2baac;
  font-family: 'Lora', serif;
  overflow-x: hidden;
}

/* ===================== */
/* HERO */
/* ===================== */

.hero {
  position: relative;

  width: 100%;
  height: clamp(560px, 72vh, 760px);

  margin-top: var(--navbar-height, 84px);
  padding: 0;

  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: top center;

  background: #000000;

  filter:
    brightness(1.25)
    contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0.7)
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1000px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 40px 5%;
}

.hero-content h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: 3px;

  margin-bottom: 30px;
}

.tagline {
  max-width: 700px;

  margin-bottom: 40px;

  color: #c2baac;
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;

  text-transform: uppercase;
}

/* ===================== */
/* FEATURED BOOK */
/* ===================== */

.featured-book {
  padding: 72px 5%;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.65)
    ),
    url("../images/elements/bkgd_cement.jpg");

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

}

.book-content {
  width: 100%;
  max-width: 1000px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: clamp(50px, 7vw, 80px);
}

.book-cover {
  position: relative;
}

.book-cover img {
  width: 320px;
  position: relative;
  z-index: 2;
  display: block;
  margin: 0;
  box-shadow: 2px 2px 30px rgba(68, 66, 66, 0.6);
}

/* Soft blurred effect around The Maker's Regret cover image */
.book-cover img[src*="tmr_cover.png"] {
  box-sizing: border-box;
  border: none;
  border-radius: 2px;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 0 28px rgba(255,255,255,0.10);
}

.book-cover::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 8%;
  width: 72%;
  height: 26%;
  background: rgba(180,180,180,0.60);
  filter: blur(20px);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.book-text h2 {
  font-family: 'Cinzel', serif;
  font-size: 3rem;

  margin-bottom: 30px;
}

.book-text p {
  margin-bottom: 20px;

  line-height: 1.8;
  color: #c2baac;
}

.book-release {
  margin-top: 24px;
  text-align: center;
}

.book-release h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: #c2baac;
}

.book-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-secondary-dark {
  display: inline-block;
  padding: 14px 24px;
  text-decoration: none;
  color: #c2baac;
  background: #171717;
  border: 1px solid #c2baac;
  border-radius: 2px;
  transition: 0.25s ease;
}

.btn-secondary-dark:hover {
  background: #232323;
}

/* ===================== */
/* JOURNAL */
/* ===================== */

.journal-section {
  padding: 72px 8%;

  background:
    linear-gradient(
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.65)
    ),
    url("../images/elements/bkgd_black.jpg");

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

}

.section-header {
  text-align: center;
  margin-bottom: 42px;
}

.section-header h2 {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  margin-bottom: 14px;
}

.section-header p {
  color: #c2baac;
}

/* Row containing all three journal cards */
.journal-card-row {
  background:
      linear-gradient(
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.45)
    ),
    url("../images/elements/bkgd_black.jpg");

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  
  width: 100%;
  max-width: 1400px;

  margin: 0 auto;

  display: flex;
  align-items: stretch;
  gap: 12px;
}

/* Individual journal card */
.journal-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;

  flex: 1 1 0;
  min-width: 0;

  overflow: hidden;

  background: #1d1d1d;
  border: 1px solid rgba(255, 255, 255, 0.05);

  color: inherit;
  text-decoration: none;

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}

/* Image on the left side of each card */
.journal-card-image {
  width: 120px;
  min-height: 180px;

  object-fit: cover;
  display: block;

  flex-shrink: 0;
}

/* Text on the right side of each card */
.journal-card-content {
  padding: 20px 18px 24px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 10px;
  flex: 1;
}

.journal-card-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
}

.journal-card-content p {
  color: #c2baac;
  line-height: 1.6;
}

/* Card hover effect */
.journal-card:hover {
  transform: translateY(-5px);

  background: #222222;
  border-color: rgba(194, 186, 172, 0.25);
}

/* Button below the cards */
.journal-footer {
  display: flex;
  justify-content: center;

  margin-top: 36px;
}


/* ======================================== */
/* FLOATING RETURN TO FACTIONS LINK */
/* ======================================== */

.dominion-back-link,
.order-back-link,
.silentate-back-link {
    position: fixed;
    z-index: 1200;

    top: 120px;
    right: 28px;

    margin: 0;
    padding: 10px 14px;

    border: 1px solid rgba(168, 36, 54, 0.55);
    border-radius: 2px;

    background: rgba(15, 15, 15, 0.92);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(5px);
}

.dominion-back-link:hover,
.dominion-back-link:focus-visible,
.order-back-link:hover,
.order-back-link:focus-visible,
.silentate-back-link:hover,
.silentate-back-link:focus-visible {
    background: rgba(35, 18, 21, 0.97);

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.45),
        0 0 12px rgba(168, 36, 54, 0.2);
}

.hierarchy-information {
    transform: translateX(-12px);
}

/* ======================================== */
/* FLOATING RETURN TO FACTIONS LINK */
/* ======================================== */

.dominion-back-link,
.order-back-link,
.silentate-back-link {
    position: fixed;
    z-index: 1200;

    top: 104px;
    left: auto;
    right: 17px;

    margin: 0;
    padding: 10px 14px;

    border: 1px solid rgba(168, 36, 54, 0.55);
    border-radius: 2px;

    background: rgba(15, 15, 15, 0.92);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(5px);
}

/* ===================== */
/* FOOTER */
/* ===================== */

footer {
  padding: 10px 20px;
  text-align: center;
  background: black;
}

.footer-logo {
  width: auto;
  height: 52px;
  display: block;
  margin: 0 auto 10px;
}

.footer h2 {
  margin-bottom: 8px;
  font-family: 'Cinzel', serif;
}

/* ===================== */
/* RESPONSIVE */
/* ===================== */

@media (max-width: 900px) {

  .hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
  }

  .book-content {
    flex-direction: column;
  }

  .countdown-grid {
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .world-grid-five {
    grid-template-columns: 1fr;
  }

  .world-grid-separator {
    display: none;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-card-row {
    flex-direction: column;
  }

  .journal-separator {
    display: none;
  }

}

@media (max-width: 700px) {

    .dominion-back-link,
    .order-back-link,
    .silentate-back-link {
        top: 94px;
        left: 12px;
        right: auto;

        padding: 8px 10px;

        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }

}