/*
Theme Name: Quire Press
Theme URI: https://quirepress.co.uk/
Author: Adam Eves
Author URI: https://quirepress.co.uk/
Description: A design-led theme for an independent publishing imprint. Typographic homepage with published pricing, an honesty section, an FAQ that emits matching structured data, and a journal for long-form editorial content. Built for reading first.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: quire-press
Tags: blog, one-column, custom-logo, custom-menu, featured-images, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

/* ---------------------------------------------------------------- tokens */
:root{
  --stock:      #FCFBF9;
  --stock-deep: #F2EEE8;
  --ink:        #191B1F;
  --slate:      #5B6069;
  --oxblood:    #6E1F2A;
  --oxblood-lt: #93313D;
  --rule:       #DED9D2;
  --band:       #1B1E24;
  --band-soft:  #9AA0A9;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 34rem;
  --page:    72rem;
  --gutter:  clamp(1.25rem, 5vw, 4rem);
}

/* ---------------------------------------------------------------- reset  */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion: no-preference){ html{scroll-behavior:smooth} }
body{
  margin:0;
  background:var(--stock);
  color:var(--ink);
  font-family:var(--serif);
  font-size:clamp(1.0625rem,0.99rem + 0.35vw,1.1875rem);
  line-height:1.62;
  font-variant-numeric:oldstyle-numeric;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto}
h1,h2,h3,h4{margin:0;font-weight:400;line-height:1.14;letter-spacing:-0.015em;text-wrap:balance}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}
a{color:inherit}
.footer ul,.facts,.checklist,.exclusions,.steps,.price ul,.postlist{margin:0;padding:0;list-style:none}

/* --------------------------------------------------------------- layout  */
.page{max-width:var(--page);margin-inline:auto;padding-inline:var(--gutter)}
.measure{max-width:var(--measure)}
section{padding-block:clamp(3.5rem,8vw,6.5rem)}
.rule-top{border-top:1px solid var(--rule)}
.pagehead{padding-bottom:0}

.skip{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--ink);color:var(--stock);
  padding:.75rem 1.25rem;font-family:var(--sans);font-size:.95rem;
}
.skip:focus{left: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;
}

:focus-visible{outline:2px solid var(--oxblood);outline-offset:3px;border-radius:2px}

/* headings ------------------------------------------------------------- */
.h-display{
  font-size:clamp(2.5rem,1.55rem + 4.2vw,4.5rem);
  line-height:1.04;font-weight:400;letter-spacing:-0.028em;
  font-variation-settings:"opsz" 60;
}
.h-display--sm{font-size:clamp(2rem,1.5rem + 2.2vw,3.1rem);line-height:1.08}
.h-section{
  font-size:clamp(1.85rem,1.45rem + 1.7vw,2.75rem);
  font-variation-settings:"opsz" 36;
  margin-bottom:.65em;
}
.lede{font-size:1.12em;color:var(--slate)}

