:root {
  --bg: #071018;
  --bg-soft: #0b1720;
  --bg-card: rgba(255, 255, 255, 0.045);
  --text: #f2f5f6;
  --muted: #bfc7cc;
  --muted-dark: #88939a;
  --red: #8b1e24;
  --red-soft: #a83238;
  --gold: #b99a55;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(185, 154, 85, 0.08), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(139, 30, 36, 0.12), transparent 26%),
    linear-gradient(180deg, #071018 0%, #05090d 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1rem; }
strong { color: var(--text); }

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(7, 16, 24, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
}

.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold) !important;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

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

.menu-button {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
}

.hero {
  min-height: 100vh;
  padding: 140px 26px 90px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 24, 0.98) 0%, rgba(7, 16, 24, 0.86) 46%, rgba(7, 16, 24, 0.55) 100%),
    url("/assets/noahvik-hero.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, #071018 100%),
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.08), transparent 24%);
  z-index: -1;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.kicker {
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 22px;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 7vw, 7.2rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.055em;
  margin: 0 0 28px;
}

.hero-subtitle {
  max-width: 690px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--muted);
  line-height: 1.65;
}

.hero-line {
  margin-top: 38px;
  max-width: 520px;
  color: var(--text);
  font-size: 1.08rem;
}

.buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--line);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  transition: all 0.25s ease;
}

.btn.primary { background: var(--red); border-color: var(--red); }
.btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.btn.primary:hover { background: var(--red-soft); }

.section { padding: 110px 26px; position: relative; }

.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.container { max-width: 1180px; margin: 0 auto; }
.narrow { max-width: 850px; }

.section-title {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 0 0 30px;
}

.section-subtitle {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--muted);
  line-height: 1.75;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 58px;
  align-items: center;
}

.cover-card { display: flex; flex-direction: column; align-items: center; }

.book-mockup {
  width: min(390px, 100%);
  position: relative;
  transform: perspective(1200px) rotateY(-7deg) rotateX(2deg);
  filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.62));
}

.book-mockup::before {
  content: "";
  position: absolute;
  top: 2.2%;
  right: -5.5%;
  width: 8%;
  height: 95.5%;
  background: linear-gradient(90deg, #05090d, #18242d, #071018);
  transform: skewY(-3deg);
  z-index: -1;
  border-radius: 0 4px 4px 0;
}

.book-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #05090d;
}

.cover-button { margin-top: 34px; justify-content: center; }

.meta-list { margin-top: 34px; border-top: 1px solid var(--line); }

.meta-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.meta-row strong { color: var(--text); font-weight: normal; }

.quote {
  border-left: 2px solid var(--red);
  padding-left: 28px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1.35;
  margin: 34px 0 0;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
  align-items: stretch;
}

.series-book {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 26px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.series-number {
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin-bottom: 18px;
}

.series-book h3 {
  margin: 0 0 14px;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
}

.series-book p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 18px;
}

.series-status {
  color: var(--muted-dark);
  font-size: 0.92rem;
  margin-top: auto;
  padding-top: 22px;
}

.featured-book {
  border-color: rgba(185, 154, 85, 0.42);
  background: linear-gradient(180deg, rgba(185,154,85,0.08), rgba(255,255,255,0.035));
}

.publisher { text-align: center; }
.publisher .lead { margin-left: auto; margin-right: auto; max-width: 760px; }

.publisher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 48px 0 52px;
  text-align: left;
}

.publisher-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  padding: 30px;
  min-height: 230px;
}

.publisher-card h3 {
  margin: 0 0 18px;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--text);
}

.publisher-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.contact-box { max-width: 760px; margin: 0 auto; text-align: center; }

.email-link {
  display: inline-block;
  margin: 20px 0;
  color: var(--gold);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  border-bottom: 1px solid rgba(185,154,85,0.45);
  word-break: break-word;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 26px;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 64px 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: rgba(7, 16, 24, 0.98);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px var(--shadow);
    z-index: 999;
  }

  .nav-links.open { display: flex !important; }

  .menu-button {
    display: block;
    position: relative;
    z-index: 1000;
  }

  .grid-two { grid-template-columns: 1fr; gap: 34px; }
  .books-grid { grid-template-columns: 1fr; }
  .publisher-grid { grid-template-columns: 1fr; margin: 36px 0 44px; }
  .publisher-card { min-height: auto; padding: 28px; }
  .hero { padding-top: 120px; }
  .section { padding: 82px 22px; }
  .meta-row { grid-template-columns: 1fr; gap: 3px; }
  .book-mockup { transform: none; width: min(330px, 92%); }
  .book-mockup::before { display: none; }
}

@media (max-width: 520px) {
  .nav { padding: 15px 18px; }
  .brand { font-size: 0.78rem; }
  .hero h1 { font-size: clamp(2.7rem, 16vw, 4.2rem); }
  .buttons { flex-direction: column; }
  .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: clamp(2rem, 11vw, 3.2rem); }
  .quote { padding-left: 20px; }
}
