/*
Theme Name: Sinnwerkstatt
Description: Maßgeschneidertes Block-Theme für die Sinnwerkstatt.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sinnwerkstatt
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* Keep the short error page visually connected to the footer and use the
   site's established typographic link treatment instead of WordPress' default
   rounded button. */
.error404 .wp-site-blocks {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}
.error404 .wp-site-blocks > main {
	flex: 1;
}
.error404 .wp-block-button__link {
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font-family: "Sinnwerkstatt Mono", monospace;
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.error404 .wp-block-button__link:hover,
.error404 .wp-block-button__link:focus-visible {
	color: var(--v2-accent);
}
