/* The Old Hunter's Field Guide · Curtis Pettibone · FIRST SCREEN (SITE_DESIGN §0), from the approved concept B.
   Pattern: the book is the hero (tilted ~4°, thin frame, soft glow), minimal text,
   spec strip with the page count, buy button in a color that is NOT the title's accent, with a gentle glow.
   Curtis's own details: brush-black dusk ground with a low sunset-clay glow, square clay "rivet" corners
   (not diamonds, not circles), Bitter 800 title with "Field Guide" in clay, Saira Condensed labels.
   Type is one step bigger than our other books: these readers are 65+. Each concept sets its colors in :root. */
@font-face{font-family:"Bitter";font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/bitter.woff2) format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/atkinson.woff2) format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/atkinson-bold.woff2) format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:italic;font-weight:400;font-display:swap;src:url(fonts/atkinson-italic.woff2) format("woff2")}
@font-face{font-family:"Saira Condensed";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/saira600.woff2) format("woff2")}
@font-face{font-family:"Saira Condensed";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/saira700.woff2) format("woff2")}

:root{
  --black:#23201C; --black-2:#2E2924; --mesq:#5A3F2B; --mesq-d:#3A281B; --clay:#C2603A; --clay-d:#9E4A2A; --clay-lt:#E8895F;
  --sage:#8A9A78; --sage-d:#5E6B50; --sage-lt:#DCE3D2; --cream:#E6DCC3; --cream-hi:#F3ECDC; --paper:#FBF7EE; --ink:#23201C; --ink-2:#4A3E33;
  --body:"Atkinson Hyperlegible",Verdana,Arial,sans-serif;
  --display:"Bitter",Georgia,serif;
  --label:"Saira Condensed","Arial Narrow",Arial,sans-serif;
  /* hero colors (concept may override) */
  --h-bg:#23201C; --h-ink:#F3ECDC; --h-mut:#E2D7C0; --h-title:#F3ECDC; --h-acc:#E8895F; --h-line:rgba(230,220,195,.45); --h-riv:#E8895F;
  --h-glowc:232,137,95;
  /* buy button (never the accent color) */
  --btn:#F3ECDC; --btn-hi:#FFFFFF; --btn-ink:#23201C; --glow:243,236,220;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:22px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-underline-offset:4px;text-decoration-thickness:2px}
p{margin:0 0 1em}
:focus-visible{outline:4px solid var(--clay-lt);outline-offset:3px;box-shadow:0 0 0 8px var(--black)}
.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:64px;padding:16px 30px;font-family:var(--body);font-size:22px;font-weight:700;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 28px 3px 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(--h-ink);border-color:currentColor;box-shadow:none}
.btn.ghost:hover{background:var(--h-ink);color:var(--h-bg)}

/* ---------- the cover: thin frame with square clay rivets ---------- */
.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:-11px;border:1px solid var(--h-line);pointer-events:none}
.bk .fr i{position:absolute;width:9px;height:9px;background:var(--h-riv)}
.bk .fr i:nth-child(1){top:-5px;left:-5px}.bk .fr i:nth-child(2){top:-5px;right:-5px}
.bk .fr i:nth-child(3){bottom:-5px;left:-5px}.bk .fr i:nth-child(4){bottom:-5px;right:-5px}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;color:var(--h-ink);background-color:var(--h-bg);
  background-image:radial-gradient(ellipse 60% 70% at 74% 50%,rgba(var(--h-glowc),.16),transparent 70%),linear-gradient(to top,rgba(var(--h-glowc),.10),transparent 45%)}
.hero .hf{position:absolute;inset:16px;border:1px solid var(--h-line);pointer-events:none;z-index:1}
.hero .hf i{position:absolute;width:9px;height:9px;background:var(--h-riv)}
.hero .hf i:nth-child(1){top:-5px;left:-5px}.hero .hf i:nth-child(2){top:-5px;right:-5px}
.hero .hf i:nth-child(3){bottom:-5px;left:-5px}.hero .hf i:nth-child(4){bottom:-5px;right:-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:36px 40px 0}
.mark{font-family:var(--display);font-weight:800;font-size:25px;line-height:1.05;color:var(--h-title);text-decoration:none;display:flex;flex-direction:column;justify-content:center;min-height:48px}
.mark small{font-family:var(--label);font-weight:700;font-size:17px;letter-spacing:.12em;text-transform:uppercase;color:var(--h-acc);margin-top:5px}
.toplink{display:inline-flex;align-items:center;min-height:52px;padding:8px 20px;border:2px solid var(--h-acc);border-radius:3px;color:var(--h-acc);font-family:var(--label);font-weight:700;font-size:19px;letter-spacing:.06em;text-decoration:none;white-space:nowrap}
.toplink:hover{background:var(--h-acc);color:var(--h-bg)}
.hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:48px;align-items:center;max-width:1120px;margin:0 auto;padding:40px 40px 72px}
.kicker{font-family:var(--label);font-weight:700;font-size:19px;line-height:1.4;letter-spacing:.14em;text-transform:uppercase;color:var(--h-acc);margin:0 0 18px}
.hero h1{font-family:var(--display);font-weight:800;color:var(--h-title);font-size:clamp(62px,6.6vw,92px);line-height:.98;letter-spacing:-.015em;margin:0 0 24px}
.hero h1 .sm{display:block;font-size:.46em;font-weight:700;letter-spacing:0;margin-bottom:.08em}
.hero h1 em{font-style:normal;color:var(--h-acc)}
.hero .line{font-family:var(--body);font-weight:400;font-size:27px;line-height:1.4;color:var(--h-ink);margin:0 0 26px}
.hero .price{font-family:var(--display);font-weight:800;font-size:52px;line-height:1;color:var(--h-title);margin:0 0 26px}
.hero .price small{font-family:var(--label);font-weight:700;font-size:20px;letter-spacing:.1em;color:var(--h-mut);margin-left:10px}
.acts{display:flex;flex-wrap:wrap;gap:14px}
.trust-line{font-family:var(--body);font-weight:400;font-size:18px;line-height:1.6;color:var(--h-mut);margin:22px 0 0}
.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(var(--h-glowc),.30),rgba(var(--h-glowc),.08) 55%,transparent 76%);pointer-events:none}
.stack .bk{position:relative;width:66%;transform:rotate(4deg)}

