/* =========================================================
FILE: css/sections.css
Section-specific CSS ONLY. Iterate per section.
========================================================= */

/* HERO (author-first) */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  padding: 38px 38px 38px 48px; /* left safe area */
  align-items: stretch;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

/* Keep content above decorations */
.heroLeft {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 0; /* remove old reserve */
}

.btnRow {
  margin-top: auto; /* <-- pushes buttons down */
  padding-top: 18px; /* breathing room from text above */
}

.heroLeft,
.portraitWrap {
  position: relative;
  z-index: 2;
}

/* Background decorations */
.decor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.1));
}

/* Author SVG + text rhythm */
.svgAuthor {
  max-width: 620px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 12px 0;
}
.authorTagline {
  margin: 0 0 12px 0;
  font-size: 17px;
  color: var(--muted);
  max-width: 60ch;
}
.heroLeft p {
  margin: 0 0 14px 0;
  font-size: 16.5px;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.45;
}

/* Portrait */
.portraitWrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.portrait {
  width: min(360px, 92%);
  height: auto;
  border-radius: 26px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(31, 43, 43, 0.12);
  background: #fff;
}

/* Bar chart = quiet mark (top-left, aligned with text block) */
.d1 {
  left: 30px;
  top: 20px;
  width: 64px;
  opacity: 0.1;
  filter: none;
}
@media (max-width: 900px) {
  .d1 {
    opacity: 0.1;
  }
}

/* Line graph = story vector (top-left, sits above title) */
.d4 {
  left: 34px;
  top: 18px; /* <-- was bottom */
  bottom: auto;
  width: 260px;
  opacity: 0.24; /* usually better up top */
  transform: rotate(-2deg);
  transform-origin: left top;
}

@media (max-width: 900px) {
  .d4 {
    left: 12px;
    top: 12px;
    bottom: auto;
    width: 220px;
    opacity: 0.22;
  }
  .heroLeft {
    padding-top: 54px;
    padding-bottom: 0;
  }
}

/* BOOK grid */

.bookTitlePanel {
  text-align: center;
  padding: 22px 24px 56px;
}

/* Screen-reader only helper */
.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;
}

.bookGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: stretch;
}
@media (max-width: 900px) {
  .bookGrid {
    grid-template-columns: 1fr;
  }
}

/* Cover-style SVGs shown inside book section */
.svgTitle {
  display: block;
  width: min(720px, 100%);
  height: auto;
  margin: 0 auto 22px;
}

.svgSubtitle {
  display: block;
  width: min(920px, 100%);
  height: auto;
  margin: 0 auto;
  opacity: 0.9; /* tiny softening if needed */
}

.coreThemes {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: var(--t2);
}

.coreThemes li {
  position: relative;
  padding-left: 14px; /* hanging indent */
  margin: 0 0 0.45em 0;
}

.coreThemes li::before {
  content: '–'; /* en-dash as marker */
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(31, 43, 43, 0.35);
}
.coreThemes li:last-child {
  margin-bottom: 0;
}

/* Force the covers to be a single horizontal row */
.langCovers {
  margin-top: 0.9rem;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important; /* keep on one line */
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 0.2rem !important;
}

.book-item {
  text-align: center;
}

.book-item.is-english img {
  filter: brightness(1.05) saturate(0.9);
}

.book-label {
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: #555;
  letter-spacing: 0.02em;
}

.cover-link img {
  width: 80px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.cover-link:hover img {
  transform: translateY(-1px);
}
