/* =========================================
   Forgotten Seal Press — Primary Stylesheet
   Colors, Typography, Layout Components
   ========================================= */

/* ---------- Root Variables ---------- */
:root {
  --bone: #e2dfd4;
  --bone-dark: #dad6cc;
  --charcoal: #2a2a2a;
  --orange: #d35400;
  --slate: #7f8c8d;
  --text-dark: #2a2a2a;
  --text-light: #f5f3ea;
  --panel-bg: #f3efe5;
  --max-width: 1100px;
}

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

body {
  font-family: "Open Sans", Arial, sans-serif;
  background-color: var(--bone);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* UNIVERSAL TEXT FIX — ALWAYS DARK TEXT ON LIGHT BACKGROUNDS */
body,
p,
.section-text,
.section-heading,
.card-body p,
.card-title,
.card-label {
    color: var(--text-dark) !important;
}

/* FOR ANY DARK SECTIONS (CHARCOAL BACKGROUND), SWITCH TEXT TO LIGHT */
.dark-section,
.dark-section p,
.dark-section .section-heading,
.dark-section .section-text,
.dark-section .card-body p {
    color: var(--text-light) !important;
}



/* ---------- Layout Framework ---------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header / Navigation ---------- */

header {
  background-color: var(--bone);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  color: var(--slate);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--charcoal);
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.15rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  transition: width 0.18s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ---------- Buttons ---------- */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.15s ease-out;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.btn-primary {
  background-color: var(--orange);
  color: white;
  border-color: var(--orange);
}

.btn-primary:hover {
  background-color: #b84600;
  border-color: #b84600;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
}

.btn-secondary:hover {
  background-color: rgba(211, 84, 0, 0.07);
  transform: translateY(-1px);
}

.btn-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Hero Section ---------- */

.hero {
  background-color: var(--bone);
  padding: 2.75rem 0 2.25rem;
}

.hero-inner {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1.3;
  min-width: 0;
}

.hero-kicker {
  font-family: "Oswald", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.hero-body {
  font-size: 0.98rem;
  color: var(--charcoal);
  max-width: 32rem;
}

.hero-graphics {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 260px;
}

.hero-block {
  border-radius: 0.35rem;
}

.hero-block.block-1 {
  background-color: var(--charcoal);
  height: 6.5rem;
}

.hero-block.block-2 {
  background: linear-gradient(135deg, var(--orange), #b84600);
  height: 4.25rem;
}

.hero-block.block-3 {
  background-color: var(--slate);
  height: 5.25rem;
}

.hero-block-inner {
  height: 100%;
  border-radius: 0.35rem;
  opacity: 0.96;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

/* ---------- What We Do Strip ---------- */

.strip-what {
  background-color: var(--charcoal);
  padding: 2.5rem 0 2.75rem;
  color: var(--text-light);
}

.section-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.6rem;
}

.section-heading {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.section-text {
  font-size: 0.98rem;
  max-width: 45rem;
  color: var(--text-light);
}

/* ---------- Books / Music Split ---------- */

.split {
  background-color: var(--bone);
  padding: 2.75rem 0;
}

.split-inner {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.split-panel {
  flex: 1;
  min-width: 260px;
  background-color: var(--panel-bg);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 0.5rem;
  padding: 1.5rem 1.6rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.split-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.split-heading {
  font-family: "Oswald";
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  margin-bottom: 0.55rem;
}

.split-text {
  font-size: 0.9rem;
  color: var(--charcoal);
}

.split-panel .btn-primary {
  margin-top: 1rem;
  align-self: flex-start;
}

/* ---------- About Section ---------- */

.about {
  background-color: var(--bone-dark);
  padding: 2.75rem 0;
}

.about-heading {
  font-family: "Oswald";
  font-weight: 600;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal);
  margin-bottom: 0.8rem;
}

.about-text {
  font-size: 0.98rem;
  color: var(--charcoal);
  max-width: 46rem;
}

/* ---------- Signup Strip ---------- */

.strip-signup {
  background-color: var(--charcoal);
  padding: 2.2rem 0 2.4rem;
  color: var(--text-light);
}

.signup-heading {
  font-family: "Oswald";
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.signup-text {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 1rem;
}

.signup-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.signup-input {
  flex: 1;
  min-width: 200px;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(226,223,212,0.08);
  color: var(--text-light);
  font-family: "Open Sans";
}

.signup-input::placeholder {
  color: rgba(245,243,234,0.6);
}

/* ---------- Footer ---------- */

footer {
  background-color: var(--charcoal);
  padding: 1.75rem 0 1.9rem;
  color: var(--text-light);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--slate);
}

.footer-logo {
  font-family: "Oswald";
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.footer-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: "Oswald";
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-meta {
  max-width: 240px;
}

.footer-meta p {
  margin-bottom: 0.35rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-inner {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* ---------- Page hero (books) ---------- */

.page-hero {
  padding: 2.5rem 0 2.5rem;
}

.page-hero-books {
  background-color: var(--bone);
}

.page-hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  align-items: stretch;
}

.page-hero-text {
  flex: 1.5;
  min-width: 0;
}

.page-hero-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.page-hero-subtitle {
  font-size: 0.98rem;
  color: var(--charcoal);
  max-width: 40rem;
}

.page-hero-blocks {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page-hero-block {
  border-radius: 0.4rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.page-hero-block.block-a {
  background-color: var(--charcoal);
  height: 5.2rem;
}

.page-hero-block.block-b {
  background: linear-gradient(135deg, var(--orange), #b84600);
  height: 3.6rem;
}

.page-hero-block.block-c {
  background-color: var(--slate);
  height: 4.3rem;
}

/* ---------- Books grid ---------- */

.books-grid-section {
  background-color: var(--bone);
  padding: 2.5rem 0 3rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.book-card {
  background-color: var(--panel-bg);
  border-radius: 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.5rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-card-header {
  margin-bottom: 0.85rem;
}

.book-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.35rem;
}

.book-title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.book-body p {
  font-size: 0.92rem;
  color: var(--charcoal);
  margin-bottom: 0.65rem;
}

.book-meta {
  font-size: 0.8rem;
  color: var(--slate);
}

.book-card-footer {
  margin-top: 1rem;
}

.book-btn {
  font-size: 0.8rem;
  padding: 0.45rem 1.2rem;
}

/* ---------- Legends of Primus short fiction ---------- */

.books-short-section {
  background-color: var(--bone);
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.books-short-intro {
  max-width: 780px;
  margin-bottom: 1.75rem;
}

.books-grid-short {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Keep it readable on smaller screens */
@media (max-width: 900px) {
  .books-grid-short {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .books-grid-short {
    grid-template-columns: 1fr;
  }
}
/* Fix readability for Legends of Primus intro text */
.books-short-section .section-text {
  color: var(--charcoal);    /* dark readable text */
}



/* ---------- Books responsive ---------- */

@media (max-width: 900px) {
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .page-hero-inner {
    flex-direction: column;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }
}
.book-image {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
}

.book-image img {
  width: 100%;
  height: auto;
  display: block;
}
/* Reduce oversized cover images */
.book-image img {
  max-width: 220px;
  margin: 0 auto;
  display: block;
  border-radius: 0.3rem;
}

/* Active page highlight */
.nav-links a.active::after {
    width: 100%;
}


/* Force the nav font and size to match on all pages */
header .nav-links a {
    font-family: "Oswald", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Keep underline on the active page link */
header .nav-links a.active::after {
    width: 100%;
}
/* FINAL NAV SIZE OVERRIDE — THIS WINS OVER EVERYTHING */
header .nav-links a {
    font-size: 0.8rem !important;
    font-family: "Oswald", sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
}
