/*
Theme Name: Casa Cultural Tromsø
Theme URI: https://casaculturaltromso.no/
Author: Casa Cultural Tromsø
Author URI: https://casaculturaltromso.no/
Description: Full Site Editing block theme for Casa Cultural Tromsø. Built with modern WordPress block templates and global styles.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
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: casaculturaltromso
Tags: full-site-editing, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, wide-blocks, translation-ready
*/

/* Design tokens (global) */
:root {
	--casa-navy: var(--wp--preset--color--navy, #002b36);
	--casa-cream: var(--wp--preset--color--cream, #fdfaf3);
	--casa-yellow: var(--wp--preset--color--yellow, #ffcc33);
	--casa-coral: var(--wp--preset--color--coral, #f05a4f);
	--casa-green: var(--wp--preset--color--green, #4e8c6b);
	--casa-pink: var(--wp--preset--color--pink, #e91e63);
	--casa-section-x: clamp(1.5rem, 5vw, 5rem);
	--casa-section-y: clamp(5rem, 8vw, 6.25rem);
	--casa-font-heading: var(--wp--preset--font-family--heading);
	--casa-font-body: var(--wp--preset--font-family--body);
}

/* Landing page layout */
body:has(.casa-landing) header.wp-block-template-part,
body:has(.casa-landing) footer.wp-block-template-part {
	display: none;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
	-ms-overflow-style: scrollbar;
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* Anchor targets (nav + in-page buttons) */
[id] {
	scroll-margin-top: 1.5rem;
}

.casa-landing {
	margin: 0;
	max-width: none;
	overflow: visible;
	padding: 0;
}

.wp-site-blocks {
	overflow: visible;
}
