/* =============================================================
   Tim Murphy — One Man Crime Spree
   Public theme. Faithful re-creation of the reference design
   (warm editorial / publisher aesthetic) with premium polish.
   Palette + type sampled directly from the reference site.
   ============================================================= */

:root {
    --paper: #ffffff;
    --cream: #f6f4ef;
    --beige: #dbd7c9;
    --beige-soft: #e7e3d8;
    --coral: #d54e4e;
    --coral-dark: #c23d3d;
    --orange: #d66526;
    --teal: #336769;
    --teal-dark: #2b585a;
    --teal-light: #699d9d;
    --ink: #181818;
    --heading: #2c2c2c;
    --text: #7e7e7e;
    --text-soft: #9a9a9a;
    --line: #e7e3db;
    --white: #ffffff;

    --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
    --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --wrap: 1200px;
    --radius: 4px;
    --shadow-sm: 0 6px 22px rgba(24, 24, 24, .07);
    --shadow: 0 22px 60px rgba(24, 24, 24, .12);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.85;
    color: var(--text);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--heading);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 .5em;
    letter-spacing: .2px;
}

p { margin: 0 0 1.1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; position: relative; }
.section.tight { padding: 72px 0; }
.section.cream { background: var(--cream); }
.section.beige { background: var(--beige-soft); }

/* ---- eyebrow / section heads ---- */
.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 3.6px;
    text-transform: uppercase;
    color: var(--coral);
    margin: 0 0 18px;
}
.eyebrow.on-teal { color: #f0c9b6; }

.sec-head { margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 0; }
.sec-head.center { text-align: center; }
.sec-head.center .eyebrow { display: block; }

/* ---- buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    padding: 17px 34px;
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
    border-radius: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
    z-index: 0;
}
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .4s var(--ease);
    z-index: -1;
}
.btn:hover { color: #fff; border-color: var(--coral); transform: translateY(-2px); }
.btn:hover::after { transform: scaleX(1); }

.btn-coral { background: var(--coral); border-color: var(--coral); }
.btn-coral::after { background: var(--ink); }
.btn-coral:hover { border-color: var(--ink); }

.btn-teal { background: var(--teal); border-color: var(--teal); }
.btn-teal::after { background: var(--ink); }
.btn-teal:hover { border-color: var(--ink); }

.btn-outline { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn-outline::after { background: var(--ink); }
.btn-outline:hover { color: #fff; }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-light::after { background: #fff; }
.btn-ghost-light:hover { color: var(--teal); border-color: #fff; }

/* =============================================================
   Preloader
   ============================================================= */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 22px;
    transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
#preloader.done { opacity: 0; visibility: hidden; }
.pl-mark {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 34px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--heading);
    opacity: 0;
    animation: plIn .8s var(--ease) forwards;
}
.pl-mark span { color: var(--coral); }
.pl-bar { width: 160px; height: 2px; background: var(--beige); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 40%; background: var(--coral); animation: plSlide 1.1s var(--ease) infinite; }
@keyframes plIn { to { opacity: 1; } }
@keyframes plSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* =============================================================
   Header
   ============================================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    padding: 22px 0;
    transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    padding: 12px 0;
    box-shadow: 0 8px 30px rgba(24, 24, 24, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; transition: width .4s var(--ease), height .4s var(--ease); }
.site-header.scrolled .site-logo img { width: 44px; height: 44px; }
.site-logo .txt { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: 2px; text-transform: uppercase; color: var(--heading); }
.site-logo .txt span { color: var(--coral); }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a.nav-link {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--heading);
    position: relative;
    padding: 6px 0;
}
.main-nav a.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1.5px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .35s var(--ease);
}
.main-nav a.nav-link:hover, .main-nav a.nav-link.active { color: var(--coral); }
.main-nav a.nav-link.active::after, .main-nav a.nav-link:hover::after { transform: scaleX(1); transform-origin: left center; }

