/* Stay or Sell? · Jean Pocock · shared FIRST SCREEN (SITE_DESIGN §0).
   Same on all three concepts: the book is the hero. Jean's own details (not Greg's diamonds, not Maureen's lamp dots):
   deep navy ground with faint ledger lines, a desk-lamp glow behind the cover, the book's brass DOUBLE RULE,
   and L-shaped brass "deed corners" on the frames. Title in Libre Baskerville with the one italic word in light brass,
   as on the cover. Each concept sets the buy-button colour in its own site.css (never the brass of the accent word). */
@font-face{font-family:"Libre Baskerville";font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/baskerville.woff2) format("woff2")}
@font-face{font-family:"Source Serif 4";font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/sourceserif.woff2) format("woff2")}
@font-face{font-family:"Source Serif 4";font-style:italic;font-weight:400 700;font-display:swap;src:url(fonts/sourceserif-italic.woff2) format("woff2")}
@font-face{font-family:"Oswald";font-style:normal;font-weight:500 600;font-display:swap;src:url(fonts/oswald.woff2) format("woff2")}

:root{
  --navy:#1E2A44; --deep:#121A2C; --deep-2:#18223A; --brass:#B8893B; --brass-lt:#D9B26A; --duck:#CFE3E2; --duck-2:#E4EFEE;
  --cream:#F6F1E7; --cream-2:#EFE7D6; --ink:#111111; --ink-2:#2B3245; --rose:#E9B9AE;
  --on:#F6F1E7;        /* cream on deep navy: ~15:1 */
  --on-mut:#DCD5C6;    /* small text on deep navy: ~11:1 */
  --serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  --display:"Libre Baskerville",Georgia,serif;
  --label:"Oswald","Arial Narrow",Arial,sans-serif;
  --btn:#CFE3E2; --btn-hi:#E4EFEE; --btn-ink:#121A2C; --glow:207,227,226;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--serif);font-size:21px;line-height:1.6;-webkit-font-smoothing:antialiased;font-optical-sizing:auto}
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(--brass-lt);outline-offset:3px;box-shadow:0 0 0 8px var(--deep)}
.wrap{max-width:1120px;margin:0 auto;padding:0 40px}
.nw{white-space:nowrap}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.6ch;min-height:60px;padding:16px 30px;font-family:var(--serif);font-size:20px;font-weight:700;letter-spacing:.01em;text-decoration:none;text-align:center;line-height:1.15;border-radius:3px;
  border:2px solid var(--btn);background:var(--btn);color:var(--btn-ink);box-shadow:0 0 26px 2px rgba(var(--glow),.45),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,241,231,.75);box-shadow:none}
.btn.ghost:hover{background:var(--on);color:var(--deep)}

/* ---------- deed corners (L-shaped brass brackets) ---------- */
.dc{position:absolute;pointer-events:none}
.dc i{position:absolute;width:18px;height:18px;border:0 solid var(--brass-lt)}
.dc i:nth-child(1){top:0;left:0;border-top-width:2px;border-left-width:2px}
.dc i:nth-child(2){top:0;right:0;border-top-width:2px;border-right-width:2px}
.dc i:nth-child(3){bottom:0;left:0;border-bottom-width:2px;border-left-width:2px}
.dc i:nth-child(4){bottom:0;right:0;border-bottom-width:2px;border-right-width:2px}

/* ---------- the cover in a thin brass frame with deed corners ---------- */
.bk{position:relative;display:block}
.bk img{width:100%;border-radius:2px;box-shadow:0 30px 60px -22px rgba(0,0,0,.85),0 8px 18px -8px rgba(0,0,0,.5)}
.bk .fr{position:absolute;inset:-11px;border:1px solid rgba(217,178,106,.55);pointer-events:none}
.bk .fr .dc{inset:-5px}

/* ---------- the book's double rule ---------- */
.dr{display:block;height:7px;border-top:2px solid var(--brass);border-bottom:1px solid var(--brass);margin:0}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;color:var(--on);background-color:var(--deep);
  background-image:radial-gradient(ellipse 46% 60% at 72% 48%,rgba(217,178,106,.17),transparent 70%),
    radial-gradient(ellipse 90% 70% at 0% 100%,rgba(30,42,68,.9),transparent 70%),
    repeating-linear-gradient(180deg,transparent 0 47px,rgba(207,227,226,.035) 47px 48px)}
