/*
 Theme Name:   Fart Philosophy
 Theme URI:    https://fart-philosophy.com
 Description:  Sales site for "Silent but Wise: The Subtle Art of Fart Philosophy" by Tim Hendy. Child theme of Unify.
 Author:       Unify Studio for Tim Hendy
 Author URI:   https://unify-studio.co.uk
 Template:     unify
 Version:      1.2.0
 Requires PHP: 7.4
 License:      GNU General Public License v2 or later
 Text Domain:  unify-child
*/

/* ══════════════════════════════════════════════════════
   TOKENS — the cover is black with white Garamond, so the
   site is too: "serious philosophy", until you read it.
   ══════════════════════════════════════════════════════ */

:root {
    --fp-ink:          #14110f;
    --fp-ink-2:        #1e1a17;
    --fp-ink-3:        #2a2521;
    --fp-paper:        #f7f3ec;
    --fp-paper-2:      #efe8dc;
    --fp-text:         #1e1a17;
    --fp-muted:        #675f55;
    --fp-light:        #f7f3ec;
    --fp-light-muted:  #b9b0a3;
    --fp-line:         rgba(20, 17, 15, 0.12);
    --fp-line-light:   rgba(247, 243, 236, 0.16);
    --fp-gold:         #c8a96b;
    --fp-amazon:       #ffd814;
    --fp-amazon-hover: #f7ca00;
    --fp-amazon-text:  #0f1111;

    --fp-serif: 'EB Garamond', Garamond, 'Times New Roman', serif;
    --fp-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --fp-promo-h: 36px;

    /* Unify overrides */
    --unify-primary:        var(--fp-ink);
    --unify-secondary:      var(--fp-ink-3);
    --unify-accent:         var(--fp-gold);
    --unify-bg:             var(--fp-paper);
    --unify-bg-alt:         var(--fp-paper-2);
    --unify-text:           var(--fp-text);
    --unify-text-muted:     var(--fp-muted);
    --unify-border:         var(--fp-line);
    --unify-font-heading:   var(--fp-serif);
    --unify-font-body:      var(--fp-sans);
    --unify-nav-height:     68px;
    --unify-nav-bg:         var(--fp-ink);
    --unify-nav-color:      var(--fp-light);
    --unify-radius-md:      6px;
    --unify-max-width:      1180px;
    --unify-max-width-text: 720px;
}

body.fp {
    background: var(--fp-paper);
    color: var(--fp-text);
    font-size: 1.0625rem;
}

body.fp h1, body.fp h2, body.fp h3 {
    font-family: var(--fp-serif);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: inherit;
    text-wrap: balance;
}

body.fp h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; }
body.fp h3 { font-size: 1.5rem; line-height: 1.2; }
body.fp p  { color: inherit; }
body.fp a:hover { opacity: 1; }

.fp-center { text-align: center; }
.fp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fp-skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 8px 14px; background: #fff; color: #000; z-index: 9999; }

/* Small caps label, as on the cover ("A BOOK OF FART PHILOSOPHY") */
.fp-eyebrow,
.fp-kicker,
body.fp h2.fp-eyebrow {
    display: block;
    font-family: var(--fp-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fp-muted);
    margin: 0 0 1rem;
}
body.fp .fp-eyebrow--light, .fp-kicker { color: var(--fp-light-muted); }

.fp-big { font-family: var(--fp-serif); font-size: 1.6rem; font-style: italic; line-height: 1.3; margin-bottom: 1rem; }


/* ══════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════ */

.fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    font-family: var(--fp-sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
    padding: 0.95em 1.5em;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.fp-btn:hover { transform: translateY(-1px); }
.fp-btn:active { transform: translateY(0); }

.fp-btn--amazon { background: var(--fp-amazon); color: var(--fp-amazon-text); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.fp-btn--amazon:hover { background: var(--fp-amazon-hover); color: var(--fp-amazon-text); box-shadow: 0 6px 18px rgba(255, 216, 20, .25); }

.fp-btn--ink { background: var(--fp-ink); color: var(--fp-light); }
.fp-btn--ink:hover { background: var(--fp-ink-3); color: var(--fp-light); }

.fp-btn--light { background: var(--fp-light); color: var(--fp-ink); }
.fp-btn--light:hover { background: #fff; color: var(--fp-ink); }

.fp-btn--ghost-light { background: transparent; color: var(--fp-light); border-color: var(--fp-line-light); }
.fp-btn--ghost-light:hover { border-color: var(--fp-light); color: var(--fp-light); }

.fp-btn--sm { font-size: 0.85rem; padding: 0.7em 1.15em; }
.fp-btn--lg { font-size: 1rem; padding: 1.05em 1.7em; }
.fp-btn--block { display: flex; width: 100%; }
.fp-btn__price { font-weight: 700; opacity: .8; }
.fp-btn__price::before { content: '·'; margin-right: .5em; opacity: .5; }

.fp-link {
    font-family: var(--fp-sans);
    font-weight: 600;
    font-size: .95rem;
    color: var(--fp-ink);
    border-bottom: 1.5px solid currentColor;
    padding-bottom: 2px;
}
.fp-link::after { content: ' →'; }
.fp-link--light { color: var(--fp-light); }


/* ══════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════ */

/* Sticky (in the page flow) rather than fixed, so the content always starts
   exactly under the header, whatever its height, promo bar or WP admin bar. */
.fp-nav {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    height: auto;
    border-bottom: 1px solid var(--fp-line-light);
}
.fp-nav .unify-nav__inner { height: var(--unify-nav-height); }
body.fp .unify-main { padding-top: 0; }
.fp-mobile-nav { top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--unify-nav-height) + 1px); }
.fp-nav.has-promo ~ .fp-mobile-nav { top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--unify-nav-height) + var(--fp-promo-h) + 1px); }
@media (max-width: 600px) { body.admin-bar .fp-nav { top: 0; } }

.fp-promo {
    height: var(--fp-promo-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fp-amazon);
    padding-inline: 16px;
    overflow: hidden;
}
.fp-promo a {
    color: var(--fp-amazon-text);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fp-wordmark { flex-direction: column; align-items: flex-start; line-height: 1; gap: 4px; }
.fp-wordmark__small { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--fp-light-muted); font-weight: 600; }
.fp-wordmark__big { font-family: var(--fp-serif); font-size: 1.45rem; color: var(--fp-light); letter-spacing: .005em; }

.fp-nav__primary { margin-left: auto; }
.fp-nav .unify-nav__menu { gap: 1.75rem; }
.fp-nav .unify-nav__menu a { color: var(--fp-light); font-size: .9rem; opacity: .85; }
.fp-nav .unify-nav__menu a:hover { opacity: 1; }
.fp-nav .custom-logo { height: var(--unify-nav-logo-height); width: auto; }

.fp-mobile-nav { background: var(--fp-ink); }
.fp-mobile-nav .unify-nav__mobile-menu a { color: var(--fp-light); font-family: var(--fp-serif); }
.fp-mobile-nav__buy { margin-top: 2rem; }

@media (max-width: 900px) {
    .fp-nav__primary { display: none; }
    .unify-nav__burger { display: flex; }
    .fp-nav__cta { margin-left: auto; }
}
@media (max-width: 420px) {
    .fp-wordmark__big { font-size: 1.2rem; }
    .fp-nav__cta .fp-btn { padding: .65em .9em; font-size: .8rem; }
}


/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */

.fp-hero {
    background:
        radial-gradient(60% 60% at 75% 45%, rgba(200, 169, 107, .10), transparent 70%),
        var(--fp-ink);
    color: var(--fp-light);
    padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem);
    overflow: hidden;
}
.fp-hero__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.fp-hero__title {
    font-size: clamp(3rem, 7.5vw, 5.6rem) !important;
    line-height: .98 !important;
    margin: 0 0 1.5rem;
    font-weight: 600 !important;
}
.fp-hero__subtitle {
    display: block;
    font-weight: 400;
    font-size: .48em;
    line-height: 1.15;
    margin-top: .45em;
    padding-top: .45em;
    border-top: 1px solid var(--fp-line-light);
    color: #e9e2d6;
    max-width: 16em;
}
.fp-hero__lede {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #d9d1c4;
    max-width: 34em;
    margin-bottom: 1.5rem;
}
.fp-hero__lede strong { color: var(--fp-light); }
.fp-hero__buy { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1.25rem; }
.fp-hero__ticks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.25rem;
    font-size: .85rem;
    color: var(--fp-light-muted);
}
.fp-hero__ticks li { margin: 0; }
.fp-hero__ticks li::before { content: '✓'; color: var(--fp-gold); margin-right: .45em; font-weight: 700; }

