:root {
    --ink: #171313;
    --ink-soft: #4f4544;
    --paper: #fffdf9;
    --paper-warm: #f7f0e7;
    --red: #a51417;
    --red-bright: #d32b2f;
    --red-deep: #6f0d10;
    --gold: #d9aa52;
    --line: #ded4ca;
    --white: #fff;
    --shadow: 0 24px 60px rgba(45, 20, 17, .16);
    --shell: min(1180px, calc(100vw - 40px));
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

[hidden] { display: none !important; }

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 4px;
    z-index: 100;
    background: linear-gradient(90deg, var(--red-deep), var(--red-bright), var(--gold));
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 {
    margin: 0 0 .55em;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.03;
    letter-spacing: -.025em;
}
h1 { font-size: clamp(3.4rem, 8vw, 7.4rem); }
h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
p { margin: 0 0 1.15em; }

.shell { width: var(--shell); margin-inline: auto; }
.narrow-shell { max-width: 760px; text-align: center; }
.section { padding: clamp(76px, 9vw, 130px) 0; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 10px 16px;
    color: var(--white);
    background: var(--ink);
    transform: translateY(-140%);
}
.skip-link:focus { transform: translateY(0); }
.eyebrow {
    margin-bottom: 18px;
    color: var(--red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 2px solid var(--red);
    border-radius: 999px;
    color: var(--white);
    background: var(--red);
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--red-deep); border-color: var(--red-deep); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}
.button-secondary { color: var(--red); background: transparent; }
.button-secondary:hover { color: var(--white); }
.button-ghost { color: var(--ink); background: transparent; border-color: var(--ink); }
.button-ghost:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-light { color: var(--red-deep); background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--white); background: transparent; border-color: var(--white); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
    color: var(--red);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.text-link:hover { color: var(--red-deep); }
picture { display: contents; }
.prose { max-width: 720px; }
.prose p { color: var(--ink-soft); }
.prose blockquote { padding-left: 24px; border-left: 4px solid var(--red); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid rgba(111, 13, 16, .12);
    background: rgba(255, 253, 249, .95);
    backdrop-filter: blur(14px);
}
.header-inner { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: block; flex: 0 0 auto; }
.brand img { width: 148px; height: 74px; object-fit: contain; object-position: left center; }
.primary-nav { display: flex; align-items: center; gap: 8px; }
.primary-nav a {
    padding: 10px 13px;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--red); }
.primary-nav .nav-cta { margin-left: 8px; padding-inline: 20px; border-radius: 999px; color: var(--white); background: var(--ink); }
.primary-nav .nav-cta:hover, .primary-nav .nav-cta[aria-current="page"] { color: var(--white); background: var(--red); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 0; background: transparent; }
.nav-toggle > span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

