/* New Stream Press — preview stylesheet. Colours taken from Andy's cover (green #2B5340, gold #C9A961, cream #F3EBDD). */
@font-face{font-family:"EB Garamond";src:url(../fonts/EBGaramond-var.woff2) format("woff2");font-weight:400 800;font-style:normal;font-display:swap}
@font-face{font-family:"EB Garamond";src:url(../fonts/EBGaramond-Italic-var.woff2) format("woff2");font-weight:400 800;font-style:italic;font-display:swap}
@font-face{font-family:"Cormorant SC";src:url(../fonts/CormorantSC-Medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}

:root{
  --green:#2B5340; --green-deep:#1F3D2F; --gold:#C9A961; --gold-ink:#8A6E2F;
  --cream:#F3EBDD; --paper:#FBF8F2; --ink:#2A2622; --muted:#6B6259; --rule:#E2D8C6;
  --serif:"EB Garamond",Garamond,"Times New Roman",serif; --caps:"Cormorant SC","EB Garamond",serif;
  --measure:34rem;
}
*{box-sizing:border-box}
html{font-size:112.5%;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--serif);line-height:1.6;font-feature-settings:"kern","liga","onum"}
img{max-width:100%;height:auto;display:block}
a{color:var(--green);text-decoration-thickness:1px;text-underline-offset:.18em}
a:hover{color:var(--green-deep)}
:focus-visible{outline:2px solid var(--gold-ink);outline-offset:3px}

.preview-bar{background:var(--green-deep);color:var(--cream);font-size:.78rem;text-align:center;padding:.35rem 1rem;letter-spacing:.04em}
.wrap{max-width:68rem;margin:0 auto;padding:0 1.5rem}

/* header */
.site-head{border-bottom:1px solid var(--rule)}
.site-head .wrap{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding-top:1.4rem;padding-bottom:1.1rem}
.wordmark{font-family:var(--caps);font-weight:500;font-size:1.35rem;letter-spacing:.14em;color:var(--ink);text-decoration:none;text-transform:lowercase}
.wordmark:hover{color:var(--green)}
.nav{display:flex;gap:1.6rem;font-family:var(--caps);letter-spacing:.1em;font-size:1.02rem;text-transform:lowercase}
.nav a{color:var(--muted);text-decoration:none}
.nav a:hover,.nav a[aria-current=page]{color:var(--green)}

/* hero */
.hero{text-align:center;padding:5.5rem 0 4.5rem}
.hero h1{font-family:var(--caps);font-weight:500;font-size:clamp(2.3rem,6vw,3.9rem);letter-spacing:.1em;line-height:1.1;margin:0;text-transform:lowercase;color:var(--green)}
.ornament{display:flex;align-items:center;justify-content:center;gap:.7rem;margin:1.6rem auto;color:var(--gold)}
.ornament::before,.ornament::after{content:"";width:4.5rem;height:1px;background:var(--gold)}
.ornament span{width:.5rem;height:.5rem;background:var(--gold);transform:rotate(45deg)}
.hero p,.section-head p,.section-head h2{text-wrap:balance}
.hero p{font-size:1.2rem;font-style:italic;color:var(--muted);max-width:var(--measure);margin:0 auto}

/* sections */
section{padding:3.5rem 0}
.section-head{text-align:center;margin-bottom:2.8rem}
.eyebrow{font-family:var(--caps);letter-spacing:.16em;font-size:.95rem;color:var(--gold-ink);text-transform:lowercase;margin:0 0 .4rem}
.section-head h2{font-weight:400;font-size:clamp(1.7rem,3.5vw,2.3rem);line-height:1.2;margin:0}
.section-head h2 a{color:inherit;text-decoration:none}
.section-head p{color:var(--muted);max-width:var(--measure);margin:.9rem auto 0}
.band{background:var(--cream)}

/* book grid */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,15rem));gap:3rem 2.5rem;justify-content:center;list-style:none;margin:0;padding:0}
.card a{text-decoration:none;color:inherit;display:block}
.card img{width:100%;aspect-ratio:5/8;object-fit:cover;box-shadow:0 1px 2px rgba(0,0,0,.12),0 10px 24px -8px rgba(31,61,47,.35);transition:transform .2s ease,box-shadow .2s ease}
.card a:hover img{transform:translateY(-3px);box-shadow:0 1px 2px rgba(0,0,0,.12),0 16px 30px -10px rgba(31,61,47,.45)}
.card h3{font-weight:500;font-size:1.15rem;line-height:1.3;margin:1.1rem 0 .2rem}
.card .by{margin:0;color:var(--muted)}
.card .ser{margin:.35rem 0 0;font-family:var(--caps);letter-spacing:.08em;font-size:.88rem;color:var(--gold-ink);text-transform:lowercase}

