/* Philip Parker 2026 redesign preview
   Refined editorial palette + consistent typography/layout. */

:root{
  --pp-paper:#f7f4ee;
  --pp-surface:#fffdf9;
  --pp-ink:#262522;
  --pp-muted:#6d6962;
  --pp-accent:#765039;
  --pp-accent-dark:#533725;
  --pp-rule:#d8d0c5;
  --pp-max:1120px;
  --pp-reading:760px;
  --pp-radius:3px;
}

html{font-size:100%;}
body{
  background:var(--pp-paper) !important;
  color:var(--pp-ink) !important;
  font-family:"Source Sans 3","Helvetica Neue",Arial,sans-serif !important;
  font-size:17px !important;
  line-height:1.68 !important;
  -webkit-font-smoothing:antialiased;
}
body:before{display:none !important;}

h1,h2,h3,h4,h5,h6,
.site-title,.site-title a{
  font-family:"Cormorant Garamond",Georgia,serif !important;
  color:var(--pp-ink) !important;
  font-weight:600 !important;
  letter-spacing:-0.015em !important;
}
h1{font-size:clamp(2.6rem,5vw,4.2rem) !important;line-height:1.02 !important;margin:.35em 0 .5em !important;}
h2{font-size:clamp(2rem,3vw,2.7rem) !important;line-height:1.1 !important;margin:1.4em 0 .65em !important;}
h3{font-size:1.62rem !important;line-height:1.12 !important;margin:.8em 0 .45em !important;}
h4{font-size:1.3rem !important;line-height:1.2 !important;}

p,li{font-size:1rem;}
a{color:var(--pp-accent-dark);text-underline-offset:3px;}
a:hover{color:var(--pp-accent);}

