:root {
  --black: #050505;
  --red: #c81717;
  --red-bright: #e3261d;
  --gold: #d8b878;
  --ivory: #eee4cf;
  --muted: #b9aa90;
  --header-height: 138px;
  --max-width: 1760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #050505;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  font-family: "Cormorant Garamond", Georgia, serif;
  background:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.24)),
    url("assets/salem-street-background.jpg") center center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 34%, transparent 0 16rem, rgba(0,0,0,.18) 34rem),
    linear-gradient(90deg, rgba(0,0,0,.18), transparent 30%, rgba(0,0,0,.18));
}

.site-header {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(260px, 330px) 1fr minmax(210px, 280px);
  align-items: center;
  gap: 3rem;
  padding: 14px clamp(28px, 5vw, 88px) 12px;
  border-bottom: 2px solid rgba(200, 23, 23, .9);
  background: rgba(5,5,7,.94);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
}

.brand {
  display: block;
  width: min(100%, 330px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(38px, 4.5vw, 82px);
  white-space: nowrap;
}

.main-nav a {
  color: var(--gold);
  text-decoration: none;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 2vw, 2.85rem);
  line-height: 1;
  position: relative;
  transition: color .2s ease, transform .2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.active {
  color: var(--red-bright);
  transform: translateY(-1px);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -15px;
  height: 1px;
  background: var(--red);
}

.header-copyright {
  justify-self: end;
  text-align: right;
  color: var(--gold);
  font-size: clamp(.95rem, 1.05vw, 1.22rem);
  line-height: 1.3;
}

.header-copyright span,
.footer-copyright span {
  display: block;
}

main {
  width: 100%;
}

.hero {
  min-height: calc(100vh - var(--header-height));
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: clamp(28px, 3vw, 56px) clamp(28px, 5vw, 88px) 38px;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(560px, 1.35fr);
  gap: clamp(50px, 6vw, 112px);
  align-items: center;
}

.cover-wrap {
  justify-self: center;
  width: min(100%, 520px);
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--header-height) - 70px);
  object-fit: contain;
  border: 1px solid rgba(216,184,120,.52);
  box-shadow:
    0 30px 80px rgba(0,0,0,.68),
    0 0 0 1px rgba(200,23,23,.15);
}

.synopsis-panel {
  max-width: 850px;
  padding: 18px 34px 24px;
  background: linear-gradient(90deg, rgba(0,0,0,.30), rgba(0,0,0,.18));
  box-shadow: 0 0 60px rgba(0,0,0,.28);
}

.synopsis-panel h1,
.author-card h2 {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}

.synopsis-panel h1 {
  color: var(--red-bright);
  font-size: clamp(2.8rem, 3.2vw, 4.25rem);
}

.author-card h2 {
  color: var(--gold);
  font-size: clamp(2.3rem, 2.8vw, 3.6rem);
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--red);
  margin: 5px 0 22px;
  font-size: .72rem;
}

.ornament::before,
.ornament::after {
  content: "";
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red));
}

.ornament::after {
  background: linear-gradient(90deg, var(--red), transparent);
}

.synopsis-copy {
  font-size: clamp(1.18rem, 1.25vw, 1.58rem);
  line-height: 1.34;
  text-shadow: 0 2px 7px rgba(0,0,0,.95);
}

.synopsis-copy p {
  margin: 0 0 .92em;
}

.coming-soon {
  margin-top: 24px;
  padding: 18px 0 4px;
  text-align: center;
  color: var(--red-bright);
  border-top: 1px solid rgba(200,23,23,.72);
  font-size: clamp(2.5rem, 3vw, 3.85rem);
  text-transform: uppercase;
  letter-spacing: .18em;
}

.author-section {
  min-height: 100vh;
  padding: calc(var(--header-height) + 42px) 24px 60px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.author-card {
  width: min(980px, 92vw);
  text-align: center;
  padding: 34px 56px 44px;
  background: rgba(0,0,0,.32);
  box-shadow: 0 18px 70px rgba(0,0,0,.4);
}

.author-card p {
  margin: 0 auto 1.15em;
  max-width: 920px;
  color: var(--ivory);
  font-size: clamp(1.25rem, 1.45vw, 1.75rem);
  line-height: 1.45;
  text-shadow: 0 2px 7px rgba(0,0,0,.96);
}

.fiction-disclaimer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(200, 23, 23, .35);
  color: rgba(238, 228, 207, .72);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.fiction-disclaimer p {
  margin: 0;
}

.footer-copyright {
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid rgba(200,23,23,.65);
  color: var(--gold);
  font-size: 1.08rem;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  :root {
    --header-height: auto;
  }

  html {
    scroll-padding-top: 0;
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding-bottom: 28px;
  }

  .header-copyright {
    justify-self: center;
    text-align: center;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 20px 46px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 48px;
  }

  .cover-wrap {
    width: min(72vw, 500px);
  }

  .book-cover {
    max-height: none;
  }

  .synopsis-panel {
    margin-inline: auto;
  }

  .author-section {
    min-height: 100vh;
    padding-top: 70px;
  }
}

@media (max-width: 700px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    padding-inline: 18px;
  }

  .brand {
    width: min(100%, 300px);
  }

  .main-nav {
    gap: 18px 28px;
  }

  .main-nav a {
    font-size: 1.85rem;
  }

  .hero {
    padding: 34px 18px;
  }

  .cover-wrap {
    width: min(92vw, 430px);
  }

  .synopsis-panel {
    padding: 22px 20px;
  }

  .synopsis-copy {
    font-size: 1.14rem;
    line-height: 1.42;
  }

  .author-card {
    padding: 28px 20px 36px;
  }

  .footer-copyright {
    margin-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .main-nav a {
    transition: none;
  }
}