/* book page */
.crumbs{font-size:.9rem;color:var(--muted);padding-top:1.8rem}
.crumbs a{color:var(--muted)}
.book{display:grid;grid-template-columns:minmax(0,22rem) minmax(0,1fr);gap:4rem;align-items:start;padding:2.2rem 0 4rem}
.book-cover img{width:100%;box-shadow:0 1px 3px rgba(0,0,0,.15),0 18px 40px -14px rgba(31,61,47,.5)}
.book-body .ser{font-family:var(--caps);letter-spacing:.12em;color:var(--gold-ink);text-transform:lowercase;margin:0 0 .5rem;font-size:1rem}
.book-body .ser a{color:inherit;text-decoration:none}
.book-body h1{font-weight:400;font-size:clamp(2rem,4.2vw,2.9rem);line-height:1.12;margin:0}
.book-body .author{font-family:var(--caps);letter-spacing:.1em;font-size:1.25rem;color:var(--green);margin:.6rem 0 0;text-transform:lowercase}
.book-body .desc{max-width:var(--measure);margin-top:2rem}
.book-body .desc p{margin:0 0 1rem}
.book-body .desc p:first-child::first-letter{font-size:1.05em}
.buy{display:flex;flex-direction:column;gap:.75rem;max-width:22rem;margin:2.2rem 0 .6rem}
.btn{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1.15rem;border:1px solid var(--green);background:var(--green);color:var(--cream);text-decoration:none;font-size:1.05rem;letter-spacing:.01em;border-radius:2px}
a.btn:hover{background:var(--green-deep);color:#fff}
.btn .arrow{font-size:.95rem;opacity:.85}
.btn.is-disabled{background:transparent;color:var(--muted);border-color:var(--rule);cursor:not-allowed}
.btn.is-disabled .soon{font-family:var(--caps);letter-spacing:.1em;font-size:.85rem;color:var(--gold-ink);text-transform:lowercase}
.avail{font-size:.9rem;color:var(--muted);margin:0}

.details{border-top:1px solid var(--rule);padding:3rem 0 4.5rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3rem}
.details h2{font-family:var(--caps);font-weight:500;letter-spacing:.12em;font-size:1.15rem;color:var(--green);margin:0 0 1rem;text-transform:lowercase}
.details ul{margin:0 0 1rem;padding-left:1.1rem}
.details li{margin:.3rem 0}
.details li::marker{color:var(--gold)}
.details ul.formats{margin:0;padding:0;list-style:none}
.formats li{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px dotted var(--rule);padding:.55rem 0}
.formats li span:last-child{color:var(--muted);text-align:right}
.note{color:var(--muted);font-size:.95rem}

/* prose pages */
.prose{max-width:var(--measure);margin:0 auto;padding-top:4rem;padding-bottom:5rem}
.prose h1{font-weight:400;font-size:clamp(2rem,4vw,2.6rem);margin:0 0 .5rem;text-align:center}

/* placeholders: deliberately obvious */
.ph{background:#FFF6D6;outline:1px dashed #C9A961;outline-offset:2px;font-style:normal;color:#7A5B12}

.site-foot{border-top:1px solid var(--rule);padding:2.2rem 0 3rem;color:var(--muted);font-size:.9rem}
.site-foot .wrap{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.site-foot .wordmark{font-size:1rem}

@media (max-width:760px){
  html{font-size:106.25%}
  .wrap{padding:0 1.25rem}
  .site-head .wrap{flex-direction:column;align-items:center;gap:.6rem}
  .hero{padding:3.5rem 0 3rem}
  section{padding:2.6rem 0}
  .grid{grid-template-columns:minmax(0,15rem)}
  .book{grid-template-columns:1fr;gap:2.2rem;padding-top:1.4rem}
  .book-cover{max-width:15rem;margin:0 auto}
  .book-body{text-align:left}
  .buy{max-width:none}
  .details{grid-template-columns:1fr;gap:2rem}
  .prose{padding-top:2.6rem;padding-bottom:3.5rem}
  #series .section-head p.lede{text-align:left;text-wrap:pretty}
}
