:root {
  --red: #ed1c24;
  --cream: #f8f0e8;
  --yellow: #ffe48f;
  --ink: #33140d;
  --footer-yellow: #ffe889;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.36;
}

button,
a {
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: 60.2% 39.8%;
  min-height: 410px;
  background: var(--yellow);
}

.hero-copy {
  padding: 25px 41px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.hero h1,
.content-section h2,
.site-footer h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.hero h1 {
  color: var(--red);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(48px, 5.85vw, 64px);
  font-weight: 900;
  -webkit-text-stroke: 0.35px currentColor;
}

.eyebrow {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

.contact-btn {
  width: 155px;
  min-height: 40px;
  border: 0;
  background: var(--red);
  color: #fff7e9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(0.93);
}

.hero-photo {
  background: #b31b2e url("assets/hero.jpg") center top / cover no-repeat;
}

.content-section {
  padding: 36px 41px 64px;
}

.first-section {
  padding-top: 35px;
}

.content-section h2 {
  color: var(--red);
  font-size: clamp(49px, 6.25vw, 64px);
  margin-bottom: 44px;
  white-space: nowrap;
}

.two-col {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 103px;
  align-items: start;
}

.two-col.image-right {
  grid-template-columns: minmax(0, 1fr) 252px;
}

.two-col img {
  display: block;
  width: 252px;
  height: 241px;
  object-fit: cover;
}

.two-col p {
  margin: 0;
  max-width: 310px;
  font-size: 13px;
  line-height: 1.37;
}

.image-right p {
  max-width: 310px;
}

.content-section:nth-of-type(2) {
  padding-top: 21px;
  padding-bottom: 70px;
}

.content-section:nth-of-type(2) h2 {
  margin-bottom: 24px;
}

.content-section:nth-of-type(2) .two-col {
  gap: 84px;
}

.content-section:nth-of-type(3) {
  padding-top: 23px;
  padding-bottom: 42px;
}

.content-section:nth-of-type(3) h2 {
  margin-bottom: 45px;
}

.footer-photo {
  height: 227px;
  /* Keep the complete contact photo in view; match unused space to the footer. */
  background: var(--red) url("assets/kontakt-alt-2.png") center center / contain no-repeat;
}

.site-footer {
  min-height: 184px;
  padding: 29px 41px 35px;
  background: var(--red);
  color: #fff;
}

.footer-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-footer h2 {
  color: var(--footer-yellow);
  font-size: 50px;
}

.instagram {
  width: 29px;
  height: 29px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  color: var(--footer-yellow);
  transform: translateY(-3px);
}

.instagram-glyph {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 6px;
  position: relative;
}

.instagram-glyph::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.instagram-glyph::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
  right: 3px;
  top: 3px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  margin-top: 25px;
}

.contact-grid h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.contact-grid a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
}

.contact-grid a:hover,
.contact-grid a:focus-visible,
.instagram:hover,
.instagram:focus-visible {
  opacity: 0.76;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 390px;
    padding: 28px 24px 30px;
  }

  .hero-photo {
    min-height: 430px;
    background-position: center top;
  }

  .content-section {
    padding: 44px 24px 58px;
  }

  .content-section h2 {
    white-space: normal;
    margin-bottom: 30px;
    font-size: clamp(45px, 13vw, 62px);
  }

  .two-col,
  .two-col.image-right {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .two-col.image-right p {
    order: 2;
  }

  .two-col.image-right img {
    order: 1;
  }

  .two-col img {
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 252 / 241;
  }

  .two-col p,
  .image-right p {
    max-width: 42rem;
    font-size: 15px;
  }

  .footer-photo {
    height: 240px;
    background-position: center;
  }

  .site-footer {
    padding: 30px 24px 38px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 49px;
  }

  .site-footer h2 {
    font-size: 46px;
  }
}

