:root {
  --bg-warm: #faf8f5;
  --bg-white: #ffffff;
  --primary-amber: #b46528;
  --primary-hover: #924e1a;
  --primary-buy: #b42f28;
  --primary-buyhover: #92201a;
  --horizon-blue: #2f435a;
  --horizon-bluelight: #4e6987;
  --horizon-bluelight95: #4e698795;
  --horizon-light: #e8eef4;
  --text-dark: #2c241e;
  --text-muted: #574e46;
  --border-light: #e6dfd5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-warm);
  color: var(--text-dark);
  line-height: 1.65;
}

.resize-animation-stopper * {
  transition: none !important;
}

h1, h2, h3, blockquote {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text-dark);
}

header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.navbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
}

.logo span {
  color: var(--primary-amber);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-amber);
}

a.ext-link {
  color: var(--primary-amber);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

 a.ext-link:hover {
  color: var(--primary-hover);
}

.nav-cta {
  background: var(--primary-amber);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
}

.nav-cta:hover {
  background: var(--primary-hover);
}

.burger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  margin: -5px 0;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 3.5rem;
  align-items: start;
}

.book-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 6rem;
}

.book-cover {
  width: 100%;
  max-width: 330px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(180deg, #9bb2c9 0%, #f1c694 50%, #6b4c35 100%);
  border-radius: 4px 12px 12px 4px;
  box-shadow: -12px 16px 32px rgba(44, 36, 30, 0.22);
  overflow: hidden;
  position: relative;
  border-left: 5px solid #6b4528;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-meta {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  background: var(--horizon-light);
  color: var(--horizon-blue);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 0.1rem;
}

.hero-text h1 em {
  font-size: 0.8em;
  vertical-align: top;
}

.author-byline {
  font-size: 1.15rem;
  color: var(--primary-amber);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.quote-lead {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--horizon-blue);
  border-left: 3px solid var(--primary-amber);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

.synopsis p {
  color: var(--text-dark);
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}

.synopsis .question {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--primary-amber);
  margin: 1.25rem 0;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary {
  background: var(--primary-amber);
  color: #fff;
  padding: 0.95rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-buy.fr {
  background: var(--primary-buy);
}

.btn-buy,
.country-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-buy {
  padding: 0.75rem 1.5rem;
}

.btn-primary.btn-buy svg,
h3 svg {
  border-radius: 2px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 9px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.btn-buy.fr:hover {
  background: var(--primary-buyhover);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  padding: 0.95rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--primary-amber);
}

section {
  padding: 4.5rem 1.5rem;
}

.section-white {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
}

.author-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-warm);
  padding: 2.5rem;
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.author-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  object-fit: cover;
  background: #ddd;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.author-bio h2 {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.author-role {
  color: var(--primary-amber);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.author-bio p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.container > h3 {
  margin-bottom: 8px;
}

.container > h3.sep {
  margin-top: 50px;
}

a.card {
  text-decoration: none;
}

.video-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.thumbnail-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  --image: none;
  background: var(--image) center / contain no-repeat, linear-gradient(135deg, var(--horizon-blue), var(--horizon-bluelight));
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-wrapper.cover {
  background: var(--image) center / cover no-repeat, linear-gradient(135deg, var(--horizon-blue), var(--horizon-bluelight));
}

.thumbnail-wrapper.light {
  background: var(--image) center / contain no-repeat;
  background-color: var(--bg-warm);
}

.thumbnail-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: rgba(255,255,255,1);
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--horizon-blue), var(--horizon-bluelight95));
  padding: 0 6px 2px;
}

.thumbnail-label.right {
  left: unset;
  right: 12px;
}

.play-btn {
  width: 56px;
  height: 56px;
  background: var(--primary-amber);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 18px rgba(0,0,0,1);
  transition: transform 0.2s;
}

.video-card:hover .play-btn {
  transform: scale(1.1);
}

.video-info {
  padding: 0.75rem 1rem;
}

.media-source {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-amber);
  font-weight: 700;
}

.video-info h3 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.1rem;
  margin: 0.1rem 0;
}

.video-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--bg-warm);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--horizon-blue);
}

.event-date {
  font-weight: 600;
  color: var(--primary-amber);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.event-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.event-card p:not(.event-location) {
  color:var(--horizon-blue);
  font-size: 0.9em;
}

.event-location {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.buy-banner {
  background: linear-gradient(135deg, var(--horizon-blue), #1e2c3d);
  color: #fff;
  border-radius: 16px;
  padding: 3.5rem 1.5rem;
  text-align: center;
  margin: 0 auto;
}

.buy-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 1rem;
}

.buy-banner p {
  color: #e2e8f0;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.buy-banner p.note {
  margin: : 10px;
  margin: 40px auto 0;
  background: #fff3d81c;
  padding: 10px 15px 10px 10px;
  border-left: 4px solid #b46528;
  border-radius: 5px;
}

.buy-banner hr {
  margin: 40px auto 30px;
  width: 90%;
  color: #eeeeee25;
  border-color: #eeeeee25;
  border-bottom: none;
  height: 1px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(2px);
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

#info-modal {
  margin: max(10px, calc((100vh - 120px) * 0.38)) auto auto;
  border: none;
  border-radius: 8px;
  padding: 20px 24px;
  min-width: min(300px, 90vw);
  max-width: 90vw;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  text-align: center; font-family: sans-serif;
}

#info-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
}

#info-modal p {
  margin: 0 0 16px;
  font-size: 16px;
}

#info-modal button {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  background: var(--primary-amber);
  color: #fff;
  cursor: pointer;
}

#info-modal button:hover {
  background: var(--primary-hover);
}

footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-light);
}

@media (max-width: 990px) {
  .nav-links {
    gap: 1.35rem;
  }
}

@media (max-width: 950px) {
  .burger {
    display: block;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.99);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    gap: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    backdrop-filter: blur(8px);
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 2.5rem;
  }

  .book-showcase {
    position: static;
  }

  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .author-photo {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 400px) {
  * {
    font-size: 0.985em;
  }
}

@media (max-width: 360px) {
  .buy-banner {
    padding: 3.5rem 1.2rem;
  }
}

@media (max-width: 348px) {
  section {
    padding: 4.5rem 0.8rem;
  }
}

@media (max-width: 330px) {
  section {
    padding: 4.5rem 0.4rem;
  }
}

@media (max-width: 320px) {
  .buy-banner {
    padding: 3.5rem 0.5rem;
  }
}