/* Caring Till the End · Maureen Sallis · shared FIRST SCREEN (SITE_DESIGN §0).
   Same pattern on all three concepts: the book is the hero. Maureen's own details: deep plum ground,
   lamp-light glow, soft-gold hairline frame with open "lamp dot" corners (her book's motif, not Greg's diamonds),
   Alegreya title with the one italic phrase in light gold. Each concept sets the button colour in :root. */
@font-face{font-family:"Alegreya";font-style:normal;font-weight:400 900;font-display:swap;src:url(fonts/alegreya.woff2) format("woff2")}
@font-face{font-family:"Alegreya";font-style:italic;font-weight:400 900;font-display:swap;src:url(fonts/alegreya-italic.woff2) format("woff2")}
@font-face{font-family:"Merriweather";font-style:normal;font-weight:300 900;font-display:swap;src:url(fonts/merriweather.woff2) format("woff2")}
@font-face{font-family:"Nunito";font-style:normal;font-weight:200 1000;font-display:swap;src:url(fonts/nunito.woff2) format("woff2")}

:root{
  --plum:#5B2A4A; --deep:#2A1424; --deep-2:#3A1C32; --lilac:#CDB8D6; --lilac-2:#EFE6F2; --peach:#F2D8C2; --peach-2:#F8E9DC;
  --paper:#FBF5EE; --gold:#C8A15A; --gold-lt:#E6C687; --ink:#1A1A1A; --ink-2:#3B2A35;
  --on:#F6EADF;        /* text on deep plum: ~14:1 */
  --on-mut:#E3D3CB;    /* small text on deep plum: ~11:1 */
  --serif:"Merriweather",Georgia,"Times New Roman",serif;
  --display:"Alegreya",Georgia,serif;
  --label:"Nunito","Segoe UI",Arial,sans-serif;
  /* defaults; each concept overrides */
  --btn:#F2D8C2; --btn-hi:#FBE7D6; --btn-ink:#2A1424; --glow:242,216,194;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--serif);font-size:20px;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-underline-offset:3px;text-decoration-thickness:1.5px}
p{margin:0 0 1em}
:focus-visible{outline:4px solid var(--gold-lt);outline-offset:3px;box-shadow:0 0 0 8px var(--deep)}
.wrap{max-width:1120px;margin:0 auto;padding:0 40px}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.6ch;min-height:60px;padding:16px 28px;font-family:var(--label);font-size:19px;font-weight:800;letter-spacing:.02em;text-decoration:none;text-align:center;line-height:1.15;border-radius:4px;
  border:2px solid var(--btn);background:var(--btn);color:var(--btn-ink);box-shadow:0 0 26px 2px rgba(var(--glow),.42),0 8px 22px -10px rgba(0,0,0,.6);transition:background .16s,box-shadow .2s,transform .12s}
.btn:hover{background:var(--btn-hi);border-color:var(--btn-hi);transform:translateY(-1px)}
.btn:active{transform:translateY(1px)}
.btn.ghost{background:transparent;color:var(--on);border-color:rgba(246,234,223,.8);box-shadow:none}
.btn.ghost:hover{background:var(--on);color:var(--deep)}

/* ---------- the cover in a thin gold frame with lamp-dot corners ---------- */
.bk{position:relative;display:block}
.bk img{width:100%;border-radius:2px;box-shadow:0 30px 60px -22px rgba(0,0,0,.8),0 8px 18px -8px rgba(0,0,0,.5)}
.bk .fr{position:absolute;inset:-10px;border:1px solid rgba(230,198,135,.75);pointer-events:none}
.bk .fr i{position:absolute;width:11px;height:11px;border:1.5px solid var(--gold-lt);border-radius:50%;background:var(--deep)}
.bk .fr i:nth-child(1){top:-6px;left:-6px}.bk .fr i:nth-child(2){top:-6px;right:-6px}
.bk .fr i:nth-child(3){bottom:-6px;left:-6px}.bk .fr i:nth-child(4){bottom:-6px;right:-6px}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;color:var(--on);background-color:var(--deep);
  background-image:radial-gradient(ellipse 60% 70% at 74% 46%,rgba(242,216,194,.13),transparent 70%),radial-gradient(ellipse 90% 80% at 0% 100%,rgba(91,42,74,.55),transparent 70%)}
