/*
Theme Name: LocalLaunch
Theme URI: https://aitecgro.com
Author: Aitecgro
Description: Companion block theme for the LocalLaunch plugin: one-page websites for local businesses. The header, footer and every section come from the plugin; this theme supplies the page frame, fonts and colors.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
Version: 0.3.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: locallaunch-theme
Tags: one-column, block-styles, full-site-editing, custom-colors
*/

/* Sections sit edge to edge; LocalLaunch blocks handle their own spacing. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* The header stays at the top while scrolling. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}
.wp-site-blocks > header.wp-block-template-part .ll-header { position: relative; top: 0; }

/* Regular pages (privacy policy, thank-you pages…) */
.ll-page { padding: clamp(48px, 8vw, 104px) clamp(20px, 4vw, 40px); }
.ll-page > * { max-width: 760px; margin-inline: auto; }
.ll-page .wp-block-post-title { margin: 0 auto 28px; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; }
.ll-page .wp-block-post-content > * + * { margin-block-start: 1em; }
.ll-page .wp-block-post-content :is(h2, h3) { margin-block-start: 1.6em; }
.ll-page .wp-block-post-content .alignfull { max-width: none; }

/* 404 */
.ll-404 { min-height: 50vh; display: grid; place-content: center; text-align: center; gap: 12px; }
.ll-404 h1 { font-size: clamp(3rem, 10vw, 7rem); margin: 0; }
