/*
Theme Name: Celerity Press
Theme URI: https://celeritypress.com/
Author: Celerity Press
Description: Custom editorial publisher theme for Celerity Press, Marbury Books, and Iron & Shell Press.
Version: 1.0.7
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: celerity-press
*/
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --ink:#0d1114;
  --ink-2:#171c20;
  --paper:#f4efe5;
  --paper-2:#fbf8f1;
  --gold:#b8893d;
  --gold-2:#d3b06c;
  --wine:#6d1f2f;
  --navy:#1d2b39;
  --muted:#746f65;
  --line:rgba(13,17,20,.14);
  --shadow:0 18px 50px rgba(0,0,0,.13);
  --serif:'Cormorant Garamond', Georgia, serif;
  --sans:'Inter', Arial, sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.62}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.23em;font-weight:700;color:var(--gold)}
.serif{font-family:var(--serif)}
.header{position:sticky;top:0;z-index:50;background:rgba(8,11,13,.97);color:#fff;border-bottom:1px solid rgba(255,255,255,.08);backdrop-filter:blur(12px)}
.header-inner{height:78px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:flex;align-items:center;gap:12px;min-width:285px}
.brand-mark{width:47px;height:47px;border:1px solid var(--gold);display:grid;place-items:center;font:600 2rem/1 var(--serif);color:#fff}
.brand-name{font:600 1.43rem/1 var(--serif);letter-spacing:.13em}
.brand-tag{font:italic .82rem/1.25 var(--serif);color:#d8c9b1;margin-top:4px}
.nav{display:flex;align-items:center;gap:24px;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}
.nav a{opacity:.9}.nav a:hover{color:var(--gold-2)}
.nav-toggle{display:none;background:none;border:0;color:#fff;font-size:1.7rem}
.hero{background:var(--ink);color:#fff;min-height:510px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;inset:0 0 0 42%;background:linear-gradient(90deg,var(--ink) 0%,rgba(13,17,20,.52) 18%,rgba(13,17,20,.05) 60%),url('assets/images/hero-library.jpg') center/cover no-repeat;opacity:.96}
.hero-inner{position:relative;z-index:2;min-height:510px;display:flex;align-items:center}
.hero-copy{max-width:620px;padding:72px 0}
.hero h1{font:500 clamp(3.1rem,6vw,5.2rem)/.94 var(--serif);margin:14px 0 24px;letter-spacing:-.02em}
.hero p{max-width:550px;color:#e5ded0;font-family:var(--serif);font-size:1.28rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 20px;border:1px solid var(--ink);font-size:.76rem;letter-spacing:.12em;text-transform:uppercase;font-weight:700;transition:.2s}
.btn-primary{background:var(--gold);border-color:var(--gold);color:#fff}.btn-primary:hover{background:#9b722f}
.btn-dark{background:var(--ink);color:#fff}.btn-dark:hover{background:#262c30}
.btn-outline{background:transparent;color:inherit;border-color:rgba(255,255,255,.35)}
.imprint-strip{background:var(--paper-2);border-bottom:1px solid var(--line)}
.imprint-head{text-align:center;padding:19px 0 6px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.3em}
.imprint-grid{display:grid;grid-template-columns:repeat(3,1fr);padding:13px 0 26px}
.imprint-item{padding:15px 34px;border-right:1px solid var(--line);display:grid;grid-template-columns:54px 1fr;gap:15px}.imprint-item:last-child{border-right:0}
.imprint-mark{width:46px;height:46px;border:1px solid currentColor;display:grid;place-items:center;font:600 1.65rem var(--serif)}
.imprint-item h3{font:600 1.3rem var(--serif);letter-spacing:.06em;margin:0}.imprint-item p{font:italic .95rem var(--serif);color:var(--muted);margin:1px 0 5px}.imprint-item small{text-transform:uppercase;letter-spacing:.12em;font-weight:700;font-size:.67rem}
.wine{color:var(--wine)}.navy{color:var(--navy)}
.section{padding:74px 0}.section-sm{padding:48px 0}.section-dark{background:var(--ink);color:#fff}.section-white{background:var(--paper-2)}
.section-title{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:28px}.section-title h2{font:600 clamp(2.2rem,4vw,3.2rem)/1 var(--serif);margin:6px 0}.section-title p{max-width:530px;color:var(--muted);margin:0}.section-dark .section-title p{color:#c6beb0}
.book-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:22px}.book-card{min-width:0}.book-cover{aspect-ratio:2/3;background:#ddd;box-shadow:0 9px 22px rgba(0,0,0,.16);overflow:hidden;position:relative}.book-cover img{width:100%;height:100%;object-fit:cover}.book-card h3{font:600 1.08rem/1.15 var(--serif);margin:13px 0 4px}.book-card .meta{font-size:.75rem;color:var(--muted);line-height:1.5}.book-card:hover h3{color:var(--gold)}
.cover-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px;color:#fff;background:linear-gradient(155deg,#15202a,#090d11)}
.cover-placeholder.warm{background:linear-gradient(160deg,#3c2d25,#101112)}.cover-placeholder.winebg{background:linear-gradient(160deg,#702436,#25141a)}.cover-placeholder.bluebg{background:linear-gradient(160deg,#273b4e,#0c141b)}
.cover-placeholder .mini{font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;opacity:.75}.cover-placeholder strong{font:600 1.55rem/1.05 var(--serif);letter-spacing:.04em;margin:14px 0}.cover-placeholder span{font:.8rem var(--serif);opacity:.9}
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:65px;align-items:center}.split h2{font:600 clamp(2.5rem,5vw,4rem)/.98 var(--serif);margin:10px 0 22px}.split p{font-size:1rem;color:var(--muted)}
.editorial-box{padding:44px;background:#11171b;color:#fff;box-shadow:var(--shadow)}.editorial-box h3{font:600 2.25rem var(--serif);margin:5px 0 8px}.editorial-box p{color:#c7c2ba}.editorial-list{list-style:none;margin:26px 0 0;padding:0}.editorial-list li{padding:15px 0;border-top:1px solid rgba(255,255,255,.12)}.editorial-list b{color:var(--gold-2);font-size:.75rem;text-transform:uppercase;letter-spacing:.14em}
.newsletter{background:#e9e2d7;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.newsletter-inner{display:grid;grid-template-columns:.8fr 1.2fr;gap:40px;align-items:center;padding:34px 0}.newsletter h3{font:600 1.7rem var(--serif);margin:0}.newsletter p{font-size:.82rem;color:var(--muted);margin:4px 0 0}.form-inline{display:flex}.form-inline input{flex:1;padding:14px 16px;border:1px solid #c8c0b4;background:#fff;font-family:var(--sans)}.form-inline button{border:0}
.footer{background:#080b0d;color:#ddd;padding:52px 0 30px}.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:45px}.footer h4{font:600 1rem var(--serif);color:#fff;margin:0 0 12px}.footer a{display:block;font-size:.78rem;color:#bcb6ad;margin:8px 0}.footer a:hover{color:var(--gold-2)}.footer .brand{margin-bottom:18px}.footer-note{margin-top:40px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);display:flex;justify-content:space-between;gap:20px;font-size:.72rem;color:#8f8b84}
.inner-hero{background:linear-gradient(120deg,#0d1114,#1c252c);color:#fff;padding:78px 0 70px}.inner-hero h1{font:600 clamp(3.1rem,6vw,5.1rem)/.95 var(--serif);margin:10px 0 18px}.inner-hero p{max-width:750px;color:#d3cdc4;font:1.2rem var(--serif)}
.breadcrumb{font-size:.69rem;text-transform:uppercase;letter-spacing:.13em;color:#9b968f;margin-bottom:16px}.breadcrumb a{color:var(--gold-2)}
.cards-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.panel{background:var(--paper-2);border:1px solid var(--line);padding:30px}.panel h3{font:600 1.65rem var(--serif);margin:0 0 8px}.panel p{color:var(--muted);font-size:.92rem}
.author-card{background:var(--paper-2);border:1px solid var(--line);padding:34px}.author-monogram{width:72px;height:72px;border:1px solid var(--gold);display:grid;place-items:center;font:600 2rem var(--serif);margin-bottom:22px}.author-card h2{font:600 2rem var(--serif);margin:0 0 6px}.author-card p{color:var(--muted)}
/* Homepage author cards sit on a dark section but use light card backgrounds.
   Explicitly reset their text so author names never inherit section white. */
.section-dark .cards-3 .panel{color:var(--ink)}
.section-dark .cards-3 .panel h3{color:var(--ink)}
.section-dark .cards-3 .panel p{color:var(--muted)}
.section-dark .cards-3 .panel .author-monogram{color:var(--ink)}
.section-dark .cards-3 .panel:hover h3{color:var(--gold)}
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px}.filter{border:1px solid var(--line);background:transparent;padding:9px 14px;font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;cursor:pointer}.filter.active{background:var(--ink);color:#fff}
.catalog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}.catalog-item.hidden{display:none}
.detail-grid{display:grid;grid-template-columns:minmax(280px,400px) 1fr;gap:70px;align-items:start}.detail-cover{box-shadow:var(--shadow)}.detail h1{font:600 clamp(3rem,5vw,5rem)/.93 var(--serif);margin:8px 0}.detail .subtitle{font:500 1.55rem/1.25 var(--serif);color:#514d46;margin:12px 0 22px}.detail .authorline{text-transform:uppercase;letter-spacing:.13em;font-size:.78rem;font-weight:700;color:var(--gold)}.detail p{color:#565149}.book-facts{margin:30px 0;border-top:1px solid var(--line)}.book-facts div{display:grid;grid-template-columns:150px 1fr;padding:11px 0;border-bottom:1px solid var(--line);font-size:.85rem}.book-facts b{text-transform:uppercase;letter-spacing:.08em;font-size:.69rem}
.series-banner{padding:35px;border-left:4px solid var(--gold);background:#eee6d9;margin:30px 0}.series-banner h3{font:600 1.8rem var(--serif);margin:0 0 8px}
.quote{font:italic 1.65rem/1.35 var(--serif);border-left:2px solid var(--gold);padding-left:25px;color:#3d3934}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:50px}.prose h2{font:600 2rem var(--serif);margin:32px 0 10px}.prose h3{font:600 1.45rem var(--serif);margin:28px 0 8px}.prose p{color:#5d584f}.prose ul{color:#5d584f}
.contact-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:60px}.contact-cards{display:grid;gap:16px}.contact-card{padding:23px;border:1px solid var(--line);background:var(--paper-2)}.contact-card h3{font:600 1.35rem var(--serif);margin:0 0 6px}.contact-card p{font-size:.84rem;color:var(--muted);margin:0}.form-stack{display:grid;gap:14px}.form-stack label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700}.form-stack input,.form-stack select,.form-stack textarea{width:100%;padding:13px;border:1px solid #c7bfb2;background:#fff;font-family:var(--sans)}.form-stack textarea{min-height:160px}.notice{padding:15px 18px;background:#efe4ca;border-left:3px solid var(--gold);font-size:.85rem}
.timeline{border-left:1px solid var(--line);margin-left:10px;padding-left:28px}.timeline-item{position:relative;padding:0 0 30px}.timeline-item::before{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:var(--gold);left:-33px;top:8px}.timeline-item h3{font:600 1.35rem var(--serif);margin:0}.timeline-item small{color:var(--gold);text-transform:uppercase;letter-spacing:.1em}
@media(max-width:1050px){.nav{gap:14px;font-size:.7rem}.book-grid{grid-template-columns:repeat(3,1fr)}.catalog-grid{grid-template-columns:repeat(3,1fr)}.imprint-item{padding:15px}.hero::after{inset:0 0 0 36%}}
@media(max-width:820px){.brand{min-width:auto}.nav-toggle{display:block}.nav{display:none;position:absolute;top:78px;left:0;right:0;background:#080b0d;padding:20px 28px;flex-direction:column;align-items:flex-start}.nav.open{display:flex}.hero::after{inset:0;opacity:.35}.hero-copy{max-width:100%}.imprint-grid,.cards-3,.split,.two-col,.contact-grid,.newsletter-inner,.footer-grid,.detail-grid{grid-template-columns:1fr}.imprint-item{border-right:0;border-bottom:1px solid var(--line)}.catalog-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{gap:24px}}
@media(max-width:560px){.container{width:min(100% - 26px,1180px)}.header-inner{height:70px}.brand-mark{width:41px;height:41px}.brand-name{font-size:1.16rem}.brand-tag{display:none}.nav{top:70px}.hero,.hero-inner{min-height:470px}.hero h1{font-size:3.25rem}.section{padding:55px 0}.book-grid,.catalog-grid{grid-template-columns:repeat(2,1fr);gap:18px}.section-title{align-items:flex-start;flex-direction:column}.form-inline{flex-direction:column}.footer-note{flex-direction:column}.detail-grid{gap:35px}.book-facts div{grid-template-columns:120px 1fr}}


/* WordPress integration */
body.admin-bar .header{top:32px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.current-menu-item>a,.current_page_item>a{color:var(--gold-2)!important}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:24px;align-items:center}.nav li{margin:0}
.page-content>*:first-child{margin-top:0}.page-content>*:last-child{margin-bottom:0}
.page-content h2{font:600 2.2rem/1.05 var(--serif);margin:36px 0 12px}.page-content h3{font:600 1.55rem/1.1 var(--serif);margin:26px 0 10px}
.page-content p,.page-content li{color:#5d584f}.page-content a{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:3px}
.archive-intro{max-width:760px}.archive-intro p{font:1.15rem var(--serif);color:#d3cdc4}
.placeholder-cover{aspect-ratio:2/3;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;color:#fff;background:linear-gradient(155deg,#182632,#090d11);box-shadow:0 9px 22px rgba(0,0,0,.16)}
.placeholder-cover.marbury{background:linear-gradient(155deg,#6d1f2f,#1b0d12)}.placeholder-cover.celerity{background:linear-gradient(155deg,#b8893d,#372b1a)}
.placeholder-cover .mini{font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;opacity:.8}.placeholder-cover strong{font:600 1.45rem/1.04 var(--serif);margin:14px 0}.placeholder-cover span{font:.78rem var(--serif);opacity:.9}
.relation-links{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.relation-links a{font-size:.72rem;text-transform:uppercase;letter-spacing:.09em;border:1px solid var(--line);padding:8px 11px}
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.news-card{background:var(--paper-2);border:1px solid var(--line);padding:28px}.news-card time{display:block;color:var(--gold);font-size:.7rem;text-transform:uppercase;letter-spacing:.12em}.news-card h2{font:600 1.75rem/1.05 var(--serif);margin:9px 0}.news-card p{color:var(--muted)}
.series-card,.imprint-card{position:relative;overflow:hidden}.series-card:after,.imprint-card:after{content:'→';position:absolute;right:24px;bottom:20px;color:var(--gold);font-size:1.4rem}
.meta-badge{display:inline-block;font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;padding:6px 9px;border:1px solid var(--line);margin-right:6px;margin-bottom:8px}
.wp-caption,.wp-caption img{max-width:100%;height:auto}.alignwide{width:min(1180px,calc(100vw - 40px));margin-left:50%;transform:translateX(-50%)}
.celerity-form{display:grid;gap:13px}.celerity-form .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:13px}.celerity-form input,.celerity-form select,.celerity-form textarea{width:100%;padding:13px;border:1px solid #c7bfb2;background:#fff;font:inherit}.celerity-form textarea{min-height:150px}.celerity-form label{font-size:.71rem;text-transform:uppercase;letter-spacing:.09em;font-weight:700}.celerity-form .checkline{display:flex;gap:9px;align-items:flex-start;font-size:.8rem;text-transform:none;letter-spacing:0;font-weight:400}.celerity-form .checkline input{width:auto;margin-top:4px}.celerity-alert{padding:12px 15px;background:#efe4ca;border-left:3px solid var(--gold);font-size:.84rem}.celerity-alert.success{background:#e5eee6;border-left-color:#5d7a61}.celerity-alert.error{background:#f2dddd;border-left-color:#8a3943}
.newsletter .celerity-newsletter{display:flex;position:relative}.newsletter .celerity-newsletter input[type=email]{flex:1;padding:14px 16px;border:1px solid #c8c0b4;background:#fff}.newsletter .celerity-newsletter .btn{border:0}.newsletter .celerity-alert{grid-column:1/-1;margin-top:7px}
.pagination{display:flex;gap:8px;margin-top:35px}.pagination .page-numbers{padding:8px 12px;border:1px solid var(--line)}.pagination .current{background:var(--ink);color:#fff}
.site-logo img{max-height:52px;width:auto}.brand.has-logo .brand-mark{display:none}
.home-series-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.home-series-grid .panel{min-height:190px}
.trade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.trade-grid .panel{display:block}
.book-cta{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0}.book-cta .btn{min-width:150px}
@media(max-width:820px){body.admin-bar .header{top:46px}.nav ul{flex-direction:column;align-items:flex-start;gap:12px}.news-grid,.home-series-grid,.trade-grid{grid-template-columns:1fr 1fr}.celerity-form .grid-2{grid-template-columns:1fr}}
@media(max-width:560px){.news-grid,.home-series-grid,.trade-grid{grid-template-columns:1fr}.newsletter .celerity-newsletter{flex-direction:column}}

/* Celerity book-jacket identity */
.book-brand{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-width:285px}
.book-brand .site-logo{display:block;line-height:0}
.book-brand .site-logo img{display:block;width:205px;max-width:24vw;height:auto;max-height:none}
.book-brand .brand-tag{display:block;margin:1px 0 0 44px;color:#d8c9b1;font:italic .74rem/1.2 var(--serif);letter-spacing:.01em}
.footer .book-brand .site-logo img{width:205px;max-width:100%}
.footer .book-brand .brand-tag{margin-left:44px}
@media(max-width:820px){.book-brand .site-logo img{width:190px;max-width:50vw}.book-brand{min-width:auto}}
@media(max-width:560px){.book-brand .site-logo img{width:170px;max-width:54vw}.book-brand .brand-tag{display:none}}


/* v1.0.6 — hard reset for homepage author cards.
   These selectors intentionally use !important to override any WordPress/plugin/global
   link or dark-section rules that may otherwise turn the text white. */
.section-dark .home-author-card,
.section-dark .home-author-card:link,
.section-dark .home-author-card:visited,
.section-dark .home-author-card:hover,
.section-dark .home-author-card:active {
  color:#0d1114 !important;
  background:#fbf8f1 !important;
}
.section-dark .home-author-card h3,
.section-dark .home-author-card h3 a { color:#0d1114 !important; }
.section-dark .home-author-card p { color:#746f65 !important; }
.section-dark .home-author-card .author-monogram { color:#0d1114 !important; }
.section-dark .home-author-card:hover h3 { color:#b8893d !important; }


/* v1.0.7 — homepage authors section: use a light canvas so author cards can never render white-on-white. */
.home-authors-section{background:#f4efe5 !important;color:#0d1114 !important;}
.home-authors-section .section-title h2,
.home-authors-section .section-title .eyebrow{color:#0d1114 !important;}
.home-authors-section .section-title p{color:#746f65 !important;}
.home-authors-section .home-author-card,
.home-authors-section .home-author-card:link,
.home-authors-section .home-author-card:visited{display:block;background:#fbf8f1 !important;color:#0d1114 !important;border:1px solid rgba(13,17,20,.14);}
.home-authors-section .home-author-card h3{color:#0d1114 !important;-webkit-text-fill-color:#0d1114 !important;}
.home-authors-section .home-author-card p{color:#746f65 !important;-webkit-text-fill-color:#746f65 !important;}
.home-authors-section .home-author-card .author-monogram{color:#0d1114 !important;-webkit-text-fill-color:#0d1114 !important;}
.home-authors-section .home-author-card:hover h3{color:#b8893d !important;-webkit-text-fill-color:#b8893d !important;}