.hero .hf{position:absolute;inset:16px;border:1px solid rgba(200,161,90,.38);pointer-events:none;z-index:1}
.hero .hf i{position:absolute;width:10px;height:10px;border:1.5px solid var(--gold-lt);border-radius:50%;background:var(--deep)}
.hero .hf i:nth-child(1){top:-5.5px;left:-5.5px}.hero .hf i:nth-child(2){top:-5.5px;right:-5.5px}
.hero .hf i:nth-child(3){bottom:-5.5px;left:-5.5px}.hero .hf i:nth-child(4){bottom:-5.5px;right:-5.5px}
.topbar{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1120px;margin:0 auto;padding:34px 40px 0}
.mark{font-family:var(--display);font-weight:800;font-size:24px;line-height:1.05;color:var(--peach);text-decoration:none;display:flex;flex-direction:column;justify-content:center;min-height:48px}
.mark small{font-family:var(--label);font-weight:800;font-size:15px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-lt);margin-top:5px}
.toplink{display:inline-flex;align-items:center;min-height:48px;padding:8px 18px;border:1.5px solid rgba(230,198,135,.85);border-radius:4px;color:var(--gold-lt);font-family:var(--label);font-weight:800;font-size:16px;letter-spacing:.04em;text-decoration:none;white-space:nowrap}
.toplink:hover{background:var(--gold-lt);color:var(--deep)}
.hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:48px;align-items:center;max-width:1120px;margin:0 auto;padding:40px 40px 72px}
.kicker{font-family:var(--label);font-weight:800;font-size:15px;line-height:1.4;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-lt);margin:0 0 18px}
.hero h1{font-family:var(--display);font-weight:800;color:var(--peach);font-size:clamp(64px,7vw,96px);line-height:.98;letter-spacing:-.01em;margin:0 0 24px;text-wrap:balance}
.hero h1 em{font-style:italic;color:var(--gold-lt);font-weight:800}
.hero .line{font-family:var(--display);font-style:italic;font-weight:500;font-size:27px;line-height:1.35;color:var(--on);margin:0 0 26px;text-wrap:balance}
.hero .price{font-family:var(--display);font-weight:800;font-size:50px;line-height:1;color:var(--peach);margin:0 0 26px}
.acts{display:flex;flex-wrap:wrap;gap:14px}
.trust-line{font-family:var(--label);font-weight:700;font-size:16px;line-height:1.6;letter-spacing:.02em;color:var(--on-mut);margin:22px 0 0}
.trust-line span{white-space:nowrap}
.mini{display:none}

.stack{position:relative;min-height:470px;display:flex;align-items:center;justify-content:center}
.stack::before{content:"";position:absolute;left:50%;top:50%;width:125%;height:115%;transform:translate(-50%,-50%);background:radial-gradient(closest-side,rgba(230,198,135,.26),rgba(242,216,194,.07) 55%,transparent 76%);pointer-events:none}
.stack .bk{position:relative;width:62%;transform:rotate(4deg)}

.spec{position:relative;z-index:2;border-top:1px solid rgba(200,161,90,.38);background:rgba(20,8,17,.5)}
.spec ul{list-style:none;margin:0 auto;max-width:1120px;padding:22px 40px;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 0;font-family:var(--label);font-weight:800;font-size:16px;letter-spacing:.1em;text-transform:uppercase;color:var(--on)}
.spec li{display:flex;align-items:center;white-space:nowrap}
.spec li+li::before{content:"";display:inline-block;width:8px;height:8px;border:1.5px solid var(--gold-lt);border-radius:50%;margin:0 22px}
.spec b{color:var(--gold-lt);font-weight:900;margin-right:.6ch}