/* Home hero */
.hero {
    min-height: calc(100vh - 92px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 40%, rgba(211, 43, 47, .24), transparent 36%),
        linear-gradient(110deg, #fffdf9 0%, #fff9f4 54%, #f4d9d5 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(40px, 6vw, 90px); padding-block: 70px; }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hero-copy h1 { margin-bottom: 8px; font-style: italic; }
.hero-copy > p:not(.eyebrow):not(.hero-byline) { max-width: 580px; color: var(--ink-soft); font-size: 1.13rem; }
.hero-byline { margin-bottom: 30px; color: var(--red); font-weight: 800; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 630px; }
.hero-art::before {
    content: "";
    position: absolute;
    width: min(490px, 88%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 45px rgba(165, 20, 23, .06);
}
.hero-art img { position: relative; z-index: 2; width: min(390px, 75%); max-height: 600px; object-fit: contain; filter: drop-shadow(0 32px 30px rgba(40, 9, 10, .34)); transform: rotate(3deg); }
.hero-orbit { position: absolute; z-index: 1; border: 1px solid rgba(165, 20, 23, .35); border-radius: 50%; }
.hero-orbit-one { width: 590px; height: 590px; }
.hero-orbit-two { width: 720px; height: 720px; }

/* Home sections */
.author-section { background: var(--paper); }
.author-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(48px, 8vw, 120px); }
.author-portrait { position: relative; max-width: 440px; }
.author-portrait::before { content: ""; position: absolute; inset: -18px 24px 20px -18px; border: 2px solid var(--red); border-radius: var(--radius); }
.author-portrait img { position: relative; width: 100%; aspect-ratio: 2/3; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.author-stamp { position: absolute; right: -32px; bottom: 42px; display: grid; width: 94px; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--white); background: var(--ink); font-family: Georgia, serif; font-size: 1.35rem; font-style: italic; }
.author-copy h2 { margin-bottom: 28px; }
.quote-band { padding: clamp(70px, 10vw, 130px) 0; color: var(--white); background: linear-gradient(120deg, var(--red-deep), var(--red-bright)); text-align: center; }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-bottom: 48px; }
.quote-grid figure { display: flex; flex-direction: column; justify-content: space-between; margin: 0; }
.quote-grid blockquote { margin: 0; }
.quote-grid blockquote p { margin-bottom: 22px; font-family: Georgia, serif; font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.25; }
.quote-grid figcaption { font-size: .9rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.featured-books { background: var(--paper-warm); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.split-promo { display: grid; min-height: 650px; grid-template-columns: 1fr 1fr; }
.split-promo-image { min-height: 520px; background: url('/assets/images/site/mr-bricks.jpg') center 38% / cover no-repeat; }
.split-promo-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(60px, 8vw, 120px); color: var(--white); background: var(--ink); }
.split-promo-copy .eyebrow { color: #f3a7a9; }
.split-promo-copy p:not(.eyebrow) { max-width: 520px; color: #d8cecb; font-size: 1.15rem; }
.medium-promo { background: var(--paper); }
.medium-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.medium-inner h2, .medium-inner p { margin-bottom: 0; }

/* Shared page hero */
.page-hero { padding: clamp(80px, 11vw, 160px) 0; color: var(--white); background: linear-gradient(125deg, var(--ink), #351719 65%, var(--red-deep)); }
.page-hero .shell { max-width: 960px; margin-left: max(20px, calc((100vw - 1180px) / 2)); }
.page-hero .eyebrow { color: #f3a7a9; }
.page-hero h1 { margin-bottom: 20px; font-size: clamp(3.5rem, 8vw, 7rem); }
.page-hero p:not(.eyebrow) { max-width: 700px; margin: 0; color: #e6dcda; font-size: 1.15rem; }
.page-hero-catalog { background: linear-gradient(120deg, var(--red-deep), var(--red-bright)); }

/* Catalog and cards */
.catalog-section { background: var(--paper-warm); }
.catalog-tools { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 40px rgba(45, 20, 17, .06); }
.catalog-tools label, .contact-form label, .newsletter-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: .78rem; font-weight: 800; letter-spacing: .05em; }
input, select, textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #bfb2a8;
    border-radius: 10px;
    color: var(--ink);
    background: var(--white);
}
textarea { resize: vertical; }
.catalog-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 28px 0 22px; color: var(--ink-soft); }
.catalog-summary p { margin: 0; }
.active-filter { display: inline-flex; align-items: center; gap: 10px; padding: 5px 6px 5px 14px; border: 1px solid var(--red); border-radius: 999px; color: var(--ink); background: var(--white); font-size: .88rem; }
.active-filter[hidden] { display: none; }
.active-filter button { display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--white); background: var(--red); cursor: pointer; }
.active-filter button:hover { background: var(--red-deep); }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.book-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.book-card { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 36px rgba(58, 25, 20, .07); transition: transform .22s ease, box-shadow .22s ease; }
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book-cover { display: grid; min-height: 410px; place-items: center; padding: 32px; overflow: hidden; background: linear-gradient(140deg, #eadfd4, #f8f3ee); }
.book-cover img { width: auto; max-width: 80%; height: 350px; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(41, 18, 16, .24)); transition: transform .3s ease; }
.book-card:hover .book-cover img { transform: scale(1.025) rotate(.5deg); }
.book-card-body { display: flex; flex-direction: column; padding: 24px; }
.book-card-body h3 { margin: 11px 0 14px; }
.book-card-body h3 a { text-decoration: none; }
.book-card-body h3 a:hover { color: var(--red); }
.book-card-body > p { color: var(--ink-soft); font-size: .94rem; }
.book-card-body .text-link { margin-top: auto; }
.book-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--red); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.book-meta strong { color: var(--ink); font-size: .9rem; letter-spacing: 0; }
.empty-state { padding: 70px 20px; text-align: center; }

/* Product detail */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 34px; color: var(--ink-soft); font-size: .85rem; }
.breadcrumbs a { color: var(--red); }
.product-detail { padding-top: 55px; }
.product-grid { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(55px, 9vw, 120px); }
.product-cover-wrap { display: grid; place-items: center; min-height: 600px; padding: 50px; border-radius: var(--radius); background: linear-gradient(145deg, #eadfd4, #faf6f2); }
.product-cover { max-height: 580px; object-fit: contain; filter: drop-shadow(0 26px 24px rgba(44, 18, 16, .26)); }
.product-copy { padding-top: 24px; }
.product-copy h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
.product-price { color: var(--red); font-family: Georgia, serif; font-size: 1.8rem; font-weight: 700; }
.product-description { margin: 32px 0; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-actions p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
.tag-list a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .76rem; text-decoration: none; }
.tag-list a:hover { color: var(--red); border-color: var(--red); }
.related-section { background: var(--paper-warm); }
.book-grid-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Projects and events */
.project-list { background: var(--paper-warm); }
.project-card { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(45px, 8vw, 110px); margin-bottom: 110px; }
.project-card:last-child { margin-bottom: 0; }
.project-card-reverse .project-image { order: 2; }
.project-image { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--ink); }
.project-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.project-copy p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.events-list { background: var(--paper-warm); }
.event-feature { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(40px, 7vw, 100px); margin-bottom: 100px; }
.event-feature-reverse img { order: 2; }
.event-feature img { width: 100%; max-height: 620px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.event-date { color: var(--red); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.event-copy p:not(.event-date) { color: var(--ink-soft); }
.event-photo { margin: 0; }
.event-photo img { width: 100%; max-height: 620px; border-radius: var(--radius); object-fit: cover; }

/* Contact, affiliate, status */
.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 8vw, 110px); }
.contact-intro { position: sticky; top: 130px; align-self: start; }
.contact-intro p { color: var(--ink-soft); }
.form-note { padding-top: 20px; border-top: 1px solid var(--line); font-size: .86rem; }
.contact-form { display: grid; gap: 18px; padding: clamp(24px, 5vw, 50px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-warm); }
.contact-form .button { justify-self: start; }
.honeypot { position: absolute !important; left: -10000px !important; }
.notice { margin-bottom: 20px; padding: 16px 18px; border-radius: 10px; }
.notice-success { color: #174b30; background: #dff3e7; }
.notice-error { color: #76171a; background: #f9dedf; }
.affiliate-landing { min-height: 74vh; display: grid; place-items: center; }
.affiliate-inner { max-width: 980px; text-align: center; }
.affiliate-inner > a:has(img) { display: block; margin: 35px 0; }
.affiliate-inner img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.affiliate-inner small { display: block; margin-top: 24px; color: var(--ink-soft); }
.affiliate-banner { padding-top: 0; background: var(--paper); }
.affiliate-banner a { display: block; max-width: 768px; margin: auto; }
.affiliate-banner img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .22s ease; }
.affiliate-banner a:hover img { transform: translateY(-4px); }
.status-panel { min-height: 65vh; display: grid; place-items: center; }

/* Newsletter and footer */
.newsletter { padding: 70px 0; color: var(--white); background: var(--red); }
.newsletter .eyebrow { color: #ffd6d6; }
.newsletter h2 { margin-bottom: 12px; }
.newsletter p:not(.eyebrow) { margin: 0; color: #f9dddd; }
.newsletter-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 60px; }
.newsletter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.newsletter-form label { color: var(--white); }
.newsletter-form .field-wide { grid-column: 1 / -1; }
.newsletter-form .button { align-self: end; justify-self: start; }
.site-footer { padding: 55px 0; color: #d9cfcc; background: #120f0f; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 45px; }
.footer-brand { color: var(--white); font-family: Georgia, serif; font-size: 1.6rem; font-weight: 700; text-decoration: none; }
.footer-inner p { margin: 7px 0 0; font-size: .85rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-inner nav a, .footer-credit a { color: var(--white); text-underline-offset: 4px; }
.footer-credit { justify-self: end; text-align: right; }
.footer-inner .footer-disclosure { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #a99d99; font-size: .78rem; text-align: center; }

@media (max-width: 980px) {
    .header-inner { min-height: 78px; }
    .brand img { width: 126px; height: 62px; }
    .header-inner { flex-wrap: wrap; }
    .js .header-inner { flex-wrap: nowrap; }
    .primary-nav { flex-wrap: wrap; }
    .js .nav-toggle { display: block; }
    .js .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        align-items: stretch;
        padding: 18px 20px 24px;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        box-shadow: 0 20px 30px rgba(30, 15, 15, .12);
    }
    .js .primary-nav.is-open { display: grid; }
    .primary-nav a { padding: 13px 10px; }
    .primary-nav .nav-cta { margin: 8px 0 0; text-align: center; }
    .nav-toggle[aria-expanded="true"] > span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] > span:nth-of-type(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero { min-height: auto; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hero-art { min-height: 510px; }
    .hero-orbit-one { width: 450px; height: 450px; }
    .hero-orbit-two { width: 560px; height: 560px; }
    .author-grid { grid-template-columns: .9fr 1.1fr; gap: 55px; }
    .book-grid, .book-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-tools { grid-template-columns: 1fr 1fr; }
    .catalog-tools .search-control { grid-column: 1 / -1; }
    .product-grid { grid-template-columns: .8fr 1.2fr; gap: 50px; }
    .product-cover-wrap { min-height: 500px; padding: 35px; }
    .newsletter-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-credit { justify-self: center; text-align: center; }
}

@media (max-width: 720px) {
    :root { --shell: min(100% - 30px, 1180px); }
    body { font-size: 16px; }
    .section { padding: 72px 0; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 64px; }
    .hero-copy { text-align: center; }
    .hero-copy > p:not(.eyebrow):not(.hero-byline) { margin-inline: auto; }
    .hero-copy .button-row { justify-content: center; }
    .hero-art { min-height: 450px; order: -1; }
    .hero-art img { width: min(280px, 70%); max-height: 420px; }
    .hero-art::before { width: 340px; }
    .hero-orbit-one { width: 390px; height: 390px; }
    .hero-orbit-two { display: none; }
    .quote-grid { grid-template-columns: 1fr; }
    .author-grid, .product-grid, .project-card, .event-feature, .contact-grid { grid-template-columns: 1fr; }
    .author-portrait { max-width: 360px; margin-inline: auto; }
    .author-copy { text-align: left; }
    .section-heading, .medium-inner { align-items: flex-start; flex-direction: column; }
    .book-grid, .book-grid-home, .book-grid-related { grid-template-columns: 1fr; }
    .book-cover { min-height: 360px; }
    .book-cover img { height: 310px; }
    .split-promo { grid-template-columns: 1fr; }
    .split-promo-copy { min-height: 480px; padding: 55px 28px; }
    .catalog-tools { grid-template-columns: 1fr; }
    .catalog-tools .search-control { grid-column: auto; }
    .product-cover-wrap { min-height: 430px; padding: 35px; }
    .product-cover { max-height: 410px; }
    .project-card, .event-feature { margin-bottom: 70px; }
    .project-card-reverse .project-image, .event-feature-reverse img { order: 0; }
    .contact-intro { position: static; }
    .newsletter-form { grid-template-columns: 1fr; }
    .newsletter-form .field-wide { grid-column: auto; }
    .page-hero .shell { margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