/* --------------------------------------------------------------- header  */
.masthead{
  position:sticky;top:0;z-index:40;
  background:rgba(252,251,249,.92);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--rule);
}
.masthead__inner{display:flex;align-items:center;gap:1.5rem;min-height:4.25rem}
.wordmark{
  display:flex;align-items:center;gap:.6rem;
  font-family:var(--serif);font-size:1.2rem;letter-spacing:.01em;
  text-decoration:none;margin-right:auto;font-variation-settings:"opsz" 20;
}
.wordmark svg{width:26px;height:26px;flex:none;color:var(--oxblood)}
.wordmark img{max-height:40px;width:auto}
.nav{display:flex;align-items:center;gap:1.75rem;font-family:var(--sans);font-size:.94rem}
.nav a{text-decoration:none;color:var(--slate);padding-block:.35rem}
.nav a:hover{color:var(--oxblood)}
.nav .btn{color:#fff}
.nav .btn:hover{color:#fff}
.nav-toggle{display:none}

/* WordPress menu markup, when a menu is assigned to the primary location */
.nav__list{display:flex;align-items:center;gap:1.75rem;list-style:none;margin:0;padding:0}
.nav__list a{display:inline-block}

/* buttons -------------------------------------------------------------- */
.btn{
  display:inline-block;font-family:var(--sans);font-size:.95rem;font-weight:600;
  padding:.72rem 1.35rem;text-decoration:none;border:1px solid transparent;
  cursor:pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease;
}
.btn--solid{background:var(--oxblood);color:#fff}
.btn--solid:hover{background:var(--oxblood-lt);color:#fff}
.btn--line{border-color:var(--ink);color:var(--ink);background:none}
.btn--line:hover{background:var(--ink);color:var(--stock)}
.btn--pale{background:var(--stock);color:var(--ink)}
.btn--pale:hover{background:#fff}
.btn--ghost{background:transparent;color:var(--stock);border-color:rgba(252,251,249,.45)}
.btn--ghost:hover{background:rgba(252,251,249,.12);border-color:var(--stock)}

/* ----------------------------------------------------------------- hero  */
.hero{padding-block:clamp(3rem,9vw,7rem) clamp(2.5rem,6vw,4.5rem)}
.hero__kicker{font-family:var(--sans);font-size:.95rem;color:var(--slate);margin:0 0 1.4rem}
.hero h1{max-width:16ch;margin-bottom:1.6rem}
.hero__prose{max-width:var(--measure);font-size:1.06em}
.hero__prose > p:first-of-type::first-letter{
  float:left;font-size:3.85em;line-height:.82;padding:.06em .1em 0 0;
  color:var(--oxblood);font-weight:400;font-variation-settings:"opsz" 72;
}
.hero__actions{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:2.25rem}

/* three facts ---------------------------------------------------------- */
.facts{
  display:grid;gap:0;grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--rule);margin-top:clamp(3rem,7vw,4.5rem);
}
.facts > li{padding:1.75rem 1.75rem 1.75rem 0;border-right:1px solid var(--rule)}
.facts > li + li{padding-left:1.75rem}
.facts > li:last-child{border-right:0;padding-right:0}
.facts b{
  display:block;font-weight:400;
  font-size:clamp(1.35rem,1.15rem + .8vw,1.85rem);
  line-height:1.15;margin-bottom:.4rem;font-variation-settings:"opsz" 30;
}
.facts span{font-family:var(--sans);font-size:.92rem;color:var(--slate);line-height:1.5;display:block}

/* --------------------------------------------------------- statement band */
.band{background:var(--band);color:var(--stock)}
.band p{
  max-width:26ch;font-size:clamp(1.7rem,1.15rem + 2.4vw,3rem);
  line-height:1.2;letter-spacing:-0.02em;font-variation-settings:"opsz" 44;
}
.band .band__note{
  max-width:38rem;font-size:1rem;color:var(--band-soft);
  margin-top:1.75rem;line-height:1.65;
}
.band em{font-style:italic;color:#E8B4BC}

/* --------------------------------------------------------------- splits  */
.split{display:grid;gap:clamp(2rem,5vw,4.5rem);grid-template-columns:minmax(0,1fr)}
@media (min-width:56rem){
  .split{grid-template-columns:minmax(0,20rem) minmax(0,1fr)}
  .split--wide{grid-template-columns:minmax(0,22rem) minmax(0,1fr)}
}

.checklist li{
  padding:.7rem 0 .7rem 1.9rem;border-bottom:1px solid var(--rule);
  position:relative;font-size:1.02em;
}
.checklist li::before{
  content:"";position:absolute;left:.15rem;top:1.18em;
  width:.55rem;height:.55rem;border:1px solid var(--oxblood);transform:rotate(45deg);
}
.checklist li:first-child{padding-top:0}
.checklist li:first-child::before{top:.56em}

.exclusions li{padding:.85rem 0;border-bottom:1px solid var(--rule);color:var(--slate)}
.exclusions strong{color:var(--ink);font-weight:600;font-family:var(--sans);font-size:.97rem}

/* ---------------------------------------------------------------- steps  */
.steps{counter-reset:step;margin-top:.5rem}
.steps > li{
  display:grid;grid-template-columns:3.25rem minmax(0,1fr);
  gap:0 1.25rem;padding:1.5rem 0;border-bottom:1px solid var(--rule);
}
.steps > li::before{
  counter-increment:step;content:counter(step);
  font-family:var(--serif);font-size:1.9rem;color:var(--oxblood);
  line-height:1;padding-top:.15rem;font-variation-settings:"opsz" 30;
}
.steps h3{font-size:1.2rem;margin-bottom:.3rem;font-variation-settings:"opsz" 24}
.steps p{color:var(--slate);font-size:.99em;max-width:44rem}

/* --------------------------------------------------------------- prices  */
.prices__note{margin-top:2.25rem;color:var(--slate);font-size:.99em}
.prices{
  display:grid;gap:0;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));
  border-top:2px solid var(--ink);margin-top:2rem;
}
.price{
  padding:1.9rem 1.75rem 2.1rem 0;border-right:1px solid var(--rule);
  display:flex;flex-direction:column;
}
.price + .price{padding-left:1.75rem}
.price:last-child{border-right:0;padding-right:0}
.price--pick{border-top:2px solid var(--oxblood);margin-top:-2px}
.price h3{font-size:1.3rem;margin-bottom:.15rem;font-variation-settings:"opsz" 24}
.price__note{font-family:var(--sans);font-size:.78rem;font-weight:600;color:var(--oxblood);margin:0 0 .55rem}
.price__fig{font-size:2.1rem;line-height:1.1;margin:.45rem 0 1rem;font-variation-settings:"opsz" 34}
.price__fig small{font-size:.95rem;color:var(--slate);display:block;font-family:var(--sans);margin-top:.3rem}
.price ul{font-size:.97rem;color:var(--slate);flex:1}
.price li{padding:.42rem 0;border-bottom:1px solid var(--rule)}
.price li:last-child{border-bottom:0}

/* ------------------------------------------------------------- honesty   */
.honest{background:var(--stock-deep)}
.honest .exclusions li{border-bottom-color:#DDD5CA}

/* -------------------------------------------------------------- founder  */
.founder blockquote{
  margin:0;font-size:1.15em;line-height:1.55;
  border-left:2px solid var(--oxblood);padding-left:1.5rem;
  font-style:italic;color:var(--ink);max-width:32rem;
}

/* ------------------------------------------------------------------ faq  */
.faq details{border-bottom:1px solid var(--rule)}
.faq summary{cursor:pointer;list-style:none;padding:1.15rem 2.5rem 1.15rem 0;position:relative;font-size:1.09em}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"+";position:absolute;right:.35rem;top:1.05rem;
  font-family:var(--sans);font-size:1.35rem;color:var(--oxblood);line-height:1;
}
.faq details[open] summary::after{content:"\2013"}
.faq summary:hover{color:var(--oxblood)}
.faq .answer{padding:0 0 1.4rem;color:var(--slate);max-width:46rem}

/* ------------------------------------------------------------------ cta  */
.cta{background:var(--band);color:var(--stock)}
.cta h2{max-width:18ch}
.cta p{color:var(--band-soft);max-width:36rem;margin-top:1.1rem}
.cta__actions{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:2rem}

/* -------------------------------------------------------- journal lists  */
.postlist{display:grid;gap:0;border-top:1px solid var(--rule)}
.postlist__item{padding:1.9rem 0;border-bottom:1px solid var(--rule);max-width:46rem}
.postlist__item h2,.postlist__item h3{
  font-size:clamp(1.3rem,1.15rem + .7vw,1.7rem);
  margin-bottom:.35rem;font-variation-settings:"opsz" 28;
}
.postlist__item a{text-decoration:none}
.postlist__item h2 a:hover,.postlist__item h3 a:hover{color:var(--oxblood);text-decoration:underline;text-underline-offset:3px}
.postlist__meta{font-family:var(--sans);font-size:.85rem;color:var(--slate);margin-bottom:.7rem}
.postlist__item p{color:var(--slate)}
.postlist__more a{
  font-family:var(--sans);font-size:.9rem;font-weight:600;color:var(--oxblood);
  text-decoration:none;border-bottom:1px solid currentColor;
}

.pagination{margin-top:2.5rem;font-family:var(--sans);font-size:.95rem}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
.pagination a,.pagination .current{padding:.45rem .8rem;text-decoration:none;border:1px solid var(--rule)}
.pagination .current{background:var(--ink);color:var(--stock);border-color:var(--ink)}
.pagination a:hover{border-color:var(--oxblood);color:var(--oxblood)}

/* --------------------------------------------------------- article body  */
.article{padding-block:clamp(3rem,7vw,5rem)}
.article__head{max-width:38rem;margin-bottom:2.25rem}
.article__meta{font-family:var(--sans);font-size:.88rem;color:var(--slate);margin-top:1rem}
.article__image{margin:0 0 2.5rem}
.article__image img{width:100%}

.entry{max-width:38rem}
.entry > *{margin-bottom:1.15em}
.entry h2{font-size:1.75rem;margin-top:2.4em;margin-bottom:.5em;font-variation-settings:"opsz" 30}
.entry h3{font-size:1.35rem;margin-top:2em;margin-bottom:.45em;font-variation-settings:"opsz" 24}
.entry a{color:var(--oxblood);text-decoration:underline;text-underline-offset:2px}
.entry ul,.entry ol{padding-left:1.35rem}
.entry li{margin-bottom:.45em}
.entry blockquote{
  margin:2em 0;padding-left:1.5rem;border-left:2px solid var(--oxblood);
  font-style:italic;color:var(--ink);
}
.entry img,.entry figure{max-width:100%}
.entry figcaption{font-family:var(--sans);font-size:.85rem;color:var(--slate);margin-top:.6rem}
.entry code,.entry pre{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em}
.entry pre{background:var(--stock-deep);padding:1.1rem;overflow-x:auto}
.entry hr{border:0;border-top:1px solid var(--rule);margin:2.5em 0}
.entry table{width:100%;border-collapse:collapse;font-size:.95em}
.entry th,.entry td{padding:.6rem;border-bottom:1px solid var(--rule);text-align:left}
.entry .alignwide{max-width:min(58rem,100%)}
.entry .alignfull{max-width:none}

.post-navigation{margin-top:3rem;padding-top:1.75rem;border-top:1px solid var(--rule);max-width:38rem}
.post-navigation .nav-links{display:grid;gap:1.25rem}
.post-navigation a{text-decoration:none;font-size:1.05rem}
.post-navigation a:hover{color:var(--oxblood)}
.post-navigation span{
  display:block;font-family:var(--sans);font-size:.8rem;
  color:var(--slate);font-weight:600;margin-bottom:.2rem;
}

/* -------------------------------------------------------------- comments */
.comments-area{max-width:38rem;margin-top:3.5rem;padding-top:2rem;border-top:1px solid var(--rule)}
.comment-list{list-style:none;padding:0;margin:1.5rem 0}
.comment-list li{padding:1.1rem 0;border-bottom:1px solid var(--rule)}
.comment-form label{display:block;font-family:var(--sans);font-size:.9rem;margin-bottom:.3rem}

/* ------------------------------------------------------------- searchform */
.searchform{display:flex;gap:.6rem}
.searchform input[type="search"]{
  flex:1;min-width:0;font-family:var(--sans);font-size:1rem;
  padding:.7rem .85rem;border:1px solid var(--rule);background:#fff;color:var(--ink);
}
.searchform input[type="search"]:focus-visible{border-color:var(--oxblood)}

/* --------------------------------------------------------------- footer  */
.footer{
  border-top:1px solid var(--rule);padding-block:3rem 2.5rem;
  font-family:var(--sans);font-size:.9rem;color:var(--slate);
}
.footer__grid{display:grid;gap:2rem;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}
.footer h2{font-family:var(--sans);font-size:.88rem;font-weight:600;color:var(--ink);margin-bottom:.75rem}
.footer li{padding:.28rem 0}
.footer a{text-decoration:none}
.footer a:hover{color:var(--oxblood);text-decoration:underline}
.footer__base{
  margin-top:2.75rem;padding-top:1.5rem;border-top:1px solid var(--rule);
  display:flex;flex-wrap:wrap;gap:.75rem 2rem;justify-content:space-between;
}

/* ------------------------------------------------------- admin bar nudge */
body.admin-bar .masthead{top:32px}
@media screen and (max-width:782px){ body.admin-bar .masthead{top:46px} }

/* ----------------------------------------------------------- responsive  */
@media (max-width:52rem){
  .facts{grid-template-columns:1fr}
  .facts > li,.facts > li + li{padding:1.35rem 0;border-right:0;border-bottom:1px solid var(--rule)}
  .facts > li:last-child{border-bottom:0}
  .prices{grid-template-columns:1fr}
  .price,.price + .price{padding:1.6rem 0;border-right:0;border-bottom:1px solid var(--rule)}
  .price--pick{border-top:2px solid var(--oxblood);margin-top:0}
  .price:last-child{border-bottom:0}
}

@media (max-width:48rem){
  .nav{
    position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;
    background:var(--stock);border-bottom:1px solid var(--rule);
    padding:.5rem var(--gutter) 1.25rem;
  }
  .nav[hidden]{display:none}
  .nav a{padding:.75rem 0;border-bottom:1px solid var(--rule);font-size:1rem}
  .nav__list{flex-direction:column;align-items:stretch;gap:0;width:100%}
  .nav .btn{margin-top:.9rem;text-align:center;border-bottom:0}
  .nav-toggle{
    display:inline-flex;align-items:center;gap:.5rem;
    background:none;border:1px solid var(--rule);color:var(--ink);
    font-family:var(--sans);font-size:.92rem;font-weight:500;
    padding:.5rem .85rem;cursor:pointer;
  }
  .hero__prose > p:first-of-type::first-letter{font-size:3.2em}
  .steps > li{grid-template-columns:2.4rem minmax(0,1fr)}
  .steps > li::before{font-size:1.5rem}
}

@media (prefers-reduced-motion: reduce){
  *{transition-duration:.01ms !important;animation-duration:.01ms !important}
}

/* ------------------------------------------------------ section pages 1.1  */
.section--bare{padding-top:clamp(1.75rem,4vw,2.75rem)}
.pagehead__intro{margin-top:1.75rem}
.pagehead + .section--bare{padding-top:clamp(1.5rem,3vw,2.25rem)}

.signposts{
  display:grid;gap:0;
  grid-template-columns:repeat(auto-fit,minmax(17rem,1fr));
  border-top:1px solid var(--rule);margin-top:1.5rem;
}
.signpost{
  padding:1.6rem 1.75rem 1.8rem 0;
  border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);
}
.signpost h3{font-size:1.25rem;margin-bottom:.4rem;font-variation-settings:"opsz" 26}
.signpost h3 a{text-decoration:none}
.signpost h3 a::after{content:"";position:absolute;inset:0}
.signpost{position:relative}
.signpost:hover h3 a{color:var(--oxblood)}
.signpost p{font-family:var(--sans);font-size:.92rem;color:var(--slate);line-height:1.55}

.contactlist{display:grid;gap:0;max-width:34rem;border-top:1px solid var(--rule)}
.contactlist li{
  display:flex;flex-wrap:wrap;gap:.35rem 1.5rem;align-items:baseline;
  padding:1rem 0;border-bottom:1px solid var(--rule);
}
.contactlist b{
  flex:0 0 9rem;font-family:var(--sans);font-size:.85rem;
  font-weight:600;color:var(--slate);
}
.contactlist a{color:var(--oxblood);text-decoration:underline;text-underline-offset:2px}

@media (max-width:52rem){
  .signposts{grid-template-columns:1fr}
  .signpost{padding:1.35rem 0;border-right:0}
  .contactlist b{flex:0 0 100%}
}
