/*
Theme Name: Bindery
Theme URI: https://theitsign.com/
Author: Muhammad Imran (imru)
Author URI: https://theitsign.com/
Description: Bindery — a modern portfolio & bookstore theme for authors. Includes a custom Book system (cover, book-ratio image gallery, pricing, discounts, purchase links, PDF downloads, categories), a full author profile, video embeds, testimonials/reviews, FAQ, and a built-in contact form that saves messages inside WordPress and emails you. Modern grey design. Designed & developed by TheITSign — Muhammad Imran (imru).
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bindery
Tags: author, portfolio, books, bookstore, blog, custom-colors, featured-images, translation-ready

Bindery — Crafted by TheITSign (https://theitsign.com/) · Muhammad Imran (imru).
*/

/* ==========================================================================
   0. Design tokens — Modern Grey
   ========================================================================== */
:root{
  --ivory:#f5f6f7;    /* page background   */
  --ivory2:#ececee;   /* alt section bg    */
  --surface:#ffffff;  /* cards             */
  --plum:#2b2f33;     /* primary / brand   */
  --wine:#4d5a67;     /* accent            */
  --ink:#24272b;      /* body text         */
  --muted:#6b7178;    /* secondary text    */
  --sage:#3f8f78;     /* success/discount  */
  --line:#e0e3e6;     /* borders           */
  /* Overridable color roles (Customize → Theme Colors) */
  --text:var(--ink); --heading:#16181b; --link:var(--wine);
  --link-hover:var(--plum); --footer-bg:#1c1f22; --btn-text:#ffffff;
  --maxw:1180px; --radius:14px;
  --sans:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display:'Space Grotesk', var(--sans);
  --serif:var(--display); /* alias so older inline styles stay modern */
  --shadow:0 10px 30px rgba(20,24,28,.08);
  --shadow-lg:0 24px 60px rgba(20,24,28,.14);
}

/* ==========================================================================
   1. Base
   ========================================================================== */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; background:var(--ivory); color:var(--text);
  font-family:var(--sans); font-size:17px; line-height:1.7; -webkit-font-smoothing:antialiased; }
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--link); text-decoration:none; transition:color .15s; }
a:hover{ color:var(--link-hover); }
h1,h2,h3,h4{ font-family:var(--display); color:var(--heading); font-weight:600; line-height:1.12; letter-spacing:-.02em; margin:0 0 .5em; }
p{ margin:0 0 1.1em; }
.container{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.eyebrow{ font-family:var(--sans); font-weight:600; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--wine); }
.screen-reader-text{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); }
.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{ left:16px; top:12px; background:#fff; padding:10px 16px; z-index:1000; border-radius:8px; }
:focus-visible{ outline:2px solid var(--wine); outline-offset:2px; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; gap:8px; font-family:var(--sans); font-size:14px; font-weight:600; letter-spacing:.01em;
  padding:13px 24px; border-radius:100px; border:1.5px solid var(--plum); cursor:pointer; transition:.18s; }
.btn-solid{ background:var(--plum); color:var(--btn-text); }
.btn-solid:hover{ background:var(--wine); border-color:var(--wine); color:var(--btn-text); transform:translateY(-1px); }
.btn-ghost{ background:transparent; color:var(--plum); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--plum); background:var(--surface); }
.btn-link{ border:none; padding:0; color:var(--wine); font-weight:600; font-size:15px; border-radius:0; }
.btn-link:hover{ color:var(--plum); }

/* ==========================================================================
   2. Header / nav
   ========================================================================== */
