/* Nomad Frog Night Edition — direction 1b "Moonlit wash".
   Load AFTER nomad-frog.css on the homepage. Paths assume /assets/; adjust if needed.
   The header uses the silver SIKA wordmark; the publisher mark remains in the footer. */

:root{--nf-gold:#C9A35F;--nf-gold-light:#E2C789;
  --nf-stars:radial-gradient(1px 1px at 8% 12%,rgba(242,239,232,.6) 50%,transparent 51%),radial-gradient(1px 1px at 27% 64%,rgba(242,239,232,.4) 50%,transparent 51%),radial-gradient(1.6px 1.6px at 46% 28%,rgba(226,199,137,.7) 50%,transparent 51%),radial-gradient(1px 1px at 63% 82%,rgba(242,239,232,.35) 50%,transparent 51%),radial-gradient(1px 1px at 78% 40%,rgba(242,239,232,.55) 50%,transparent 51%),radial-gradient(1px 1px at 91% 9%,rgba(242,239,232,.3) 50%,transparent 51%),radial-gradient(1px 1px at 15% 88%,rgba(242,239,232,.3) 50%,transparent 51%),radial-gradient(1.4px 1.4px at 85% 70%,rgba(242,239,232,.45) 50%,transparent 51%)}

/* Backdrop: landscape + scrim behind header and hero, starfield across the page */
.author-home{position:relative;isolation:isolate;overflow-x:clip}
.author-home::before{content:'';position:absolute;z-index:-2;inset:0 0 auto 0;height:min(1100px,86vw);
  background:url(assets/nomad-frog/moonlit-background.webp) center top/100% auto no-repeat;opacity:.3;pointer-events:none;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 40%,transparent 85%);mask-image:linear-gradient(to bottom,#000 0%,#000 40%,transparent 85%)}
.author-home::after{content:'';position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(9,12,13,.2) 0%,rgba(9,12,13,.3) 36%,rgba(9,12,13,.8) 54%,rgba(9,12,13,.86) 100%) 0 0/100% min(1100px,86vw) no-repeat,var(--nf-stars);
  background-size:100% min(1100px,86vw),360px 320px;opacity:1}
.author-home,.author-home .hero,.author-home>header{background:transparent}
.author-home{background-color:var(--nf-night)}

/* Header: mono mark, light on dark */
.author-home>header{grid-template-columns:104px minmax(0,1fr) auto;border-bottom:0}
.author-home header .publisher-home img{width:104px;aspect-ratio:394/110;filter:none;mix-blend-mode:normal}

