:root {
  --bg: #080706;
  --bg-soft: #11100e;
  --panel: rgba(13, 12, 10, 0.78);
  --panel-strong: rgba(7, 6, 5, 0.88);
  --text: #f2eee6;
  --muted: #c7bca8;
  --dim: #8f846f;
  --line: rgba(242, 238, 230, 0.16);
  --accent: #d6ad65;
  --accent-soft: rgba(214, 173, 101, 0.18);
  --danger: #a05d39;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 8%, rgba(214, 173, 101, 0.18), transparent 38rem),
    linear-gradient(180deg, rgba(8, 7, 6, 0.25), #080706 72%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("../img/hero-friar-alone.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  filter: saturate(0.78) contrast(1.05);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8,7,6,0.92), rgba(8,7,6,0.54), rgba(8,7,6,0.92)),
    linear-gradient(180deg, rgba(8,7,6,0.25), #080706 85%);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(8, 7, 6, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.05rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a {
  padding: 0.35rem 0.1rem;
  border-bottom: 1px solid transparent;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1.1fr 0.82fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.hero.narrow {
  min-height: auto;
  grid-template-columns: 1fr;
  max-width: 820px;
  padding-bottom: 4rem;
}

.eyebrow {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 0.76rem;
  margin-bottom: 1rem;
}

h1, h2, h3 {
  font-weight: 500;
  margin: 0;
  line-height: 1.04;
}

h1 {
  font-size: clamp(3.2rem, 9vw, 7.8rem);
  letter-spacing: 0.035em;
}

.hero-title-small {
  font-size: clamp(3rem, 7vw, 6.1rem);
  letter-spacing: 0.015em;
}

.tagline {
  margin: 1.4rem 0 0;
  max-width: 720px;
  font-size: clamp(1.35rem, 2.7vw, 2.35rem);
  line-height: 1.18;
  color: #f4ead8;
}

.lede {
  margin: 1.4rem 0 0;
  max-width: 650px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  border-radius: 999px;
}

.button:hover {
  background: rgba(214, 173, 101, 0.27);
  color: var(--text);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.button.disabled {
  pointer-events: none;
  border-color: rgba(255,255,255,0.16);
  color: var(--dim);
  background: rgba(255,255,255,0.02);
}

.book-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border-radius: 1.2rem;
}

.cover-wrap {
  position: relative;
  max-width: 410px;
  margin: 0 auto;
}

.cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.45rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.62);
}

.cover-caption {
  margin-top: 1rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.section {
  padding: clamp(3.2rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.4rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 1.2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.copy {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.86;
  color: var(--muted);
}

.copy p { margin: 0 0 1.1rem; }
.copy p:last-child { margin-bottom: 0; }

.book-hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 2rem;
}

.book-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.trailer-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: #030303;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.trailer-frame img,
.trailer-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.trailer-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 58% 48%, transparent 0, rgba(8,7,6,0.15) 35%, rgba(8,7,6,0.75) 100%),
    linear-gradient(180deg, transparent 0%, rgba(8,7,6,0.22) 62%, rgba(8,7,6,0.72) 100%);
}

.trailer-note {
  margin-top: 0.85rem;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.6;
}

.kicker {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
}

.subtitle {
  margin-top: 1rem;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  color: #f4ead8;
  line-height: 1.24;
}

.meta-line {
  margin-top: 0.7rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  padding: 0.48rem 0.75rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
}

.details-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
  line-height: 1.65;
}

.details-list li {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.details-list strong {
  color: var(--text);
  font-weight: 600;
}

.contact-card {
  max-width: 720px;
}

.email-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--accent);
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  word-break: break-word;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.4rem 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--dim);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  line-height: 1.7;
}

@media (max-width: 840px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hero,
  .grid-2,
  .book-layout {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .book-card {
    max-width: 520px;
  }
  h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .book-layout .book-card { order: 2; }
}

/* Trailer landing page */
.trailer-landing {
  padding: clamp(2.8rem, 7vw, 5.8rem) 0 clamp(2rem, 5vw, 4rem);
}

.trailer-intro {
  max-width: 880px;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.trailer-title {
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  letter-spacing: 0.018em;
}

.trailer-lede {
  margin-left: auto;
  margin-right: auto;
}

.trailer-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.trailer-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: #020202;
  box-shadow: var(--shadow);
}

.trailer-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.08), transparent 38%, rgba(0,0,0,0.24)),
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.2) 72%, rgba(0,0,0,0.48) 100%);
}

.trailer-video,
.trailer-final-still {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #020202;
}

.trailer-final-still {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.trailer-shell.is-ended .trailer-video {
  opacity: 0;
  visibility: hidden;
}

.trailer-shell.is-ended .trailer-final-still {
  opacity: 1;
  visibility: visible;
}

.trailer-replay,
.trailer-sound {
  position: absolute;
  right: clamp(1rem, 2vw, 1.4rem);
  bottom: clamp(1rem, 2vw, 1.4rem);
  z-index: 3;
  min-height: 2.5rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(214, 173, 101, 0.72);
  border-radius: 999px;
  background: rgba(8, 7, 6, 0.7);
  color: var(--text);
  backdrop-filter: blur(12px);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.68rem;
  cursor: pointer;
}


.trailer-sound {
  left: clamp(1rem, 2vw, 1.4rem);
  right: auto;
}

.trailer-replay:hover,
.trailer-sound:hover {
  background: rgba(214, 173, 101, 0.22);
}

.purchase-panel {
  margin: clamp(1.5rem, 4vw, 2.6rem) auto 0;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background:
    linear-gradient(135deg, rgba(214,173,101,0.12), rgba(255,255,255,0.02) 38%, rgba(0,0,0,0.18)),
    var(--panel-strong);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 2rem);
}

.purchase-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.buy-button {
  min-width: 12rem;
}

.secondary-buy {
  border-color: rgba(214,173,101,0.56);
  color: var(--text);
}

.small-copy {
  font-size: 0.86rem;
  color: var(--dim);
}

.credits-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (max-width: 840px) {
  .trailer-intro {
    text-align: left;
  }

  .purchase-panel {
    grid-template-columns: 1fr;
  }

  .purchase-actions {
    justify-content: stretch;
  }

  .buy-button {
    width: 100%;
  }
}