.header-tools { display: flex; align-items: center; gap: 20px; }
.header-tools a { color: var(--heading); display: inline-flex; position: relative; }
.header-tools a:hover { color: var(--coral); }
.header-tools svg { width: 20px; height: 20px; }
.cart-count {
    position: absolute;
    top: -8px; right: -10px;
    background: var(--coral);
    color: #fff;
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    min-width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--heading); }
.nav-toggle svg { width: 26px; height: 26px; }

body { padding-top: 0; }
main { display: block; }

/* =============================================================
   Page header banner (interior pages)
   ============================================================= */
.page-banner {
    background: var(--beige);
    padding: 150px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: "";
    position: absolute;
    right: -80px; top: -60px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
}
.page-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; }
.page-banner h1 { font-size: clamp(30px, 4.4vw, 50px); margin: 0; }
.breadcrumb { font-family: var(--sans); font-size: 13px; letter-spacing: 1px; color: var(--text); text-transform: capitalize; }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb .sep { margin: 0 8px; color: var(--coral); }

/* =============================================================
   Hero (home)
   ============================================================= */
.hero {
    padding: 170px 0 110px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}
.hero .deco { position: absolute; border-radius: 50%; pointer-events: none; }
.hero .deco.c1 { width: 220px; height: 220px; background: rgba(105, 157, 157, .10); top: 22%; right: 44%; }
.hero .deco.c2 { width: 120px; height: 120px; background: rgba(213, 78, 78, .07); bottom: 12%; left: 8%; }
.hero .deco.c3 { width: 90px; height: 90px; border: 1px solid rgba(44,44,44,.08); top: 30%; left: 40%; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; position: relative; }
.hero-copy .eyebrow { font-size: 14px; letter-spacing: 3.6px; }
.hero-name {
    font-size: clamp(48px, 7vw, 84px);
    line-height: .98;
    text-transform: uppercase;
    color: var(--heading);
    margin: 0 0 26px;
    letter-spacing: 1px;
}
.hero-lead { font-size: 15.5px; color: var(--text); max-width: 500px; margin-bottom: 26px; }
.hero-lead p { margin-bottom: .9rem; }

.hero-social { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.hero-social a {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--heading);
    position: relative;
}
.hero-social a:not(:last-child)::after { content: "·"; position: absolute; right: -13px; color: var(--coral); }
.hero-social a:hover { color: var(--coral); }

.hero-figure { position: relative; justify-self: center; }
.hero-figure .frame {
    width: min(420px, 92%);
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    border-radius: 210px 210px 12px 12px;
    overflow: hidden;
    border: 10px solid var(--teal);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}
.hero-figure .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .badge {
    position: absolute;
    bottom: 24px; left: -26px;
    background: var(--coral);
    color: #fff;
    padding: 16px 20px;
    text-align: center;
    z-index: 3;
    box-shadow: var(--shadow-sm);
}
.hero-figure .badge b { font-family: var(--serif); font-size: 30px; display: block; line-height: 1; }
.hero-figure .badge span { font-family: var(--sans); font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; }

/* =============================================================
   Teal quote band (Secret Seven)
   ============================================================= */
.band-teal { background: var(--teal); color: rgba(255, 255, 255, .9); position: relative; overflow: hidden; }
.band-teal::before {
    content: "";
    position: absolute;
    left: -90px; bottom: -90px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}
