/**
 * Blue Frame Films: layout.css
 *
 * Purpose:  Page wrapper, section spacing, the inner-page intro (.page-intro, .page-top) and the glue that makes the block theme's
 *           wrappers (.wp-site-blocks, template parts) behave like the static design.
 * Used by:  Every front-end page.
 * To edit:  Content width is --max in base.css; section padding is here.
 */

/* ==========================================================================
   Wrapper and sections
   ========================================================================== */
.wrap {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 24px;
}

.head {
	margin-bottom: 44px;
}

section {
	padding: 96px 0;
	border-top: 1px solid var(--line);
}

/* First section of an inner page (Services, Work, Packages, About, Contact):
   no top rule, a little less top padding (the sticky header sits above it). */
.bf-page-main>section:first-child,
.page-top {
	border-top: 0;
	padding-top: 72px;
}

/* Section head with a "See all" link on the right */
.head-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Inner-page intro (template-parts/components/page-intro.php)
   ========================================================================== */
.page-intro {
	margin-bottom: 48px;
	max-width: 760px;
}

.page-intro h1 {
	font-size: clamp(2.2rem,4.6vw,3.4rem);
	margin: .5rem 0 1rem;
}

.page-intro .draft {
	margin-bottom: 14px;
}

/* ==========================================================================
   WordPress block-theme integration
   ========================================================================== */
.wp-site-blocks {
	padding: 0;
}

.wp-site-blocks>*,
main.bf-main>* {
	margin-block-start: 0;
	margin-block-end: 0;
}

.wp-site-blocks>header.wp-block-template-part {
	margin: 0;
}

body {
	margin: 0;
}

:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--elec2);
	outline-offset: 2px;
}

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */
.screen-reader-text {
	border: 0;
	clip: rect(1px,1px,1px,1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal!important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 100;
	top: 8px;
	left: 8px;
	background: #fff;
	color: #000;
	padding: 8px 12px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:760px) {
	section {
		padding: 64px 0;
	}

	.bf-page-main>section:first-child,
	.page-top {
		padding-top: 44px;
	}

	.page-intro {
		margin-bottom: 32px;
	}
}
