/* ============================================================================
   HeyUniversity — Component & Page Styles
   ----------------------------------------------------------------------------
   Consumes design tokens from tokens.css ONLY. No literal colors, font names,
   or sizes here — everything references a var() so the whole look re-themes
   from tokens.css (or live via the playground panel).

   The real website will import tokens.css + this file and reuse these classes.
   ============================================================================ */

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

html { font-size: var(--font-size-base); scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

::selection { background: var(--color-accent); color: var(--color-on-accent); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ---------- Layout helpers ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: var(--space-12);
  border-bottom: var(--border-hairline) solid var(--color-border);
}
.section__eyebrow {
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-2);
}
.section__title {
  font-size: var(--text-3xl);
  margin: 0 0 var(--space-6);
}
/* A smaller, quieter alternative to .section__title for sections that want
   a brief framing line (often a question) ahead of normal body text, rather
   than a full heading treatment. */
.section-subtitle {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}
.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.grid { display: grid; gap: var(--space-6); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
/* Fixed-width columns (not 1fr) + justify-content:center means the tracks
   only take up as much width as the items need, so a short row (e.g. 2
   cards) centers as a group instead of stretching/left-aligning. */
.grid--center {
  grid-template-columns: repeat(auto-fit, minmax(0, 340px));
  justify-content: center;
}

/* ---------- Typography --------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin: 0 0 var(--space-4);
}
h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p { margin: 0 0 var(--space-4); max-width: 68ch; }

.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}
.small { font-size: var(--text-sm); }
.muted { color: var(--color-text-muted); }

a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--duration-fast) var(--ease); }
a:hover { color: var(--color-link-hover); }

blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-left: var(--border-thick) solid var(--color-accent);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text);
}
blockquote cite { display: block; margin-top: var(--space-3); font-size: var(--text-sm); font-style: normal; color: var(--color-text-muted); }

ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li + li { margin-top: var(--space-2); }

hr { border: none; border-top: var(--border-hairline) solid var(--color-border); margin: var(--space-8) 0; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-surface-alt);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

/* ---------- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--body-font);
  font-size: var(--text-base);
  line-height: 1;
  padding: 0.85em 1.6em;
  border: var(--border-hairline) solid transparent;
  border-radius: var(--radius-ui);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease),
              color var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn--primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }

.btn--secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.btn--secondary:hover { border-color: var(--color-text); }

.btn--ghost { background: transparent; color: var(--color-accent); }
.btn--ghost:hover { background: var(--color-accent-soft); }

.btn--sm { font-size: var(--text-sm); padding: 0.6em 1.1em; }
.btn--lg { font-size: var(--text-lg); padding: 0.9em 1.8em; }

.btn:disabled,
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.contact-email-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.contact-email-inline span {
  display: inline;
}

.copy-email-button {
  white-space: nowrap;
  margin-left: 0;
}

.copy-email-button.is-copied {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ---------- Header / nav ------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: var(--border-hairline) solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--color-text); }
.brand__mark { font-size: var(--text-2xl); font-weight: var(--weight-bold); font-family: var(--heading-font); }
.brand__mark em { color: var(--color-accent); font-style: normal; }
.brand__logo { height: 2.5rem; width: auto; display: block; }
.nav { display: flex; gap: var(--space-5); align-items: center; }
.nav a:not(.btn) { color: var(--color-text); text-decoration: none; font-size: var(--text-base); }
.nav a:not(.btn):hover { color: var(--color-accent); }
.nav a[aria-current="page"]:not(.btn),
.mobile-nav a[aria-current="page"]:not(.btn) { color: var(--color-accent); }

/* ---------- Mobile menu ---------------------------------------------------- */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-ui);
  background: var(--color-surface);
  cursor: pointer;
  position: relative;
}
.menu-toggle__bar {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  top: 19px;
  background: var(--color-text);
  transition: transform var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease), top var(--duration-fast) var(--ease);
}
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease), top var(--duration-fast) var(--ease);
}
.menu-toggle__bar::before { top: -7px; }
.menu-toggle__bar::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0 var(--space-5);
  max-height: 0;
  overflow: hidden;
  /* padding-bottom is 0 here and only added in the --open state below — a
     flex container's max-height:0 doesn't reliably clip its own padding in
     every browser, so a static bottom padding here would peek through even
     while "closed" (confirmed: rendered at 27px tall instead of 0). */
  transition: max-height var(--duration-slow) var(--ease), padding-bottom var(--duration-slow) var(--ease);
}
.mobile-nav a:not(.btn) { padding: var(--space-3) 0; text-decoration: none; color: var(--color-text); font-size: var(--text-lg); border-bottom: var(--border-hairline) solid var(--color-border); }
.mobile-nav .btn { border-bottom: none; margin-top: var(--space-3); text-align: center; }

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: flex; }
  .mobile-nav--open { max-height: 600px; padding-bottom: var(--space-5); }
}

