/* The Higher Work — Elliott T. Ridge · shared design system
   Faithful to the original site: Fraunces + Inter, warm paper, aubergine + coral,
   masthead, brush-stroke underline, journal-entry books. Extended for multi-page
   (book pages, FAQ, price). Used by index.html + books/*.html */

:root{
  --paper:#F4F0E6; --paper-2:#ECE6D8;
  --ink:#1B1A17; --soft:#56524A; --soft-2:#85806f;
  --aubergine:#3A2742; --aubergine-lt:#5b4368;
  --coral:#E2895C; --coral-deep:#cf7344;
  --sage:#2C3A2E;
  --maxw:1080px; --measure:680px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --brush:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 22'%3E%3Cpath d='M5 13 C 55 5 110 18 165 11 S 270 8 295 13' stroke='%23E2895C' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
*{box-sizing:border-box; margin:0; padding:0}
html{scroll-behavior:smooth}
body{background:var(--paper); color:var(--ink); font-family:'Inter',system-ui,sans-serif; line-height:1.7; -webkit-font-smoothing:antialiased; overflow-x:hidden}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 30px}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
h1,h2,h3{font-family:'Fraunces',Georgia,serif; font-weight:500; line-height:1.1; letter-spacing:-.01em}
.eyebrow{font-family:'Inter'; font-weight:600; font-size:.72rem; letter-spacing:.24em; text-transform:uppercase; color:var(--soft)}
.brush{position:relative; white-space:nowrap}
.brush::after{content:""; position:absolute; left:-2%; right:-2%; bottom:-.16em; height:.4em; background:var(--brush) center/100% 100% no-repeat}
.hr{height:1px; background:rgba(27,26,23,.22)}

/* ---------- MASTHEAD (in-flow, magazine style) ---------- */
.masthead{padding:30px 30px 22px; text-align:center}
.masthead .hr{max-width:760px; margin:0 auto}
.mast-title{display:inline-block; font-family:'Fraunces'; font-weight:600; font-size:clamp(1.9rem,4vw,2.7rem); letter-spacing:.005em; margin:20px 0 8px}
.mast-sub{font-family:'Fraunces'; font-style:italic; font-weight:400; color:var(--soft); font-size:1rem; margin-bottom:20px}
.mast-nav{display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap; margin-bottom:22px}
.mast-nav a{font-family:'Inter'; font-weight:600; font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--soft); transition:color .2s}
.mast-nav a:hover{color:var(--coral-deep)}
.mast-nav .dot{color:var(--coral); font-size:.7rem}

/* ---------- CONDENSED STICKY (appears on scroll) ---------- */
.ministicky{position:fixed; top:0; left:0; right:0; z-index:30; background:rgba(244,240,230,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(27,26,23,.1); display:flex; align-items:center; justify-content:space-between; padding:12px 30px;
  transform:translateY(-100%); transition:transform .35s var(--ease)}
.ministicky.show{transform:none}
.ms-title{font-family:'Fraunces'; font-weight:600; font-size:1.05rem}
.ms-nav{display:flex; gap:22px}
.ms-nav a{font-family:'Inter'; font-weight:500; font-size:.82rem; color:var(--soft); transition:color .2s}
.ms-nav a:hover{color:var(--ink)}

/* ---------- HERO ---------- */
.hero{padding:78px 0 84px; text-align:center}
.hero .wrap{max-width:880px}
.hero .eyebrow{opacity:0; animation:fade .8s var(--ease) .1s forwards}
.hero h1{font-size:clamp(2.4rem,5.6vw,4.3rem); margin:22px auto 0; max-width:18ch; opacity:0; animation:rise .9s var(--ease) .25s forwards}
.hero-sub{margin:30px auto 0; max-width:52ch; font-size:1.18rem; color:var(--soft); opacity:0; animation:rise .9s var(--ease) .45s forwards}
.hero-cta{display:flex; gap:15px; margin-top:38px; flex-wrap:wrap; justify-content:center; opacity:0; animation:rise .9s var(--ease) .6s forwards}
.btn{font-family:'Inter'; font-weight:600; font-size:.96rem; padding:14px 28px; border-radius:40px; cursor:pointer; border:1.5px solid transparent; transition:transform .2s, background .2s, border-color .2s, color .2s; display:inline-block}
.btn-primary{background:var(--coral); color:var(--ink)}
.btn-primary:hover{background:var(--coral-deep); transform:translateY(-2px)}
.btn-ghost{background:transparent; color:var(--ink); border-color:rgba(27,26,23,.28)}
.btn-ghost:hover{border-color:var(--aubergine); color:var(--aubergine)}
.hero-orn{max-width:80px; margin:54px auto 0; height:1px; background:var(--coral); opacity:.6}

/* ---------- SECTIONS ---------- */
section{position:relative}
.band{padding:80px 0}
.reveal{opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease)}
.reveal.in{opacity:1; transform:none}