.fp-rating { display: inline-flex; align-items: center; gap: .5em; font-size: .92rem; color: inherit; }
.fp-rating__stars { color: #ffa41c; letter-spacing: .08em; font-size: 1rem; }
.fp-hero .fp-rating { color: #d9d1c4; }
.fp-hero .fp-rating strong { color: var(--fp-light); }

/* Book with spine shading and a soft shadow */
.fp-hero__book { position: relative; display: flex; justify-content: center; }
.fp-book3d {
    position: relative;
    width: min(340px, 72vw);
    transform: perspective(1400px) rotateY(-14deg) rotateX(2deg);
    transform-origin: left center;
    transition: transform .5s ease;
    box-shadow:
        24px 30px 50px rgba(0, 0, 0, .55),
        2px 2px 0 rgba(255,255,255,.05);
    border-radius: 2px 5px 5px 2px;
}
.fp-book3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.12) 0, rgba(255,255,255,0) 3%, rgba(0,0,0,.35) 4.5%, rgba(255,255,255,.04) 7%, transparent 12%);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}
.fp-book3d::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: inherit;
    pointer-events: none;
}
.fp-hero__book:hover .fp-book3d { transform: perspective(1400px) rotateY(-6deg) rotateX(1deg); }
.fp-book3d__cover { width: 100%; height: auto; border-radius: inherit; }

.fp-stamp {
    position: absolute;
    right: max(0px, calc(50% - 230px));
    top: 4%;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--fp-amazon);
    color: var(--fp-amazon-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.15;
    transform: rotate(12deg);
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
    z-index: 2;
}
.fp-stamp b { font-family: var(--fp-serif); font-size: 2.3rem; letter-spacing: 0; line-height: .9; }

@media (max-width: 860px) {
    .fp-hero__inner { grid-template-columns: 1fr; }
    .fp-hero__book { order: -1; }
    .fp-hero { padding-block: 1.75rem 3rem; }
    .fp-book3d { width: min(170px, 44vw); transform: none; }
    .fp-hero__title { font-size: clamp(2.6rem, 12vw, 3.4rem) !important; margin-bottom: 1rem; }
    .fp-hero__lede { font-size: 1.05rem; }
    .fp-hero__book:hover .fp-book3d { transform: none; }
    .fp-stamp { width: 76px; height: 76px; font-size: .52rem; right: calc(50% - 135px); }
    .fp-stamp b { font-size: 1.5rem; }
    .fp-hero__title { text-align: left; }
    .fp-hero__buy .fp-btn { flex: 1 1 100%; }
}


/* ══════════════════════════════════════════════════════
   ORACLE (saying shuffler)
   ══════════════════════════════════════════════════════ */

.fp-oracle {
    background: var(--fp-ink-2);
    color: var(--fp-light);
    padding-block: clamp(3.5rem, 8vw, 6rem);
    border-top: 1px solid var(--fp-line-light);
}
.fp-oracle__inner { text-align: center; max-width: 900px; }
.fp-oracle__card { margin: 0 auto; padding: 0; max-width: 780px; min-height: 15rem; display: flex; flex-direction: column; justify-content: center; }
.fp-oracle__num { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--fp-gold); font-weight: 600; }
.fp-oracle__saying {
    border: 0;
    padding: 0;
    margin: 1rem 0 1.25rem;
    font-family: var(--fp-serif);
    font-style: normal;
    font-size: clamp(2rem, 5.2vw, 3.6rem);
    line-height: 1.1;
    color: var(--fp-light);
    text-wrap: balance;
}
.fp-oracle__saying::before { content: '“'; }
.fp-oracle__saying::after  { content: '”'; }
.fp-oracle__lesson { font-family: var(--fp-serif); font-style: italic; font-size: 1.3rem; color: var(--fp-light-muted); max-width: 32em; margin-inline: auto; }
.fp-oracle__card.is-in .fp-oracle__saying,
.fp-oracle__card.is-in .fp-oracle__lesson { animation: fp-waft .55s ease both; }
.fp-oracle__card.is-in .fp-oracle__lesson { animation-delay: .08s; }
@keyframes fp-waft { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.fp-oracle__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.fp-oracle__note { margin-top: 1.5rem; font-size: .9rem; color: var(--fp-light-muted); }
.fp-oracle__note a { color: var(--fp-light); border-bottom: 1px solid var(--fp-line-light); }


/* ══════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════ */

.fp-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.fp-section--tight { padding-block: 2rem 0; }
.fp-section--alt { background: var(--fp-paper-2); }
.fp-section--dark { background: var(--fp-ink); color: var(--fp-light); }
.fp-section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); }
.fp-section__head h2 { margin-bottom: .5rem; }
.fp-section__intro { color: var(--fp-muted); font-size: 1.1rem; margin-top: .75rem; }
.fp-section--dark .fp-section__intro { color: var(--fp-light-muted); }