/* Full-screen stacked slide layout */
@media (min-width: 761px) {
  html {
    scroll-snap-type: y proximity;
  }

  .hero,
  .content-section {
    width: 100%;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .hero {
    grid-template-columns: 60.2% 39.8%;
  }

  .hero-copy {
    min-height: 100vh;
    padding: clamp(42px, 5vh, 72px) clamp(48px, 5.5vw, 100px);
  }

  .hero h1 {
    font-size: clamp(62px, 6.5vw, 112px);
  }

  .eyebrow {
    margin-top: 24px;
    font-size: clamp(14px, 1vw, 20px);
  }

  .contact-btn {
    width: clamp(170px, 16vw, 245px);
    min-height: 54px;
  }

  .content-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(54px, 7vh, 92px) clamp(48px, 5.5vw, 100px);
  }

  .first-section,
  .content-section:nth-of-type(2),
  .content-section:nth-of-type(3) {
    padding-top: clamp(54px, 7vh, 92px);
    padding-bottom: clamp(54px, 7vh, 92px);
  }

  .content-section h2 {
    margin-bottom: clamp(42px, 6vh, 78px);
    font-size: clamp(64px, 6.2vw, 108px);
  }

  .content-section:nth-of-type(2) h2,
  .content-section:nth-of-type(3) h2 {
    margin-bottom: clamp(42px, 6vh, 78px);
  }

  .two-col,
  .content-section:nth-of-type(2) .two-col {
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
    gap: clamp(70px, 9vw, 170px);
    align-items: center top;
  }

  .two-col.image-right {
    grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 0.9fr);
  }

  .two-col img {
    width: min(100%, 520px);
    height: auto;
    aspect-ratio: 1.045 / 1;
    object-fit: cover;
  }

  .image-left img {
    justify-self: start;
  }

  .image-right img {
    justify-self: end;
  }

  .two-col p,
  .image-right p {
    max-width: 590px;
    font-size: clamp(16px, 1.18vw, 22px);
    line-height: 1.48;
  }

  .two-col p {
    justify-self: start;
  }

  /* The image + red contact area together form the last full-screen slide. */
  .footer-photo {
    height: 62vh;
    min-height: 62vh;
    scroll-snap-align: start;
    background-position: center center;
  }

  .site-footer {
    min-height: 38vh;
    padding: clamp(34px, 4.5vh, 62px) clamp(48px, 5.5vw, 100px);
  }

  .site-footer h2 {
    font-size: clamp(64px, 5.5vw, 96px);
  }

  .contact-grid {
    grid-template-columns: minmax(150px, 220px) minmax(220px, 1fr);
    gap: clamp(40px, 6vw, 90px);
    margin-top: clamp(25px, 4vh, 48px);
  }

  .contact-grid h3 {
    font-size: clamp(16px, 1.05vw, 20px);
  }

  .contact-grid a {
    font-size: clamp(15px, 1vw, 19px);
  }
}

/* Clickable section menu */
.page-section {
  scroll-margin-top: 0;
}

.site-nav {
  position: fixed;
  top: 50%;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
  padding: 14px;
  background: rgba(248, 240, 232, 0.92);
  border: 1px solid rgba(51, 20, 13, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(51, 20, 13, 0.08);
}

.nav-link {
  position: relative;
  display: block;
  padding: 9px 12px 9px 26px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--red);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: var(--red);
  transform: translateX(-2px);
}

.nav-link.active::before {
  background: var(--red);
  transform: translateY(-50%) scale(1.15);
}

.menu-toggle {
  display: none;
}

.contact-slide {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 62vh 1fr;
  scroll-snap-align: start;
}

.contact-slide .footer-photo {
  height: auto;
  min-height: 0;
}

.contact-slide .site-footer {
  min-height: 0;
}

@media (max-width: 980px) {
  .site-nav {
    right: 14px;
  }

  .nav-link {
    font-size: 10px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1100;
    width: 46px;
    height: 46px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 0;
    background: var(--red);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(51, 20, 13, 0.16);
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff7e9;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    top: 0;
    right: 0;
    width: min(82vw, 330px);
    height: 100vh;
    transform: translateX(100%);
    justify-content: center;
    gap: 8px;
    padding: 76px 30px 30px;
    background: var(--cream);
    border: 0;
    box-shadow: -14px 0 36px rgba(51, 20, 13, 0.14);
    transition: transform 220ms ease;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .nav-link {
    padding: 13px 12px 13px 32px;
    font-size: 14px;
  }

  .nav-link::before {
    left: 8px;
    width: 10px;
    height: 10px;
  }

  .contact-slide {
    min-height: auto;
    display: block;
  }

  .contact-slide .footer-photo {
    height: 240px;
  }
}

/* ==============================
   Books page — visual extension of index.html
   ============================== */
.books-page {
  background: var(--cream);
}

.books-page .site-nav {
  background: rgba(248, 240, 232, 0.94);
}

/* Hero follows the same 60/40 composition and yellow/red language as index.html. */
.books-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 60.2% 39.8%;
  background: var(--yellow);
  color: var(--ink);
  scroll-snap-align: start;
}

