/*
Theme Name: Cirsium Press
Theme URI: https://cirsiumpress.com/
Author: Cirsium Press
Description: A restrained botanical publishing theme for Cirsium Press. Includes Home, Catalogue, Contact, author, series and title layouts.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cirsium-press
*/

:root {
  --paper: #f4f2ed;
  --ink: #252525;
  --muted: #77736d;
  --line: #d9d5cd;
  --paper-deep: #ece8e0;
  --serif: Baskerville, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }

.site-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand-small {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-family: var(--serif);
  letter-spacing: .15em;
  font-size: 1rem;
  white-space: nowrap;
}
.brand-small img { width: 30px; height: 42px; object-fit: contain; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .76rem;
  padding-bottom: .2rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--ink); }

main { min-height: 68vh; }
.hero {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem 0 6rem;
}
.hero-mark {
  width: min(900px, 94vw);
  margin: 0 auto 2.2rem;
}
.kicker {
  margin: 0 0 .6rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .73rem;
}
.tagline {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 400;
}

.page-head {
  padding: 5.5rem 0 2.7rem;
  border-bottom: 1px solid var(--line);
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}
h1 { font-size: clamp(3rem, 7vw, 6.2rem); margin: 0; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 1rem; }
h3 { font-size: 1.45rem; margin: 0; }
.subhead { color: var(--muted); max-width: 54ch; margin: .8rem 0 0; }
.content { padding: 4rem 0 6rem; }
.content-copy { max-width: 760px; }
.content-copy p:first-child { margin-top: 0; }

.catalogue-tree { max-width: 760px; }
.tree-block { padding-left: 1.4rem; border-left: 1px solid var(--line); margin: 1.6rem 0 0; }
.tree-link { text-decoration: none; display: inline-block; }
.tree-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.tree-meta {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  margin: .25rem 0 0;
}
.book-entry {
  margin-top: 1.5rem;
  padding: 1.5rem 0 1.5rem 1.35rem;
  border-left: 1px solid var(--line);
}
.book-entry .title { font-family: var(--serif); font-size: 1.8rem; }
.book-entry .tag { font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: .3rem; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) 1.45fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}
.botanical-card {
  border: 1px solid var(--line);
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 2.2rem;
  background: rgba(255,255,255,.2);
}
.botanical-card img { max-height: 320px; }
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .72rem;
  margin-bottom: 1rem;
}
.big-title { font-size: clamp(2.8rem, 6vw, 5.3rem); margin: 0 0 .7rem; }
.series-link { color: var(--muted); text-decoration: none; }
.series-link:hover { text-decoration: underline; }
.book-tagline { font-family: var(--serif); font-size: 1.55rem; font-style: italic; margin: 2rem 0; }
.status-note { padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }

.contact-wrap { max-width: 720px; }
.contact-form {
  margin-top: 2rem;
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: rgba(255,255,255,.18);
}
.contact-form label {
  display: block;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .45rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  padding: .9rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form button {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: .9rem 1.3rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  cursor: pointer;
}
.contact-form button:hover { opacity: .86; }
.form-message { padding: .9rem 1rem; margin: 0 0 1.4rem; border: 1px solid var(--line); }
.form-message.success { background: rgba(255,255,255,.32); }
.form-message.error { border-color: #8b5c5c; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.4rem;
  color: var(--muted);
  font-size: .8rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

.wp-block-image img { height: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

@media (max-width: 720px) {
  .header-inner { min-height: 76px; align-items: flex-start; padding: 1rem 0; flex-direction: column; gap: .8rem; }
  .site-nav { gap: 1rem; flex-wrap: wrap; }
  .hero { min-height: 60vh; padding: 4rem 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .botanical-card { min-height: 300px; }
  .botanical-card img { max-height: 250px; }
  .page-head { padding-top: 4rem; }
}


/* v1.2 catalogue cover + press contact + restrained author links */
.catalogue-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.external-link,
.author-link,
.quiet-link {
  color: inherit;
  text-decoration: none;
}
.external-link {
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .04em;
}
.external-link:hover,
.author-link:hover,
.quiet-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.book-entry-with-cover {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}
.book-cover-link { display: block; }
.book-thumb {
  width: 105px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 9px 24px rgba(37,37,37,.07);
}
.cover-card {
  display: flex;
  justify-content: center;
}
.book-cover-large {
  width: min(100%, 390px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(37,37,37,.10);
}
.author-line { font-family: var(--serif); font-size: 1.2rem; }
.text-button {
  display: inline-block;
  margin-top: .5rem;
  border: 1px solid var(--ink);
  padding: .72rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
}
.text-button:hover { background: var(--ink); color: var(--paper); }
.contact-email {
  margin: .35rem 0 .15rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}
.contact-email a { text-decoration: none; }
.contact-email a:hover { text-decoration: underline; text-underline-offset: .18em; }
.contact-or { color: var(--muted); margin-top: .35rem; }

@media (max-width: 560px) {
  .book-entry-with-cover { grid-template-columns: 78px minmax(0, 1fr); gap: 1rem; }
  .book-thumb { width: 78px; }
}

.author-website-note {
  margin: 2.4rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

/* Publication information and homepage forthcoming title. */
.forthcoming { border-top: 1px solid var(--line); padding: 3rem 0 4rem; }
.forthcoming-inner { max-width: 760px; }
.forthcoming .kicker { margin-bottom: 1.5rem; line-height: 1.6; font-family: var(--sans); }
.forthcoming-book { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 2rem; align-items: center; }
.forthcoming-cover { width: 140px; height: auto; border: 1px solid var(--line); box-shadow: 0 9px 24px rgba(37,37,37,.07); }
.forthcoming-book-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.forthcoming .author-line { margin: .6rem 0 .4rem; }
.forthcoming-date { color: var(--muted); margin: 0 0 .8rem; }
.publication-details { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.publication-date { margin: 0 0 1.2rem; }
.book-metadata { margin: 0; }
.book-metadata dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-top: 1rem; }
.book-metadata dd { margin: .25rem 0 0; }
.isbn { white-space: nowrap; }
@media (max-width: 560px) {
  .forthcoming-book { grid-template-columns: 90px minmax(0, 1fr); gap: 1rem; }
  .forthcoming-cover { width: 90px; }
  .forthcoming-book-title { font-size: 1.8rem; }
}

/* v1.6 · Publisher book page: synopsis, confirmed pre-orders and free sampler. */
.book-detail-content { padding-bottom: 5.5rem; }
.book-detail-main .eyebrow { margin-top: 0; }
.book-detail-main .big-title { font-size: clamp(2.5rem, 5vw, 4.3rem); }
.book-detail-main .book-tagline { margin: 1.5rem 0; }
.book-detail-main .publication-details { margin-top: 1.65rem; }
.book-detail-main .book-metadata {
  display: grid;
  grid-template-columns: minmax(90px, 115px) minmax(0, 1fr);
  column-gap: .95rem;
  row-gap: .72rem;
}
.book-detail-main .book-metadata dt,
.book-detail-main .book-metadata dd { margin: 0; }
.book-detail-main .book-metadata dd { overflow-wrap: anywhere; }
.book-buy { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.7rem; }
.section-label {
  margin: 0 0 1rem;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .14em;
  font-size: .74rem;
  line-height: 1.5;
}
.retailer-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.retailer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .65rem .9rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: .81rem;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.retailer-links a:hover,
.retailer-links a:focus-visible { background: var(--ink); color: var(--paper); }
.retailer-note {
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
}
.book-story {
  display: grid;
  grid-template-columns: minmax(190px, .55fr) 1.45fr;
  gap: clamp(2rem, 7vw, 6rem);
  padding: 4rem 0 3.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}
.book-section-heading h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  line-height: 1.18;
  max-width: 14ch;
}
.book-synopsis { max-width: 65ch; font-size: 1.02rem; }
.book-synopsis p { margin: 0 0 .85rem; }
.book-synopsis p:last-child { margin-bottom: 0; }
.book-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 2.4rem 2.75rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
}
.book-preview h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: .75rem; }
.book-preview p:not(.kicker) { margin: 0; max-width: 51ch; }
.book-preview-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; flex: 0 0 auto; }
.book-preview-actions .text-button { margin-top: 0; }
.book-preview-actions .external-link { font-size: .75rem; }
@media (max-width: 900px) {
  .book-preview { align-items: flex-start; flex-direction: column; gap: 1.35rem; }
}
@media (max-width: 720px) {
  .book-story { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 2.75rem; margin-top: 2.75rem; }
  .book-section-heading h2 { max-width: none; }
  .book-preview { padding: 1.5rem; }
}
@media (max-width: 420px) {
  .book-detail-main .book-metadata { grid-template-columns: 1fr; row-gap: .1rem; }
  .book-detail-main .book-metadata dd { margin-bottom: .7rem; }
}

/* v1.7 · Discreet third-party reception and editorial coverage. */
.cirsium-reception {
  padding: 2.7rem 0 3.5rem;
  border-top: 1px solid var(--line);
}
.cirsium-reception-inner { max-width: 760px; }
.cirsium-reception .kicker { margin-bottom: 1.15rem; }
.cirsium-reception-quote { margin: 0; max-width: 58ch; }
.cirsium-reception-quote p {
  margin: 0 0 .65rem;
  font: italic 400 clamp(1.1rem, 2vw, 1.4rem)/1.55 var(--serif);
}
.cirsium-reception-quote footer,
.cirsium-review-list footer {
  color: var(--muted);
  font: 400 .75rem/1.5 var(--sans);
  letter-spacing: .025em;
}
.cirsium-coverage {
  padding-top: 1.2rem;
  margin: 1.65rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.cirsium-coverage a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.cirsium-book-reviews {
  padding: 3rem 0 3.6rem;
  margin: 0 auto 3.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cirsium-book-reviews-header { max-width: 760px; margin: 0 auto 1.6rem; }
.cirsium-book-reviews-header h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.45rem); }
.cirsium-review-list { max-width: 760px; margin: 0 auto; }
.cirsium-review-list blockquote { padding: 1.2rem 0; margin: 0; }
.cirsium-review-list blockquote + blockquote { border-top: 1px solid var(--line); }
.cirsium-review-list p { margin: 0 0 .5rem; font: italic 400 1.16rem/1.55 var(--serif); }
@media (max-width: 720px) {
  .cirsium-reception { padding: 2.2rem 0 2.6rem; }
  .cirsium-book-reviews { padding: 2.3rem 0 2.6rem; margin-bottom: 2.7rem; }
}

.cirsium-coverage .no-break { white-space: nowrap; }