.quote-grid { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: center; position: relative; }
.pub-card {
    background: var(--cream);
    border: 8px solid var(--coral);
    padding: 46px 24px;
    text-align: center;
}
.pub-card b { font-family: var(--serif); font-size: 74px; line-height: 1; color: var(--heading); display: block; }
.pub-card span { font-family: var(--sans); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--heading); font-weight: 600; }
.quote-body .qtext p { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(18px, 2vw, 24px); color: #fff; line-height: 1.62; margin-bottom: 1.1rem; }
.quote-body .qtext em { color: #fff; }
.quote-body .sig-name { font-family: var(--sans); font-weight: 600; letter-spacing: 1px; color: #fff; margin-bottom: 6px; }
.quote-body .sig-img { max-width: 190px; opacity: .95; filter: brightness(0) invert(1); }

/* =============================================================
   About + stats
   ============================================================= */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.about-figure { position: relative; }
.about-figure img { border-radius: var(--radius); box-shadow: var(--shadow); position: relative; z-index: 2; width: 100%; }
.about-figure::before {
    content: "";
    position: absolute;
    left: -22px; top: -22px;
    width: 62%; height: 62%;
    background: var(--beige);
    z-index: 1;
}
.about-copy h2 { font-size: clamp(28px, 3.4vw, 42px); }
.about-copy .body { margin-bottom: 30px; }
.career-tags { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--coral); margin: -6px 0 22px; }

/* category filter pills */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px; }
.filter-bar a {
    font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--heading); border: 1px solid var(--line); padding: 9px 20px; border-radius: 30px;
    transition: all .3s var(--ease);
}
.filter-bar a:hover, .filter-bar a.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.empty-state { text-align: center; padding: 40px 0; }
.empty-state h2 { color: var(--text-soft); font-weight: 400; }

.stats { display: flex; gap: 44px; flex-wrap: wrap; margin: 30px 0 34px; }
.stat-box .num { font-family: var(--serif); font-weight: 700; font-size: 46px; color: var(--coral); line-height: 1; }
.stat-box .lbl { font-family: var(--sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--heading); margin-top: 8px; }

/* =============================================================
   Book showcase (teal band)
   ============================================================= */
