/*
Theme Name: James Heritage
Template: twentytwentyfive
Description: Heritage look for the James Motorcycles archive – warm paper background, James red, Fraunces headings. Child theme of Twenty Twenty-Five.
Version: 1.0.8
Requires at least: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: james-heritage
*/

/* Small touches the block settings can't express */
.jh-card { transition: box-shadow .15s ease; }
.jh-card:hover { box-shadow: 0 4px 14px rgba(30, 26, 22, .10); }
.jh-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.jh-cover img { aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; }
.jh-eyebrow { letter-spacing: .12em; text-transform: uppercase; }
:where(h1, h2, h3, h4, [id]) { scroll-margin-top: 100px; }
.jh-card img[src$=".png"] { object-position: top; }

/* Section pages */
.jh-contents { background: var(--wp--preset--color--accent-5); border: 1px solid var(--wp--preset--color--accent-6); border-radius: 8px; padding: 18px 24px; font-size: 15px; }
.jh-contents p { margin: 6px 0; }
.jh-count, .jh-meta { color: var(--wp--preset--color--accent-4); }
.jh-meta { font-size: 14px; }
.jh-section { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--wp--preset--color--accent-6); }
.jh-section > h2 { margin-top: 0; }
.jh-docs { gap: 28px 24px; margin-top: 24px; }
.jh-doc .wp-block-image { margin: 0; }
.jh-doc img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 4px; background: #fff; transition: box-shadow .15s ease; }
.jh-doc a:hover img { box-shadow: 0 4px 14px rgba(30, 26, 22, .14); }
.jh-doc-title { font-size: 15px; line-height: 1.35; margin-top: 10px; }
.jh-doc-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.jh-doc-title a:hover { color: var(--wp--preset--color--accent-1); text-decoration: underline; }
.jh-stories { gap: 24px; margin-top: 24px; }
.jh-story { background: var(--wp--preset--color--accent-5); border: 1px solid var(--wp--preset--color--accent-6); border-radius: 8px; overflow: hidden; padding-bottom: 20px; }
.jh-story > :not(figure) { padding-left: 20px; padding-right: 20px; }
.jh-story > figure { margin: 0; }
.jh-story img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; }
.jh-story .jh-eyebrow { font-size: 12px; font-weight: 600; color: var(--wp--preset--color--accent-3); margin-top: 16px; }
.jh-story h3 { margin-top: 6px; }
.jh-cta { font-weight: 600; }