/* What's inside */
.fp-inside__grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.fp-inside__copy h2 { margin-bottom: 1rem; }
.fp-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.fp-list li { position: relative; padding: .7rem 0 .7rem 2rem; border-top: 1px solid var(--fp-line); margin: 0; }
.fp-list li:last-child { border-bottom: 1px solid var(--fp-line); }
.fp-list li::before { content: '💨'; position: absolute; left: 0; top: .7rem; font-size: 1rem; }
.fp-inside__copy .fp-btn { margin-top: 1rem; }

.fp-facts { background: #fff; border: 1px solid var(--fp-line); border-radius: 14px; padding: 1.75rem; position: sticky; top: calc(var(--unify-nav-height) + var(--fp-promo-h) + 1.5rem); }
.fp-facts__title { font-size: 1.35rem !important; margin-bottom: 1rem; }
.fp-facts dl { margin: 0; }
.fp-facts dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--fp-line); font-size: .93rem; }
.fp-facts dt { color: var(--fp-muted); }
.fp-facts dd { margin: 0; font-weight: 500; }

@media (max-width: 860px) {
    .fp-inside__grid { grid-template-columns: 1fr; }
    .fp-facts { position: static; }
}

/* Saying cards */
.fp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.25rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.fp-card {
    position: relative;
    background: var(--fp-ink);
    color: var(--fp-light);
    border-radius: 14px;
    padding: 2rem 1.75rem 1.75rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 15rem;
    scroll-margin-top: 140px;
}
.fp-card__num { font-family: var(--fp-serif); color: var(--fp-gold); font-size: 1.1rem; }
.fp-card__saying {
    margin: .5rem 0 1rem;
    padding: 0;
    border: 0;
    font-family: var(--fp-serif);
    font-style: normal;
    font-size: 1.75rem;
    line-height: 1.15;
    color: var(--fp-light);
    flex: 1;
}
.fp-card__lesson { margin: 0; padding-top: 1rem; border-top: 1px solid var(--fp-line-light); font-size: .95rem; color: var(--fp-light-muted); }
.fp-card__share {
    position: absolute; top: 1.25rem; right: 1.25rem;
    background: none; border: 1px solid var(--fp-line-light); color: var(--fp-light-muted);
    border-radius: 999px; padding: .3rem .8rem; font-size: .75rem; cursor: pointer;
}
.fp-card__share:hover { color: var(--fp-light); border-color: var(--fp-light); }
.fp-card--cta { background: var(--fp-amazon); color: var(--fp-amazon-text); justify-content: space-between; }
.fp-card--cta .fp-card__saying { color: var(--fp-amazon-text); }
.fp-card--cta .fp-btn--amazon { background: var(--fp-ink); color: var(--fp-light); align-self: flex-start; }

/* Gifts */
.fp-gifts { list-style: none; padding: 0; margin: 0 0 2.75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--fp-line); border: 1px solid var(--fp-line); border-radius: 14px; overflow: hidden; }
.fp-gifts li { background: var(--fp-paper); padding: 1.75rem; margin: 0; }
.fp-gifts h3 { font-size: 1.4rem !important; margin: .5rem 0 .4rem; }
.fp-gifts p { margin: 0; color: var(--fp-muted); font-size: .95rem; }
.fp-gifts__icon { font-size: 1.6rem; }
@media (max-width: 860px) { .fp-gifts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fp-gifts { grid-template-columns: 1fr; } }

