/* =========================================================
   The Resurrection of Harriet — Author Website
   ========================================================= */

:root {
  --dark: #101414;
  --dark-header: #141818;
  --dark-soft: #212626;
  --cream: #f2ebdd;
  --gold: #c4a06a;
  --gold-deep: #916c36;
  --ink: #171a17;
  --ink-70: rgba(23, 26, 23, 0.7);
  --wine: #371318;
  --muted: #c9c6bc;

  --font-serif: "Libre Baskerville", Georgia, serif;
  --font-display: "Italiana", "Libre Baskerville", serif;
  --font-sans: "Inter", system-ui, sans-serif;

  --header-h: 87px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--dark);
  overflow-x: hidden;
}

img { max-width: 100%; }

a { text-decoration: none; }

.container-xl { max-width: 1152px; }

/* ---------- Shared ---------- */
.section-cream { background: var(--cream); }
.section-dark  { background: var(--dark); }

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 19.5px;
  letter-spacing: 2.47px;
  color: var(--gold-deep);
  margin: 0 0 16px;
  text-transform: uppercase;
}
.eyebrow-gold { color: var(--gold); }

.display-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 53.76px;
  letter-spacing: -4px;
  color: var(--ink);
  margin: 0;
}

.btn-gold,
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 52px;
  padding: 0 24px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -1px;
  border: 1px solid var(--gold);
  transition: background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
}
.section-cream .btn-gold:hover { color: var(--gold-deep); border-color: var(--gold-deep); }

.btn-outline-gold {
  background: rgba(16, 20, 20, 0.8);
  color: #fff;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

.text-link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 24px;
  position: relative;
  transition: color .3s ease, letter-spacing .3s ease;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s ease;
}
.text-link:hover::after { width: 100%; }
.text-link-dark  { color: var(--wine); }
.text-link-gold  { color: var(--gold); }
.text-link-light { color: var(--cream); }
.text-link-wine  { color: var(--wine); letter-spacing: -1px; }
.text-link-dark:hover, .text-link-wine:hover { color: var(--gold-deep); }
.text-link-gold:hover, .text-link-light:hover { color: var(--cream); }
.text-link-light:hover { color: var(--gold); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  background: var(--dark-header);
  border-bottom: 1px solid var(--gold);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }

.site-header .navbar { padding: 0; min-height: 86px; }
.header-inner { padding: 0 80px; }

.navbar-brand { padding: 0; margin: 0; }
/* Cropped image frames (match Figma crop of transparent source images) */
.crop-frame { position: relative; overflow: hidden; display: inline-block; vertical-align: middle; }
.crop-frame > img { position: absolute; max-width: none; }

.logo { display: block; width: 228px; height: 56px; }
.logo-img { width: 110.86%; height: 301.89%; left: -5.43%; top: -86.87%; }

.main-menu { gap: 60px; }
.main-menu .nav-link {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 20px;
  color: var(--cream) !important;
  padding: 0 !important;
  position: relative;
  transition: color .3s ease;
}
.main-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease, left .3s ease;
}
.main-menu .nav-link:hover,
.main-menu .nav-link.active { color: var(--gold) !important; }
.main-menu .nav-link:hover::after,
.main-menu .nav-link.active::after { width: 100%; left: 0; }

.btn-header { min-width: 160px; height: 48px; }

.navbar-toggler { border-color: var(--gold); padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 58% 70%;
  transform: scale(1.08);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, #101414 0%, rgba(16, 20, 20, 0) 100%);
}
.hero-shade-right {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 46.4%;
  background: linear-gradient(to left, #101414 0%, rgba(16, 20, 20, .24) 81.2%, rgba(16, 20, 20, 0) 100%);
}
.hero-container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 80px; }