/* ---------- Hero --------------------------------------------------------- */
.hero { padding-block: var(--space-16) var(--space-12); text-align: center; }
.hero__eyebrow {
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
}
.hero h1 { font-size: var(--text-6xl); margin-top: var(--space-4); }
.hero .lead { margin-inline: auto; max-width: 46ch; }
.hero__actions { justify-content: center; margin-top: var(--space-6); }

/* ---------- Hero (split photo + photo-background text) --------------------
   Both panels are absolutely positioned (not flex) so their edges can be cut
   with matching clip-path diagonals — a true diagonal seam, not just a
   stripe drawn on top of a straight edge. SKEW is the fixed horizontal
   travel (in px) of the diagonal from top to bottom; it stays constant
   regardless of the hero's height, which keeps the angle from ballooning
   into something dramatic if content forces the box taller.               */
.hero-split {
  position: relative;
  overflow: hidden;
  height: 460px;
  border-bottom: var(--border-hairline) solid var(--color-border);
}
/* SEAM = 38% (nominal boundary). SKEW = 140px total horizontal travel of the
   diagonal from top (SEAM - 70px) to bottom (SEAM + 70px). Photo's box is
   widened by 70px so its right edge can reach the diagonal's bottom point;
   content's box is shifted left by 70px so its left edge can reach the
   diagonal's top point. Their clip-paths cut the two corners that would
   otherwise overlap/gap, so the two panels tile edge-to-edge with no seam. */
.hero-split__photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(38% + 70px);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 140px) 0, 100% 100%, 0 100%);
}
.hero-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.hero-split__content {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: calc(38% - 70px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 140px 100%);
  background-image:
    linear-gradient(90deg, rgba(26, 23, 20, 0.1) 0%, rgba(26, 23, 20, 0.5) 45%, rgba(87, 20, 20, 0.85) 75%),
    url('images/team.jpg');
  background-size: cover;
  background-position: center;
}
/* Accent divider: a thin parallelogram following the exact same diagonal,
   drawn relative to the whole hero box so its math can't drift out of sync
   with the panel clip-paths above. */
.hero-split::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  clip-path: polygon(
    calc(38% - 73px) 0, calc(38% - 67px) 0,
    calc(38% + 73px) 100%, calc(38% + 67px) 100%
  );
  background: linear-gradient(to bottom, var(--red-400), var(--color-accent) 45%, var(--red-900));
  box-shadow: 0 0 14px 1px rgba(179, 27, 27, 0.5);
}
.hero-split__text {
  max-width: 32rem;
  padding: var(--space-6) var(--space-8);
  text-align: right;
  color: var(--white);
}
.hero-split__text h1 {
  color: var(--white);
  font-size: var(--text-3xl);
  overflow-wrap: normal;
  margin-bottom: var(--space-3);
}
.hero-split__text .lead {
  color: var(--grey-200);
  margin-left: auto;
  max-width: 38ch;
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.hero-split__text .hero__actions { justify-content: flex-end; margin-top: 0; }

/* ---------- Cards -------------------------------------------------------- */
.card {
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-ui);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-surface-alt));
  display: grid;
  place-items: center;
  color: var(--color-accent);
  font-family: var(--heading-font);
  font-size: var(--text-3xl);
}
.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card__meta { font-size: var(--text-sm); color: var(--color-text-muted); display: flex; gap: var(--space-3); }
.card__title { font-size: var(--text-xl); margin: 0; }
.card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.card__price { font-size: var(--text-lg); font-weight: var(--weight-bold); }

