/* Base */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0e0e14;
  color: #eaeaea;
  line-height: 1.6;
}

a {
  color: #7dd3fc;
  text-decoration: none;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* Header / Footer */
.site-header, .site-footer {
  text-align: center;
  padding: 2rem 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4.5rem 1.5rem;
  background-size: cover;
  background-position: center;
  transition: background-size 0.3s ease;
}

.cosmere-hero {
  background-image: url("/images/cosmere-hero.webp");
  background-position: center top;
  filter: brightness(1.08) contrast(1.02);
}

.hero-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 20, 0.55),
    rgba(10, 10, 20, 0.70)
  );
}

/* Reading Order page helpers */
.hero-short {
  min-height: 55vh;
}

.hero-card {
  background: rgba(15, 15, 25, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  max-width: 720px;
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}


/* Homepage hero background */
.bookorder-hero {
  background-image: url("/images/bookorder-hero.webp");
  background-position: center;
}

/* Discworld hero */
.discworld-hero {
  background-image: url("/images/discworld-hero.webp");
  background-size: cover;
  background-position: center;
  background-position: 50% 35%;
}

/* Dune hero */
.dune-hero {
  background-image: url("/images/dune-hero.webp");
  background-size: cover;
  background-position: center;
  background-position: 50% 35%;
}

.btn {
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
}

.btn.primary {
  background: #38bdf8;
  color: #000;
}

.btn.secondary {
  border: 1px solid #94a3b8;
  color: #eaeaea;
}

/* Mobile */
@media (max-width: 600px) {
  .hero-content {
    padding: 2rem;
  }
}

.kicker {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.note {
  color: #cbd5e1;
  margin-top: 0.5rem;
}

.callout {
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.30);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem 0;
}

.reading-list h3 {
  margin-bottom: 0.5rem;
}

.page-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.page-nav a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.footer-links {
  text-align: center;
  margin: 2rem 0 0;
  color: #cbd5e1;
}

/* Simple screen-reader helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile */
@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1400px) {
  .hero {
    min-height: 80vh;
  }
}

/* Show full hero image on wide screens */
@media (min-width: 1600px) {
  .hero {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #0b1020; /* fallback color */
  }
}


.card + .card {
  margin-top: 2rem;
}

/* Sitewide top nav */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.top-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #eaeaea;
  position: relative;
  z-index: 10;
}

.brand img {
  display: block;
  height: 32px;
  width: auto;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(255, 255, 255, 0.03);
  color: #eaeaea;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(125, 211, 252, 0.55);
  outline: none;
}

@media (max-width: 700px) {
  .top-nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.6rem;
  }
}

.nav-links a.active {
  border-color: rgba(56, 189, 248, 0.85);
  background: rgba(56, 189, 248, 0.12);
}

/* Sitewide footer */
.site-footer {
  background: rgba(10, 10, 15, 0.95);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-title {
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  color: rgba(234, 234, 234, 0.75);
  max-width: none;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: rgba(234, 234, 234, 0.85);
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-meta {
  text-align: right;
  font-size: 0.9rem;
  color: rgba(234, 234, 234, 0.7);
}

.footer-note {
  margin-top: 0.5rem;
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-meta {
    text-align: center;
  }
}

@media (min-width: 900px) {
  .footer-tagline {
    white-space: nowrap;
  }
}

.footer-feedback {
  margin-top: 0.75rem;
}

.footer-feedback a {
  color: rgba(125, 211, 252, 0.9);
  font-size: 0.9rem;
}

.footer-feedback a:hover {
  text-decoration: underline;
}

/* Force hero card left alignment */
.hero .hero-card {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Covers the common pattern: <div class="hero-content hero-card"> */
.hero .hero-content.hero-card {
  margin-left: 0 !important;
  margin-right: auto !important;
}
 