/* Beck Stevens — new site layout (mockup-aligned) */

:root {
  --navy: #0c1a2e;
  --navy-deep: #081221;
  --steel: #3d6e9a;
  --steel-soft: #6a9bc4;
  --title-blue: #5f8fb8;
  --title-stroke: #163a63;
  --band-blue: #c5d3df;
  --accent-orange: #e69e1f;
  --btn: #2f5f8a;
  --btn-hover: #3d73a3;
  --about-band: #1a1a1a;
  --books-band: #ffffff;
  --extra-band: #1a1a1a;
  --ink: #1c2430;
  --muted: #4a5564;
  --paper: #ffffff;
  --shadow: 0 10px 28px rgba(8, 18, 33, 0.14);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --max: 1100px;
  --header-h: 48px;
  --accent-h: 6px;
  --header-stack: calc(var(--header-h) + var(--accent-h));
  /* Approximate crest of the snowy hills within heroes */
  --hills-line: 52%;
  --hills-line-secondary: 62%;
}

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

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--bs-body-font-size, 1.05rem);
  line-height: var(--bs-body-line-height, 1.65);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #16325a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  font-family: var(--font-display);
}

.skip-link:focus {
  top: 0.75rem;
}

/* ——— Header / Nav ——— */

.site-header {
  position: relative;
  background: var(--navy);
}

/* Home: landscape runs under a translucent nav */
.site-header--overlay {
  background: transparent;
}

.site-header__chrome {
  position: relative;
  z-index: 30;
}

.site-header--overlay .site-header__chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-h);
  padding: 0.55rem 1.25rem;
  position: relative;
  background: var(--navy);
}

.site-header--overlay .site-header__bar {
  background: rgba(12, 26, 46, 0.75);
}

.site-header__accent {
  height: var(--accent-h);
  background: var(--accent-orange);
}

.site-nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 860px) {
  .site-nav__list {
    display: flex;
  }
}

.site-nav__sep {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 0.95rem;
  user-select: none;
}

.site-nav__link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--accent-orange);
}

.site-nav__books {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Keep hover bridge open so the panel does not vanish in the gap */
.site-nav__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 15rem;
  padding-top: 0.85rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 60;
}

.site-nav__panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0.85rem;
}

.site-nav__books:hover .site-nav__panel,
.site-nav__books:focus-within .site-nav__panel,
.site-nav__books.is-open .site-nav__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav__panel a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: #e8eef5;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  white-space: nowrap;
  background: var(--navy-deep);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav__panel a:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.7rem;
}

.site-nav__panel a:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.7rem;
  box-shadow: var(--shadow);
}

.site-nav__panel a:hover {
  background: #12263d;
  color: var(--accent-orange);
}

.site-nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.site-nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav__toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.site-nav__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 860px) {
  .site-nav__toggle {
    display: none;
  }
}

.mobile-nav {
  background: rgba(8, 18, 33, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.25rem 1.25rem;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 0.7rem 0;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__book a {
  padding-left: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #c9d6e4;
}

/* ——— Heroes ——— */

.hero {
  position: relative;
  overflow: hidden;
  display: block;
  height: var(--hero-height, clamp(140px, 18vw, 240px));
  background: #1e3a55;
}

.hero--home {
  min-height: clamp(340px, 48vw, 620px);
}

.hero--secondary {
  min-height: clamp(170px, 22vw, 280px);
}

.hero__image,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  filter: none;
}

/* Keep sky under the translucent nav; hills crest around mid-frame */
.hero--home .hero__image,
.hero--home .hero__video {
  object-position: center 78%;
}

.hero--secondary .hero__image,
.hero--secondary .hero__video {
  object-position: center 68%;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 18, 33, 0.45);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.hero__arrow--prev { left: 0.75rem; }
.hero__arrow--next { right: 0.75rem; }

.hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.hero__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
}

.hero__dot.is-active {
  background: var(--steel-soft);
}

.hero--zoom .hero__image {
  animation: heroZoom 18s ease-in-out alternate infinite;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero--zoom .hero__image {
    animation: none;
  }
}