.book-band { background: var(--teal); color: #fff; position: relative; overflow: hidden; }
.book-band .deco { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255,255,255,.04); right: -100px; top: -120px; }
.book-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 64px; align-items: center; position: relative; }
.book-pitch h2 { color: #fff; font-size: clamp(30px, 4vw, 48px); margin-bottom: 22px; }
.book-pitch .book-title-lg { color: var(--coral); font-family: var(--serif); font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 24px; }
.book-pitch .eyebrow { color: #f0c9b6; }
.book-pitch .lead { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 27px); color: #fff; line-height: 1.5; }
.book-card {
    background: #fff;
    color: var(--heading);
    padding: 26px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    align-items: center;
}
.book-card .cover { box-shadow: var(--shadow-sm); }
.book-card .bc-title { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; }
.book-card .bc-author { font-family: var(--sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.book-card .bc-price { font-family: var(--serif); font-size: 22px; color: var(--coral); font-weight: 700; margin-bottom: 18px; }
.book-card .bc-price small { font-family: var(--sans); font-size: 12px; color: var(--text-soft); font-weight: 400; letter-spacing: 0; }

/* =============================================================
   Reviews
   ============================================================= */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.review-card {
    background: #fff;
    border: 1px solid var(--line);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.review-card .stars { color: var(--coral); letter-spacing: 3px; font-size: 14px; margin-bottom: 16px; }
.review-card p { font-style: italic; color: var(--text); font-size: 15.5px; line-height: 1.75; margin-bottom: 22px; }
.review-card .rv-by { display: flex; align-items: center; gap: 14px; }
.review-card .rv-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--beige); object-fit: cover; display: grid; place-items: center; font-family: var(--serif); color: var(--teal); font-weight: 700; }
.review-card .rv-name { font-family: var(--serif); font-weight: 700; color: var(--coral); font-size: 16px; }
.review-card .rv-role { font-family: var(--sans); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-soft); }

/* =============================================================
   Blog grid / cards
   ============================================================= */
.blog-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.blog-head-row .sec-head { margin-bottom: 0; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.post-card { background: #fff; display: flex; flex-direction: column; }
.post-card .thumb {
    display: block;
    aspect-ratio: 4 / 5;
    background: var(--beige) center/cover no-repeat;
    overflow: hidden;
    position: relative;
}
.post-card .thumb::after { content: ""; position: absolute; inset: 0; background: rgba(24,24,24,.06); opacity: 0; transition: opacity .4s var(--ease); }
.post-card:hover .thumb::after { opacity: 1; }
.pc-body { padding: 24px 4px 8px; }
.pc-body .cat { font-family: var(--sans); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }
.pc-body h3 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; }
.pc-body h3 a { color: var(--heading); }
.pc-body h3 a:hover { color: var(--coral); }
.pc-body .excerpt { font-size: 14.5px; color: var(--text); margin-bottom: 18px; }
.pc-body .meta { display: flex; gap: 16px; font-family: var(--sans); font-size: 12px; color: var(--text-soft); margin-bottom: 16px; }
.read-more {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--coral);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    transition: background .35s var(--ease), transform .35s var(--ease);
}
.read-more:hover { background: var(--ink); color: #fff; transform: translateX(3px); }

/* =============================================================
   Get in touch / newsletter bands
   ============================================================= */
.contact-cta { text-align: center; }
.contact-cta h2 { font-size: clamp(26px, 3.4vw, 40px); max-width: 760px; margin: 0 auto 20px; }
.contact-cta .email { font-family: var(--serif); font-size: 22px; color: var(--coral); }

.newsletter-band { background: var(--ink); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter-inner h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); }
.newsletter-inner .eyebrow { color: var(--coral); }
.news-form { display: flex; gap: 0; max-width: 460px; margin-left: auto; width: 100%; }
.news-form input {
    flex: 1;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    padding: 16px 18px;
    font-family: var(--sans);
    font-size: 14px;
}
.news-form input::placeholder { color: rgba(255, 255, 255, .5); }
.news-form button { border: 0; }

/* =============================================================
   Contact page
   ============================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info h2 { font-size: clamp(26px, 3.2vw, 38px); }
.contact-info .email { font-size: 17px; color: var(--text); }
.contact-info .email:hover { color: var(--coral); }
.contact-info .ci-row { margin-top: 22px; }
.contact-info .ci-row .lbl { font-family: var(--sans); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--coral); margin-bottom: 4px; }

.contact-form { display: grid; gap: 18px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    padding: 16px 18px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--heading);
    border-radius: var(--radius);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(213, 78, 78, .1); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.form-note { padding: 14px 18px; border-radius: var(--radius); font-family: var(--sans); font-size: 14px; margin-bottom: 8px; }
.form-note.ok { background: #eaf5ee; color: #256b3b; border: 1px solid #bfe3cb; }
.form-note.err { background: #fdecec; color: #a33; border: 1px solid #f3c9c9; }

/* =============================================================
   Product (book) page
   ============================================================= */
.product-grid { display: grid; grid-template-columns: .8fr 1fr; gap: 64px; align-items: start; }
.product-media { position: relative; }
.product-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-media::before { content: ""; position: absolute; inset: auto -18px -18px auto; width: 60%; height: 60%; background: var(--beige); z-index: -1; }
.product-info .eyebrow { margin-bottom: 12px; }
.product-title { font-size: clamp(30px, 4vw, 46px); margin: 0 0 8px; }
.product-sub { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--text); margin-bottom: 18px; }
.product-price { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--coral); margin-bottom: 22px; }
.product-blurb { color: var(--text); margin-bottom: 28px; }
.format-label { font-family: var(--sans); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--heading); font-weight: 600; margin-bottom: 12px; }
.format-select { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.format-opt {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    background: #fff; border: 1px solid var(--line); padding: 12px 22px; cursor: pointer;
    font-family: var(--sans); transition: all .3s var(--ease); min-width: 120px;
}
.format-opt span { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--heading); }
.format-opt strong { font-family: var(--serif); color: var(--coral); font-size: 18px; }
.format-opt:hover { border-color: var(--coral); }
.format-opt.active { border-color: var(--ink); background: var(--ink); }
.format-opt.active span, .format-opt.active strong { color: #fff; }
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; gap: 40px; } .product-media { max-width: 380px; } }

/* =============================================================
   Single post
   ============================================================= */
