/* Homepage: the eclipse art carries the hero; the fractured plate shows around it. */
.editorial-site.page-home .container { overflow-x: clip; }
.editorial-site.page-home .document { padding-bottom: 32px; }

.editorial-site .eclipse-hero {
  --art-w: 116%;
  --eclipse-x: 68%;
  --flare-x: 86.4%;
  position: relative; isolation: isolate;
  display: grid; align-items: center;
  min-height: clamp(520px, 50vw, 620px);
  padding: 12px 0 56px;
}
.editorial-site .eclipse-hero-art {
  position: absolute; z-index: -1; top: 50%; left: calc(75% - var(--art-w) * .68);
  width: var(--art-w); aspect-ratio: 2400 / 1172; translate: 0 -52%;
  pointer-events: none;
  --fade: radial-gradient(ellipse 44% 80% at var(--eclipse-x) 50%, #000 50%, rgba(0,0,0,.5) 74%, transparent 100%),
          linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: var(--fade); -webkit-mask-composite: source-in;
          mask-image: var(--fade); mask-composite: intersect;
  animation: eclipse-hero-in 1.4s cubic-bezier(.2,.7,.2,1) both;
}
.editorial-site .eclipse-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A slow pulse over the flare the art already has at three o'clock. */
.editorial-site .eclipse-hero-art::after {
  content: ""; position: absolute; left: var(--flare-x); top: 50%; width: 14%; height: 1.2%;
  translate: -62% -50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255,230,160,.9), rgba(255,184,76,.35) 50%, transparent);
  animation: eclipse-flare 7s ease-in-out 1.4s infinite;
}
@keyframes eclipse-hero-in { from { opacity: 0; scale: 1.03; } }
@keyframes eclipse-flare { 0%, 100% { opacity: .35; scale: .75 1; } 50% { opacity: 1; scale: 1.2 1; } }

.editorial-site .eclipse-hero-copy { max-width: 29rem; display: grid; gap: 22px; text-shadow: 0 1px 18px #000; }
.editorial-site.page-home .eclipse-hero h2 {
  margin: 0; font: 600 clamp(3rem, 6vw, 5.2rem)/.95 'Cinzel', 'Trajan Pro', Georgia, serif;
  letter-spacing: .04em; color: #f1e7cf; text-transform: none; text-align: left;
}
.editorial-site.page-home .eclipse-hero h2 span {
  display: block; margin-top: .42em; font-size: .42em; font-weight: 400; letter-spacing: .34em; color: var(--gold);
}
.editorial-site .eclipse-hero-hook {
  margin: 0; padding-left: 16px; border-left: 1px solid var(--dim-gold);
  font: italic 400 22px/1.45 var(--font-serif); color: #ddd5c2; max-width: 22ch;
}
.editorial-site .eclipse-hero-line { margin: 0; font: 400 20px/1.5 var(--font-serif); color: var(--reader-muted); max-width: 30ch; }
.editorial-site .eclipse-hero-actions { text-shadow: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }

/* The free chapters, as a path through the opening. */
.editorial-site .reading-path { border-top: 1px solid var(--editorial-line); border-bottom: 1px solid var(--editorial-line); margin: 0 0 8px; }
.editorial-site .reading-path-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding: 22px 0 16px; }
.editorial-site.page-home .reading-path h2 { margin: 0; font: 11px/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.editorial-site .reading-path-head p { margin: 0; font: 16px var(--font-serif); color: var(--reader-muted); }
.editorial-site .reading-path ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.editorial-site .reading-path li + li { border-left: 1px solid var(--editorial-line); }
.editorial-site .reading-path a { display: grid; align-content: start; gap: 6px; height: 100%; padding: 14px 16px 18px; border: 0; text-decoration: none; transition: background .2s ease; }
.editorial-site .reading-path li:first-child a { padding-left: 0; }
.editorial-site .reading-path a:hover { background: rgba(199,168,106,.06); }
.editorial-site .reading-path-meta { font: 10.5px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--reader-muted); }
.editorial-site .reading-path-title { font: 400 19px/1.3 var(--font-serif); color: var(--reader-ink); }

/* Author strip. */
.editorial-site .home-author { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 40px 0 12px; }
.editorial-site .home-author img {
  width: 112px; height: 136px; object-fit: cover; padding: 4px; border: 1px solid var(--dim-gold); background: var(--panel-bg);
  filter: sepia(.18) saturate(.82) contrast(1.08) brightness(.92);
}
.editorial-site.page-home .home-author h2 { margin: 0 0 6px; font: 400 28px/1.2 var(--font-serif); color: var(--reader-ink); text-align: left; text-transform: none; letter-spacing: 0; }
.editorial-site .home-author p { margin: 0; max-width: 46ch; font: 18px/1.5 var(--font-serif); color: var(--reader-muted); }
.editorial-site .home-author nav { display: grid; gap: 10px; font: 15px var(--font-display); }
.editorial-site .home-author nav a { border: 0; text-decoration: none; white-space: nowrap; }

@media (max-width: 900px) {
  .editorial-site .eclipse-hero { --flare-x: 82.5%; min-height: 0; display: block; padding-top: 0; }
  .editorial-site .eclipse-hero-art {
    position: relative; left: auto; top: auto; translate: none; width: auto; aspect-ratio: 1;
    margin: -34px -24px -6%;
    -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, #000 70%, transparent 100%);
            mask-image: radial-gradient(circle closest-side at 50% 50%, #000 70%, transparent 100%);
  }
  .editorial-site .eclipse-hero-copy { position: relative; max-width: none; }
  .editorial-site .reading-path ol { grid-template-columns: 1fr; }
  .editorial-site .reading-path li + li { border-left: 0; border-top: 1px solid var(--editorial-line); }
  .editorial-site .reading-path a, .editorial-site .reading-path li:first-child a { grid-template-columns: 1fr auto; align-items: baseline; padding: 14px 0; }
  .editorial-site .reading-path-meta { order: 2; }
  .editorial-site .home-author { grid-template-columns: 84px minmax(0, 1fr); gap: 20px; }
  .editorial-site .home-author img { width: 84px; height: 102px; }
  .editorial-site .home-author nav { grid-column: 1 / -1; display: flex; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-site .eclipse-hero-art, .editorial-site .eclipse-hero-art::after { animation: none; }
  .editorial-site .eclipse-hero-art::after { opacity: 0; }
}