/* ---------- Badges / tags ----------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-pill);
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
}
.badge--accent { background: var(--color-accent-soft); color: var(--color-accent); }
.badge--solid  { background: var(--color-accent); color: var(--color-on-accent); }

/* ---------- Forms -------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.label { font-size: var(--text-sm); color: var(--color-text-muted); }
.input, .select, .textarea {
  font-family: var(--body-font);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border-strong);
  border-radius: var(--radius-ui);
  padding: 0.7em 0.9em;
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--focus-ring);
}
.textarea { resize: vertical; min-height: 6em; }
.checkbox-row { display: flex; align-items: center; gap: var(--space-2); }
.checkbox-row input { accent-color: var(--color-accent); width: 1.1em; height: 1.1em; }

/* ---------- Color swatches ---------------------------------------------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-3); }
.swatch { border-radius: var(--radius-ui); overflow: hidden; border: var(--border-hairline) solid var(--color-border); }
.swatch__chip { height: 64px; }
.swatch__label { padding: var(--space-2); font-size: var(--text-xs); background: var(--color-surface); }
.swatch__label b { display: block; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  padding-block: var(--space-10);
  background: var(--color-text);
  color: var(--grey-300);
}
.site-footer a { color: var(--white); }
.site-footer h6 { color: var(--white); margin-bottom: var(--space-3); }
.site-footer p { margin: 0; }
.site-footer .muted { color: var(--grey-400); }

.site-footer__grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-8); }
.site-footer__brand { max-width: 22rem; }
.site-footer__logo { height: 2.75rem; width: auto; display: block; }
.site-footer__brand p { margin-top: var(--space-3); }
.site-footer__bottom { margin-top: var(--space-6); }

@media (max-width: 640px) {
  .site-footer__grid { flex-direction: column; gap: var(--space-6); }
}

/* ---------- Testimonials -------------------------------------------------- */
.testimonial {
  margin: 0;
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-ui);
  padding: var(--space-5);
  height: 100%;
}
.testimonial blockquote {
  margin: 0 0 var(--space-4);
  padding: 0 0 0 var(--space-4);
  border-left: var(--border-thick) solid var(--color-accent);
  font-size: var(--text-base);
  font-style: italic;
  max-width: none;
}
.testimonial figcaption { font-size: var(--text-sm); }

/* ---------- Service cards -------------------------------------------------- */
.service-card {
  display: block;
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-ui);
  padding: var(--space-6) var(--space-5);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}
a.service-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.service-card__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-family: var(--heading-font);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.service-card__title { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.service-card p { margin: 0; }

/* ---------- Workshop items -------------------------------------------------- */
.workshop { padding: var(--space-5) 0; border-bottom: var(--border-hairline) solid var(--color-border); }
.workshop:last-child { border-bottom: none; }
.workshop__title { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.workshop p, .workshop ul { max-width: 68ch; }
.workshop p:last-child, .workshop ul:last-child { margin-bottom: 0; }

.workshop-category + .workshop-category { margin-top: var(--space-10); }
.workshop-category__title {
  scroll-margin-top: var(--space-8);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-thick) solid var(--color-accent);
}
.workshop-list { margin-top: var(--space-2); }

#custom-programs, #workshops, #coaching { scroll-margin-top: var(--space-8); }

/* ---------- Home page: press mention, about-teaser, logo strip, skills ---- */
.press { text-align: center; }
.press__line {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Pull-quote testimonials ----------------------------------------
   A stacked, editorial alternative to the boxed .testimonial card — a big
   decorative quote mark, large italic serif quote, hairline divider between
   entries. Used on Home; book.html still uses the original .testimonial
   card style, which is left untouched above. */
.quote-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  margin-top: var(--space-8);
}
.pull-quote {
  position: relative;
  margin: 0;
  padding-left: var(--space-8);
}
.pull-quote + .pull-quote {
  padding-top: var(--space-10);
  border-top: var(--border-hairline) solid var(--color-border);
}
.pull-quote__mark {
  position: absolute;
  left: -0.1rem;
  top: -0.7rem;
  font-family: var(--heading-font);
  font-size: 3.75rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.8;
}
.pull-quote blockquote {
  margin: 0 0 var(--space-5);
  padding: 0;
  border: none;
  max-width: 62ch;
  font-family: var(--heading-font);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: var(--leading-snug);
  color: var(--color-text);
}
.pull-quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.pull-quote__name {
  font-family: var(--body-font);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: var(--color-text);
}
.pull-quote__title {
  font-family: var(--body-font);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.about-teaser { background: var(--color-surface-alt); }
.about-teaser__grid {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: var(--space-10);
}
.about-teaser__photo { flex: 0 0 auto; }
.about-teaser__photo img {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  object-position: center 20%;
  box-shadow:
    0 0 0 6px var(--color-surface-alt),
    0 0 0 8px var(--color-accent),
    var(--shadow-lg);
}
.about-teaser__content { flex: 1; min-width: 0; text-align: left; }
.about-teaser__content .lead { max-width: 60ch; font-size: var(--text-base); }
/* About page's own headline is long ("Jeanne Hey Is An Experienced Provider
   of Leadership Development Programs") — scale it down like Contact/Book's
   long titles, without affecting Home's short h2 or Contact's short h1. */
.about-hero h1 { font-size: var(--text-3xl); }

/* ---------- Client logo marquee -------------------------------------------
   Two infinitely-looping rows scrolling right. Each row's card list is
   authored twice in the HTML (a visible set + an aria-hidden duplicate
   wrapped in .logo-marquee__dup) so the strip is exactly 200% width —
   animating translateX from -50% to 0% then makes the loop seamless, with
   no visible jump at the wrap point. display:contents on the dup wrapper
   lets its cards participate directly in the row's flex layout as if the
   wrapper weren't there, while still letting one aria-hidden cover the
   whole duplicate set for screen readers. */
.logo-marquee {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black var(--space-8), black calc(100% - var(--space-8)), transparent);
}
.logo-marquee__row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  width: max-content;
  animation: logo-marquee-right 80s linear infinite;
}
.logo-marquee__row--offset { animation-duration: 64s; }
.logo-marquee__dup { display: contents; }
.logo-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}
.logo-card img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.logo-card span {
  font-family: var(--heading-font);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  white-space: nowrap;
}
@keyframes logo-marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0%); }
}