.hero>.dc{inset:18px;z-index:3}
.hero>.dc i{width:26px;height:26px;border-color:rgba(217,178,106,.7)}
.topbar{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:1120px;margin:0 auto;padding:36px 40px 0}
.mark{font-family:var(--display);font-weight:700;font-size:24px;line-height:1.05;color:var(--cream);text-decoration:none;display:flex;flex-direction:column;justify-content:center;min-height:48px}
.mark small{font-family:var(--label);font-weight:500;font-size:15px;letter-spacing:.16em;text-transform:uppercase;color:var(--brass-lt);margin-top:7px}
.toplink{display:inline-flex;align-items:center;min-height:48px;padding:8px 18px;border:1.5px solid rgba(217,178,106,.85);border-radius:3px;color:var(--brass-lt);font-family:var(--label);font-weight:500;font-size:17px;letter-spacing:.08em;text-decoration:none;white-space:nowrap}
.toplink:hover{background:var(--brass-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:500;font-size:16px;line-height:1.4;letter-spacing:.2em;text-transform:uppercase;color:var(--brass-lt);margin:0 0 20px}
.hero h1{font-family:var(--display);font-weight:700;color:var(--cream);font-size:clamp(64px,7vw,96px);line-height:1;letter-spacing:-.015em;margin:0 0 22px}
.hero h1 em{display:block;font-family:var(--serif);font-style:italic;color:var(--brass-lt);font-weight:700;letter-spacing:0}
.hero h1 em small{font-size:.62em;font-weight:600}
.hero .line{font-family:var(--serif);font-style:italic;font-weight:600;font-size:28px;line-height:1.35;color:var(--on);margin:0 0 18px}
.hero .dr{width:120px;margin:0 0 24px}
.hero .price{font-family:var(--display);font-weight:700;font-size:48px;line-height:1;color:var(--cream);margin:0 0 26px}
.acts{display:flex;flex-wrap:wrap;gap:14px}
.trust-line{font-family:var(--serif);font-weight:600;font-size:17px;line-height:1.6;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(217,178,106,.28),rgba(217,178,106,.07) 55%,transparent 76%);pointer-events:none}
.stack .bk{position:relative;width:62%;transform:rotate(4deg)}

.spec{position:relative;z-index:2;background:rgba(10,14,26,.55)}
.spec::before{content:"";display:block;height:7px;border-top:2px solid rgba(184,137,59,.8);border-bottom:1px solid rgba(184,137,59,.8)}
.spec ul{list-style:none;margin:0 auto;max-width:1120px;padding:20px 40px 22px;display:flex;flex-wrap:wrap;justify-content:center;gap:10px 0;font-family:var(--label);font-weight:500;font-size:17px;letter-spacing:.12em;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:7px;height:7px;background:var(--brass-lt);margin:0 22px}
.spec b{color:var(--brass-lt);font-weight:600;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(30px,4vh,50px)}
  .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.2vw,120px);margin-bottom:clamp(16px,2.4vh,28px)}
  .hero .line{font-size:clamp(26px,1.9vw,33px)}
  .hero .price{font-size:clamp(44px,3.3vw,60px);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(17px,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(118px,7vw,166px)}
  .hero .line{font-size:clamp(31px,1.6vw,38px)}
  .hero .btn{font-size:clamp(20px,1vw,23px);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>.dc{inset:9px}
  .hero>.dc i{width:20px;height:20px}
  .hero .topbar,.hero .kicker,.hero .line,.hero .dr,.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 36px}
  .stack::before{width:150%;height:130%}
  .stack .bk{width:min(232px,58vw)}
  .hero h1{font-size:50px;margin:0 0 26px}
  .acts{width:100%}
  .acts .btn{width:100%;min-height:62px;font-size:21px}
  .hero .mini{display:block;margin:16px 0 0;font-family:var(--serif);font-weight:600;font-size:18px;line-height:1.45;color:var(--on)}
}
@media (min-width:600px) and (max-width:899px){
  .stack .bk{width:290px}
  .hero h1{font-size:66px}
  .hero .txt{max-width:460px}
}
@media (max-width:380px){
  .hero-grid{padding:30px 22px 36px}
  .stack .bk{width:min(206px,57vw)}
  .stack{margin-bottom:30px}
  .hero h1{font-size:44px;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:3px double var(--brass);transform:translateY(110%);transition:transform .25s}
  .bar.show{transform:none}
  .bar .t{font-family:var(--serif);font-weight:600;font-size:15px;line-height:1.35;color:var(--on)}
  .bar .t b{font-family:var(--display);color:var(--cream);font-size:22px;font-weight:700}
  .bar .btn{min-height:56px;padding:10px 18px;font-size:18px;box-shadow:0 0 18px 1px rgba(var(--glow),.38)}
  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>.dc{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 .dr{animation:draw .7s ease .7s both;transform-origin:left}
  .hero .price{animation:up .6s ease .8s both}
  .hero .acts{animation:up .6s ease .9s both}
  .hero .trust-line,.hero .mini{animation:up .6s ease 1.02s 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 draw{from{transform:scaleX(0)}to{transform:scaleX(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),.36),0 8px 22px -10px rgba(0,0,0,.6)}50%{box-shadow:0 0 42px 9px rgba(var(--glow),.66),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}}