/* Soft bottom blend only — no grey cast over the photo */
.hero__veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__veil--secondary {
  height: 18%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 100%);
}

/* White fill + navy stroke + soft drop shadow (CSS text, not PNG) */
.hero__title {
  position: absolute;
  left: 50%;
  z-index: 2;
  margin: 0;
  padding: 0 1.25rem;
  width: min(100%, 56rem);
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.47rem, 7.13vw, 4.83rem);
  letter-spacing: 0.2em;
  color: #ffffff;
  text-align: center;
  -webkit-text-stroke: 1.35px var(--title-stroke);
  paint-order: stroke fill;
  text-shadow:
    0 2px 3px rgba(8, 24, 48, 0.45),
    0 6px 18px rgba(8, 24, 48, 0.35);
  animation: heroTitleIn 0.9s ease both;
}

/* Midpoint between underside of menu+accent and the hills crest */
.hero--home .hero__title {
  top: calc(var(--header-stack) + (var(--hills-line) - var(--header-stack)) / 2);
}

.hero__title--secondary {
  top: calc(var(--header-stack) + (var(--hills-line-secondary) - var(--header-stack)) / 2);
  font-size: clamp(1.55rem, 4.2vw, 2.45rem);
  letter-spacing: 0.24em;
  font-weight: 500;
  -webkit-text-stroke-width: 1px;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title {
    animation: none;
  }
}

/* ——— Main ——— */

.site-main {
  flex: 1 0 auto;
}

.site-main__inner {
  width: 100%;
}

.is-home .site-main__inner {
  max-width: none;
  padding: 0;
}

.site-main__inner > .page-title,
.site-main__inner > .prose,
.site-main__inner > .books-page,
.site-main__inner > .book-detail,
.site-main__inner > .contact-page,
.site-main__inner > .newsletter-page,
.site-main__inner > .about-page,
.site-main__inner > .legal-page {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: 0.06em;
  color: var(--navy);
  margin: 0 0 1.25rem;
}

/* ——— Home: Featured book ——— */

.home-feature {
  /* Distance the card's top edge rises above the hero's bottom edge. */
  --feature-overlap: clamp(48px, 15vw, 320px);
  /* background: var(--band-blue); /* stops the card's negative margin lifting the blue band too */
  padding: 0 1.25rem 3rem;
  display: flow-root;
}

.home-feature__card {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: calc(-1 * var(--feature-overlap)) auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  animation: riseIn 0.8s ease both;
  animation-delay: 0.15s;
}

@media (min-width: 800px) {
  .home-feature__card {
    grid-template-columns: minmax(180px, 280px) 1fr;
    gap: 2rem;
    padding: 2rem 2.25rem;
    align-items: start;
  }
}

.home-feature__aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: fit-content;
  max-width: min(280px, 100%);
  margin-inline: auto;
}

.home-feature__cta {
  width: 100%;
}

.home-feature__buy {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.home-feature__sample {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-top: 0.65rem;
}

.buy-formats {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.home-feature__cover img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  box-shadow: 0 8px 22px rgba(8, 18, 33, 0.22);
}

.home-feature__heading {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--navy);
  font-weight: 600;
}

.home-feature__sub {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
}

.home-feature__copy p {
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.home-feature__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn--gold {
  background: var(--btn);
  color: #fff;
  font-weight: 600;
}

.btn--gold:hover {
  background: var(--btn-hover);
  color: #fff;
}

.btn--navy {
  background: var(--navy);
  color: #fff;
}

.btn--navy:hover {
  color: #fff;
}

.btn--outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(12, 26, 46, 0.35);
  font-weight: 600;
}

.btn--outline:hover {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-feature__card {
    animation: none;
  }
}

/* ——— Home: About band ——— */

.home-about {
  background: var(--about-band);
  padding: 3.5rem 1.25rem;
  position: relative;
}

