/* =========================================================
   Speaker page — components used only on individual speaker
   pages (speaker-angie-cruz.html, speaker-devoney-looser.html,
   speaker-jane-austen.html). Built on top of styles.css; uses
   the same CSS variables.
   ========================================================= */

/* ---- Profile (photo + bio two-column) ---- */
.speaker-page__profile {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.speaker-page__profile h2 { margin-bottom: 1rem; }
.speaker-page__profile p {
  color: var(--slate);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
@media (max-width: 820px) {
  .speaker-page__profile { grid-template-columns: 1fr; }
}

.speaker-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(217, 166, 107, .55), rgba(42, 107, 114, .85)),
    var(--primary-deep);
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(0, 0, 0, .12));
  display: flex;
  align-items: center;
  justify-content: center;
}
.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.speaker-photo__monogram {
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 7rem);
  color: var(--cream);
  text-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  letter-spacing: .02em;
}
.speaker-photo__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .65rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55));
  color: rgba(248, 245, 238, .9);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
}

/* ---- Key facts list ---- */
.speaker-meta {
  list-style: none;
  padding: 1.4rem 1.6rem;
  margin-top: 1.5rem;
  background: rgba(42, 107, 114, .06);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  display: grid;
  gap: .55rem;
  font-size: .95rem;
  color: var(--charcoal);
}
.speaker-meta strong {
  color: var(--primary-deep);
  font-weight: 600;
  margin-right: .35rem;
}
.speaker-meta a { color: var(--primary-deep); border-bottom: 1px dotted var(--primary-deep); }
.speaker-meta a:hover { color: var(--primary-darker); }

/* ---- Books grid ---- */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}
.book {
  background: #fff;
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 8px 24px rgba(0, 0, 0, .08));
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease, ease), box-shadow .35s var(--ease, ease);
}
.book:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg, 0 18px 50px rgba(0, 0, 0, .14));
}

.book__cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(160deg, rgba(176, 127, 70, .25), rgba(27, 42, 46, .85)),
    var(--charcoal);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.4rem;
  overflow: hidden;
}
.book__cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.book__cover-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: .01em;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}
.book__cover-tag {
  position: absolute;
  top: .8rem; left: .8rem;
  background: var(--gold);
  color: var(--charcoal);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .3rem .6rem;
  border-radius: 999px;
}

.book__body {
  padding: 1.4rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.book__body h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--charcoal);
  margin-bottom: .35rem;
  line-height: 1.2;
}
.book__meta {
  font-size: .82rem;
  color: var(--primary-deep);
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: .8rem;
}
.book__desc {
  color: var(--slate);
  font-size: .94rem;
  flex: 1;
  margin-bottom: 1.1rem;
}
.book__embed {
  border-top: 1px dashed rgba(42, 107, 114, .28);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.book__embed .btn { padding: .55rem 1rem; font-size: .85rem; }

/* ---- Bookstore-wide embed slot ---- */
.bookstore-embed {
  background: #fff;
  border-radius: var(--radius-lg, 14px);
  border: 1px solid rgba(27, 42, 46, .08);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  min-height: 220px;
  box-shadow: var(--shadow, 0 8px 24px rgba(0, 0, 0, .06));
}
.bookstore-embed iframe,
.bookstore-embed > div[data-embed],
.bookstore-embed > .embed { width: 100%; }

.bookstore-embed__placeholder {
  border: 2px dashed rgba(42, 107, 114, .35);
  border-radius: 10px;
  padding: 2rem 1.4rem;
  text-align: center;
  color: var(--slate);
  background: rgba(42, 107, 114, .04);
}
.bookstore-embed__placeholder p { margin: 0 0 .5rem; }
.bookstore-embed__placeholder code {
  background: rgba(27, 42, 46, .08);
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: .9em;
}

/* ---- Awards ---- */
.awards {
  list-style: none;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: .25rem;
  border-top: 1px solid rgba(27, 42, 46, .12);
}
.awards li {
  padding: .9rem .25rem;
  border-bottom: 1px solid rgba(27, 42, 46, .12);
  font-size: 1rem;
  color: var(--charcoal);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: baseline;
}
.awards li strong {
  color: var(--gold-deep);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .04em;
}
.awards__note {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .85rem;
  color: var(--slate);
}

/* ---- Selected praise ---- */
.praise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.praise__quote {
  margin: 0;
  padding: 1.6rem 1.6rem 1.4rem;
  border-left: 3px solid var(--gold);
  background: rgba(248, 245, 238, .04);
  border-radius: 0 10px 10px 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
}
.praise__quote cite {
  display: block;
  margin-top: .9rem;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---- Connect / resource grid ---- */
.connect {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.connect__card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: .15rem 1rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(27, 42, 46, .08);
  border-radius: 12px;
  color: var(--charcoal);
  text-decoration: none;
  transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease), border-color .25s var(--ease, ease);
}
.connect__card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-deep);
  box-shadow: var(--shadow, 0 10px 24px rgba(0, 0, 0, .08));
  color: var(--charcoal);
}
.connect__icon {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.5rem;
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 107, 114, .1);
  color: var(--primary-deep);
  border-radius: 10px;
}
.connect__label {
  font-weight: 600;
  font-size: .98rem;
  color: var(--charcoal);
}
.connect__handle {
  font-size: .85rem;
  color: var(--slate);
}
