/* grantapoulton.com · site.css · st1 · 2026-11-19
   One top bar on every page, the wide frame for side-by-side sections,
   and the claws dimmed while a reading panel is on screen.
   Loaded after each page's own styles; change the bar here, not page by page. */

/* ── the top bar ───────────────────────────────────────────────── */
#sitenav{position:fixed;top:0;left:0;right:0;z-index:300;background:rgba(14,13,12,.92);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid rgba(228,223,209,.12)}
#sitenav .sn-in{max-width:64rem;margin:0 auto;padding:0 1.5rem;height:3.25rem;display:flex;align-items:center;gap:1.4rem}
#sitenav a{font-family:'Archivo Narrow',system-ui,sans-serif;font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;
  color:#E4DFD1;text-decoration:none;white-space:nowrap;position:relative;z-index:1;padding:.3rem 0;border-bottom:1px solid transparent}
#sitenav a:hover,#sitenav a:focus-visible{color:#C88A2E}
#sitenav a[aria-current="page"]{color:#C88A2E;border-bottom-color:#C88A2E}
#sitenav .sn-home{margin-right:auto;letter-spacing:.2em}
#sitenav .sn-cta{border:1px solid #C88A2E;background:#C88A2E;color:#1A1A19;padding:.5rem .9rem;letter-spacing:.14em}
#sitenav .sn-cta:hover,#sitenav .sn-cta:focus-visible{background:#E4DFD1;border-color:#E4DFD1;color:#1A1A19}
@media(max-width:760px){#sitenav .sn-in{gap:1rem}#sitenav .sn-wide{display:none}#sitenav a{font-size:.68rem;letter-spacing:.12em}}
@media(max-width:380px){#sitenav .sn-cta{padding:.45rem .6rem}}
body{padding-top:3.25rem}
html{scroll-padding-top:4rem}
/* the old per-page bars are gone; keep any left-over copies hidden */
#topnav,#backHome{display:none!important}
/* the full-screen page-turner hides the bar while it is open */
body.pg-lock #sitenav{display:none}

/* ── the wide frame: side-by-side sections use the full 64rem ──── */
#buy .book-col{max-width:none!important}
#buy .book-grid{grid-template-columns:minmax(0,16rem) minmax(0,1fr)}
#buy .book-grid>div:last-child>p{max-width:40rem}
@media(max-width:760px){#buy .book-grid{grid-template-columns:1fr}}
/* home: the four books side by side, two to a row */
.trilogy .wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:3.5rem}
.trilogy .wrap>*{max-width:none;grid-column:1/-1}
.trilogy .wrap>p{max-width:40rem}
.trilogy .wrap>.book{grid-column:auto}
.trilogy .book a.btn{margin:0 .6rem .6rem 0!important}
@media(max-width:760px){.trilogy .wrap{display:block}}
/* home: the world spread's label and heading share one centre line */
#world .eyebrow,#world h2{text-align:center!important;margin-left:auto!important;margin-right:auto!important}

/* ── claws off the reading text ───────────────────────────────── */
body.claw-dim #scar:not(.rake-gone),body.claw-dim #scar-paw:not(.rake-gone){opacity:.12!important}