.site-title,
.site-title a{
  color:#f4efe7 !important;
  font-size:clamp(2.4rem,5vw,4.1rem) !important;
  line-height:.95 !important;
  letter-spacing:-.025em !important;
}
.site-tagline,
.site-tagline a{
  font-family:"Source Sans 3","Helvetica Neue",Arial,sans-serif !important;
  font-size:.84rem !important;
  font-weight:600 !important;
  letter-spacing:.12em !important;
  text-transform:uppercase;
}
.builder-module-header-outer-wrapper{background:#273136 !important;border-bottom:1px solid rgba(255,255,255,.12);}
.builder-module-header .builder-module-element{padding:2.1rem 0 1.85rem !important;}

.builder-module-outer-wrapper{margin-bottom:0 !important;}
.builder-module-block{margin:0 !important;}
.builder-module-content,
.entry-content,
.hentry{
  max-width:var(--pp-max);
  margin-left:auto !important;
  margin-right:auto !important;
}
.entry-content{padding:3rem 2rem 4.5rem;}
.entry-content > p:not([style]),
.entry-content > blockquote{max-width:var(--pp-reading);margin-left:auto;margin-right:auto;}

.entry-title{
  max-width:var(--pp-max);
  margin:1.2rem auto .4rem !important;
  padding:0 2rem;
}

/* Existing content-level navigation becomes a quiet editorial nav rather than a row of chunky buttons. */
.entry-content > div:first-child[style*="background:#efe6d7"],
.entry-content > div:first-child[style*="background: #efe6d7"]{
  background:transparent !important;
  border:0 !important;
  border-bottom:1px solid var(--pp-rule) !important;
  border-radius:0 !important;
  margin:0 0 3.5rem !important;
  padding:0 0 1rem !important;
}
.entry-content > div:first-child[style*="background:#efe6d7"] a,
.entry-content > div:first-child[style*="background: #efe6d7"] a{
  background:transparent !important;
  color:var(--pp-ink) !important;
  border-radius:0 !important;
  padding:.25rem 0 !important;
  margin:.25rem 1rem !important;
  font-size:.84rem !important;
  font-weight:650 !important;
  letter-spacing:.075em !important;
  text-transform:uppercase !important;
  text-decoration:none !important;
  border-bottom:1px solid transparent;
}
.entry-content > div:first-child[style*="background:#efe6d7"] a:hover,
.entry-content > div:first-child[style*="background: #efe6d7"] a:hover{
  border-bottom-color:var(--pp-accent);
  color:var(--pp-accent) !important;
}

/* Consistent call-to-action treatment */
.entry-content a[style*="background:#6d5132"],
.entry-content a[style*="background: #6d5132"],
.pp-button{
  display:inline-block !important;
  background:var(--pp-accent) !important;
  color:#fff !important;
  border:1px solid var(--pp-accent) !important;
  border-radius:var(--pp-radius) !important;
  padding:.62rem 1.05rem !important;
  font-family:"Source Sans 3","Helvetica Neue",Arial,sans-serif !important;
  font-size:.82rem !important;
  font-weight:650 !important;
  letter-spacing:.055em !important;
  text-transform:uppercase !important;
  text-decoration:none !important;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.entry-content a[style*="background:#6d5132"]:hover,
.entry-content a[style*="background: #6d5132"]:hover,
.pp-button:hover{
  background:var(--pp-accent-dark) !important;
  border-color:var(--pp-accent-dark) !important;
  transform:translateY(-1px);
}

/* ---------- Homepage preview ---------- */
.page-id-28 .entry-title{display:none;}
.page-id-28 .entry-content{padding-top:2rem;}
.pp-home{max-width:var(--pp-max);margin:0 auto;}
.pp-home-nav{
  border-bottom:1px solid var(--pp-rule);
  text-align:center;
  padding:0 0 1rem;
  margin:0 0 3.25rem;
}
.pp-home-nav a{
  display:inline-block;
  margin:.25rem 1rem;
  color:var(--pp-ink);
  font-size:.84rem;
  font-weight:650;
  letter-spacing:.075em;
  text-transform:uppercase;
  text-decoration:none;
}
.pp-home-nav a:hover{color:var(--pp-accent);}
.pp-home-hero{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.72fr);
  gap:clamp(2.5rem,6vw,5.75rem);
  align-items:center;
  padding:1rem 0 4.5rem;
  border-bottom:1px solid var(--pp-rule);
}
.pp-kicker{
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--pp-accent);
  margin:0 0 1rem;
}
.pp-home-hero h1{
  max-width:720px;
  font-size:clamp(3.2rem,6.2vw,5.35rem) !important;
  line-height:.94 !important;
  margin:0 0 1.4rem !important;
}
.pp-home-intro{
  max-width:690px;
  font-size:1.19rem !important;
  line-height:1.62;
  color:#3f3c37;
  margin:0 0 1.6rem;
}
.pp-home-hero figure{margin:0;text-align:center;}
.pp-home-hero img{
  width:min(100%,390px);
  height:auto;
  box-shadow:0 18px 45px rgba(42,34,26,.16);
}
.pp-secondary-books{padding:4rem 0 1rem;}
.pp-card-kicker{
  text-align:center;
  font-family:"Source Sans 3","Helvetica Neue",Arial,sans-serif !important;
  font-size:.78rem !important;
  font-weight:700 !important;
  letter-spacing:.14em !important;
  text-transform:uppercase;
  color:var(--pp-accent) !important;
  margin:0 0 .9rem !important;
}
.pp-secondary-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:3rem;
  max-width:820px;
  margin:0 auto;
}
.pp-secondary-card{text-align:center;}
.pp-secondary-card img{
  height:330px;
  width:auto;
  max-width:100%;
  object-fit:contain;
  box-shadow:0 10px 28px rgba(42,34,26,.12);
}
.pp-secondary-card h2{font-size:2rem !important;margin:1rem 0 .5rem !important;}
.pp-secondary-card p{max-width:420px;margin:.5rem auto 1rem;color:var(--pp-muted);}

/* ---------- Books catalogue ---------- */
.page-id-96 .entry-content{max-width:1180px;}
.page-id-96 .books-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:3.25rem 2.35rem !important;
  align-items:start !important;
}
.page-id-96 .books-grid > div{
  width:auto !important;
  margin:0 !important;
  text-align:center !important;
}
.page-id-96 .books-grid > div > div:first-child{
  height:315px !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
}
.page-id-96 .books-grid img{
  max-height:305px !important;
  max-width:205px !important;
  width:auto !important;
  height:auto !important;
  object-fit:contain !important;
  box-shadow:0 8px 22px rgba(42,34,26,.12) !important;
}
.page-id-96 .books-grid h3{
  font-family:"Cormorant Garamond",Georgia,serif !important;
  font-size:1.32rem !important;
  line-height:1.08 !important;
  margin:1rem auto .6rem !important;
  min-height:2.6em;
  max-width:220px;
}
.page-id-96 .books-grid p{
  font-size:.81rem !important;
  line-height:1.5 !important;
  color:var(--pp-muted) !important;
  margin:.25rem auto !important;
  max-width:220px;
}
.page-id-96 .books-grid a:not([style*="background"]){
  color:var(--pp-muted);
  text-decoration:none;
  border-bottom:1px solid #c9c1b7;
}
.page-id-96 .books-grid a:not([style*="background"]):hover{color:var(--pp-accent);border-color:var(--pp-accent);}
.page-id-96 h2.wp-block-heading{text-align:center;margin-top:3.5rem !important;}
.page-id-678 .entry-title{
  font-size:clamp(2rem,3.8vw,3rem) !important;
  white-space:nowrap;
}
@media (max-width:700px){
  .page-id-678 .entry-title{white-space:normal;}
}
.page-id-96 .entry-content > div[style*="background:#f3eee6"]{
  max-width:520px;
  margin:2.75rem auto 0 !important;
  border-left:0 !important;
  border-top:1px solid var(--pp-rule);
  border-bottom:1px solid var(--pp-rule);
  background:transparent !important;
  padding:1rem 1.25rem !important;
}
.page-id-96 .entry-content > div[style*="background:#f3eee6"] > div{
  font-size:.94rem !important;
  line-height:1.45 !important;
  margin-bottom:.75rem !important;
}

