/* Northern Publishers — bookstore styles. Warm, playful, mobile-first. */

:root{
  --cream:#fff8ec;
  --paper:#fffdf8;
  --ink:#2d2a26;
  --muted:#6f675c;
  --terra:#e4572e;
  --terra-dark:#c7431f;
  --teal:#17645a;
  --teal-dark:#0f4c44;
  --sun:#f2a93b;
  --line:#f0e2c8;
  --radius:18px;
  --shadow:0 10px 30px rgba(93,58,16,.13);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--cream);color:var(--ink);
  font-family:"Avenir Next","Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
  line-height:1.55;-webkit-font-smoothing:antialiased;
}
h1,h2,.brand-name{font-family:"Avenir Next Rounded","Avenir Next","Segoe UI",system-ui,sans-serif}
img{max-width:100%;display:block}
.wrap{width:min(1120px,100% - 2rem);margin-inline:auto}

/* Header */
.site-header{background:var(--teal);color:#fff;position:sticky;top:0;z-index:20;box-shadow:0 2px 12px rgba(0,0,0,.15)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem 0}
.brand{display:flex;align-items:center;gap:.7rem;min-width:0}
.brand-mark{font-size:2rem;line-height:1}
.brand-name{margin:0;font-size:1.25rem;font-weight:800;letter-spacing:.2px}
.brand-tag{margin:0;font-size:.8rem;opacity:.85}
.header-link{color:#fff;background:rgba(255,255,255,.16);border:1.5px solid rgba(255,255,255,.5);
  padding:.45rem .9rem;border-radius:999px;text-decoration:none;font-weight:700;font-size:.9rem;white-space:nowrap}
.header-link:hover{background:rgba(255,255,255,.28)}

/* Hero */
.hero{background:linear-gradient(160deg,#ffe9bd 0%,#ffd9a0 55%,#ffc98a 100%);padding:2.6rem 0 2.2rem;text-align:center}
.hero h1{margin:0 0 .6rem;font-size:clamp(1.9rem,6vw,3rem);font-weight:900;color:#5b3210}
.hero-sub{margin:0 auto;max-width:34rem;font-size:1.05rem;color:#6b4420}
.hero-points{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin-top:1.2rem}
.hero-points span{background:rgba(255,255,255,.75);border:1.5px solid #fff;border-radius:999px;
  padding:.35rem .85rem;font-weight:700;font-size:.9rem;color:#7a4a12}

/* Notice */
.notice{background:var(--paper);border-block:3px dashed var(--sun);padding:1.6rem 0}
.notice h2{margin:0 0 .5rem;font-size:1.3rem;color:var(--teal-dark)}
.notice p{margin:.4rem 0;max-width:46rem}
.notice-list{margin:.6rem 0 0;padding-left:1.2rem;max-width:46rem}
.notice-list li{margin:.3rem 0}

/* Catalog */
.section-title{font-size:1.6rem;font-weight:900;margin:2.2rem 0 .2rem;color:#5b3210}
.section-sub{margin:0 0 1.4rem;color:var(--muted)}
.book-grid{display:grid;grid-template-columns:1fr;gap:1.4rem;padding-bottom:.5rem}
@media (min-width:560px){.book-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:900px){.book-grid{grid-template-columns:repeat(4,1fr)}}

.book-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}
.book-card figure{margin:0;background:#fdf3dd}
.book-card img{width:100%;aspect-ratio:8.5/11;object-fit:cover}
.book-body{padding:1rem 1.1rem 1.2rem;display:flex;flex-direction:column;gap:.45rem;flex:1}
.book-body h3{margin:0;font-size:1.12rem;line-height:1.3}
.book-meta{margin:0;color:var(--muted);font-size:.86rem;font-weight:600}
.book-blurb{margin:0;font-size:.94rem;flex:1}
.book-price{margin:.2rem 0 0;font-size:1.25rem;font-weight:900;color:var(--teal-dark)}
.book-price small{font-size:.8rem;font-weight:600;color:var(--muted)}

.format-picker{border:1.5px solid var(--line);border-radius:12px;padding:.55rem .7rem;display:grid;gap:.35rem;background:#fffaf0}
.format-picker legend{font-size:.8rem;font-weight:800;color:#7a4a12;padding:0 .3rem}
.format-picker label{display:flex;gap:.5rem;align-items:flex-start;font-size:.9rem;cursor:pointer}
.format-picker input{margin-top:.25rem;accent-color:var(--terra)}
.format-picker .fmt-note{display:block;color:var(--muted);font-size:.78rem}

.btn{appearance:none;border:0;border-radius:999px;padding:.8rem 1.2rem;font-size:1rem;font-weight:800;
  cursor:pointer;text-align:center;text-decoration:none;display:inline-block;transition:transform .05s ease,background .15s ease}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--terra);color:#fff}
.btn-primary:hover{background:var(--terra-dark)}
.btn-block{width:100%;margin-top:.6rem}
.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--sun);outline-offset:2px}

/* About + footer */
.about{padding-bottom:2.4rem}
.about p{max-width:46rem}
.site-footer{background:var(--teal);color:#eafffa;padding:1.6rem 0 2rem;margin-top:1rem}
.site-footer p{margin:.25rem 0}
.footer-note{font-size:.86rem;opacity:.85}
.noscript{color:var(--terra-dark);font-weight:700}

/* Buy note under each card's PayPal button */
.buy-note{margin:.45rem 0 0;font-size:.82rem;color:var(--muted);text-align:center}
.site-footer a{color:#fff}
.notice a{color:var(--teal-dark);font-weight:700}