.books-hero-copy {
  min-height: 100vh;
  padding: clamp(42px, 5vh, 72px) clamp(48px, 5.5vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.books-kicker {
  margin: 10 10 24px;
  font-size: clamp(12px, 0.9vw, 16px);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.books-hero h1,
.book-section h2 {
  margin: 0;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
  -webkit-text-stroke: 0.25px currentColor;
}

.books-hero h1 {
  color: var(--red);
  font-size: clamp(72px, 8vw, 138px);
}

.books-intro {
  max-width: 680px;
  margin: 30px 0 0;
  font-size: clamp(20px, 1.55vw, 29px);
  line-height: 1.42;
}

.books-hero-btn {
  width: auto;
  min-width: clamp(170px, 16vw, 245px);
  min-height: 54px;
  padding: 0 28px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.books-hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  background: var(--red);
  color: var(--footer-yellow);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(48px, 5vw, 86px);
  letter-spacing: -0.05em;
}

.books-hero-panel::after {
  content: "KNIHY";
  position: absolute;
  right: -0.07em;
  bottom: -0.12em;
  color: rgba(255, 232, 137, 0.13);
  font-size: clamp(120px, 17vw, 270px);
  line-height: 0.8;
  transform: rotate(-90deg) translateX(24%);
  transform-origin: right bottom;
  pointer-events: none;
}

.books-hero-panel span {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(255, 232, 137, 0.25);
}

.books-hero-panel span:last-child {
  border-bottom: 0;
}

/* Book sections deliberately echo .content-section on the home page. */
.book-section {
  width: 100%;
  min-height: 100vh;
  padding: clamp(54px, 7vh, 92px) clamp(48px, 5.5vw, 100px);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(70px, 9vw, 170px);
  align-items: center;
  background: var(--cream);
  scroll-snap-align: start;
}

.book-section-reverse {
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 0.9fr);
}

.book-visual,
.book-copy {
  min-width: 0;
}

.book-visual {
  position: relative;
  min-height: 0;
  padding: clamp(24px, 3vw, 46px);
  display: grid;
  place-items: center;
  overflow: visible;
}

/* The coloured rectangles work like the strong photographic colour blocks on index.html. */
.book-visual::before {
  content: "";
  position: absolute;
  inset: 7% 3% 4% 8%;
  z-index: 0;
}

.book-visual-yellow::before {
  background: var(--yellow);
}

.book-visual-red::before {
  background: var(--red);
}

.book-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.book-number {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.book-number::after {
  content: "";
  width: 52px;
  height: 2px;
  background: var(--red);
}

.book-section h2 {
  max-width: 820px;
  color: var(--red);
  font-size: clamp(64px, 6.2vw, 108px);
}

.book-copy p {
  max-width: 700px;
  margin: clamp(28px, 4vh, 44px) 0 0;
  font-size: clamp(19px, 1.45vw, 26px);
  line-height: 1.5;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.book-btn {
  min-height: 54px;
  padding: 0 28px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--red);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, filter 160ms ease;
}

.book-btn:hover,
.book-btn:focus-visible {
  transform: translateY(-2px);
}

.book-btn-primary {
  background: var(--red);
  color: #fff7e9;
}

.book-btn-primary:hover,
.book-btn-primary:focus-visible {
  filter: brightness(0.93);
}

.book-btn-secondary {
  color: var(--red);
  background: transparent;
}

.book-btn-secondary:hover,
.book-btn-secondary:focus-visible {
  background: var(--red);
  color: #fff7e9;
}

.book-cover {
  position: relative;
  z-index: 1;
  width: min(82%, 430px);
  aspect-ratio: 0.69;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 20px 24px 0 rgba(51, 20, 13, 0.12), 0 26px 50px rgba(51, 20, 13, 0.14);
  transform: rotate(-2deg);
  overflow: hidden;
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 16px;
  background: rgba(51, 20, 13, 0.12);
}

.book-cover strong {
  position: relative;
  z-index: 1;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(42px, 4vw, 66px);
  line-height: 0.91;
  letter-spacing: -0.055em;
}

.cover-author,
.cover-note {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.cover-one {
  background: var(--cream);
  color: var(--red);
}

.cover-one::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--yellow);
  right: -28px;
  bottom: 115px;
}

.cover-two {
  background: var(--yellow);
  color: var(--red);
  transform: rotate(2deg);
}

.cover-two::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(155deg, transparent 0 14%, rgba(51, 20, 13, 0.08) 14% 16%, transparent 16% 24%, rgba(51, 20, 13, 0.11) 24% 100%);
}

.cover-three {
  background: var(--cream);
  color: var(--red);
}

.cover-three::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: var(--red);
  border-radius: 50%;
  right: -95px;
  top: 44%;
  transform: translateY(-50%);
  opacity: 0.95;
}