/* The Idea — centered editorial statement */
.idea{background:var(--paper-2); text-align:center}
.idea .wrap{max-width:760px}
.idea .eyebrow{display:block; margin-bottom:18px}
.idea h2{font-size:clamp(1.9rem,4.4vw,2.9rem); margin-bottom:24px}
.idea p{font-size:1.26rem; line-height:1.62; color:var(--ink)}
.idea p em{font-style:italic; color:var(--aubergine)}

/* ---------- BOOKS = JOURNAL ENTRIES ---------- */
.books .books-intro{text-align:center; margin-bottom:18px}
.books .books-intro .eyebrow{display:block; margin-bottom:14px}
.books .books-intro h2{font-size:clamp(1.8rem,4vw,2.7rem)}
.entry{display:grid; grid-template-columns:200px 1fr; gap:54px; padding:58px 0; border-top:1px solid rgba(27,26,23,.14)}
.entry-aside{position:relative}
.entry-num{font-family:'Fraunces'; font-weight:500; font-size:3rem; color:var(--aubergine); line-height:1; margin-bottom:18px}
.entry-cover{position:relative; aspect-ratio:1600/2560; border-radius:4px; overflow:hidden; box-shadow:0 20px 44px -22px rgba(43,32,18,.55)}
.cover-fallback{position:absolute; inset:0; z-index:1; display:flex; flex-direction:column; padding:18px 16px; background:var(--paper); border:1px solid rgba(27,26,23,.12)}
.cover-fallback .cf-band{position:absolute; top:0; left:0; right:0; height:6px; background:var(--bk-accent)}
.cf-top{font-family:'Inter'; font-weight:600; font-size:.5rem; letter-spacing:.2em; text-transform:uppercase; color:var(--soft-2); margin-top:6px}
.cf-title{font-family:'Fraunces'; font-weight:600; font-size:1.3rem; line-height:1.05; color:var(--ink); margin-top:auto}
.cf-sub{font-family:'Inter'; font-weight:400; font-size:.6rem; color:var(--soft); margin-top:8px; line-height:1.35}
.entry-cover img{position:absolute; inset:0; z-index:2; width:100%; height:100%; object-fit:cover}
.entry-kicker{font-family:'Inter'; font-weight:600; font-size:.7rem; letter-spacing:.2em; text-transform:uppercase; color:var(--soft-2); margin-bottom:10px}
.entry-body h3{font-size:clamp(1.7rem,3.6vw,2.5rem); margin-bottom:8px}
.entry-sub{font-family:'Inter'; color:var(--soft); font-size:.95rem; margin-bottom:22px; font-weight:500}
.entry-pull{font-family:'Fraunces'; font-style:italic; font-weight:500; font-size:1.5rem; color:var(--coral-deep); line-height:1.3; padding-left:18px; border-left:2px solid var(--coral); margin-bottom:24px}
.entry-pitch{color:var(--ink); margin-bottom:20px; max-width:var(--measure)}
.entry-pitch .dropcap{float:left; font-family:'Fraunces'; font-weight:600; font-size:3.3rem; line-height:.74; padding:6px 10px 0 0; color:var(--aubergine)}
.entry-who{font-family:'Fraunces'; font-style:italic; font-size:1.02rem; color:var(--soft); margin-bottom:22px; max-width:var(--measure)}
.entry-lines{list-style:none; margin-bottom:26px; display:grid; gap:12px}
.entry-lines li{position:relative; padding-left:26px; font-size:.96rem; color:var(--ink); max-width:var(--measure)}
.entry-lines li::before{content:""; position:absolute; left:0; top:.55em; width:14px; height:.45em; background:var(--brush) center/100% 100% no-repeat}
.entry-cta{display:inline-flex; align-items:center; gap:9px; font-family:'Inter'; font-weight:600; font-size:.92rem; background:var(--aubergine); color:var(--paper); padding:13px 24px; border-radius:40px; transition:transform .2s, background .2s}
.entry-cta:hover{background:var(--aubergine-lt); transform:translateY(-2px)}
.entry-cta .arr{transition:transform .2s}
.entry-cta:hover .arr{transform:translateX(3px)}
.entry-links{display:flex; gap:20px; align-items:center; flex-wrap:wrap; margin-top:4px}
.entry-more{font-family:'Inter'; font-weight:600; font-size:.9rem; color:var(--coral-deep)}
.entry-more:hover{color:var(--aubergine)}

