/*
Theme Name: Briefloom Starter
Author: Briefloom
Description: Classic PHP starter theme for Briefloom sites. Content comes from blueprint fields through the Briefloom helpers; the theme still renders, empty, without the plugin.
Version: 0.1.0
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: briefloom-starter
*/

:root {
	--bf-ink: #1b1f24;
	--bf-muted: #4a5360;
	--bf-paper: #ffffff;
	--bf-tint: #f2f5f8;
	--bf-accent: #0b5cad;
	--bf-accent-ink: #ffffff;
	--bf-focus: #b5400a;
	--bf-width: 68rem;
}

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

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--bf-ink);
	background: var(--bf-paper);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--bf-accent);
	text-underline-offset: 0.15em;
}

:focus-visible {
	outline: 3px solid var(--bf-focus);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -3rem;
	padding: 0.5rem 1rem;
	background: var(--bf-ink);
	color: var(--bf-paper);
	z-index: 100;
}

.skip-link:focus {
	top: 1rem;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.wrap {
	width: min(100% - 2rem, var(--bf-width));
	margin-inline: auto;
}

.site-header,
.site-footer {
	background: var(--bf-tint);
	padding-block: 1rem;
}

.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
}

.site-title {
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--bf-ink);
	text-decoration: none;
}

.site-tagline {
	margin: 0;
	color: var(--bf-muted);
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.button a,
a.button {
	display: inline-block;
	padding: 0.6rem 1.1rem;
	background: var(--bf-accent);
	color: var(--bf-accent-ink);
	text-decoration: none;
	border-radius: 0.25rem;
}

main {
	padding-block: 2rem 3rem;
}

.hero {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

@media (min-width: 48rem) {
	.hero {
		grid-template-columns: 1fr 1fr;
	}
}

.cards {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
	padding: 0;
	list-style: none;
}

.card {
	padding: 1.25rem;
	background: var(--bf-tint);
	border-radius: 0.5rem;
}

.card h3 {
	margin-top: 0;
}

.meta {
	color: var(--bf-muted);
}

.site-footer .wrap {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.site-footer h2 {
	font-size: 1rem;
}

.hours {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* WordPress content classes. */
.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption,
.gallery-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	color: var(--bf-muted);
	font-size: 0.9375rem;
}

.sticky,
.bypostauthor {
	position: relative;
}

.form-field label {
	display: block;
	font-weight: 600;
}

.form-help {
	display: block;
	color: var(--bf-muted);
	font-size: 0.9375rem;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