/* Reviews */
.fp-reviews .fp-rating { margin-top: .5rem; color: var(--fp-light-muted); }
.fp-reviews .fp-rating strong { color: var(--fp-light); }
.fp-quotes { columns: 3 280px; column-gap: 1.25rem; margin-bottom: 2.5rem; }
.fp-quote { break-inside: avoid; margin: 0 0 1.25rem; background: var(--fp-ink-2); border: 1px solid var(--fp-line-light); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; }
.fp-quote__stars { color: #ffa41c; letter-spacing: .1em; font-size: .9rem; }
.fp-quote__title { font-family: var(--fp-serif); font-size: 1.35rem; margin: .4rem 0 .5rem; color: var(--fp-light); order: 0; }
.fp-quote blockquote { margin: 0; padding: 0; border: 0; font-style: normal; font-size: 1rem; }
.fp-quote blockquote p { color: #d9d1c4; margin: 0; }

/* Author */
.fp-author__grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; max-width: 980px; }
.fp-author__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: grayscale(1) contrast(1.05); }
@media (max-width: 760px) {
    .fp-author__grid { grid-template-columns: 1fr; text-align: center; }
    .fp-author__photo { max-width: 200px; margin-inline: auto; }
}

/* FAQ */
.fp-faq__list { border-top: 1px solid var(--fp-line); }
.fp-faq__item { border-bottom: 1px solid var(--fp-line); }
.fp-faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 2.5rem 1.25rem 0;
    position: relative;
    font-family: var(--fp-serif);
    font-size: 1.4rem;
    line-height: 1.25;
}
.fp-faq__item summary::-webkit-details-marker { display: none; }
.fp-faq__item summary::after { content: '+'; position: absolute; right: .25rem; top: 1.1rem; font-family: var(--fp-sans); font-size: 1.5rem; font-weight: 300; transition: transform .2s ease; }
.fp-faq__item[open] summary::after { transform: rotate(45deg); }
.fp-faq__item p { margin: 0 0 1.4rem; color: var(--fp-muted); max-width: 60ch; }

/* Signup */
.fp-signup__form { display: flex; gap: .6rem; max-width: 520px; margin: 1.75rem auto .75rem; }
.fp-signup__form input[type="email"] {
    flex: 1;
    min-width: 0;
    font: inherit;
    font-size: 1rem;
    padding: .9em 1.2em;
    border-radius: 999px;
    border: 1.5px solid var(--fp-line);
    background: #fff;
    color: var(--fp-text);
}
.fp-signup__form input[type="email"]:focus { outline: none; border-color: var(--fp-ink); }
.fp-signup__small { font-size: .82rem; color: var(--fp-muted); }
.fp-signup__done { font-family: var(--fp-serif); font-size: 1.5rem; margin-top: 1.5rem; }
.fp-signup__error { color: #a3271a; font-size: .9rem; }
@media (max-width: 520px) { .fp-signup__form { flex-direction: column; } }

/* Final CTA */
.fp-final { background: var(--fp-ink); color: var(--fp-light); padding-block: clamp(3.5rem, 8vw, 6rem); }
.fp-final__inner { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 6vw, 4rem); align-items: center; max-width: 900px; }
.fp-final__cover { width: 100%; height: auto; box-shadow: 16px 20px 40px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.1); }
.fp-final h2 { margin-bottom: .75rem; }
.fp-final p { color: #d9d1c4; font-size: 1.1rem; }
.fp-final--slim { padding-block: 3rem; }
.fp-final--slim .fp-final__inner { grid-template-columns: 120px 1fr; }
@media (max-width: 640px) {
    .fp-final__inner, .fp-final--slim .fp-final__inner { grid-template-columns: 1fr; text-align: center; }
    .fp-final__book { max-width: 160px; margin-inline: auto; }
    .fp-final .fp-hero__buy { justify-content: center; }
}

/* Inner pages */
.fp-page-hero { background: var(--fp-ink); color: var(--fp-light); padding-block: clamp(3rem, 7vw, 5rem); }
.fp-page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); margin-bottom: 1rem; line-height: 1.02; }
.fp-page-hero .fp-kicker em { text-transform: none; letter-spacing: 0; font-family: var(--fp-serif); font-size: 1.05rem; font-weight: 400; }
.fp-prose { font-size: 1.1rem; }
.fp-prose h2 { font-size: 2rem; margin-top: 2rem; }
.fp-prose a { text-decoration: underline; text-underline-offset: 3px; }
.fp-prose img { border-radius: 10px; }