.hero-content { max-width: 448px; }
.hero-kicker {
  font-size: 18px;
  color: var(--gold);
  margin: 0 0 22px;
  line-height: 1;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 80px;
  line-height: 77.6px;
  letter-spacing: -2.5px;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 24px;
}
.hero-text {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -1px;
  color: var(--cream);
  margin: 0 0 48px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

.book-img { width: 112.99%; height: 166.9%; left: -3.52%; top: -64.64%; }

.hero-book {
  width: 489px;
  max-width: 100%;
  aspect-ratio: 489 / 414;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
  animation: floatBook 6s ease-in-out infinite;
}
@keyframes floatBook {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}

/* =========================================================
   WHY THIS STORY MATTERS
   ========================================================= */
.story-section { padding: 144px 0; }
.story-section .container-xl { max-width: 1088px; }
.story-heading { max-width: 443px; }
.story-text {
  font-size: 18px;
  line-height: 29.25px;
  letter-spacing: -1px;
  max-width: 642px;
  margin: 24px 0 40px;
}
.story-book {
  width: 414px;
  max-width: 100%;
  aspect-ratio: 414 / 350;
  filter: drop-shadow(0 24px 30px rgba(23, 26, 23, .25));
  transition: transform .5s ease;
}
.story-book:hover { transform: rotate(-2deg) scale(1.03); }

/* =========================================================
   TRAILER + AUTHOR
   ========================================================= */
.author-section { padding: 110px 0; }
.author-section .container-xl { max-width: 1245px; }
.author-section .col-lg-8 { flex: 0 0 auto; width: 72.5%; }
.author-section .col-lg-4 { flex: 0 0 auto; width: 27.5%; }

.trailer-box {
  position: relative;
  aspect-ratio: 860 / 484;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.trailer-box::before {
  content: "";
  position: absolute; inset: 0;
  background: inherit;
  background-size: cover;
  transition: transform .8s ease;
}
.trailer-box:hover::before { transform: scale(1.05); }
.trailer-shade {
  position: absolute; inset: 0;
  background: var(--dark);
  opacity: .2;
  transition: opacity .4s ease;
}
.trailer-box:hover .trailer-shade { opacity: .35; }

.trailer-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.play-circle {
  position: relative;
  width: 107px; height: 107px;
  border-radius: 50%;
  background: var(--dark);
  border: 1.5px solid var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s ease, background-color .35s ease;
}
.play-circle::after {
  content: "";
  position: absolute; inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid var(--cream);
  animation: pulseRing 2.2s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.45); opacity: 0; }
}
.play-icon { width: 22.67px; height: 26.67px; margin-left: 6px; }
.trailer-play:hover .play-circle { transform: scale(1.08); background: var(--wine); }

.trailer-label {
  background: var(--dark);
  color: var(--cream);
  font-size: 16px;
  line-height: 24px;
  padding: 4px 16px;
}

.author-info { max-width: 305px; }
.author-name {
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -1px;
  color: var(--cream);
  margin: 0 0 10px;
  font-weight: 400;
}
.author-pen {
  font-size: 18px;
  line-height: 28px;
  color: var(--cream);
  margin: 0 0 24px;
}
.author-portrait-wrap { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; }
.author-portrait {
  flex: 0 0 170px;
  width: 170px; height: 170px;
  background: var(--dark-soft);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.author-portrait img { width: 136px; height: auto; display: block; margin-bottom: -1px; }
.author-portrait-note {
  font-size: 12.8px;
  line-height: 19.2px;
  color: var(--muted);
  max-width: 111px;
  margin: 0;
}

/* =========================================================
   BANNER SECTIONS (Book to Screen / Contact)
   ========================================================= */
.banner-section {
  position: relative;
  min-height: 381px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--wine);
}
.banner-contact { min-height: 341px; }
.banner-bg {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 37.5%;
  background-size: cover;
  background-position: center;
}
.banner-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, #371318 65%, rgba(55, 19, 24, .65) 85%, rgba(55, 19, 24, .65) 100%);
}
.banner-container { position: relative; z-index: 2; max-width: 1199px; padding-top: 110px; padding-bottom: 110px; }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.banner-content { max-width: 776px; }
.banner-content .eyebrow { margin-bottom: 16px; }
.banner-heading {
  font-size: 40px;
  line-height: 44.444px;
  letter-spacing: -2px;
  color: var(--cream);
  font-weight: 400;
  margin: 0 0 12px;
}
.banner-text {
  font-size: 18px;
  line-height: 28px;
  color: var(--cream);
  margin: 0 0 16px;
}
.banner-text-muted {
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
  max-width: 565px;
  margin: 0;
}

