/*
Theme Name: Shaking Pistol Press
Description: A lightweight, self-contained literary publisher theme with a one-page homepage, local imagery and no plugin dependencies.
Version: 1.0.0
Author: Patrick K. Peltier
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shaking-pistol-press
Tags: one-column, custom-background, custom-colors
*/

:root {
    --spp-ink: #090c0b;
    --spp-cream: #f3eee4;
    --spp-muted: #ded8ce;
    --spp-gold: #e4b167;
    --spp-rule: #b8843d;
    --spp-body: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--spp-ink); color: var(--spp-cream); font-family: var(--spp-body); font-size: 18px; line-height: 1.5; }
body.admin-bar { --spp-admin-offset: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--spp-gold); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid #ffe3a3; outline-offset: 6px; border-radius: 2px; }
h1, h2, p, figure { margin: 0; }
[id] { scroll-margin-top: calc(24px + var(--spp-admin-offset, 0px)); }
.site-width { width: min(1100px, calc(100% - 96px)); margin-inline: auto; }
.spp-site { position: relative; isolation: isolate; min-height: 100vh; background: radial-gradient(ellipse at 58% 76%, #141714 0, transparent 62%), var(--spp-ink); }
.spp-site::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 742px; background-image: linear-gradient(0deg, var(--spp-ink) 0%, rgba(9,12,11,.9) 17%, rgba(9,12,11,.05) 38%, rgba(0,0,0,.06) 100%), linear-gradient(90deg, rgba(0,0,0,.2), transparent 65%), url('assets/images/writing-desk.webp'); background-position: center top; background-size: cover, cover, 100% auto; background-repeat: no-repeat; }
.site-header { min-height: 175px; padding-top: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 18px; flex-shrink: 0; text-decoration: none; }
.brand-emblem { width: 148px; height: 148px; object-fit: contain; }
.brand-words { display: block; padding-top: 4px; }
.brand-name { display: block; font-size: 33px; font-weight: 400; line-height: 1.14; letter-spacing: 1.2px; text-transform: uppercase; border-bottom: 1px solid var(--spp-rule); padding-bottom: 10px; }
.brand-tagline { display: block; padding-top: 12px; color: var(--spp-gold); font-size: 20px; line-height: 1.35; }
.primary-navigation { display: flex; gap: 32px; padding-top: 20px; }
.primary-navigation a { display: block; text-transform: uppercase; letter-spacing: 2.5px; font-size: 14px; padding: 3px 0 7px; text-decoration: none; border-bottom: 1px solid transparent; }
.primary-navigation a:hover, .primary-navigation a.current { border-color: var(--spp-rule); }
.hero { min-height: 385px; padding-top: 22px; padding-bottom: 32px; }
.hero h1 { font-size: clamp(48px, 5.55vw, 68px); line-height: 1.08; font-weight: 400; letter-spacing: -1.7px; max-width: 540px; text-wrap: balance; }
.hero-rule { width: 58px; height: 1px; background: var(--spp-gold); margin: 34px 0 22px; }
.publisher-intro { max-width: 426px; font-size: 20px; line-height: 1.43; color: var(--spp-cream); text-shadow: 0 1px 8px #000; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 18px; padding-bottom: 40px; }
.value { text-align: center; padding: 0 24px; position: relative; }
.value + .value::before { content: ''; width: 1px; background: var(--spp-rule); position: absolute; top: 42px; bottom: 8px; left: 0; opacity: .85; }
.spp-icon { display: block; color: var(--spp-gold); flex: 0 0 auto; }
.value .spp-icon { width: 56px; height: 56px; margin: 0 auto 5px; }
.value h2 { font-weight: 400; font-size: 25px; line-height: 1.3; margin-bottom: 6px; }
.value p { font-size: 18px; line-height: 1.43; color: var(--spp-muted); }
.featured-book { border-top: 1px solid var(--spp-rule); border-bottom: 1px solid var(--spp-rule); display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 42px; align-items: center; padding: 30px 32px; }
.book-art { display: flex; justify-content: center; }
.book-art img { width: 220px; height: auto; box-shadow: 10px 12px 28px rgba(0,0,0,.55); }
.eyebrow { color: var(--spp-gold); text-transform: uppercase; font-size: 14px; letter-spacing: 2.5px; font-weight: 400; line-height: 1.4; }
.book-copy h2 { font-weight: 400; font-style: italic; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; margin: 7px 0 9px; text-wrap: balance; }
.book-author { text-transform: uppercase; font-size: 17px; letter-spacing: 3.7px; margin-bottom: 13px; }
.book-lead { font-size: 19px; color: var(--spp-cream); margin-bottom: 8px; }
.book-summary, .book-genre { font-size: 18px; line-height: 1.4; color: var(--spp-muted); margin-bottom: 9px; }
.learn-more { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 26px; background: #91632f; border: 1px solid #c59251; border-radius: 2px; color: #fff8eb; font-size: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: 2.4px; text-decoration: none; margin-top: 5px; line-height: 1.35; min-height: 45px; }
a.learn-more:hover { background: #9b6a33; color: #fff; }
.learn-more.is-unlinked { cursor: default; }
.footer-top { display: grid; grid-template-columns: 345px minmax(0, 1fr); align-items: center; gap: 30px; padding: 23px 0 22px; }
.footer-brand { gap: 14px; }
.footer-brand .brand-emblem { width: 112px; height: 112px; }
.footer-brand .brand-name { font-size: 26px; padding-bottom: 8px; }
.connect h2 { margin-bottom: 19px; }
.contact-items { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.contact-item { display: flex; gap: 15px; align-items: center; text-decoration: none; font-size: 15px; line-height: 1.4; }
.contact-item .spp-icon { width: 38px; height: 38px; }
.contact-item > span { min-width: 0; overflow-wrap: anywhere; }
.contact-label { display: block; }
.contact-item + .contact-item { border-left: 1px solid #99713b; padding-left: 22px; }
.copyright { border-top: 1px solid var(--spp-rule); text-align: center; font-size: 12px; letter-spacing: 1px; padding: 15px 0 22px; }
.copyright > span { margin-left: 8px; }
.skip-link { position: absolute; z-index: 100000; top: -120px; left: 16px; background: var(--spp-cream); color: #111; padding: 12px 20px; }
.skip-link:focus { top: calc(12px + var(--spp-admin-offset, 0px)); }
.content-page { padding: 35px 0 60px; min-height: 45vh; }
.content-page h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 400; margin-bottom: 24px; }
.content-page h2 { font-weight: 400; margin-bottom: 15px; }
.content-page p { margin-bottom: 18px; }
.existing-content { margin-bottom: 32px; overflow-wrap: anywhere; }
.content-page iframe, .content-page video { max-width: 100%; }
.content-page .alignwide, .content-page .alignfull { margin-inline: 0; max-width: 100%; }
.content-page table { display: block; overflow-x: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (min-width: 1500px) {
    .spp-site::before { background-size: 1500px auto; background-repeat: no-repeat; }
}
@media (max-width: 1050px) {
    .site-width { width: calc(100% - 64px); }
    .site-header { min-height: 158px; }
    .brand { gap: 12px; }
    .brand-emblem { width: 122px; height: 122px; }
    .brand-name { font-size: 28px; }
    .brand-tagline { font-size: 17px; }
    .primary-navigation { gap: 20px; }
    .primary-navigation a { font-size: 13px; letter-spacing: 1.7px; }
    .hero { min-height: 385px; }
    .hero h1 { font-size: 60px; max-width: 485px; }
    .publisher-intro { max-width: 385px; font-size: 19px; }
    .featured-book { grid-template-columns: 225px minmax(0,1fr); padding: 26px 10px; gap: 26px; }
    .book-art img { width: 205px; }
    .book-author { font-size: 15px; letter-spacing: 3px; }
    .footer-top { grid-template-columns: 285px minmax(0,1fr); gap: 20px; }
    .footer-brand .brand-emblem { width: 90px; height: 90px; }
    .footer-brand .brand-name { font-size: 22px; }
    .contact-items { grid-template-columns: 1fr; gap: 14px; }
    .contact-item + .contact-item { border-left: 0; padding-left: 0; }
    .connect h2 { margin-bottom: 12px; }
}
@media (max-width: 760px) {
    body { font-size: 17px; }
    body.admin-bar { --spp-admin-offset: 46px; }
    .site-width { width: calc(100% - 40px); }
    .spp-site::before { height: 680px; background-size: auto 680px; background-position: 85% top; background-repeat: no-repeat; background-image: linear-gradient(0deg, var(--spp-ink) 4%, rgba(9,12,11,.35) 35%, rgba(0,0,0,.3) 100%), linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.4)), url('assets/images/writing-desk.webp'); }
    .site-header { padding-top: 18px; min-height: 0; flex-direction: column; align-items: center; gap: 18px; }
    .brand-emblem { width: 100px; height: 100px; }
    .brand-name { font-size: 26px; }
    .brand-tagline { font-size: 16px; padding-top: 8px; }
    .primary-navigation { gap: 24px; padding-top: 0; flex-wrap: wrap; justify-content: center; }
    .primary-navigation a { padding: 7px 0 9px; min-height: 44px; display: flex; align-items: center; font-size: 12px; letter-spacing: 1.8px; }
    .hero { min-height: 410px; padding-top: 35px; padding-bottom: 35px; }
    .hero h1 { font-size: clamp(42px, 7.8vw, 58px); max-width: 460px; letter-spacing: -1px; }
    .hero-rule { margin: 26px 0 20px; }
    .publisher-intro { font-size: 18px; max-width: 385px; line-height: 1.5; }
    .values { padding-top: 12px; padding-bottom: 30px; }
    .value { padding-inline: 12px; }
    .value .spp-icon { width: 43px; height: 43px; }
    .value h2 { font-size: 20px; }
    .value p { font-size: 15px; }
    .value + .value::before { top: 32px; bottom: 2px; }
    .desktop-break { display: none; }
    .featured-book { grid-template-columns: 170px minmax(0,1fr); gap: 22px; padding: 28px 0; }
    .book-art img { width: 165px; }
    .book-copy h2 { font-size: 31px; }
    .book-author { font-size: 13px; letter-spacing: 2px; }
    .book-lead { font-size: 17px; }
    .book-summary, .book-genre { font-size: 16px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-brand { gap: 8px; }
    .footer-brand .brand-emblem { width: 75px; height: 75px; }
    .footer-brand .brand-name { font-size: 18px; }
    .contact-item { font-size: 14px; gap: 10px; }
    .contact-item .spp-icon { width: 31px; height: 31px; }
}
@media (max-width: 520px) {
    .hero { min-height: 407px; }
    .hero h1 { font-size: clamp(42px, 10.7vw, 54px); max-width: 365px; }
    .values { grid-template-columns: 1fr; padding: 5px 0 26px; gap: 20px; }
    .value { display: grid; grid-template-columns: 54px minmax(0,1fr); text-align: left; gap: 0 16px; align-items: start; padding: 0 12px; }
    .value .spp-icon { grid-row: 1 / 3; width: 48px; height: 48px; margin: 2px auto 0; }
    .value h2 { font-size: 23px; margin-bottom: 3px; }
    .value p { font-size: 16px; }
    .value + .value::before { display: none; }
    .featured-book { grid-template-columns: 1fr; gap: 24px; padding: 30px 5px 32px; }
    .book-art img { width: 210px; }
    .book-copy { text-align: left; }
    .book-copy h2 { font-size: 34px; }
    .book-author { font-size: 14px; letter-spacing: 2.6px; }
    .book-lead { font-size: 18px; }
    .book-summary, .book-genre { font-size: 17px; line-height: 1.5; }
    .learn-more { margin-top: 8px; }
    .footer-top { grid-template-columns: 1fr; gap: 20px; padding: 25px 5px; }
    .footer-brand { justify-self: center; gap: 13px; }
    .footer-brand .brand-emblem { width: 95px; height: 95px; }
    .footer-brand .brand-name { font-size: 25px; }
    .contact-items { gap: 17px; }
    .contact-item { font-size: 16px; gap: 15px; }
    .contact-item .spp-icon { width: 36px; height: 36px; }
    .copyright { font-size: 11px; letter-spacing: .6px; line-height: 1.8; padding-bottom: 20px; }
    .copyright > span[aria-hidden] { display: none; }
    .copyright > span:last-child { display: block; margin: 0; }
}
@media (max-width: 360px) {
    .site-header .brand-emblem { width: 82px; height: 82px; }
    .site-header .brand-name { font-size: 22px; }
    .site-header .brand-tagline { font-size: 13.5px; }
    .primary-navigation { gap: 18px; }
    .footer-brand .brand-emblem { width: 80px; height: 80px; }
    .footer-brand .brand-name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
    html { scroll-behavior: auto; }
    body, .spp-site { background: #fff; color: #111; }
    .primary-navigation, .learn-more, .skip-link, .spp-site::before { display: none; }
    .site-width { width: 100%; }
    .publisher-intro, .value p, .book-summary, .book-genre, .eyebrow, .brand-tagline { color: #111; }
    .featured-book, .footer-top { break-inside: avoid; }
}
