/*
Theme Name: Evstar (M A Farrell)
Theme URI: https://mafarrellbooks.com
Description: Child theme of Twenty Twenty-Five for mafarrellbooks.com. Adds the site's colours, Inter, a header and footer, and block patterns for the homepage and book pages built from the Nov 2026 wireframes.
Author: Brendan Smith
Author URI: https://brendansmith.ca
Template: twentytwentyfive
Version: 0.1.0
Requires at least: 6.6
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: evstar
*/

/* ---------- Section rhythm ---------- */
.ev-section { padding-top: var(--wp--preset--spacing--60, 4rem); padding-bottom: var(--wp--preset--spacing--60, 4rem); border-bottom: 2px solid var(--wp--preset--color--line); }
.ev-section > * { max-width: 1120px; margin-left: auto !important; margin-right: auto !important; }

.ev-kicker { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.ev-lede { font-size: 1.25rem; line-height: 1.45; }
.ev-placeholder { color: var(--wp--preset--color--muted); font-style: italic; }

/* ---------- Covers ---------- */
.ev-cover img { width: 100%; aspect-ratio: 5 / 8; object-fit: contain; background: var(--wp--preset--color--mist); border: 2px solid var(--wp--preset--color--line-strong); box-sizing: border-box; }
.ev-cover-needed { aspect-ratio: 5 / 8; display: flex; align-items: center; justify-content: center; background: var(--wp--preset--color--mist); border: 2px solid var(--wp--preset--color--line-strong); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; }

.ev-author-photo { width: 140px; height: 140px; aspect-ratio: 1 / 1; border-radius: 50%; margin: 0; }
.ev-grid-title { font-size: 1.1rem; margin-bottom: 0; }
.ev-grid-title a, .ev-book-row h3 a { text-decoration: none; }

/* ---------- Counters (book hero) ---------- */
.ev-counter { border: 2px solid var(--wp--preset--color--line); padding: 0.9rem 1rem; flex: 1 1 140px; }
.ev-counter .ev-counter-number { font-size: 2rem; font-weight: 700; line-height: 1; margin: 0; }
.ev-counter .ev-counter-label { font-size: 0.875rem; color: var(--wp--preset--color--muted); margin: 0.25rem 0 0; }

/* ---------- Collection rows (homepage) ---------- */
.ev-book-row { border-top: 2px solid var(--wp--preset--color--line); padding-top: 2rem; }
.ev-book-row .wp-block-column:first-child { max-width: 200px; }

/* ---------- Quotes ---------- */
.ev-quote-card { border: 2px solid var(--wp--preset--color--line); background: var(--wp--preset--color--paper); padding: 1.5rem; margin: 0; }
.ev-quote-card p { font-size: 1.125rem; line-height: 1.45; }
.ev-quote-card cite { font-size: 0.875rem; color: var(--wp--preset--color--muted); font-style: normal; }
.ev-quote-lead p { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; font-weight: 600; }

/* ---------- Book structure strip ---------- */
.ev-strip { gap: 6px !important; align-items: stretch !important; flex-wrap: nowrap !important; }
.ev-strip > .ev-strip-frame { flex: 0 0 34px; min-height: 96px; background: var(--wp--preset--color--ink); margin: 0; }
.ev-strip > .ev-strip-story { flex: 1 1 0; min-width: 0; min-height: 96px; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; background: var(--wp--preset--color--paper); border: 2px solid var(--wp--preset--color--line-strong); font-size: 0.75rem; font-weight: 600; line-height: 1.2; }
@media (max-width: 700px) {
  .ev-strip { flex-wrap: wrap !important; }
  .ev-strip > .ev-strip-frame { flex-basis: 100%; min-height: 8px; }
  .ev-strip > .ev-strip-story { flex-basis: 100%; min-height: 44px; }
}

/* ---------- Story records with the Junk Man "spine" ---------- */
.ev-records { position: relative; padding-left: 64px; }
.ev-records::before { content: ""; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 2px; background: var(--wp--preset--color--line-strong); }
.ev-frame-node { position: relative; }
.ev-frame-node::before { content: ""; position: absolute; left: -51px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--wp--preset--color--ink); }
.ev-frame-node .ev-kicker { margin: 0; }
.ev-record { position: relative; border: 2px solid var(--wp--preset--color--line-strong); background: var(--wp--preset--color--paper); padding: 1.75rem 2rem; }
.ev-record::before { content: ""; position: absolute; left: -59px; top: 28px; width: 32px; height: 32px; box-sizing: border-box; border-radius: 50%; background: var(--wp--preset--color--paper); border: 2px solid var(--wp--preset--color--ink); }
.ev-record.is-featured { border: 3px solid var(--wp--preset--color--ink); }
.ev-record.is-featured::before { background: var(--wp--preset--color--ink); }
.ev-record h3 { margin: 0; }
.ev-record .wp-block-quote { border: 0; padding: 0; margin: 0.25rem 0 0; }
.ev-record .wp-block-quote p { font-size: 1.25rem; font-style: italic; }
.ev-tags { gap: 8px !important; }
.ev-tag { margin: 0; font-size: 0.8rem; font-weight: 600; background: var(--wp--preset--color--mist-strong); padding: 4px 10px; border-radius: 999px; }
.ev-tag.is-dark { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
@media (max-width: 600px) {
  .ev-records { padding-left: 0; }
  .ev-records::before, .ev-frame-node::before, .ev-record::before { display: none; }
}

/* ---------- Excerpt shown as a book page ---------- */
.ev-page-excerpt { background: var(--wp--preset--color--cream); border: 2px solid var(--wp--preset--color--line-strong); padding: 2.5rem 2.75rem; box-shadow: 8px 8px 0 var(--wp--preset--color--line); }
.ev-page-excerpt p { line-height: 1.7; }

/* ---------- Form slot (replace with your form plugin's block) ---------- */
.ev-form-slot { border: 2px dashed var(--wp--preset--color--line-strong); padding: 1.25rem; background: var(--wp--preset--color--paper); }

/* ---------- Dark buy band ---------- */
.ev-buy-band { border-bottom: 0; }
.ev-buy-band .wp-block-button__link { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
.ev-buy-band .ev-cover img { max-width: 110px; }

/* ---------- Header ---------- */
.ev-site-header { border-bottom: 2px solid var(--wp--preset--color--line); }
.ev-site-header .wp-block-site-title { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ev-site-header .wp-block-site-title a { text-decoration: none; }
.ev-site-header .wp-block-site-tagline { margin: 0; font-size: 0.8rem; color: var(--wp--preset--color--muted); }