.badge-dev {
  flex-shrink: 0;
  display: inline-block;
  border: 1px solid var(--gold);
  padding: 12px 32px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.8px;
  color: var(--gold);
  transition: background-color .3s ease, color .3s ease;
}
.badge-dev:hover { background: var(--gold); color: #fff; }
.badge-dev-filled { background: var(--gold); color: #fff; }
.badge-dev-filled:hover { background: transparent; color: var(--gold); }

/* =========================================================
   BRING THE STORY HOME
   ========================================================= */
.buy-section { padding-top: 100px; padding-bottom: 100px; }
.buy-head .display-heading { line-height: 48px; }
.buy-intro {
  font-size: 18px;
  line-height: 29.25px;
  letter-spacing: -1px;
  max-width: 692px;
  margin: 24px auto 0;
}

.buy-row { margin-top: 60px; margin-bottom: 100px; position: relative; }
.buy-col { display: flex; justify-content: center; padding-top: 22px; padding-bottom: 22px; }
.buy-col-right { border-left: 2px solid var(--gold); }

.buy-item { display: flex; align-items: center; gap: 48px; }
.buy-cover {
  width: 212px;
  height: 273px;
  object-fit: cover;
  transition: transform .45s ease, filter .45s ease;
}
.buy-item:hover .buy-cover { transform: translateY(-8px) rotate(-2deg); filter: drop-shadow(0 18px 20px rgba(23, 26, 23, .25)); }
.buy-details { width: 180px; text-align: center; }
.buy-format {
  font-size: 24px;
  line-height: 48px;
  letter-spacing: -1px;
  font-weight: 400;
  margin: 0 0 4px;
}
.buy-price {
  font-size: 48px;
  line-height: 40px;
  letter-spacing: -3px;
  margin: 0 0 40px;
}

.divider-line {
  width: calc(100% - 70px);
  max-width: 1370px;
  height: 1px;
  margin: 0 auto;
  background: rgba(0, 0, 0, .3);
}

/* =========================================================
   NEWS, GATHERINGS & CONVERSATION
   ========================================================= */
.news-wrap { max-width: 1312px; padding-top: 100px; }
.news-heading { max-width: 471px; }
.news-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  margin-top: 48px;
}
.news-card {
  background: var(--cream);
  border: 1px solid var(--gold);
  transition: transform .4s ease, box-shadow .4s ease, background-color .4s ease;
}
.news-card-side { min-height: 260px; padding: 70px 40px 40px 66px; }
.news-card-left  { border-left: 0; margin-right: -1px; }
.news-card-right { border-right: 0; margin-left: -1px; padding-left: 40px; padding-right: 0; }
.news-card-center {
  position: relative;
  z-index: 1;
  min-height: 320px;
  padding: 78px 63px 40px;
}
.news-card:hover {
  background: #f7f1e6;
  box-shadow: 0 20px 40px rgba(23, 26, 23, .08);
  transform: translateY(-6px);
}

.card-eyebrow {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 2.16px;
  color: var(--gold-deep);
  margin: 0 0 8px;
}
.card-title {
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -2px;
  font-weight: 400;
  margin: 0 0 12px;
}
.card-text {
  font-size: 16px;
  line-height: 26px;
  letter-spacing: -1px;
  color: var(--ink-70);
  margin: 0 0 20px;
}
.news-card-side .card-link { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.news-card-side:hover .card-link { opacity: 1; transform: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--dark); padding-top: 43px; }
.site-footer .container-xl { max-width: 1312px; }
.newsletter-row { padding: 0 40px; }
.newsletter-heading {
  font-size: 36px;
  line-height: 40px;
  color: var(--cream);
  font-weight: 400;
  margin: 0;
}
.newsletter-text {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  margin: 12px 0 0;
}
.newsletter-form { display: flex; gap: 8px; max-width: 536px; margin-left: auto; }
.newsletter-input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  outline: none;
  transition: border-color .3s ease;
}
.newsletter-input::placeholder { color: var(--muted); }
.newsletter-input:focus { border-color: var(--gold); }
.newsletter-input.is-invalid { border-color: #d9796b; }
.newsletter-btn {
  height: 52px;
  padding: 0 24px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: background-color .3s ease, color .3s ease;
}
.newsletter-btn:hover { background: transparent; color: var(--gold); }
.newsletter-msg {
  max-width: 536px;
  margin: 8px 0 0 auto;
  min-height: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--gold);
}

