/*
Theme Name: Crumb
Theme URI: https://patternpaste.com/themes/
Author: Pattern Paste
Author URI: https://patternpaste.com/
Description: A block theme for a neighbourhood café and bakery: oat and espresso grounds, terracotta labels, Gelasio headings over Inter, pill buttons and soft 14px cards. It comes with the whole Crumb site as patterns (Home, Menu, About and Contact pages, and thirty sections in one design language), a blog in the same voice, and an Evening style in espresso. Fonts are bundled; nothing is fetched from another host.
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.2
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pattern-paste-crumb
Tags: block-patterns, block-styles, blog, custom-colors, editor-style, full-site-editing, one-column, style-variations, template-editing, translation-ready, wide-blocks
*/

/*
 * Only what a block cannot say. Colours, type, spacing and every block's look
 * live in theme.json, so Global Styles re-skins all of it.
 */

/* A page is a stack of full-bleed sections: they meet edge to edge, as the
 * set page shows them, rather than with the prose gap between them. */
.wp-site-blocks > * + *,
.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Headings inside a post or page breathe above, more than the prose gap. */
.wp-block-post-content > :where(h2, h3, h4):not(:first-child) {
	margin-block-start: 2.5rem;
}

/* Form fields on the page's own cards, with the hairline, in every style. */
:where(.wp-block-search__input, .wp-block-post-comments-form input:not([type="submit"], [type="checkbox"]), .wp-block-post-comments-form textarea) {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 0.75rem 1rem;
}
.wp-block-search__input {
	border-radius: 999px;
}

/* A visible focus ring on every control, in the ink of whatever it sits on. */
:where(a, button, input, select, textarea, summary, .wp-element-button):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 2px;
}

/* A post card's title is the link: underline it on hover only. */
.wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

/* A card lifts a little under the pointer, and never for a reader who asked
 * for less motion. */
@media (prefers-reduced-motion: no-preference) {
	.pattern-paste-crumb-card {
		transition: transform 160ms ease, box-shadow 160ms ease;
	}
	.pattern-paste-crumb-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 24px -18px rgba(43, 29, 22, 0.55);
	}
}