/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */

.fp-footer { background: #0c0a09; padding-block: 3.5rem 2rem; }
.fp-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2.5rem; flex-wrap: wrap; }
.fp-footer__title { font-family: var(--fp-serif); font-size: 2rem; color: var(--fp-light); margin: 0; line-height: 1.1; }
.fp-footer__sub { color: var(--fp-light-muted); font-size: .9rem; margin: .35rem 0 1.25rem; }
.fp-footer__buy { display: flex; gap: .6rem; flex-wrap: wrap; margin: 0 0 .9rem; }
.fp-footer__intl { font-size: .85rem; color: var(--fp-light-muted); margin: 0; }
.fp-footer__intl a { color: var(--fp-light); border-bottom: 1px solid var(--fp-line-light); }
.fp-footer__label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--fp-light-muted); margin: 0 0 .9rem; font-weight: 600; }
.fp-social { gap: .5rem; }
.fp-social a {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--fp-line-light);
    color: var(--fp-light) !important;
}
.fp-social a:hover { background: var(--fp-light); color: var(--fp-ink) !important; }
.fp-social svg { display: block; }
.fp-footer .unify-footer__bar { margin-top: 2.5rem; }
.fp-footer .unify-footer__nav a, .fp-footer .unify-footer__copy { color: rgba(247,243,236,.55); }
.fp-footer .unify-footer__copy a { color: rgba(247,243,236,.75); }


/* ══════════════════════════════════════════════════════
   STICKY MOBILE BUY BAR
   ══════════════════════════════════════════════════════ */

.fp-sticky {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 190;
    background: rgba(20, 17, 15, .97);
    border-top: 1px solid var(--fp-line-light);
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
    transform: translateY(110%);
    transition: transform .3s ease;
    visibility: hidden;
}
.fp-sticky.is-visible { transform: none; visibility: visible; }
.fp-sticky__inner { display: flex; align-items: center; gap: .75rem; max-width: 640px; margin: 0 auto; }
.fp-sticky__inner img { width: 34px; height: 52px; object-fit: cover; border-radius: 2px; flex: none; }
.fp-sticky__text { flex: 1; min-width: 0; line-height: 1.2; color: var(--fp-light); }
.fp-sticky__text strong { display: block; font-family: var(--fp-serif); font-size: 1.1rem; font-weight: 500; }
.fp-sticky__text span { font-size: .78rem; color: var(--fp-light-muted); }
@media (min-width: 901px) { .fp-sticky { display: none; } }
@media (max-width: 430px) { .fp-sticky__extra { display: none; } }
@media (max-width: 600px) { .fp-promo a { font-size: .75rem; } }
@media (max-width: 900px) { .fp-footer { padding-bottom: 6rem; } }

@media (prefers-reduced-motion: reduce) {
    .fp-book3d, .fp-hero__book:hover .fp-book3d { transform: none; }
}


/* ══════════════════════════════════════════════════════
   PRIVACY: cookie banner, legal links, policy tables
   ══════════════════════════════════════════════════════ */

.fp-consent {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 300;
    max-width: 560px;
    margin-left: auto;
    background: var(--fp-ink-2);
    color: var(--fp-light);
    border: 1px solid var(--fp-line-light);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.fp-consent[hidden] { display: none; }
.fp-consent__text { flex: 1 1 260px; margin: 0; font-size: .9rem; line-height: 1.5; color: #d9d1c4; }
.fp-consent__text a { color: var(--fp-light); text-decoration: underline; text-underline-offset: 3px; }
.fp-consent__actions { display: flex; gap: .5rem; }
@media (max-width: 600px) {
    .fp-consent { left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); padding: .9rem 1rem; gap: .75rem; }
    .fp-consent__text { font-size: .82rem; }
    .fp-consent__actions { width: 100%; }
    .fp-consent__actions .fp-btn { flex: 1; }
}
/* Don't stack the buy bar on top of the cookie question. */
body:has(.fp-consent:not([hidden])) .fp-sticky { display: none; }

.fp-footer__legal { display: flex; gap: 1.25rem; align-items: center; }
.fp-footer__legal a, .fp-linkbtn {
    color: rgba(247,243,236,.75);
    font: inherit;
    font-size: var(--unify-size-xs);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.fp-footer__legal a:hover, .fp-linkbtn:hover { color: var(--fp-light); }

.fp-policy h2 { font-size: 1.9rem; margin: 2.5rem 0 .75rem; }
.fp-policy h3 { font-size: 1.3rem; margin: 1.75rem 0 .5rem; }
.fp-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.fp-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.fp-table th, .fp-table td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--fp-line); vertical-align: top; }
.fp-table th { font-weight: 600; background: var(--fp-paper-2); }
.fp-signup__small a { text-decoration: underline; text-underline-offset: 3px; }