.books-footer {
  min-height: 38vh;
  padding: clamp(34px, 4.5vh, 62px) clamp(48px, 5.5vw, 100px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--red);
  color: var(--footer-yellow);
}

.books-footer p {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(36px, 4.5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.books-footer a {
  color: #fff7e9;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .books-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .books-hero-copy {
    min-height: 76vh;
    padding: 44px 24px 48px;
  }

  .books-hero h1 {
    font-size: clamp(66px, 18vw, 108px);
  }

  .books-intro {
    font-size: 19px;
  }

  .books-hero-panel {
    min-height: 150px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
  }

  .books-hero-panel::after {
    display: none;
  }

  .books-hero-panel span {
    border-bottom: 0;
    border-right: 1px solid rgba(255, 232, 137, 0.25);
  }

  .books-hero-panel span:last-child {
    border-right: 0;
  }

  .book-section,
  .book-section-reverse {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 64px 24px 72px;
  }

  .book-section-reverse .book-copy {
    order: 2;
  }

  .book-section-reverse .book-visual {
    order: 1;
  }

  .book-visual {
    width: min(100%, 620px);
    min-height: 62vh;
    justify-self: start;
  }

  .book-copy {
    max-width: 46rem;
  }

  .book-section h2 {
    font-size: clamp(52px, 14vw, 84px);
  }

  .book-copy p {
    font-size: 18px;
  }

  .book-cover {
    width: min(74vw, 380px);
  }

  .books-footer {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 48px 24px;
  }
}

@media (max-width: 430px) {
  .books-hero-copy {
    min-height: 72vh;
  }

  .books-hero h1 {
    font-size: 64px;
  }

  .book-section h2 {
    font-size: 50px;
  }

  .book-visual {
    min-height: 520px;
    padding: 30px 14px;
  }

  .book-cover {
    width: min(78vw, 330px);
  }

  .book-actions {
    width: 100%;
  }

  .book-btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Persistent page switcher */
.site-switcher {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 46px;
  background: var(--cream);
  border-bottom: 1px solid rgba(51, 20, 13, 0.14);
}

.site-switcher-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 12px 24px 10px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  border-left: 1px solid rgba(51, 20, 13, 0.1);
  transition: background 160ms ease, color 160ms ease;
}

.site-switcher-link:last-child {
  border-right: 1px solid rgba(51, 20, 13, 0.1);
}

.site-switcher-link:hover,
.site-switcher-link:focus-visible,
.site-switcher-link.active {
  background: var(--red);
  color: #fff7e9;
}

body {
  padding-top: 46px;
}

.site-nav {
  top: calc(50% + 23px);
}

@media (max-width: 760px) {
  .site-switcher {
    justify-content: stretch;
  }

  .site-switcher-link {
    flex: 1 1 50%;
    min-width: 0;
    padding-inline: 12px;
  }
}

/* Two-book hero variant: let the books dominate the opening section. */
.books-two-page .books-hero {
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
}

.books-two-page .books-hero-copy {
  position: relative;
  z-index: 2;
}

.books-two-page .books-two-hero-panel {
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 0;
  padding: 0;
  background: var(--red);
  color: inherit;
  font-size: inherit;
}

.books-two-page .books-two-hero-panel::after {
  display: none;
}

.books-two-page .hero-book {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: clamp(52px, 6vh, 84px) clamp(22px, 2.5vw, 44px) clamp(36px, 5vh, 68px);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
}

.books-two-page .hero-book-one {
  background: var(--footer-yellow);
}

.books-two-page .hero-book-two {
  background: var(--red);
}

.books-two-page .hero-book-number {
  position: absolute;
  top: clamp(22px, 3vh, 36px);
  left: clamp(18px, 2vw, 32px);
  z-index: 3;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(28px, 3vw, 52px);
  line-height: 1;
  color: var(--red);
}

.books-two-page .hero-book-two .hero-book-number {
  color: var(--footer-yellow);
}

.books-two-page .hero-book .book-cover {
  width: min(92%, 470px);
  max-height: calc(100vh - 118px);
  aspect-ratio: 0.69;
  padding: clamp(26px, 2.4vw, 42px) clamp(22px, 2vw, 36px);
  box-shadow: 18px 22px 0 rgba(51, 20, 13, 0.14), 0 28px 56px rgba(51, 20, 13, 0.18);
}

.books-two-page .hero-book-one .book-cover {
  transform: rotate(-1.5deg);
}

.books-two-page .hero-book-two .book-cover {
  transform: rotate(1.5deg);
}

.books-two-page .hero-book .book-cover strong {
  font-size: clamp(38px, 3.7vw, 68px);
}

.books-two-page .hero-book:hover .book-cover,
.books-two-page .hero-book:focus-visible .book-cover {
  transform: translateY(-5px) rotate(0deg);
}

.books-two-page .hero-book .book-cover {
  transition: transform 180ms ease;
}

@media (max-width: 1100px) {
  .books-two-page .books-hero {
    grid-template-columns: 42% 58%;
  }

  .books-two-page .hero-book {
    padding-inline: 18px;
  }

  .books-two-page .hero-book .book-cover {
    width: min(94%, 380px);
  }
}

@media (max-width: 900px) {
  .books-two-page .books-hero {
    grid-template-columns: 1fr;
  }

  .books-two-page .books-hero-copy {
    min-height: 68vh;
  }

  .books-two-page .books-two-hero-panel {
    min-height: 74vh;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .books-two-page .hero-book {
    min-height: 74vh;
    padding: 54px 16px 32px;
  }

  .books-two-page .hero-book .book-cover {
    width: min(90%, 320px);
    max-height: 62vh;
  }
}

@media (max-width: 560px) {
  .books-two-page .books-two-hero-panel {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .books-two-page .hero-book {
    min-height: 78vh;
    padding: 58px 24px 38px;
  }

  .books-two-page .hero-book .book-cover {
    width: min(78vw, 330px);
    max-height: none;
  }
}

/* Real book cover images */
.books-two-page .book-cover-image {
  display: block;
  width: min(92%, 470px);
  max-height: calc(100vh - 118px);
  height: auto;
  object-fit: contain;
  box-shadow: 18px 22px 0 rgba(51, 20, 13, 0.14), 0 28px 56px rgba(51, 20, 13, 0.18);
  transition: transform 180ms ease;
}

.books-two-page .hero-book-one .book-cover-image {
  transform: rotate(-1.5deg);
}

.books-two-page .hero-book-two .book-cover-image {
  transform: rotate(1.5deg);
}

.books-two-page .hero-book:hover .book-cover-image,
.books-two-page .hero-book:focus-visible .book-cover-image {
  transform: translateY(-5px) rotate(0deg);
}

.books-two-page .section-book-cover {
  width: min(78%, 460px);
  max-height: min(72vh, 720px);
  object-fit: contain;
  box-shadow: 18px 22px 0 rgba(51, 20, 13, 0.14), 0 28px 56px rgba(51, 20, 13, 0.16);
}

@media (max-width: 900px) {
  .books-two-page .book-cover-image {
    width: min(90%, 320px);
    max-height: 62vh;
  }

  .books-two-page .section-book-cover {
    width: min(76vw, 360px);
    max-height: none;
  }
}

@media (max-width: 560px) {
  .books-two-page .book-cover-image {
    width: min(78vw, 330px);
    max-height: none;
  }
}

/* Two-book page: present the uploaded covers as the actual artwork, not mockups. */
.books-two-page .hero-book {
  padding: clamp(42px, 5vh, 68px) clamp(18px, 2vw, 34px) clamp(28px, 4vh, 48px);
}

.books-two-page .hero-book .book-cover-image {
  width: auto;
  height: min(78vh, 760px);
  max-width: 94%;
  max-height: calc(100vh - 96px);
  object-fit: contain;
  box-shadow: 0 22px 44px rgba(51, 20, 13, 0.20);
  border-radius: 0;
}

.books-two-page .hero-book-one .book-cover-image {
  transform: rotate(-1deg);
}

.books-two-page .hero-book-two .book-cover-image {
  transform: rotate(1deg);
}

.books-two-page .hero-book:hover .book-cover-image,
.books-two-page .hero-book:focus-visible .book-cover-image {
  transform: translateY(-6px) rotate(0deg) scale(1.015);
}

/* Remove the fake coloured book-mockup panels in the detail sections. */
.books-two-page .book-visual {
  padding: 0;
  overflow: visible;
}

.books-two-page .book-visual::before {
  display: none;
}

.books-two-page .section-book-cover {
  position: relative;
  z-index: 1;
  width: auto;
  height: min(72vh, 760px);
  max-width: min(100%, 520px);
  max-height: 72vh;
  object-fit: contain;
  box-shadow: 0 24px 48px rgba(51, 20, 13, 0.20);
  transform: none;
}

@media (max-width: 900px) {
  .books-two-page .hero-book .book-cover-image {
    width: auto;
    height: min(58vh, 520px);
    max-width: 90%;
    max-height: 58vh;
  }

  .books-two-page .section-book-cover {
    width: auto;
    height: min(58vh, 560px);
    max-width: min(86vw, 440px);
    max-height: 58vh;
  }
}

@media (max-width: 560px) {
  .books-two-page .hero-book .book-cover-image,
  .books-two-page .section-book-cover {
    width: auto;
    height: auto;
    max-width: min(82vw, 360px);
    max-height: none;
  }
}


/* Upcoming book section: intentionally image-free until the real cover exists. */
.books-two-page .book-visual-upcoming {
  min-height: min(72vh, 760px);
  padding: clamp(24px, 3vw, 42px);
  background: var(--yellow);
}

.books-two-page .upcoming-book-placeholder {
  position: relative;
  width: min(82%, 470px);
  aspect-ratio: 0.69;
  padding: clamp(28px, 3vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border: 3px solid var(--red);
  background: var(--cream);
  color: var(--red);
  box-shadow: 0 24px 48px rgba(51, 20, 13, 0.16);
}

.books-two-page .upcoming-book-placeholder strong {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 56px);
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(44px, 4.8vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.books-two-page .upcoming-label,
.books-two-page .upcoming-note {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.books-two-page .upcoming-label {
  padding-bottom: 8px;
  border-bottom: 2px solid currentColor;
}

@media (max-width: 900px) {
  .books-two-page .book-visual-upcoming {
    min-height: auto;
    padding: 42px 24px;
  }

  .books-two-page .upcoming-book-placeholder {
    width: min(76vw, 360px);
  }
}

/* Collapsible navigation: a persistent control to hide/show the menu. */
@media (min-width: 761px) {
  .menu-toggle {
    position: fixed;
    top: calc(50% + 23px - 164px);
    right: 24px;
    z-index: 1101;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 13px;
    border: 1px solid rgba(51, 20, 13, 0.12);
    border-radius: 3px;
    background: var(--red);
    color: #fff7e9;
    font: 800 11px/1.2 Arial, Helvetica, sans-serif;
    letter-spacing: .035em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(51, 20, 13, .12);
  }
  .menu-toggle .menu-toggle-icon { font-size: 15px; line-height: 1; }
  .menu-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
  .site-nav {
    transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
  }
  .site-nav.collapsed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(16px, -50%);
  }
}
@media (max-width: 980px) and (min-width: 761px) {
  .menu-toggle { right: 14px; }
}
@media (max-width: 760px) {
  .menu-toggle-label, .menu-toggle-icon { display: none; }
  .site-nav, .books-page .site-nav { top: 0; }
  .site-nav.collapsed { transform: translateX(100%); visibility: hidden; pointer-events: none; }
  .site-nav.open { visibility: visible; }
  .menu-toggle:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav { transition: none; }
}
