:root {
  --ink: #190a08;
  --paper: #ffe7d4;
  --paper-deep: #ffb39a;
  --white: #fff8ea;
  --red: #b11216;
  --vermillion: #f04a23;
  --crimson: #690606;
  --gold: #ffc45d;
  --line: rgba(177, 18, 22, 0.3);
  --shadow: 0 22px 70px rgba(105, 6, 6, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(240, 74, 35, 0.12), transparent 280px),
    repeating-linear-gradient(90deg, rgba(177, 18, 22, 0.08) 0 26px, transparent 26px 52px),
    var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 20;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(111, 12, 12, 0.88), rgba(111, 12, 12, 0));
}

.brand,
h1,
h2,
h3,
.book-cover span,
.illustration-card strong,
.award-timeline strong {
  font-family: Rye, Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
}

.brand {
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 248, 234, 0.14);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 248, 234, 0.38);
  border-radius: 8px;
  background: rgba(111, 12, 12, 0.36);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--crimson);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: contrast(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(58, 3, 3, 0.94) 0%, rgba(177, 18, 22, 0.78) 42%, rgba(240, 74, 35, 0.08) 82%),
    linear-gradient(0deg, rgba(58, 3, 3, 0.68), rgba(58, 3, 3, 0.02) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 8vw, 112px);
  padding-top: 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 13vw, 10.4rem);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
  margin: 12px 0 10px;
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 248, 234, 0.9);
  font-size: clamp(1.14rem, 2vw, 1.45rem);
}

.hero-actions,
.book-links,
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button,
.book-links a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--vermillion);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 195, 91, 0.62);
  background: rgba(177, 18, 22, 0.42);
}

.section {
  padding: clamp(72px, 11vw, 128px) clamp(20px, 6vw, 80px);
}

.section-intro {
  max-width: 900px;
  margin-bottom: 42px;
}

.section-intro p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(25, 10, 8, 0.74);
  font-size: 1.1rem;
}

.book-feature,
.contact-section {
  background: radial-gradient(circle at 92% 4%, rgba(240, 74, 35, 0.22), transparent 28%), var(--white);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.book-card {
  min-height: 100%;
  display: flex;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.76);
}

.book-card.is-featured {
  grid-column: span 3;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
}

.book-cover {
  aspect-ratio: 2 / 3;
  width: 100%;
  max-width: 260px;
  flex: 0 0 190px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.book-cover:hover,
.book-cover:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 26px 80px rgba(111, 12, 12, 0.3);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card h3 {
  margin-top: 0;
}

.book-card h3 a {
  text-decoration: underline;
  text-decoration-color: rgba(240, 74, 35, 0.48);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.split-section h2 a {
  text-decoration: underline;
  text-decoration-color: rgba(240, 74, 35, 0.52);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.book-card p,
.prose p,
.story-list p,
.film-card p {
  color: rgba(25, 10, 8, 0.74);
}

.publisher {
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.book-links {
  margin-top: 22px;
}

.book-links a {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 240, 223, 0.9);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(34px, 8vw, 96px);
  background:
    radial-gradient(circle at 88% 12%, rgba(240, 74, 35, 0.2), transparent 30%),
    repeating-linear-gradient(90deg, rgba(177, 18, 22, 0.1) 0 18px, transparent 18px 36px),
    var(--paper);
}

.prose {
  max-width: 760px;
}

.illustration-section,
.audio-section {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 196, 93, 0.16), transparent 24%),
    radial-gradient(circle at 86% 4%, rgba(240, 74, 35, 0.38), transparent 30%),
    linear-gradient(135deg, #4b0303, var(--red) 48%, var(--vermillion) 100%);
}

.illustration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.illustration-card {
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 234, 0.14);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.08);
}

.illustration-card.is-wide {
  grid-column: span 2;
}

.illustration-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: contain;
  padding: 20px;
  background: #fff7ee;
}

.illustration-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 248, 234, 0.14);
}

.illustration-card span {
  color: rgba(255, 248, 234, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.audio-panel {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.audio-panel img {
  border-radius: 8px;
  border: 1px solid rgba(255, 248, 234, 0.18);
  box-shadow: var(--shadow);
}

.audio-panel p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 248, 234, 0.78);
}

.play-section {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(58, 3, 3, 0.92), rgba(177, 18, 22, 0.72) 46%, rgba(240, 74, 35, 0.26)),
    url("assets/saucy-jack.jpg") center 34% / cover no-repeat;
}

.play-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 7vw, 86px);
  align-items: start;
  padding: clamp(28px, 5vw, 48px);
  border: 2px solid var(--red);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(177, 18, 22, 0.9), rgba(240, 74, 35, 0.76)),
    rgba(58, 3, 3, 0.88);
  box-shadow: var(--shadow);
}

.play-panel .prose p {
  color: rgba(255, 248, 234, 0.84);
}

.play-panel h2 a {
  text-decoration: underline;
  text-decoration-color: rgba(240, 74, 35, 0.52);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.play-panel .button {
  margin-top: 14px;
}

.films-section {
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 196, 93, 0.28), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(177, 18, 22, 0.18), transparent 34%),
    var(--white);
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.film-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.92), rgba(255, 231, 212, 0.82)),
    var(--paper);
  box-shadow: 0 18px 46px rgba(105, 6, 6, 0.12);
}

.film-card h3 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.film-card .button {
  align-self: flex-start;
}

.stories-section {
  background:
    radial-gradient(circle at 100% 0%, rgba(240, 74, 35, 0.32), transparent 34%),
    linear-gradient(180deg, var(--paper-deep), var(--paper));
}

.story-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.story-list article {
  min-height: 248px;
  padding: 26px;
  border: 1px solid rgba(177, 18, 22, 0.28);
  border-radius: 8px;
  background: rgba(255, 248, 234, 0.78);
}

.story-list span,
.contact-grid span {
  color: var(--vermillion);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-grid a {
  min-width: min(100%, 260px);
  min-height: 76px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  background: rgba(255, 248, 234, 0.72);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 80px);
  color: rgba(255, 248, 234, 0.86);
  background: var(--crimson);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 64px;
    padding: 12px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 20px;
    width: min(280px, calc(100vw - 40px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(255, 248, 234, 0.14);
    border-radius: 8px;
    background: rgba(111, 12, 12, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin: 0 auto;
  }

  h1 {
    font-size: clamp(3.8rem, 20vw, 6.4rem);
  }

  .book-grid,
  .split-section,
  .illustration-grid,
  .audio-panel,
  .play-panel,
  .film-grid,
  .story-list {
    grid-template-columns: 1fr;
  }

  .book-card,
  .book-card.is-featured {
    grid-column: auto;
    flex-direction: column;
  }

  .illustration-card.is-wide {
    grid-column: auto;
  }

  .book-cover {
    flex-basis: auto;
  }

  .illustration-card img {
    min-height: 360px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .illustration-card figcaption {
    flex-direction: column;
    gap: 4px;
  }
}