/* price (Inter, on paper) */
.price{font-family:'Inter'; font-weight:600; font-size:.95rem; display:inline-flex; gap:9px; align-items:baseline}
.price s{color:var(--soft-2); font-weight:500}
.price b{color:var(--coral-deep); font-size:1.15rem}
.price .lp{color:var(--soft); font-weight:600; font-size:.68rem; letter-spacing:.14em; text-transform:uppercase}
.entry-price{margin-bottom:20px}

/* ---------- BOOK PAGE ---------- */
.crumb{font-family:'Inter'; font-weight:600; font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--soft)}
.crumb:hover{color:var(--coral-deep)}
.buyrow{display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top:6px}
.freehint{font-family:'Inter'; font-size:.8rem; color:var(--soft); margin-top:12px}
.sec-lead{text-align:center; margin-bottom:20px}
.sec-lead .eyebrow{display:block; margin-bottom:14px}
.sec-lead h2{font-size:clamp(1.7rem,3.6vw,2.5rem)}

/* what to expect steps */
.steps{margin-top:10px}
.steprow{display:grid; grid-template-columns:60px 1fr; gap:20px; padding:24px 0; border-top:1px solid rgba(27,26,23,.14)}
.steprow .n{font-family:'Fraunces'; font-weight:500; font-size:1.7rem; color:var(--aubergine); line-height:1}
.steprow h4{font-family:'Fraunces'; font-weight:600; font-size:1.22rem; margin-bottom:5px}
.steprow p{color:var(--soft); margin:0; max-width:60ch}

/* price band */
.priceband{display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; padding:34px 0; border-top:1px solid rgba(27,26,23,.16); border-bottom:1px solid rgba(27,26,23,.16)}
.priceband h3{font-size:1.5rem; margin-bottom:4px}
.priceband p{color:var(--soft); max-width:46ch}

/* FAQ */
.faq{margin-top:8px; border-top:1px solid rgba(27,26,23,.14)}
.faq details{border-bottom:1px solid rgba(27,26,23,.14)}
.faq summary{font-family:'Fraunces'; font-weight:600; font-size:1.22rem; padding:20px 0; cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:16px; align-items:center; color:var(--ink)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; font-family:'Inter'; color:var(--coral-deep); font-weight:600}
.faq details[open] summary::after{content:"\2013"}
.faq details p{margin:0 0 20px; color:var(--soft); max-width:var(--measure)}

/* related book */
.relbook{display:flex; gap:22px; align-items:center; padding:26px 0; border-top:1px solid rgba(27,26,23,.14)}
.relbook img{width:72px; border-radius:3px; box-shadow:0 12px 26px -14px rgba(43,32,18,.5)}
.relbook .rk{font-family:'Inter'; font-weight:600; font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; color:var(--soft-2)}
.relbook h4{font-family:'Fraunces'; font-weight:600; font-size:1.4rem; margin:3px 0 3px}
.relbook .go{font-family:'Inter'; font-weight:600; font-size:.85rem; color:var(--coral-deep)}

/* ---------- ABOUT ---------- */
.about{background:var(--paper-2)}
.about .voice-card{max-width:720px; margin:0 auto; text-align:center}
.about .eyebrow{display:block; margin-bottom:22px}
.about .voice-card p{font-family:'Fraunces'; font-weight:400; font-size:1.42rem; line-height:1.5; color:var(--ink)}
.about .sig{margin-top:24px; font-family:'Inter'; font-weight:600; letter-spacing:.04em; color:var(--aubergine); font-size:.94rem}