/* ---------- About page: bio, CTA band -------------------------------------- */
.bio { margin-top: var(--space-6); }
.cta-band { background: var(--color-surface-alt); }
.cta-band__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.cta-band__inner .lead { margin: 0; }

/* ---------- Book page: two-column layout (info left, testimonials right) --
   .book-page__grid holds two columns: book info (switcher + details) on the
   left, that book's testimonials stacked on the right. Which book is
   "current" is tracked via matching data-book / data-book-panel /
   data-testimonial-panel attributes, toggled by the click handler in
   site.js — no framework, just show/hide via the `hidden` attribute. */
.book-page__grid {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: var(--space-10);
  align-items: start;
}
.book-cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-surface-alt));
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-ui);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  overflow: hidden;
}
.book-cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.book-details h1 { font-size: var(--text-3xl); margin-bottom: var(--space-2); }
.book-intro__subtitle {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}
.book-intro__author { font-size: var(--text-lg); font-style: italic; color: var(--color-text-muted); margin: 0 0 var(--space-5); }
.book-testimonials { margin-top: var(--space-6); }

/* Book switcher — two clickable thumbnail covers above the details. */
.book-switcher { display: flex; gap: var(--space-4); margin-bottom: var(--space-6); }
.book-switcher__item {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.book-switcher__item .book-cover--thumb {
  padding: var(--space-2);
  transition: box-shadow var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.book-switcher__item:not(.is-active) .book-cover--thumb { opacity: 0.5; }
.book-switcher__item.is-active .book-cover--thumb { box-shadow: 0 0 0 3px var(--color-accent), var(--shadow-card); }
.book-switcher__item:hover .book-cover--thumb { opacity: 0.85; }
.book-switcher__item.is-active:hover .book-cover--thumb { opacity: 1; }
.book-switcher__badge { position: absolute; top: var(--space-2); right: var(--space-2); }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  /* Below 900px the diagonal clip-path treatment goes away and the two
     panels stop being a side-by-side split. Instead of stacking Jeanne's
     photo above the content as its own block, it becomes a small circular
     badge overlaid bottom-left on top of the content block (which is now
     the only full-size element — team.jpg background + text). */
  .hero-split { height: auto; display: block; }
  .hero-split__photo {
    top: auto;
    bottom: var(--space-5);
    left: var(--space-5);
    width: 192px;
    height: 192px;
    z-index: 3;
    border-radius: var(--radius-pill);
    box-shadow: 0 0 0 4px var(--color-accent), var(--shadow-lg);
    clip-path: none;
  }
  .hero-split__content {
    position: relative;
    top: auto; bottom: auto; left: auto; right: auto;
    width: 100%;
    min-height: 560px;
    clip-path: none;
  }
  .hero-split::after { display: none; }
  .hero-split__text { max-width: none; padding: var(--space-8) var(--space-5) var(--space-10); }
  .hero-split__text h1 { font-size: var(--text-4xl); }
  .about-teaser__grid { flex-direction: column; text-align: left; }
  .about-teaser__photo img { width: 160px; height: 160px; }
}
@media (max-width: 768px) {
  .book-page__grid { grid-template-columns: 1fr; }
  .book-switcher { max-width: 320px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: var(--text-4xl); }
  h1 { font-size: var(--text-4xl); }
  .workshop-category__title { font-size: var(--text-xl); }
  .cta-band__inner { gap: var(--space-4); }
  .hero-split__photo { width: 152px; height: 152px; }
  .hero-split__content { min-height: 500px; }
  .hero-split__text h1 { font-size: var(--text-3xl); }
  .pull-quote { padding-left: var(--space-6); }
  .pull-quote__mark { font-size: 2.75rem; left: 0; top: -0.5rem; }
  .pull-quote blockquote { font-size: var(--text-base); }
  .book-details h1 { font-size: var(--text-2xl); }
  .book-intro__subtitle { font-size: var(--text-lg); }
}