.footer-bottom {
  margin-top: 41px;
  border-top: 1px solid var(--gold);
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 40px 24px 57px;
}
.footer-brand {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.44px;
  color: var(--gold);
  margin: 0;
}
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding: 0; }
.footer-links a {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  transition: color .3s ease;
}
.footer-links a:hover { color: var(--gold); }

/* =========================================================
   MODAL
   ========================================================= */
.trailer-modal { background: var(--dark); color: var(--cream); border: 1px solid var(--gold); border-radius: 0; }
.trailer-modal .modal-title { font-weight: 400; }
.trailer-frame { background: #000 url("../images/trailer-bg.png") center / cover; }
.trailer-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: rgba(16, 20, 20, .7);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1399.98px) {
  .header-inner { padding: 0 40px; }
  .main-menu { gap: 40px; }
}

@media (max-width: 1199.98px) {
  .hero-title { font-size: 68px; line-height: 66px; }
  .main-menu { gap: 28px; }
  .logo { width: 190px; height: 47px; }
  .news-card-side { padding: 56px 28px 32px 32px; }
  .news-card-center { padding: 64px 36px 36px; }
  .buy-item { gap: 28px; }
  .buy-cover { width: 170px; height: 219px; }
}

@media (max-width: 991.98px) {
  .header-inner { padding: 0 20px; }
  .site-header .navbar { min-height: 76px; }
  :root { --header-h: 77px; }
  .navbar-collapse {
    background: var(--dark-header);
    padding: 20px 0 28px;
  }
  .main-menu { gap: 18px; margin-bottom: 20px; }
  .main-menu .nav-link::after { left: 0; }

  .hero { min-height: auto; }
  .hero-container { padding-top: 70px; padding-bottom: 70px; }
  .hero-shade { background: linear-gradient(to right, rgba(16,20,20,.95) 0%, rgba(16,20,20,.45) 100%); }
  .hero-content { max-width: 560px; }
  .hero-book { width: 380px; margin-top: 48px; }

  .story-section { padding: 90px 0; }

  .author-section { padding: 80px 0; }
  .author-section .col-lg-8,
  .author-section .col-lg-4 { width: 100%; }
  .author-info { max-width: none; }

  .banner-inner { flex-direction: column; align-items: flex-start; }
  .banner-container { padding-top: 80px; padding-bottom: 80px; }
  .banner-bg { width: 60%; }
  .banner-shade { background: linear-gradient(to right, #371318 45%, rgba(55,19,24,.75) 100%); }

  .news-cards { grid-template-columns: 1fr; gap: 24px; }
  .news-card-side, .news-card-center { min-height: 0; padding: 40px 32px; border: 1px solid var(--gold); margin: 0; }
  .news-card-side .card-link { opacity: 1; transform: none; }

  .newsletter-row { padding: 0; }
  .newsletter-form, .newsletter-msg { margin-left: 0; }
  .footer-bottom { padding: 24px 0; }
}

@media (max-width: 767.98px) {
  .display-heading { font-size: 36px; line-height: 42px; letter-spacing: -2px; }
  .buy-head .display-heading { line-height: 42px; }
  .hero-title { font-size: 54px; line-height: 54px; letter-spacing: -1.5px; }
  .hero-kicker { font-size: 15px; }
  .hero-text { font-size: 18px; margin-bottom: 36px; }
  .banner-heading { font-size: 30px; line-height: 36px; letter-spacing: -1px; }

  .buy-row { margin-bottom: 70px; }
  .buy-col { padding-top: 32px; padding-bottom: 32px; }
  .buy-col-right { border-left: 0; border-top: 2px solid var(--gold); }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575.98px) {
  .hero-buttons .btn-gold,
  .hero-buttons .btn-outline-gold { flex: 1 1 100%; }
  .hero-book { width: 300px; }
  .buy-item { flex-direction: column; gap: 24px; }
  .author-portrait-wrap { gap: 16px; }
  .newsletter-heading { font-size: 30px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-book, .play-circle::after { animation: none; }
  .hero-bg { transform: none; }
}