.home-about__panel {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

@media (min-width: 820px) {
  .home-about__panel {
    grid-template-columns: 1fr minmax(180px, 240px);
    padding: 2.25rem 2.5rem 2.25rem 2.25rem;
    gap: 2rem;
  }
}

.home-about__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  color: #2a5f9e;
  font-weight: 600;
}

.home-about__copy p {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.home-about__more {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--navy);
  text-decoration: none;
}

.home-about__more:hover {
  color: #2a5f9e;
}

.home-about__photo {
  justify-self: center;
}

.home-about__photo img {
  width: min(220px, 70vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.15rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: transparent;
}

@media (min-width: 820px) {
  .home-about__photo {
    justify-self: end;
    margin-right: -1.5rem;
    margin-top: -0.5rem;
    margin-bottom: -0.5rem;
  }

  .home-about__photo img {
    width: 230px;
  }
}

.home-about__panel--split {
  align-items: start;
}

@media (min-width: 820px) {
  .home-about__panel--split {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
    column-gap: 2.5rem;
  }

  .home-about__panel--split > .home-about__news {
    border-left: 1px solid rgba(12, 26, 46, 0.12);
    padding-left: 2rem;
  }
}

.home-about__copy--with-photo {
  overflow: hidden;
}

.home-about__photo--inline {
  float: right;
  width: min(160px, 42%);
  margin: 0.15rem 0 1rem 1.15rem;
  justify-self: auto;
}

.home-about__photo--inline img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.95rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.home-about__copy--with-photo .home-about__more {
  clear: both;
}

.home-about__news p {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.home-about__news-image {
  margin: 0 0 1rem;
}

.home-about__news-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .home-about__photo--inline {
    float: none;
    width: min(180px, 55%);
    margin: 0 auto 1.15rem;
  }
}

/* ——— Home: Beck's Books ——— */

.home-books {
  padding: 3rem 1.25rem 4rem;
  background: var(--books-band);
}

.home-books__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.home-books__title {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  letter-spacing: 0.1em;
  color: var(--navy);
  font-weight: 600;
}

.home-books__more {
  margin: 2rem 0 0;
  text-align: center;
}

.home-books__more a {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--navy);
}

.home-books__more a:hover {
  color: #2a5f9e;
}

.becks-books-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

@media (min-width: 700px) {
  .becks-books-row {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem 1.1rem;
  }
}

.becks-book {
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.2s ease;
}

.becks-book:hover {
  transform: translateY(-4px);
}

.becks-book img {
  width: 100%;
  max-width: 160px;
  margin: 0 auto 0.65rem;
  box-shadow: 0 6px 16px rgba(8, 18, 33, 0.18);
}

.becks-book span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--navy);
}

/* ——— Home: Extra panel (About-style band) ——— */

.home-extra {
  background: var(--extra-band);
  padding: 3.5rem 1.25rem;
  position: relative;
}

.home-extra__panel {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

@media (min-width: 820px) {
  .home-extra__panel--single {
    grid-template-columns: 1fr minmax(180px, 240px);
    padding: 2.25rem 2.5rem 2.25rem 2.25rem;
    gap: 2rem;
  }
}

.home-extra__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  color: #2a5f9e;
  font-weight: 600;
}

.home-extra__copy p,
.home-extra__column p {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.home-extra__more {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--navy);
  text-decoration: none;
}

.home-extra__more:hover {
  color: #2a5f9e;
}

.home-extra__photo {
  justify-self: center;
}

.home-extra__photo img {
  width: min(220px, 70vw);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.15rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: transparent;
}

@media (min-width: 820px) {
  .home-extra__panel--single .home-extra__photo {
    justify-self: end;
    margin-right: -1.5rem;
    margin-top: -0.5rem;
    margin-bottom: -0.5rem;
  }

  .home-extra__panel--single .home-extra__photo img {
    width: 230px;
  }
}

.home-extra__panel--split {
  align-items: start;
}

@media (min-width: 820px) {
  .home-extra__panel--split {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
    column-gap: 2.5rem;
    padding: 2.25rem 2.5rem;
  }

  .home-extra__panel--split > .home-extra__column {
    border-left: 1px solid rgba(12, 26, 46, 0.12);
    padding-left: 2rem;
  }
}