/* ─────────────────────────────────────────────
   FART QUOTES GALLERY (v1.2.0)
   ───────────────────────────────────────────── */
.fp-jump { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; justify-content: center; margin-top: 1.5rem; font-family: var(--fp-sans); font-size: .95rem; }
.fp-jump a { color: inherit; text-underline-offset: .2em; }
.fp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.fp-gallery__item { margin: 0; min-width: 0; }
.fp-gallery__link { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--fp-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.08); }
.fp-gallery__link img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.fp-gallery__link:hover img, .fp-gallery__link:focus-visible img { transform: scale(1.03); }
.fp-gallery__link:focus-visible { outline: 3px solid var(--fp-gold); outline-offset: 3px; }
.fp-section--dark .fp-gallery__link { box-shadow: 0 0 0 1px var(--fp-line-light); }
.fp-gallery__cta { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.25rem; padding: 1.75rem; border-radius: 4px; background: var(--fp-amazon); color: var(--fp-amazon-text); }
.fp-gallery__cta p { font-family: var(--fp-serif); font-size: 1.6rem; line-height: 1.2; margin: 0; }
.fp-gallery__cta .fp-btn--amazon { background: var(--fp-ink); color: var(--fp-light); }
.fp-gallery--reviews { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.fp-astext { border-top: 1px solid var(--fp-line); border-bottom: 1px solid var(--fp-line); padding: 1rem 0; }
.fp-astext summary { cursor: pointer; font-family: var(--fp-sans); font-weight: 600; }
.fp-astext h3 { margin-top: 1.75rem; }
.fp-astext li { margin-bottom: .5rem; }
.fp-lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 92vh); overflow: visible; }
.fp-lightbox::backdrop { background: rgba(10, 8, 7, .92); }
.fp-lightbox img { display: block; width: 100%; height: auto; max-height: 92vh; object-fit: contain; }
.fp-lightbox button { position: absolute; border: 0; background: rgba(247,243,236,.12); color: #fff; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; font-size: 1.75rem; line-height: 1; display: grid; place-items: center; }
.fp-lightbox button:hover { background: rgba(247,243,236,.25); }
.fp-lightbox__close { top: -52px; right: 0; }
.fp-lightbox__prev { left: -56px; top: 50%; transform: translateY(-50%); }
.fp-lightbox__next { right: -56px; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
    .fp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .fp-gallery__cta { padding: 1rem; gap: .75rem; }
    .fp-gallery__cta p { font-size: 1.1rem; }
    .fp-gallery__cta .fp-btn { font-size: .8rem; padding: .55rem .75rem; }
    .fp-lightbox__prev { left: 4px; } .fp-lightbox__next { right: 4px; }
    .fp-lightbox__close { top: -52px; right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .fp-gallery__link img { transition: none; } }

/* Approved by George */
.fp-george { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 420px); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; justify-content: center; margin: 0 auto clamp(3rem, 7vw, 5rem); }
.fp-george__photo { display: block; position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(0,0,0,.12); transform: rotate(-2deg); }
.fp-george__photo img { display: block; width: 100%; height: auto; }
.fp-george__stamp { display: inline-block; margin: 0 0 1rem; padding: .5rem 1.1rem; border: 3px solid var(--fp-ink); border-radius: 4px; font-family: var(--fp-sans); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.5rem); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-4deg); }
.fp-george__text { font-size: 1.15rem; color: var(--fp-muted); margin: 0; }
@media (max-width: 760px) { .fp-george { grid-template-columns: minmax(0, 1fr); text-align: center; } .fp-george__photo { max-width: 300px; margin: 0 auto; } }