.spec{position:relative;z-index:2;border-top:1px solid var(--h-line);background:rgba(0,0,0,.22)}
.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:700;font-size:19px;letter-spacing:.08em;text-transform:uppercase;color:var(--h-ink)}
.spec li{display:flex;align-items:center;white-space:nowrap}
.spec li+li::before{content:"";display:inline-block;width:8px;height:8px;background:var(--h-riv);margin:0 22px}
.spec b{color:var(--h-acc);font-weight:700;margin-right:.6ch}

/* ---------- desktop: hero fills the first screen ---------- */
@media (min-width:900px) and (min-height:600px){
  .hero{min-height:min(100vh,1600px);min-height:min(100svh,1600px);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(70px,6.6vw,118px);margin-bottom:clamp(18px,2.6vh,30px)}
  .hero .line{font-size:clamp(26px,1.9vw,33px);margin-bottom:clamp(20px,2.6vh,32px)}
  .hero .price{font-size:clamp(46px,3.4vw,62px);margin-bottom:clamp(18px,2.6vh,28px)}
  .stack{min-height:clamp(470px,64vh,760px)}
  .stack .bk{width:min(74%,calc(62vh * .707))}
  .spec ul{max-width:1320px;font-size:clamp(19px,1.2vw,22px)}
}
@media (min-width:1500px) and (min-height:600px){
  .topbar,.hero-grid,.spec ul{max-width:min(86vw,1760px)}
  .hero h1{font-size:clamp(116px,6.8vw,160px)}
  .hero .line{font-size:clamp(31px,1.7vw,40px)}
  .hero .btn{font-size:clamp(22px,1.1vw,25px);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:21px}
  .wrap{padding:0 22px}
  .hero{min-height:min(100svh,1000px);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 26px 44px}
  .hero .txt{display:flex;flex-direction:column;align-items:center;width:100%;max-width:390px}
  .stack{order:-1;width:100%;min-height:0;margin:0 0 34px}
  .stack::before{width:150%;height:130%}
  .stack .bk{width:min(244px,62vw)}
  .hero h1{font-size:44px;margin:0 0 26px}
  .hero h1 .sm{font-size:.5em}
  .acts{width:100%}
  .acts .btn{width:100%;min-height:66px;font-size:23px}
  .hero .mini{display:block;margin:16px 0 0;font-family:var(--body);font-weight:400;font-size:18px;line-height:1.45;color:var(--h-ink)}
}
@media (min-width:600px) and (max-width:899px){
  .stack .bk{width:300px}
  .hero h1{font-size:64px}
  .hero .txt{max-width:480px}
}
@media (max-width:380px){
  .hero-grid{padding:30px 20px 36px}
  .stack .bk{width:min(206px,57vw)}
  .stack{margin-bottom:28px}
  .hero h1{font-size:40px;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(--black);border-top:3px solid var(--clay);transform:translateY(110%);transition:transform .25s}
  .bar.show{transform:none}
  .bar .t{font-family:var(--body);font-size:16px;line-height:1.35;color:var(--cream-hi)}
  .bar .t b{font-family:var(--display);color:var(--cream-hi);font-size:24px;font-weight:800}
  .bar .btn{min-height:58px;padding:10px 20px;font-size:19px;box-shadow:0 0 18px 1px rgba(var(--glow),.35)}
  body.has-bar{padding-bottom:88px}
}

/* ---------- 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,.buytag .btn,.bar .btn{animation:glow 2.8s 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 2px rgba(var(--glow),.36),0 8px 22px -10px rgba(0,0,0,.6)}50%{box-shadow:0 0 42px 9px rgba(var(--glow),.64),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(26px);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}
  html.anim .rv-draw::after{transform:scaleX(0);transform-origin:left;transition:transform 1s cubic-bezier(.2,.72,.24,1) .2s}
  html.anim .rv-draw.in::after{transform:none}
}
@media print{html.anim .rv{opacity:1!important;transform:none!important}}
