/* Personal editorial hero — shares the site's palette, type and container. */
.hero-editorial {
  padding: calc(var(--header-h, 80px) + clamp(2rem, 4vw, 4rem)) 0 0;
  background: linear-gradient(110deg, var(--color-bg-cool), var(--color-bg) 55%);
  position: relative;
  z-index: 2;
}

.hero-editorial__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-editorial__portrait { margin: 0; position: relative; isolation: isolate; }

.hero-editorial__portrait::before {
  content: '';
  position: absolute;
  inset: 20px 24px 48px -16px;
  background: var(--color-primary-lighter);
  border-left: 3px solid var(--color-primary);
  z-index: -1;
}

.hero-editorial__photo {
  aspect-ratio: 5 / 6;
  overflow: hidden;
}

/* Crop only the empty space at the top; retain the original image and colours. */
.hero-editorial__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-editorial__portrait figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding-top: 1.25rem;
  color: var(--color-text-secondary);
  font-size: 0.75rem;
}

.hero-editorial__portrait figcaption span {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-text);
}

.hero-editorial__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-editorial__eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  flex-shrink: 0;
  background: var(--color-primary-dark);
  transform-origin: left;
  animation: hero-line-in 0.9s ease-out both;
}

.hero-editorial h1 {
  margin-bottom: 1.75rem;
  font-size: clamp(3.5rem, 6.2vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.hero-editorial h1 span {
  display: block;
  text-wrap: balance;
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-light);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.09em;
  text-decoration-skip-ink: auto;
}

.hero-editorial__content > * { animation: hero-rise-in 0.8s var(--ease-out) both; }
.hero-editorial__content > :nth-child(2) { animation-delay: 0.08s; }
.hero-editorial__content > :nth-child(3) { animation-delay: 0.16s; }
.hero-editorial__content > :nth-child(4) { animation-delay: 0.24s; }

.hero-editorial__intro {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: clamp(1.125rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

.hero-editorial__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.hero-editorial__book {
  padding: 1.15rem 1.75rem;
  font-size: 1rem;
  background: var(--color-primary);
  color: var(--color-text);
  box-shadow: 0 8px 24px rgba(107, 154, 47, 0.14);
}

.hero-editorial__book::before { content: none; }
.hero-editorial__book:hover {
  background: var(--color-primary-light);
  color: var(--color-text);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(107, 154, 47, 0.22);
}

.hero-editorial__book svg,
.hero-editorial__link svg { transition: transform 0.25s var(--ease-out); }
.hero-editorial__book:hover svg,
.hero-editorial__link:hover svg { transform: translateX(4px); }

.hero-editorial__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 0.35em;
}

.hero-editorial__link:hover { color: var(--color-primary-dark); }
.hero-editorial__link svg { width: 22px; height: 22px; flex-shrink: 0; }
.hero-editorial a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 5px;
}

.hero-editorial__availability {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-accent);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.hero-editorial__availability li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
}

.hero-editorial__availability li + li { border-left: 1px solid var(--color-border); }
.hero-editorial__availability svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  color: var(--color-primary-dark);
}

@media (max-width: 900px) {
  .hero-editorial__grid { gap: 2rem; }
  .hero-editorial h1 { font-size: clamp(3rem, 6.2vw, 3.75rem); }
  .hero-editorial__eyebrow { font-size: 0.7rem; letter-spacing: 0.08em; }
  .hero-editorial__eyebrow::before { width: 1rem; }
  .hero-editorial__actions { gap: 0.75rem; }
}

@media (max-width: 640px) {
  .hero-editorial { padding-top: calc(var(--header-h, 72px) + 2rem); }
  .hero-editorial__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-editorial__content { grid-row: 1; }
  .hero-editorial h1 { font-size: clamp(2.8rem, 12vw, 4.5rem); }
  .hero-editorial__eyebrow { margin-bottom: 1rem; }
  .hero-editorial__intro { margin-bottom: 1.5rem; }
  .hero-editorial__actions { align-items: flex-start; flex-direction: column; }
  .hero-editorial__book { width: 100%; }
  .hero-editorial__portrait { width: 100%; max-width: 380px; justify-self: center; }
  .hero-editorial__availability { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero-editorial__availability li { padding: 0; }
  .hero-editorial__availability li + li { border-left: 0; }
}

@keyframes hero-rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-line-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-editorial__content > *,
  .hero-editorial__eyebrow::before { animation: none; }
  .hero-editorial a,
  .hero-editorial a svg { transition: none; }
  .hero-editorial a:hover,
  .hero-editorial a:hover svg { transform: none; }
}
