/*
Theme Name: Jess Talks Cats
Theme URI: https://jesstalkscats.com
Author: Jess Talks Cats
Description: A warm block theme for selling Jess Talks Cats books and products. Give each book its own page with the Book sales page template and the Full sales page pattern. Any link to a Gumroad product opens Gumroad's checkout as a pop-up.
Version: 2.0.0
Requires at least: 6.6
Tested up to: 6.8
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: jesstalkscats
*/

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2 { text-wrap: balance; }
#buy, #about, #books, #inside { scroll-margin-top: 1rem; }

/* Sections sit flush against each other */
.wp-site-blocks > * { margin-block: 0; }
.jtc-landing .wp-block-post-content > * { margin-block: 0; }

/* Small labels */
.jtc-kicker, .jtc-label { font-family: var(--wp--preset--font-family--sans); font-weight: 700;
	text-transform: uppercase; letter-spacing: .16em; }
.jtc-note { opacity: .78; }

/* The book cover: a real object with weight */
.jtc-cover img { border-radius: 3px; box-shadow: var(--wp--custom--shadow-cover); }
@media (prefers-reduced-motion: no-preference) {
	.jtc-hero .jtc-cover img { animation: jtc-settle 900ms cubic-bezier(.2,.7,.2,1) 150ms both; }
	@keyframes jtc-settle { from { opacity: 0; transform: translateY(24px) rotate(1.5deg); } to { opacity: 1; transform: none; } }
}
.jtc-photo img, .jtc-portrait img { border-radius: 4px; }

/* Opening story */
.jtc-opening .jtc-lede { font-family: var(--wp--preset--font-family--serif); line-height: 1.4; }

/* Same signal, two meanings: a rule between rows */
.jtc-meaning { padding-block: 1.6rem; margin-block: 0 !important; }
.jtc-meaning + .jtc-meaning { border-top: 1px solid rgba(30,42,33,.16); }
.jtc-meanings { border-top: 2px solid var(--wp--preset--color--ink); border-bottom: 2px solid var(--wp--preset--color--ink); }
.jtc-meaning .jtc-label { font-size: .75rem; color: var(--wp--preset--color--sage); margin-bottom: .35rem; }
.jtc-meaning .jtc-label + p { margin-top: 0; }
.jtc-meaning h3 { margin: 0; }
.jtc-after { font-style: italic; }

/* What's inside: big part numbers */
.jtc-num { font-family: var(--wp--preset--font-family--display); font-weight: 900; color: var(--wp--preset--color--sage);
	font-size: 3.25rem; line-height: 1; margin: 0; }
.jtc-parts { row-gap: 2.75rem !important; column-gap: 2.5rem !important; }
.jtc-parts > .wp-block-group { border-top: 1px solid rgba(30,42,33,.2); padding-top: 1.25rem; }
.jtc-extra { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 6px; border-left: 6px solid var(--wp--preset--color--ginger); }
.jtc-extra h3 { margin-top: 0; }

/* Honest book */
.jtc-honest .wp-block-list li + li { margin-top: .5rem; }

/* About Jess */
.jtc-pullquote { font-family: var(--wp--preset--font-family--serif); line-height: 1.35; color: var(--wp--preset--color--moss);
	border-left: 4px solid var(--wp--preset--color--ginger); padding-left: 1.25rem; }

/* Buy section */
.jtc-price { font-family: var(--wp--preset--font-family--display); font-weight: 900; line-height: 1; }
.jtc-buy a:not(.wp-block-button__link) { color: var(--wp--preset--color--sage-light); }
.jtc-ticks { list-style: none; padding-left: 0 !important; }
.jtc-ticks li { position: relative; padding-left: 1.75em; }
.jtc-ticks li + li { margin-top: .45rem; }
.jtc-ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--wp--preset--color--sage-light); font-weight: 700; }
.wp-block-button.is-style-light .wp-block-button__link { background-color: var(--wp--preset--color--sage-light);
	color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-light .wp-block-button__link:hover { background-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--ink); }

/* FAQ */
.jtc-faq .wp-block-details { border-bottom: 1px solid rgba(30,42,33,.18); padding-block: 1.15rem; margin: 0; }
.jtc-faq .wp-block-details:first-child { border-top: 1px solid rgba(30,42,33,.18); }
.jtc-faq summary { cursor: pointer; font-weight: 600; font-size: var(--wp--preset--font-size--large); line-height: 1.3;
	list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.jtc-faq summary::-webkit-details-marker { display: none; }
.jtc-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--display); color: var(--wp--preset--color--sage);
	font-size: 1.7rem; line-height: 1; transition: transform 200ms ease; }
.jtc-faq details[open] summary::after { transform: rotate(45deg); }
.jtc-faq .wp-block-details > :not(summary) { margin-top: .75rem; }

/* Header and footer */
.jtc-header { border-bottom: 1px solid rgba(30,42,33,.1); }
.jtc-header .wp-block-site-title a, .jtc-footer .wp-block-site-title a { text-decoration: none; color: inherit; }
.jtc-header .wp-block-button__link { font-size: .8rem; padding: .7rem 1.15rem; }
.jtc-nav { font-family: var(--wp--preset--font-family--sans); font-weight: 600; font-size: .9rem; margin: 0;
	display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.jtc-nav a { text-decoration: none; color: inherit; }
.jtc-nav a:hover { color: var(--wp--preset--color--ginger); text-decoration: underline; }
.jtc-footer .jtc-disclaimer { max-width: 46rem; }

/* Bookshelf */
.jtc-shelf .jtc-cover { max-width: 280px; }
.jtc-shelf h3 a { color: inherit; text-decoration: none; }
.jtc-shelf h3 a:hover { text-decoration: underline; }
.jtc-soon { background: var(--wp--preset--color--cream); border-radius: 6px; padding: 2rem; }
.jtc-review { font-family: var(--wp--preset--font-family--serif); line-height: 1.45; }

/* Keyboard focus */
:where(a, summary, button):focus-visible { outline: 2px solid var(--wp--preset--color--ginger); outline-offset: 3px; }

/* Phones */
@media (max-width: 781px) {
	.jtc-hero .jtc-cover { max-width: 290px; margin-inline: auto; }
	.jtc-buy .jtc-cover { max-width: 200px; }
	.jtc-meaning.wp-block-columns { gap: .5rem; }
	.jtc-meaning .wp-block-column:first-child { margin-bottom: .25rem; }
	.jtc-header .wp-block-site-title { letter-spacing: .14em; font-size: .8rem; }
	.jtc-header .wp-block-button__link { font-size: .72rem; padding: .6rem .85rem; }
}