.site-header{ background:rgba(245,246,247,.85); backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--line); position:sticky; top:0; z-index:100; }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; padding-top:18px; padding-bottom:18px; }
.site-branding .site-title{ font-family:var(--display); font-size:23px; font-weight:700; margin:0; letter-spacing:-.02em; }
.site-branding .site-title a{ color:var(--heading); }
.site-branding .site-desc{ font-size:13px; color:var(--muted); margin:1px 0 0; }
.main-nav ul{ list-style:none; display:flex; gap:6px; margin:0; padding:0; }
.main-nav a{ font-size:14.5px; font-weight:500; color:var(--ink); padding:9px 14px; border-radius:100px; }
.main-nav a:hover{ background:var(--ivory2); color:var(--heading); }
.main-nav .current-menu-item > a{ color:var(--heading); background:var(--ivory2); }
.menu-toggle{ display:none; background:var(--plum); border:none; color:#fff; padding:9px 15px; border-radius:100px; font-size:13px; font-weight:600; cursor:pointer; }

/* ==========================================================================
   3. Hero (professional, unique) + library backdrop
   ========================================================================== */
.hero-pro{ position:relative; overflow:hidden; padding:88px 0 96px; background:linear-gradient(180deg,#eaecef 0%,#f5f6f7 70%); }
.ah-bg{ position:absolute; inset:0; z-index:0; opacity:.30; }
.ah-bg svg{ width:100%; height:100%; display:block; }
.hero-pro::after{ content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(120% 90% at 82% 30%, rgba(77,90,103,.12), transparent 60%),
             linear-gradient(90deg, rgba(245,246,247,.94) 0%, rgba(245,246,247,.55) 52%, rgba(245,246,247,.86) 100%); }
.hero-pro .container{ position:relative; z-index:1; display:grid; grid-template-columns:1.08fr .92fr; gap:56px; align-items:center; }
.hero-pro .eyebrow{ display:inline-flex; align-items:center; gap:8px; margin-bottom:16px; padding:7px 14px; background:var(--surface); border:1px solid var(--line); border-radius:100px; box-shadow:var(--shadow); }
.hero-pro .eyebrow::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--wine); }
.hero-pro h1{ font-size:clamp(40px,6vw,66px); line-height:1.02; margin:0 0 18px; letter-spacing:-.03em; }
.hero-pro h1 .hl{ color:var(--wine); }
.hero-pro .lede{ font-size:20px; line-height:1.6; color:var(--muted); max-width:38ch; margin:0 0 28px; }
.hero-pro .cta-row{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.hero-pro .trust{ display:flex; gap:30px; margin-top:34px; }
.hero-pro .trust .n{ font-family:var(--display); font-weight:700; font-size:26px; color:var(--heading); line-height:1; }
.hero-pro .trust .l{ font-size:12.5px; color:var(--muted); margin-top:4px; }

.hero-featured{ position:relative; justify-self:center; text-align:center; }
.hero-featured::before{ content:""; position:absolute; inset:-50px -40px; z-index:0;
  background:radial-gradient(closest-side, rgba(77,90,103,.20), transparent 72%); }
.hero-featured .fcover{ position:relative; z-index:1; display:block; width:340px; max-width:80vw; aspect-ratio:2/3;
  border-radius:16px; overflow:hidden; box-shadow:var(--shadow-lg); transform:rotate(-2deg); transition:.3s; margin:0 auto; background:#d7dbde; }
.hero-featured .fcover:hover{ transform:rotate(0) translateY(-5px); }
.hero-featured .fcover img{ width:100%; height:100%; object-fit:cover; }
.hero-featured .fcover .ph{ width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(150deg,#3a3f45,#22262b); color:#fff; font-family:var(--display); font-weight:600; font-size:24px; padding:26px; text-align:center; }
.hero-featured .badge{ position:absolute; z-index:2; top:14px; left:14px; background:var(--wine); color:#fff;
  font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:7px 13px; border-radius:100px; box-shadow:0 6px 16px rgba(0,0,0,.28); }
.hero-featured .fmeta{ position:relative; z-index:1; margin-top:22px; }
.hero-featured .fmeta .ft{ font-family:var(--display); font-weight:600; font-size:19px; color:var(--heading); }
.hero-featured .fmeta .fk{ font-size:13px; color:var(--muted); margin:3px 0 12px; }

/* legacy hero fallback (if used) */
.hero{ padding:56px 0; }
.hero .container{ display:grid; grid-template-columns:1fr .8fr; gap:48px; align-items:center; }
.hero h1{ font-size:clamp(38px,5.4vw,60px); margin:0 0 18px; }
.hero .lede{ font-size:19px; color:var(--muted); }
.hero .cta-row{ display:flex; gap:14px; margin-top:26px; flex-wrap:wrap; align-items:center; }
.hero-book .frame{ display:block; width:260px; aspect-ratio:2/3; border-radius:12px; overflow:hidden; box-shadow:var(--shadow-lg); margin:0 auto; }
.hero-book .frame img{ width:100%; height:100%; object-fit:cover; }
.hero-book .placeholder{ width:100%; height:100%; background:linear-gradient(150deg,#3a3f45,#22262b); color:#fff; display:flex; align-items:center; justify-content:center; padding:24px; text-align:center; }
.hero-book .cap{ text-align:center; color:var(--muted); font-size:14px; margin-top:14px; }

/* ==========================================================================
   4. Quote banner (mid-page)
   ========================================================================== */
.quote-band{ background:var(--plum); color:#eef0f2; }
.quote-band .container{ padding:80px 28px; text-align:center; position:relative; }
.quote-band .mark{ font-family:var(--display); font-size:80px; line-height:.6; color:var(--wine); opacity:.5; margin-bottom:8px; }
.quote-band blockquote{ margin:0 auto; max-width:20ch; }
.quote-band .qb-text{ font-family:var(--display); font-weight:600; font-size:clamp(26px,4vw,44px); line-height:1.22; letter-spacing:-.02em; color:#fff; max-width:22ch; margin:0 auto; }
.quote-band .qb-author{ display:block; margin-top:24px; font-style:normal; font-size:14px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:#aab2ba; }

/* ==========================================================================
   5. Sections
   ========================================================================== */
.section{ padding:74px 0; }
.section.tint{ background:var(--ivory2); }
.section-head{ text-align:center; margin-bottom:44px; }
.section-head h2{ font-size:clamp(28px,3.6vw,40px); margin:6px 0 0; }
.section-head .more{ display:inline-block; margin-top:14px; font-size:14px; font-weight:600; }

/* Book grid */
.book-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
/* Horizontal book cards (homepage): cover left, details right */
.book-list{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.book-hcard{ display:grid; grid-template-columns:104px 1fr; gap:20px; background:var(--surface); border:1px solid var(--line);
  border-radius:16px; padding:18px; transition:.2s; }
.book-hcard:hover{ box-shadow:var(--shadow-lg); transform:translateY(-3px); }
.book-hcard .cover{ display:block; width:104px; aspect-ratio:2/3; border-radius:9px; overflow:hidden; background:#d7dbde; box-shadow:var(--shadow); }
.book-hcard .cover img{ width:100%; height:100%; object-fit:cover; }
.book-hcard .cover .ph{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; text-align:center;
  padding:10px; color:#fff; font-family:var(--display); font-weight:600; font-size:14px; background:linear-gradient(150deg,#3a3f45,#22262b); }
.hc-body{ min-width:0; display:flex; flex-direction:column; }
.hc-body h3{ font-size:19px; line-height:1.2; margin:0 0 3px; }
.hc-body h3 a{ color:var(--heading); }
.hc-body h3 a:hover{ color:var(--wine); }
.hc-body .kind{ font-size:12.5px; color:var(--muted); margin-bottom:8px; }
.hc-desc{ font-size:14px; line-height:1.55; color:var(--muted); margin:0 0 12px;
  display:-webkit-box; -webkit-line-clamp:3; line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.hc-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.hc-foot .price{ display:inline-flex; align-items:center; gap:8px; font-size:17px; font-weight:700; color:var(--heading); }
.hc-foot .price .old{ text-decoration:line-through; color:var(--muted); font-weight:400; font-size:14px; }
.hc-foot .price .save{ background:var(--sage); color:#fff; font-size:10px; font-weight:700; padding:2px 8px; border-radius:100px; }
.hc-view{ font-size:13px; font-weight:600; color:var(--wine); white-space:nowrap; }
.hc-view:hover{ color:var(--plum); }
.book-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:.2s; }
.book-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); }
.book-card .cover{ display:block; aspect-ratio:2/3; overflow:hidden; background:#d7dbde; }
.book-card .cover img{ width:100%; height:100%; object-fit:cover; }
.book-card .cover .ph{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#fff;
  font-family:var(--display); font-weight:600; font-size:22px; padding:20px; text-align:center; background:linear-gradient(150deg,#3a3f45,#22262b); }
.book-card .body{ padding:20px 22px 24px; }
.book-card h3{ font-size:20px; margin:0 0 4px; }
.book-card h3 a{ color:var(--heading); }
.book-card .kind{ font-size:13px; color:var(--muted); }
.book-card .price{ margin-top:12px; font-size:16px; font-weight:600; color:var(--heading); display:flex; align-items:center; gap:8px; }
.book-card .price .old{ text-decoration:line-through; color:var(--muted); font-weight:400; }
.book-card .price .save{ background:var(--sage); color:#fff; font-size:11px; font-weight:700; padding:2px 8px; border-radius:100px; }

/* ==========================================================================
   6. About / author (secondary, full bio)
   ========================================================================== */
.about-author .container{ display:grid; grid-template-columns:.8fr 1.2fr; gap:52px; align-items:center; }
.about-author .photo{ aspect-ratio:4/5; overflow:hidden; border-radius:var(--radius); background:linear-gradient(150deg,#cfd4d8,#a9b0b6); box-shadow:var(--shadow); }
.about-author .photo img{ width:100%; height:100%; object-fit:cover; }
.about-author h2{ font-size:clamp(28px,3.6vw,42px); margin:8px 0 16px; }
.about-author .bio{ font-size:18px; line-height:1.75; color:var(--ink); }
.about-author .socials{ display:flex; gap:18px; margin-top:20px; flex-wrap:wrap; }
.about-author .socials a{ font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.05em; }

/* ==========================================================================
   7. Journal / posts
   ========================================================================== */
.post-list{ max-width:820px; margin:0 auto; }
.post-row{ display:grid; grid-template-columns:130px 1fr; gap:26px; padding:24px; border:1px solid var(--line);
  border-radius:var(--radius); align-items:baseline; margin-bottom:16px; background:var(--surface); transition:.18s; }
.post-row:hover{ box-shadow:var(--shadow); transform:translateY(-2px); }
.post-row .date{ font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--wine); }
.post-row h3{ font-size:22px; margin:0 0 6px; }
.post-row h3 a{ color:var(--heading); }
.post-row p{ font-size:15px; line-height:1.6; color:var(--muted); margin:0; }

/* Blog grid (archive) */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.blog-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; transition:.2s; }
.blog-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.blog-card .thumb{ display:block; aspect-ratio:3/2; overflow:hidden; background:var(--ivory2); }
.blog-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.blog-card .body{ padding:20px 22px 24px; }
.blog-card .date{ font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--wine); }
.blog-card h3{ font-size:21px; margin:6px 0 8px; }
.blog-card h3 a{ color:var(--heading); }
.blog-card p{ font-size:14.5px; color:var(--muted); line-height:1.6; margin:0; }

/* ==========================================================================
   8. Testimonials / reviews
   ========================================================================== */
.reviews-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.review{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:28px; }
.review .stars{ color:#e0a13a; letter-spacing:2px; font-size:15px; margin-bottom:12px; }
.review .stars .off{ color:var(--line); }
.review .text{ font-size:17px; line-height:1.6; color:var(--ink); }
.review .who{ margin-top:16px; font-size:14px; font-weight:700; color:var(--heading); }
.review .role{ font-size:13px; color:var(--muted); }

/* ==========================================================================
   8b. FAQ accordion
   ========================================================================== */
.faq-wrap{ max-width:820px; margin:0 auto; }
.faq-item{ background:var(--surface); border:1px solid var(--line); border-radius:12px; margin-bottom:12px; overflow:hidden; }
.faq-item summary.faq-q{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:20px;
  font-family:var(--display); font-size:19px; font-weight:600; color:var(--heading); padding:20px 24px; }
.faq-item summary.faq-q::-webkit-details-marker{ display:none; }
.faq-item summary:hover{ color:var(--wine); }
.faq-item .faq-ico{ flex:none; width:28px; height:28px; border-radius:50%; background:var(--ivory2);
  display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--wine); transition:.2s; }
.faq-item[open] .faq-ico{ transform:rotate(45deg); background:var(--plum); color:#fff; }
.faq-item .faq-a{ padding:0 24px 22px; font-size:16px; line-height:1.7; color:var(--muted); }
.faq-item .faq-a p:last-child{ margin-bottom:0; }

/* ==========================================================================
   8c. Videos
   ========================================================================== */
.video-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:30px; }
.video-item .frame{ position:relative; aspect-ratio:16/9; background:#000; overflow:hidden; border-radius:var(--radius); box-shadow:var(--shadow); }
.video-item .frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-item h3{ font-size:20px; margin:14px 0 0; }

/* ==========================================================================
   9. Single Book
   ========================================================================== */
.book-single{ padding:52px 0 74px; }
.book-single .top{ display:grid; grid-template-columns:.9fr 1.1fr; gap:52px; align-items:start; }
.book-gallery .main{ aspect-ratio:2/3; overflow:hidden; border-radius:var(--radius); box-shadow:var(--shadow-lg); background:#d7dbde; }
.book-gallery .main img{ width:100%; height:100%; object-fit:cover; }
.book-gallery .thumbs{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:12px; }
.book-gallery .thumbs button{ padding:0; border:2px solid transparent; background:none; cursor:pointer; aspect-ratio:2/3; overflow:hidden; border-radius:8px; }
.book-gallery .thumbs button.active{ border-color:var(--wine); }
.book-gallery .thumbs img{ width:100%; height:100%; object-fit:cover; border-radius:6px; }
.book-meta .kind{ font-size:13px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--wine); }
.book-meta h1{ font-size:clamp(30px,4.2vw,46px); margin:8px 0 12px; }
.book-meta .facts{ font-size:14px; color:var(--muted); margin-bottom:18px; }
.book-meta .facts span{ margin-right:16px; }
.book-price{ display:flex; align-items:center; gap:14px; margin:18px 0; }
.book-price .now{ font-family:var(--display); font-weight:700; font-size:32px; color:var(--heading); }
.book-price .was{ text-decoration:line-through; color:var(--muted); font-size:19px; }
.book-price .badge{ background:var(--sage); color:#fff; font-size:12px; font-weight:700; padding:5px 11px; border-radius:100px; }
.book-actions{ display:flex; gap:14px; flex-wrap:wrap; margin:22px 0; }
.book-desc{ font-size:18px; line-height:1.8; color:var(--ink); margin-top:26px; }
.book-cats{ margin-top:22px; }
.book-cats a{ display:inline-block; background:var(--ivory2); padding:6px 14px; margin:0 8px 8px 0; border-radius:100px;
  font-size:12px; font-weight:600; letter-spacing:.03em; color:var(--ink); }
.book-cats a:hover{ background:var(--plum); color:#fff; }

/* Lightbox */
.blightbox{ position:fixed; inset:0; background:rgba(20,24,28,.92); display:none; align-items:center; justify-content:center; z-index:9999; padding:30px; }
.blightbox.open{ display:flex; }
.blightbox img{ max-width:90vw; max-height:90vh; object-fit:contain; border-radius:10px; box-shadow:var(--shadow-lg); }
.blightbox .close{ position:absolute; top:20px; right:26px; color:#fff; font-size:34px; cursor:pointer; background:none; border:none; }

/* ==========================================================================
   10. Contact form
   ========================================================================== */
.contact-wrap{ max-width:640px; margin:0 auto; }
.contact-form{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:32px; box-shadow:var(--shadow); }
.contact-form .field{ margin-bottom:18px; }
.contact-form label{ display:block; font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin-bottom:7px; }
.contact-form input, .contact-form textarea{ width:100%; border:1px solid var(--line); background:var(--ivory); padding:13px 15px; border-radius:10px; font-family:var(--sans); font-size:16px; color:var(--ink); }
.contact-form textarea{ min-height:150px; resize:vertical; }
.contact-form input:focus, .contact-form textarea:focus{ border-color:var(--wine); outline:none; background:#fff; }
.contact-hp{ position:absolute; left:-9999px; }
.form-notice{ padding:14px 18px; margin-bottom:22px; border-radius:10px; font-size:16px; }
.form-notice.ok{ background:#e6f4ef; border:1px solid var(--sage); color:#1f5c49; }
.form-notice.err{ background:#fbe9e9; border:1px solid #c0564f; color:#7a2b27; }

/* ==========================================================================
   11. Page / content
   ========================================================================== */
.page-hero{ padding:56px 0 26px; text-align:center; }
.page-hero .eyebrow{ display:inline-block; margin-bottom:10px; }
.page-hero h1{ font-size:clamp(32px,4.6vw,52px); }
.entry{ padding:44px 0 74px; }
.entry .content-narrow{ max-width:740px; margin:0 auto; }
.entry .content-narrow p{ font-size:18px; line-height:1.8; }
.entry img{ margin:24px 0; border-radius:10px; }
.pagination{ display:flex; gap:10px; justify-content:center; margin-top:40px; flex-wrap:wrap; }
.pagination .page-numbers{ border:1px solid var(--line); padding:9px 15px; border-radius:10px; color:var(--ink); background:var(--surface); }
.pagination .current{ background:var(--plum); color:#fff; border-color:var(--plum); }

/* ==========================================================================
   12. CTA band
   ========================================================================== */
.cta-band{ background:var(--ivory2); text-align:center; }
.cta-band .container{ padding:70px 28px; }
.cta-band h2{ font-size:clamp(28px,3.6vw,42px); margin:6px 0 12px; }
.cta-band p{ color:var(--muted); max-width:34em; margin:0 auto 24px; }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer{ background:var(--footer-bg); color:#aeb4ba; }
.site-footer .container{ display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:40px; padding:56px 28px 30px; }
.site-footer h4{ color:#fff; font-size:13px; text-transform:uppercase; letter-spacing:.1em; margin:0 0 16px; font-family:var(--sans); font-weight:700; }
.site-footer a{ color:#aeb4ba; }
.site-footer a:hover{ color:#fff; }
.site-footer .fbrand .site-title{ font-family:var(--display); font-size:24px; font-weight:700; color:#fff; margin:0 0 10px; }
.site-footer ul{ list-style:none; margin:0; padding:0; }
.site-footer li{ margin-bottom:8px; font-size:14px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); }
.footer-bottom .container{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding:20px 28px; font-size:13px; }
.agency-credit a{ font-weight:600; color:#fff; border-bottom:1px solid rgba(255,255,255,.35); }

/* ==========================================================================
   14. Responsive
   ========================================================================== */
@media(max-width:900px){
  .hero-pro .container{ grid-template-columns:1fr; gap:40px; }
  .hero-featured{ justify-self:start; }
  .book-list{ grid-template-columns:1fr; }
  .author-hero .container{ grid-template-columns:1fr; gap:30px; justify-items:start; }
  .ah-photo img, .ah-photo .ph{ width:100%; height:auto; aspect-ratio:4/5; }
  .hero .container, .about-author .container, .book-single .top{ grid-template-columns:1fr; }
  .book-grid, .blog-grid, .reviews-grid{ grid-template-columns:1fr 1fr; }
  .site-footer .container{ grid-template-columns:1fr 1fr; }
}
@media(max-width:640px){
  .site-header .container{ position:relative; }
  .main-nav{ display:none; position:absolute; left:0; right:0; top:100%; background:var(--surface); border-bottom:1px solid var(--line); padding:14px 28px; z-index:50; }
  .main-nav.open{ display:block; }
  .main-nav ul{ flex-direction:column; gap:6px; }
  .menu-toggle{ display:inline-block; }
  .book-grid, .blog-grid, .reviews-grid, .site-footer .container{ grid-template-columns:1fr; }
  .hero-pro .trust{ gap:22px; }
  .book-hcard{ grid-template-columns:84px 1fr; gap:14px; padding:14px; }
  .book-hcard .cover{ width:84px; }
  .hc-body h3{ font-size:17px; }
  .post-row{ grid-template-columns:1fr; gap:6px; }
}