/* ---------- desktop: hero fills the first screen ---------- */
@media (min-width:900px) and (min-height:600px){
  .hero{min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
  .topbar{width:100%;max-width:1320px;padding-top:clamp(28px,4vh,48px)}
  .hero-grid{flex:1;width:100%;max-width:1320px;gap:clamp(48px,5vw,96px);padding-top:clamp(20px,3vh,48px);padding-bottom:clamp(36px,5vh,80px)}
  .hero h1{font-size:clamp(76px,7.4vw,124px);margin-bottom:clamp(18px,2.6vh,30px)}
  .hero .line{font-size:clamp(25px,1.8vw,32px);margin-bottom:clamp(20px,2.6vh,32px)}
  .hero .price{font-size:clamp(44px,3.4vw,62px);margin-bottom:clamp(18px,2.6vh,28px)}
  .stack{min-height:clamp(470px,64vh,760px)}
  .stack .bk{width:min(72%,calc(62vh * .707))}
  .spec ul{max-width:1320px;font-size:clamp(16px,1.1vw,19px)}
}
@media (min-width:1500px) and (min-height:600px){
  .topbar,.hero-grid,.spec ul{max-width:min(86vw,1760px)}
  .hero h1{font-size:clamp(120px,7.2vw,170px)}
  .hero .line{font-size:clamp(30px,1.6vw,38px)}
  .hero .btn{font-size:clamp(19px,1vw,22px);padding:1.05em 1.7em}
}

/* ---------- phone first screen = 4 things: cover, title, buy button with the price, one short line ---------- */
@media (max-width:899px){
  body{font-size:20px}
  .wrap{padding:0 22px}
  .hero{min-height:100svh;display:flex;flex-direction:column;justify-content:center}
  .hero .hf{inset:8px}
  .hero .topbar,.hero .kicker,.hero .line,.hero .price,.hero .btn.ghost,.hero .trust-line,.hero .spec{display:none}
  .hero-grid{display:flex;flex-direction:column;align-items:center;text-align:center;gap:0;width:100%;padding:40px 28px 44px}
  .hero .txt{display:flex;flex-direction:column;align-items:center;width:100%;max-width:380px}
  .stack{order:-1;width:100%;min-height:0;margin:0 0 34px}
  .stack::before{width:150%;height:130%}
  .stack .bk{width:min(232px,58vw)}
  .hero h1{font-size:52px;margin:0 0 26px}
  .acts{width:100%}
  .acts .btn{width:100%;min-height:62px;font-size:20px}
  .hero .mini{display:block;margin:16px 0 0;font-family:var(--label);font-weight:700;font-size:17px;letter-spacing:.02em;line-height:1.45;color:var(--on)}
  .nw{white-space:nowrap}
}
@media (min-width:600px) and (max-width:899px){
  .stack .bk{width:290px}
  .hero h1{font-size:68px}
  .hero .txt{max-width:460px}
}
@media (max-width:380px){
  .hero-grid{padding:30px 22px 36px}
  .stack .bk{width:min(206px,57vw)}
  .stack{margin-bottom:28px}
  .hero h1{font-size:46px;margin-bottom:22px}
}

/* ---------- sticky buy bar (phones) ---------- */
.bar{display:none}
@media (max-width:820px){
  .bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:var(--deep);border-top:2px solid var(--gold);transform:translateY(110%);transition:transform .25s}
  .bar.show{transform:none}
  .bar .t{font-family:var(--label);font-weight:700;font-size:15px;line-height:1.35;color:var(--on)}
  .bar .t b{font-family:var(--display);color:var(--peach);font-size:22px;font-weight:800}
  .bar .btn{min-height:56px;padding:10px 18px;font-size:17px;box-shadow:0 0 18px 1px rgba(var(--glow),.35)}
  body.has-bar{padding-bottom:84px}
}

/* ---------- opening (CSS only, plays with JS off; reduced motion = still page, static glow) ---------- */
@media (prefers-reduced-motion:no-preference){
  .hero .hf{animation:fade 1.2s ease .1s both}
  .topbar{animation:down .6s ease .1s both}
  .stack::before{animation:fade 1.6s ease .3s both}
  .stack .bk{animation:soloIn 1.1s cubic-bezier(.2,.72,.24,1) .2s both}
  .hero .kicker{animation:up .6s ease .3s both}
  .hero h1{animation:up .7s ease .42s both}
  .hero .line{animation:up .6s ease .6s both}
  .hero .price{animation:up .6s ease .74s both}
  .hero .acts{animation:up .6s ease .86s both}
  .hero .trust-line,.hero .mini{animation:up .6s ease 1s both}
  .spec{animation:fade .8s ease 1.1s both}
  #heroBtn,.buybox .btn,.bar .btn{animation:glow 2.6s ease-in-out 1.6s infinite}
  @keyframes up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
  @keyframes down{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
  @keyframes fade{from{opacity:0}to{opacity:1}}
  @keyframes soloIn{from{opacity:0;transform:translateY(24px) rotate(0)}to{opacity:1;transform:rotate(4deg)}}
  @keyframes glow{0%,100%{box-shadow:0 0 22px 1px rgba(var(--glow),.34),0 8px 22px -10px rgba(0,0,0,.6)}50%{box-shadow:0 0 40px 8px rgba(var(--glow),.62),0 8px 22px -10px rgba(0,0,0,.6)}}
}

/* ---------- scroll reveals (reveal.js adds html.anim; JS off or reduced motion = still page) ---------- */
@media (prefers-reduced-motion:no-preference){
  html.anim .rv{opacity:0;transform:translateY(24px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.72,.24,1);transition-delay:var(--d,0s)}
  html.anim .rv.in{opacity:1;transform:none}
  html.anim .rv-tilt{rotate:-3deg;transition:opacity .8s ease,transform .8s cubic-bezier(.2,.72,.24,1),rotate 1s cubic-bezier(.2,.72,.24,1);transition-delay:var(--d,0s)}
  html.anim .rv-tilt.in{rotate:0deg}
}
@media print{html.anim .rv{opacity:1!important;transform:none!important}}