/* ---------- Unified book landing-page presentation ---------- */
body.page-id-612 .entry-content,
body.page-id-645 .entry-content,
body.page-id-663 .entry-content,
body.page-id-409 .entry-content,
body.page-id-425 .entry-content{
  max-width:960px;
}
body.page-id-612 .entry-title,
body.page-id-645 .entry-title,
body.page-id-663 .entry-title,
body.page-id-409 .entry-title,
body.page-id-425 .entry-title{
  text-align:center;
  font-size:clamp(3rem,6vw,4.7rem) !important;
}
body.page-id-612 .entry-content > div:nth-of-type(2),
body.page-id-645 .entry-content > div:nth-of-type(2),
body.page-id-663 .entry-content > div:nth-of-type(2){
  text-align:center !important;
  margin-bottom:1.4rem !important;
}
body.page-id-612 .entry-content > div:nth-of-type(2) img,
body.page-id-645 .entry-content > div:nth-of-type(2) img,
body.page-id-663 .entry-content > div:nth-of-type(2) img{
  max-width:360px !important;
  box-shadow:0 14px 36px rgba(42,34,26,.14) !important;
}
body.page-id-612 .entry-content > div:nth-of-type(2) + p,
body.page-id-645 .entry-content > div:nth-of-type(2) + p,
body.page-id-663 .entry-content > div:nth-of-type(2) + p{
  font-family:"Cormorant Garamond",Georgia,serif !important;
  font-size:1.65rem !important;
  line-height:1.25 !important;
  font-weight:500 !important;
  text-align:center !important;
  color:var(--pp-muted) !important;
  margin:0 auto 2.8rem !important;
}
body.page-id-612 .entry-content h2,
body.page-id-645 .entry-content h2,
body.page-id-663 .entry-content h2,
body.page-id-409 .entry-content h2,
body.page-id-425 .entry-content h2{
  text-align:center;
  margin-top:3.5rem !important;
}
body.page-id-409 blockquote,
body.page-id-425 blockquote{
  max-width:760px;
  margin:2.2rem auto .5rem !important;
  padding:1.1rem 1.6rem;
  border-left:2px solid var(--pp-accent);
  font-family:"Cormorant Garamond",Georgia,serif;
  font-size:1.45rem;
  line-height:1.35;
  color:#37342f;
}

.pp-review-slot{
  max-width:760px;
  margin:4.5rem auto 0;
  padding:2rem 0 0;
  border-top:1px solid var(--pp-rule);
  text-align:center;
}
.pp-review-slot h2{margin-top:0 !important;}
.pp-review-slot p{
  color:var(--pp-muted);
  font-style:italic;
}

/* Footer */
.builder-module-footer-outer-wrapper{
  background:#273136 !important;
  color:#e9e6e0 !important;
  margin-top:3rem;
}
.builder-module-footer a{color:#fff !important;}

/* Responsive */
@media (max-width:900px){
  .entry-content{padding:2rem 1.25rem 3.5rem;}
  .pp-home-hero{grid-template-columns:1fr;gap:2.5rem;text-align:center;}
  .pp-home-intro{margin-left:auto;margin-right:auto;}
  .pp-home-hero figure{order:-1;}
  .pp-home-hero img{width:min(72vw,330px);}
  .page-id-96 .books-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:560px){
  body{font-size:16px !important;}
  .pp-home-nav a,
  .entry-content > div:first-child[style*="background:#efe6d7"] a{margin:.3rem .55rem !important;}
  .pp-secondary-grid{grid-template-columns:1fr;gap:2.5rem;}
  .page-id-96 .books-grid{grid-template-columns:1fr 1fr !important;gap:2.5rem 1rem !important;}
  .page-id-96 .books-grid > div > div:first-child{height:250px !important;}
  .page-id-96 .books-grid img{max-height:240px !important;max-width:150px !important;}
  .page-id-96 .books-grid h3{font-size:1.15rem !important;}
}