.post-hero { background: var(--beige); padding: 150px 0 60px; }
.post-hero .eyebrow { color: var(--coral); }
.post-hero h1 { font-size: clamp(30px, 4.4vw, 52px); max-width: 900px; }
.post-hero .p-meta { font-family: var(--sans); font-size: 13px; color: var(--text); display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.post-feature { max-width: 900px; margin: -40px auto 0; padding: 0 24px; position: relative; z-index: 2; }
.post-feature img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.post-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px 20px;
    font-size: 17px;
    line-height: 1.9;
    color: #45464a;
}
.post-body h2, .post-body h3 { color: var(--heading); margin: 1.8em 0 .6em; }
.post-body h2 { font-size: 28px; }
.post-body h3 { font-size: 22px; }
.post-body p { margin-bottom: 1.4rem; }
.post-body img { border-radius: var(--radius); margin: 1.6rem 0; }
.post-body a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote {
    border-left: 3px solid var(--coral);
    margin: 1.6rem 0;
    padding: 6px 0 6px 26px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 21px;
    color: var(--heading);
}
.post-share { max-width: 760px; margin: 20px auto 0; padding: 0 24px; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--paper); padding: 70px 0 34px; border-top: 1px solid var(--line); }
.footer-top { text-align: center; }
.footer-logo { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin: 0 auto 22px; }
.footer-logo-txt { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: 3px; text-transform: uppercase; color: var(--heading); margin-bottom: 22px; }
.footer-logo-txt span { color: var(--coral); }
.footer-nav { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.footer-nav a { font-family: var(--sans); font-size: 13px; letter-spacing: .6px; color: var(--heading); }
.footer-nav a:hover { color: var(--coral); }
.footer-social { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-social a { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--coral); position: relative; padding: 0 4px; }
.footer-social a:not(:last-child)::after { content: "•"; position: absolute; right: -8px; color: var(--text-soft); }
.footer-social a:hover { color: var(--heading); }
.footer-divider { height: 1px; background: var(--line); margin: 0 0 22px; }
.footer-bottom { text-align: center; font-family: var(--sans); font-size: 13px; color: var(--text-soft); }
.footer-bottom a { color: var(--coral); }

/* =============================================================
   Scroll reveal
   ============================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
}

/* =============================================================
   Mobile nav drawer
   ============================================================= */
.nav-scrim { display: none; position: fixed; inset: 0; background: rgba(24,24,24,.5); z-index: 890; opacity: 0; transition: opacity .3s var(--ease); }
.nav-scrim.show { display: block; opacity: 1; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
    .section { padding: 80px 0; }
    .hero-grid { gap: 40px; }
    .quote-grid { grid-template-columns: 240px 1fr; gap: 40px; }
    .about-grid { gap: 44px; }
    .book-grid { gap: 44px; }
}

@media (max-width: 860px) {
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(320px, 84vw);
        background: var(--cream);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        z-index: 895;
        box-shadow: -20px 0 60px rgba(24,24,24,.15);
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav a.nav-link { font-size: 16px; }
    .nav-toggle { display: inline-flex; order: 3; }
    .header-tools { gap: 16px; }

    .hero { padding: 140px 0 80px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-figure { order: -1; margin-bottom: 20px; }
    .hero-figure .badge { left: 0; }
    .hero-lead { max-width: none; }

    .quote-grid { grid-template-columns: 1fr; gap: 34px; }
    .pub-card { max-width: 260px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-figure { max-width: 440px; }
    .book-grid { grid-template-columns: 1fr; }
    .book-card { max-width: 460px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .post-grid, .post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .newsletter-inner { grid-template-columns: 1fr; }
    .news-form { margin-left: 0; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
    .wrap { padding: 0 18px; }
    .section { padding: 64px 0; }
    .hero-name { font-size: clamp(42px, 13vw, 60px); }
    .stats { gap: 28px; }
    .post-grid, .post-grid.cols-2 { grid-template-columns: 1fr; }
    .book-card { grid-template-columns: 120px 1fr; gap: 16px; padding: 18px; }
    .page-banner { padding: 130px 0 44px; }
    .btn { padding: 15px 26px; }
}