/* ---------- NEWSLETTER (aubergine anchor) ---------- */
.join{background:var(--aubergine); color:var(--paper)}
.join-grid{display:grid; grid-template-columns:1.1fr 1fr; gap:50px; align-items:center}
.join .eyebrow{color:rgba(244,240,230,.7); display:block; margin-bottom:16px}
.join h2{color:var(--paper); font-size:clamp(2rem,4.4vw,3rem); margin-bottom:16px}
.join h2 .brush::after{bottom:-.1em; opacity:.95}
.join p{color:rgba(244,240,230,.82); max-width:44ch}
.join .chapter-tag{display:inline-block; margin-top:18px; font-family:'Inter'; font-weight:500; font-size:.82rem; color:var(--paper); border:1px solid rgba(244,240,230,.4); padding:7px 14px; border-radius:40px}
.join-thanks .eyebrow{color:rgba(244,240,230,.7); display:block; margin-bottom:12px}
.join-thanks h2{color:var(--paper); font-size:clamp(1.9rem,4.2vw,2.7rem); margin-bottom:14px}
.join-thanks p{color:rgba(244,240,230,.85); max-width:42ch}
form.signup{display:flex; flex-direction:column; gap:13px}
.field{display:flex; flex-direction:column; gap:6px}
label{font-family:'Inter'; font-size:.74rem; letter-spacing:.06em; text-transform:uppercase; color:rgba(244,240,230,.7)}
.join input{font-family:'Inter'; font-size:1rem; color:var(--paper); background:rgba(244,240,230,.08); border:1px solid rgba(244,240,230,.25); border-radius:6px; padding:14px 16px; width:100%; transition:border-color .2s}
.join input:focus{outline:none; border-color:var(--coral)}
.join input::placeholder{color:rgba(244,240,230,.45)}
.form-note{font-size:.76rem; color:rgba(244,240,230,.55)}
.form-success{display:none; font-family:'Fraunces'; font-style:italic; color:var(--coral); font-size:1rem; padding:6px 0}
.form-success.show{display:block}

/* ---------- FOOTER ---------- */
footer.foot{background:var(--aubergine); color:var(--paper); padding:60px 0 42px; text-align:center}
.foot-brand{font-family:'Fraunces'; font-weight:600; font-size:1.6rem; margin-bottom:8px}
.foot-tag{font-family:'Fraunces'; font-style:italic; color:rgba(244,240,230,.7); margin-bottom:22px}
.foot-links{display:flex; gap:22px; flex-wrap:wrap; justify-content:center; margin-bottom:22px}
.foot-links a{font-size:.85rem; color:rgba(244,240,230,.75); transition:color .2s}
.foot-links a:hover{color:var(--paper)}
.foot-rule{height:1px; max-width:120px; margin:0 auto 22px; background:rgba(244,240,230,.25)}
.foot-fine{font-size:.79rem; color:rgba(244,240,230,.55); max-width:60ch; margin:0 auto; line-height:1.6}

@keyframes fade{to{opacity:1}}
@keyframes rise{to{opacity:1; transform:none}}

@media(max-width:780px){
  .entry{grid-template-columns:1fr; gap:26px}
  .entry-aside{display:flex; align-items:flex-end; gap:22px}
  .entry-num{margin-bottom:0}
  .entry-cover{width:130px; flex:0 0 130px}
  .join-grid{grid-template-columns:1fr; gap:30px}
  .priceband{flex-direction:column; align-items:flex-start}
  .band{padding:60px 0}
  .ms-nav{gap:16px}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none !important; transition-duration:.001s !important}
  html{scroll-behavior:auto}
  .hero .eyebrow,.hero h1,.hero-sub,.hero-cta{opacity:1}
  .reveal{opacity:1; transform:none}
}

/* ---- format availability line (Kindle / paperback / hardcover) ---- */
.fmts{font-family:"Inter",system-ui,sans-serif;font-size:.82rem;letter-spacing:.01em;color:var(--soft);margin:14px 0 0}
.fmts a{color:var(--coral-deep);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.fmts a:hover{color:var(--aubergine)}
.fmts-band{margin-top:10px}