.home-extra__copy--with-photo {
  overflow: hidden;
}

.home-extra__photo--inline {
  float: right;
  width: min(160px, 42%);
  margin: 0.15rem 0 1rem 1.15rem;
}

.home-extra__photo--inline img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.95rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.home-extra__copy--with-photo .home-extra__more {
  clear: both;
}

.home-extra__column-image {
  margin: 0 0 1rem;
}

.home-extra__column-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .home-extra__photo--inline {
    float: none;
    width: min(180px, 55%);
    margin: 0 auto 1.15rem;
  }
}

/* ——— Interior content ——— */

.lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.prose p,
.about-page p,
.book-detail p {
  margin: 0 0 1rem;
}

.about-page .about-photo {
  display: block;
  float: right;
  width: min(260px, 42%);
  height: auto;
  margin: 0 0 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .about-page .about-photo {
    float: none;
    width: min(280px, 100%);
    margin: 0 auto 1.5rem;
  }
}

.about-page h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.55rem;
  margin: 2rem 0 0.85rem;
  clear: both;
}

.about-photo-slider {
  clear: both;
  position: relative;
  margin: 1.75rem 0 2.25rem;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) 1.75rem;
  align-items: center;
  gap: 0.35rem;
}

.about-photo-slider__viewport {
  overflow: hidden;
  width: 100%;
}

.about-photo-slider__track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.about-photo-slider__item {
  flex: 0 0 clamp(120px, 16vw, 180px);
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e7e5e4;
}

.about-photo-slider__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-slider__btn {
  width: 0;
  height: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  justify-self: center;
}

.about-photo-slider__btn--prev {
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-right: 0.75rem solid var(--accent-orange);
}

.about-photo-slider__btn--next {
  border-top: 0.55rem solid transparent;
  border-bottom: 0.55rem solid transparent;
  border-left: 0.75rem solid var(--accent-orange);
}

.about-photo-slider__btn:hover {
  opacity: 0.8;
}

.about-photo-slider__btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-orange) 45%, transparent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .about-photo-slider__track {
    transform: none !important;
  }
}

/* Books listing */

.books-genre {
  margin-bottom: 2.5rem;
}

.books-genre-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  border-bottom: 1px solid rgba(12, 26, 46, 0.15);
  padding-bottom: 0.4rem;
  margin: 0 0 1.25rem;
}

.books-tile-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .books-tile-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.book-tile {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: start;
}

.book-tile-thumb img {
  width: 110px;
  box-shadow: 0 6px 14px rgba(8, 18, 33, 0.16);
}

.book-tile-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.book-tile-title a {
  text-decoration: none;
  color: var(--navy);
}

.book-tile-desc {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.book-tile-more {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-decoration: none;
  font-weight: 600;
}

/* Book detail */

.book-detail__layout {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 780px) {
  .book-detail__layout {
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 2.25rem;
    align-items: start;
  }
}

.book-detail__aside {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: fit-content;
  max-width: min(260px, 100%);
  margin-inline: auto;
}

@media (min-width: 780px) {
  .book-detail__aside {
    margin-inline: 0;
    justify-self: start;
  }
}

.book-detail__cover {
  margin: 0;
  width: 100%;
}

.book-detail__cover img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

.book-detail__status {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  color: var(--navy);
  font-size: 1.5rem;
}

.book-detail__sub {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  margin: 0 0 1rem;
}

.book-detail__cta {
  width: 100%;
}

.book-detail__buy {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.book-detail__buy[aria-disabled="true"] {
  opacity: 0.85;
  cursor: default;
  transform: none;
  filter: none;
}

.book-detail__nav {
  margin-top: 1.75rem;
  color: var(--muted);
}

/* Cover image viewer (Amazon-style thumbs + lightbox) */

.book-cover-view {
  width: 100%;
}

.book-cover-view__main {
  margin: 0;
}

.book-cover-view__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.book-cover-view__zoom img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

.book-cover-view__thumbs {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.book-cover-view__thumb {
  flex: 0 0 auto;
  width: 3.75rem;
  padding: 0.2rem;
  border: 2px solid transparent;
  border-radius: 0.45rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.book-cover-view__thumb.is-active {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px rgba(12, 26, 46, 0.08);
}

.book-cover-view__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.book-cover-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.book-cover-lightbox[hidden] {
  display: none !important;
}

.book-cover-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 33, 0.82);
}

.book-cover-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(34rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  padding: 0;
}

.book-cover-lightbox__panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 2rem);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.book-cover-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

/* Book sample chapter */

.book-sample {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(12, 26, 46, 0.12);
}

.book-sample__section-title {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--navy);
}

