:root {
  --mhp-bg: #0a0a0a;
  --mhp-cream: #f5ecd7;
  --mhp-cream-muted: #c9bfa8;
  --mhp-navy: #1a2a5e;
  --mhp-orange: #e8720c;
  --mhp-gold: #f5a623;
  --mhp-text-dark: #1a1208;
  --mhp-max-width: 28rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--mhp-bg);
  color: var(--mhp-cream);
  font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.mhp-page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.25rem 2.5rem;
  overflow-x: hidden;
}

.mhp-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.55) 0%,
      rgba(10, 10, 10, 0.78) 45%,
      rgba(10, 10, 10, 0.9) 100%
    ),
    url('/img/the-whisperer-og.jpg') center / cover no-repeat;
}

.mhp-main {
  width: 100%;
  max-width: var(--mhp-max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mhp-logo {
  display: block;
  width: min(10rem, 60vw);
  height: auto;
  margin: 1.75rem auto 1rem;
  opacity: 0.9;
}

.mhp-cover {
  display: block;
  width: min(16rem, 78vw);
  height: auto;
  margin: 0 auto 1.75rem;
  border: none;
  border-radius: 2px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(245, 236, 215, 0.08);
}

.mhp-cover-trigger {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mhp-cover-trigger:hover,
.mhp-cover-trigger:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(245, 236, 215, 0.14);
}

.mhp-cover-trigger:focus-visible {
  outline: 2px solid var(--mhp-cream);
  outline-offset: 4px;
}

body.mhp-modal-open {
  overflow: hidden;
}

.mhp-video-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.mhp-video-modal.is-open {
  display: flex;
}

.mhp-video-modal__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.82);
}

.mhp-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(20rem, 88vw, calc((100vh - 2.5rem) * 9 / 16), calc((100dvh - 2.5rem) * 9 / 16));
  aspect-ratio: 9 / 16;
  max-height: calc(100vh - 2.5rem);
  max-height: calc(100dvh - 2.5rem);
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.mhp-video-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  color: var(--mhp-cream);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.mhp-video-modal__close:hover,
.mhp-video-modal__close:focus-visible {
  background: rgba(10, 10, 10, 0.92);
  color: #fff;
}

.mhp-video-modal__close:focus-visible {
  outline: 2px solid var(--mhp-cream);
  outline-offset: 2px;
}

.mhp-video-modal__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.mhp-divider {
  width: 3.5rem;
  height: 3px;
  margin: 0 auto 1.5rem;
  border: none;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mhp-navy), var(--mhp-orange), var(--mhp-navy));
  opacity: 0.85;
}

.mhp-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  color: var(--mhp-cream);
}

.mhp-author {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-style: italic;
  text-align: center;
  color: var(--mhp-cream-muted);
}

.mhp-blurb {
  margin: 0 0 2rem;
  text-align: center;
  color: var(--mhp-cream-muted);
  max-width: 26rem;
}

.mhp-blurb p {
  margin: 0 0 1rem;
}

.mhp-blurb p:last-child {
  margin-bottom: 0;
}

.mhp-blurb-quote {
  font-style: italic;
  font-size: 1.1875rem;
  letter-spacing: 0.02em;
  color: var(--mhp-cream);
}

.mhp-cta {
  display: block;
  width: 100%;
  max-width: 20rem;
  padding: 1rem 1.5rem;
  margin: 0 auto 1.25rem;
  border: none;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--mhp-gold) 0%, var(--mhp-orange) 100%);
  box-shadow:
    0 4px 18px rgba(232, 114, 12, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: var(--mhp-text-dark);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.mhp-cta:hover,
.mhp-cta:focus-visible {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.mhp-cta:focus-visible {
  outline: 2px solid var(--mhp-cream);
  outline-offset: 3px;
}

.mhp-secondary {
  margin: 0 0 0;
  font-size: 0.9375rem;
  text-align: center;
}

.mhp-secondary a {
  color: var(--mhp-cream-muted);
  text-decoration: underline;
  text-decoration-color: var(--mhp-orange);
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}

.mhp-secondary a:hover,
.mhp-secondary a:focus-visible {
  color: var(--mhp-orange);
}

.mhp-footer {
  margin-top: 0;
  padding-top: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--mhp-cream-muted);
  opacity: 0.75;
}

@media (max-width: 360px) {
  .mhp-page {
    padding: 1.5rem 1rem 2rem;
  }

  .mhp-logo {
    width: min(8.5rem, 56vw);
    margin-top: 1.25rem;
  }

  .mhp-cover {
    width: min(14rem, 82vw);
    margin-bottom: 1.5rem;
  }

  .mhp-cta {
    font-size: 1rem;
    padding: 0.9375rem 1.25rem;
  }
}