/* Hero: gold release label and rule, moonlit glow on cover */
.author-home .book-display{display:grid;grid-template-columns:minmax(0,400px) minmax(0,600px);max-width:1120px;width:100%}
.author-home .book-intro{max-width:640px;margin-left:0}
.cover-placeholder{width:100%;aspect-ratio:2/3;background:var(--nf-night);color:var(--nf-paper);border:1px solid rgba(242,239,232,.35);display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:64px 24px 36px;text-align:center;box-shadow:0 20px 48px rgba(0,0,0,.45);font-family:Inter,system-ui,sans-serif;font-weight:400}
.cover-placeholder p{margin:0;letter-spacing:0;font-weight:400}
.cover-placeholder-title>p:first-child{font-size:48px;line-height:1.2;margin-bottom:20px}
.cover-placeholder-title>p:nth-child(2){font-size:18px;line-height:1.6}
.cover-placeholder-title>p:last-child{font-size:14px;line-height:1.6;margin-top:8px}
.cover-placeholder-author{font-size:20px;line-height:1.5}
@media(max-width:850px){.author-home .book-display{grid-template-columns:minmax(0,1fr)}.author-home .book-cover{width:100%;max-width:360px;justify-self:center}}
@media(max-width:480px){.author-home .book-cover{max-width:300px}.cover-placeholder{padding:48px 20px 28px}.cover-placeholder-title>p:first-child{font-size:40px}}
@media(max-width:850px){.author-home .book-intro{margin-left:0}}
.author-home .hero-title{border-color:rgba(201,163,95,.35)}
.author-home .hero-title span:first-of-type{color:var(--nf-gold-light)}
.author-home .book-display .cover-link{position:relative;border-radius:3px;box-shadow:0 0 0 1px rgba(201,163,95,.8),0 0 0 3px rgba(201,163,95,.1),0 24px 60px rgba(0,0,0,.7),0 0 44px rgba(201,163,95,.14)}
.author-home .book-display .cover-link::after{content:'';position:absolute;inset:0;pointer-events:none;border-radius:inherit;box-shadow:inset 1px 1px 0 rgba(226,199,137,.8),inset -1px -1px 0 rgba(201,163,95,.4)}
.author-home .cover{filter:brightness(1.04) contrast(1.06);box-shadow:none}
.author-home .editorial-note{color:#B9BEC4;text-align:center}

/* Gold labels, green stays for actions */
.eyebrow,.author-home .book-intro>.eyebrow,.author-home .section-heading .eyebrow,.author-home .about .eyebrow,.section .eyebrow{color:var(--nf-gold)}
.author-home .post summary::after{color:var(--nf-gold)}

/* Star divider before the signup */
.author-home .signup::before{content:'✦';display:flex;align-items:center;gap:16px;margin:0 0 28px;color:var(--nf-gold-light);font-size:14px;
  background:linear-gradient(90deg,transparent,rgba(201,163,95,.6) 45%,transparent 45%,transparent 55%,rgba(201,163,95,.6) 55%,transparent) center/100% 1px no-repeat;justify-content:center}

/* Journal: fades up from the night ground, starfield shows through */
.author-home .journal{background:linear-gradient(rgba(17,21,26,0),var(--nf-surface) 200px)}
.author-home .post time,.author-home .post-date{font-size:14px;color:var(--nf-sky)}

/* Timeline as a golden thread */
.release-stage.done::before{border-left-color:var(--nf-gold)}
.release-stage.done::after{background:var(--nf-green);border-color:var(--nf-green);box-shadow:0 0 10px rgba(141,176,123,.5)}
.release-stage.now::after{background:var(--nf-gold);border-color:var(--nf-gold);box-shadow:0 0 0 3px var(--nf-surface),0 0 0 5px var(--nf-gold)}
.release-stage .state{border-color:rgba(141,176,123,.6);color:var(--nf-green)}
.release-stage .when{font-size:13px;color:var(--nf-sky)}
.home-timeline{border-color:var(--line)}

/* The landscape now appears once, at the top */
.journey-art{display:none}

/* Footer: mono mark without the white box */
.author-home>footer{background:transparent;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:24px}
/* Blend the raster logo backing into the Night palette without recoloring its light details. */
.author-home>footer .publisher-credit{align-self:center;flex-shrink:0;width:120px;aspect-ratio:1375/1144;filter:none;mix-blend-mode:lighten;opacity:1}
.author-home>footer .footer-legal{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;gap:0;border:0;padding:0;text-align:left}
.author-home>footer .copyright{max-width:none}

@media(max-width:1150px){.author-home>header{grid-template-columns:96px minmax(0,1fr)}.author-home header .publisher-home img{width:96px}}
@media(max-width:850px){.author-home::before{background-image:url(assets/nomad-frog/moonlit-background-mobile.webp);background-size:auto 100%;background-position:30% top;height:900px}
  .author-home::after{background-size:100% 900px,360px 320px;background-image:linear-gradient(to bottom,rgba(9,12,13,.55),rgba(9,12,13,.85) 45%,rgba(9,12,13,.95)),var(--nf-stars)}}
@media(max-width:480px){.author-home>header{grid-template-columns:80px minmax(0,1fr)}.author-home header .publisher-home img{width:80px}.author-home>footer .publisher-credit{width:96px}
  .author-home>footer{gap:16px}
  .author-home::before{height:720px}
  .author-home::after{background-size:100% 720px,360px 320px}}

/* Center the book identity alongside the author on wide screens. */
.author-home>header{grid-template-columns:minmax(0,1fr) 240px minmax(0,1fr);align-items:center}
.author-home header #book-title{margin:0;line-height:1;justify-self:center}
.author-home #book-title img{display:block;width:240px;max-width:100%;height:auto;aspect-ratio:394/110}
.author-home header nav{justify-self:end;justify-content:flex-end;flex-wrap:wrap;gap:16px;width:auto}
.author-home .hero-title{justify-content:space-between}
@media(max-width:1150px){.author-home>header{grid-template-columns:minmax(0,1fr) 240px minmax(0,1fr)}.author-home header .wordmark{grid-column:1}.author-home header nav{grid-column:1/-1;width:100%;justify-content:space-between}}
@media(max-width:760px){.author-home>header{grid-template-columns:minmax(0,1fr);gap:24px}.author-home header #book-title{grid-column:1}.author-home #book-title img{width:220px}.author-home header nav{grid-column:1}}