.book-sample__masthead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.book-sample__series {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--navy);
}

.book-sample__book-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.35rem);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.book-sample__byline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.book-sample__by {
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.book-sample__copyright {
  max-width: 40rem;
  margin: 0 auto 2.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.book-sample__copyright p {
  margin: 0 0 0.65rem;
}

.book-sample__chapter {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  text-align: center;
  scroll-margin-top: 6rem;
}

.book-sample__chapter-series {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--navy);
}

.book-sample__chapter-label {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.book-sample__chapter-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
}

.book-sample__epigraph {
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  padding: 0;
  border: 0;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
}

.book-sample__epigraph p {
  margin: 0 0 0.35rem;
}

.book-sample__location {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.book-sample__body {
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
}

.book-sample__body p {
  margin: 0 0 0.95rem;
  line-height: 1.65;
  color: var(--ink);
}

.book-sample__break {
  margin: 1.35rem 0;
  text-align: center;
  letter-spacing: 0.35em;
  color: var(--muted);
}

.book-sample__buy {
  margin-top: 2.5rem;
  text-align: center;
}

.book-sample__buy-btn {
  display: inline-block;
  min-width: min(100%, 280px);
  box-sizing: border-box;
}

.book-sample__buy .buy-formats {
  margin-top: 0.65rem;
}

/* Forms */

.contact-form,
.form-row {
  display: block;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  max-width: 36rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(12, 26, 46, 0.25);
  background: #fafbfd;
  font: inherit;
  color: inherit;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--title-blue);
  outline-offset: 1px;
}

.form-message {
  max-width: 36rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.form-message--success {
  background: #e8f5e9;
  border: 1px solid #81c784;
}

.form-message--error {
  background: #fdecea;
  border: 1px solid #e57373;
}

.newsletter-page {
  text-align: center;
}

.newsletter-page .page-title,
.newsletter-page .book-detail__status {
  text-align: center;
}

.newsletter-page .newsletter-intro {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.newsletter-embed-slot {
  max-width: 36.5rem;
  min-height: 8rem;
  margin: 0 auto;
  text-align: center;
}

/* Hide Kit / ConvertKit “powered by” branding on embeds */
.newsletter-embed-slot .formkit-powered-by-convertkit,
.newsletter-embed-slot .formkit-powered-by-convertkit-container,
.newsletter-embed-slot [data-element="powered-by"],
.newsletter-embed-slot a[href*="kit.com"],
.newsletter-embed-slot a[href*="convertkit.com"],
.newsletter-embed-slot [class*="powered-by"],
.newsletter-embed-slot [class*="powered_by"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}

.newsletter-thanks {
  display: flex;
  justify-content: center;
}

.newsletter-thanks__card {
  width: min(40rem, 100%);
  padding: 2rem 1.75rem 2.25rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.newsletter-thanks__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: 0.06em;
  color: var(--navy);
  text-transform: uppercase;
}

.newsletter-thanks__body p {
  margin: 0 0 0.9rem;
  color: var(--ink);
}

.newsletter-thanks__body a:not(.newsletter-thanks__btn) {
  color: var(--navy);
}

.newsletter-thanks__btn {
  margin-top: 0.35rem;
}

/* Legal */

.legal-updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin: -0.5rem 0 1.5rem;
}

.legal-body h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
}

.legal-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-body blockquote {
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
}

.legal-body th,
.legal-body td {
  border: 1px solid rgba(12, 26, 46, 0.15);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: #eef3f8;
  font-family: var(--font-display);
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #d7e0ea;
  margin-top: auto;
}

.site-footer__accent {
  height: var(--accent-h);
  background: var(--accent-orange);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
  text-align: center;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.site-footer__nav a {
  color: #edf2f7;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer__nav a:hover {
  color: var(--steel-soft);
}

.site-footer__sep {
  color: rgba(255, 255, 255, 0.35);
}

.site-footer__copy,
.site-footer__credit {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: #b8c5d4;
}

.site-footer__credit a {
  color: #edf2f7;
  text-decoration: none;
}

.site-footer__credit a:hover {
  color: var(--steel-soft);
}

.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.site-footer__social a {
  color: #edf2f7;
  display: inline-flex;
  padding: 0.35rem;
}

.site-footer__social a:hover {
  color: var(--steel-soft);
}

/* Cookie notice */

.cookie-notice {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 42rem;
  margin: 0 auto;
  background: var(--navy-deep);
  color: #e8eef5;
  box-shadow: var(--shadow);
  padding: 1rem 1.15rem;
}

.cookie-notice a {
  color: var(--steel-soft);
}

.cookie-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.cookie-notice-btn {
  font-family: var(--font-display);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: #fff;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.cookie-notice-btn--accept {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
  font-weight: 600;
}

/* ——— Newsletter popup ——— */

.newsletter-popup[hidden] {
  display: none !important;
}

.newsletter-popup {
  display: none;
  position: fixed !important;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: auto;
  top: auto;
  z-index: 300;
  width: min(19rem, calc(100vw - 1.5rem));
  max-width: 19rem;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.newsletter-popup.is-visible {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-popup {
    transition: none;
  }
}

.newsletter-popup__panel {
  position: relative;
  background: #fff;
  border-radius: 0.65rem;
  box-shadow: 0 12px 36px rgba(8, 18, 33, 0.28);
  overflow: visible;
}

.newsletter-popup__header {
  background: var(--navy);
  border-radius: 0.65rem 0.65rem 0 0;
  padding: 0.85rem 1rem 0.75rem;
  text-align: center;
}

.newsletter-popup__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}

.newsletter-popup__title span {
  display: block;
}

.newsletter-popup__body {
  position: relative;
  padding: 0.85rem 0.9rem 1.15rem;
  border-left: 0.55rem solid var(--navy);
  border-right: 0.55rem solid var(--navy);
  border-bottom: 0.55rem solid var(--navy);
  border-radius: 0 0 0.55rem 0.55rem;
  background: #fff;
}

.newsletter-popup__lead {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
  text-align: center;
}

.newsletter-popup__form {
  max-width: none;
  overflow: hidden;
}

.newsletter-popup__form .formkit-form,
.newsletter-popup__form [data-element="form"] {
  margin: 0 !important;
  max-width: none !important;
}

.newsletter-popup .formkit-powered-by-convertkit,
.newsletter-popup .formkit-powered-by-convertkit-container,
.newsletter-popup [data-element="powered-by"],
.newsletter-popup a[href*="convertkit.com"],
.newsletter-popup a[href*="kit.com"],
.newsletter-popup [class*="powered-by"],
.newsletter-popup [class*="powered_by"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.newsletter-popup .formkit-submit,
.newsletter-popup [data-element="submit"] {
  background: var(--btn) !important;
  border-color: var(--btn) !important;
  color: #fff !important;
}

.newsletter-popup__close {
  position: absolute;
  right: -0.35rem;
  bottom: -0.35rem;
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 9999px;
  background: var(--navy);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.newsletter-popup__close:hover,
.newsletter-popup__close:focus-visible {
  background: var(--btn);
}

.newsletter-popup__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .newsletter-popup {
    left: 50%;
    right: auto;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: min(19rem, calc(100vw - 1.25rem));
    transform: translate(-50%, 0.75rem);
  }

  .newsletter-popup.is-visible {
    transform: translate(-50%, 0);
  }
}

