:root {
  --cream: #fbf6ee;
  --cream-deep: #f1e4cc;
  --paper: #fffdf8;
  --ink: #2b2118;
  --ink-soft: #5d4e40;
  --gold: #d4a017;
  --sun: #f4b942;
  --sun-soft: #f7d48a;
  --terracotta: #c45c26;
  --forest: #2f5d45;
  --forest-deep: #1e3d2e;
  --blush: #e8b4a0;
  --sky: #4f8ea3;
  --magic: #6b3d8f;
  --line: rgba(43, 33, 24, 0.12);
  --shadow: 0 22px 50px rgba(43, 33, 24, 0.12);
  --radius: 22px;
  --header: 84px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.8rem;
}

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
#trailers { scroll-margin-top: 88px; }
.skip {
  position: absolute; left: -999px;
}
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 246, 238, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 800;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--forest); color: var(--sun);
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.25rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 650; }
.brand-text span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--forest); }
.nav-toggle {
  display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border: 0; cursor: pointer;
  border-radius: 999px; padding: 0.9rem 1.35rem;
  font-family: var(--sans); font-weight: 800; font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--sun); color: var(--ink); box-shadow: 0 10px 24px rgba(244, 185, 66, 0.35); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero {
  position: relative; overflow: hidden;
  padding: 48px 0 72px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 650; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; }
.sunburst {
  position: absolute; right: -8%; top: -20%; width: 58vw; height: 58vw;
  background: radial-gradient(circle, rgba(244,185,66,0.28), transparent 62%);
  pointer-events: none;
}
.book-fan { position: relative; height: 520px; }
.book-fan img {
  position: absolute; width: 58%; max-width: 280px;
  border-radius: 8px; box-shadow: var(--shadow);
  background: #111;
}
.book-fan img:nth-child(1) { left: 6%; top: 18%; transform: rotate(-12deg); z-index: 1; }
.book-fan img:nth-child(2) { left: 24%; top: 0; transform: rotate(-3deg); z-index: 3; }
.book-fan img:nth-child(3) { left: 42%; top: 14%; transform: rotate(8deg); z-index: 2; }
.book-fan img:nth-child(4) { left: 22%; top: 42%; transform: rotate(4deg); z-index: 4; width: 62%; }

.section { padding: 84px 0; }
.section-head { max-width: 42rem; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.split {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
}
.portrait {
  position: relative;
}
.portrait img {
  width: 100%; border-radius: 28px; object-fit: cover; object-position: center 18%;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
}

.book-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.book-card {
  background: var(--paper); border-radius: var(--radius); padding: 16px 16px 22px;
  text-decoration: none; box-shadow: 0 10px 30px rgba(43,33,24,0.06);
  border: 1px solid var(--line); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book-card img { width: 100%; height: 280px; object-fit: cover; border-radius: 14px; background: #1b1410; }
.book-card h3 { font-size: 1.25rem; margin: 16px 0 6px; }
.book-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value {
  background: var(--paper); border-radius: 18px; padding: 22px;
  border: 1px solid var(--line);
}
.value h3 { font-size: 1.2rem; }
.value span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream-deep); margin-bottom: 14px; font-size: 1.2rem;
}

.quotes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quote {
  background: var(--paper); border-radius: 18px; padding: 22px;
  border-top: 4px solid var(--sun);
}
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.quote cite { font-style: normal; font-weight: 800; font-size: 0.9rem; color: var(--ink-soft); }

.band {
  background: var(--forest-deep); color: #f7efe2;
  border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.3fr 0.7fr;
  gap: 24px; align-items: center;
}
.band h2 { color: #fff; }
.band p { color: #e4d6c0; }

.page-hero { padding: 56px 0 28px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); }

.book-detail {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start;
}
.book-cover {
  background: #1b1410; border-radius: 24px; padding: 18px;
  box-shadow: var(--shadow);
}
.book-cover img { width: 100%; border-radius: 12px; }
.meta-list { list-style: none; padding: 0; margin: 24px 0; }
.meta-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.meta-list strong { display: inline-block; min-width: 140px; }

.trailers {
  background:
    radial-gradient(circle at 12% 10%, rgba(244, 185, 66, 0.16), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(107, 61, 143, 0.18), transparent 46%),
    var(--forest-deep);
  color: #f7efe2;
  padding: 88px 0;
}
.trailers .eyebrow { color: var(--sun); }
.trailers .section-head h2 { color: #fff; }
.trailers .section-head p { color: #e4d6c0; max-width: 38rem; }
.trailer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.trailer-card {
  background: rgba(255, 253, 248, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
}
.trailer-card .trailer-copy {
  padding: 20px 22px 24px;
}
.trailer-card h3 {
  color: #fff;
  font-size: 1.45rem;
  margin-bottom: 0.35em;
}
.trailer-card p {
  color: #e4d6c0;
  margin-bottom: 14px;
}
.trailer-card a {
  color: var(--sun);
  font-weight: 800;
  text-decoration: none;
}
.trailer-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0907;
  overflow: hidden;
}
.trailer-player video,
.trailer-player .trailer-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trailer-player video { z-index: 1; }
.trailer-player .trailer-poster { z-index: 2; }
.trailer-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(11, 9, 7, 0.05), rgba(11, 9, 7, 0.42));
  display: grid;
  place-items: center;
  color: var(--ink);
}
.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}
.play-icon::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--ink);
}
.trailer-play:hover .play-icon { transform: scale(1.06); }
.trailer-duration {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  background: rgba(11, 9, 7, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
}
.trailer-player.is-playing .trailer-play,
.trailer-player.is-playing .trailer-poster,
.trailer-player.is-playing .trailer-duration {
  display: none;
}
.trailer-feature {
  margin-top: 56px;
}
.trailer-feature .trailer-player {
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.trailer-feature-copy {
  margin-bottom: 18px;
}

.video-frame {
  margin-top: 28px; border-radius: 20px; overflow: hidden; background: #000;
  box-shadow: var(--shadow);
}
.video-frame video { width: 100%; display: block; max-height: 640px; }

.form {
  display: grid; gap: 14px; background: var(--paper); padding: 32px;
  border-radius: 24px; border: 1px solid var(--line);
}
.form label { font-weight: 800; font-size: 0.9rem; }
.form input, .form textarea, .form select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font: inherit; background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }

.site-footer {
  background: var(--forest-deep); color: #f3e8d5; padding: 48px 0 28px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #f3e8d5; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.copyright { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.9rem; color: #d7c6ad; }

@media (max-width: 960px) {
  .hero-grid, .split, .book-detail, .band, .footer-grid, .book-grid, .values, .quotes, .trailer-grid {
    grid-template-columns: 1fr;
  }
  .book-fan { height: 420px; margin: 0 auto; width: min(100%, 420px); }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; right: 20px; top: 76px;
    background: var(--paper); padding: 18px; border-radius: 16px;
    box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; gap: 14px;
  }
  .nav-links.open { display: flex; }
}
