/**
 * Theme Zero base styles.
 *
 * Contains only global foundations and reusable layout utilities.
 * Component and page-specific styles belong in separate files.
 */

:root {
	--t0-content-size: var(--wp--style--global--content-size, 48rem);
	--t0-wide-size: var(--wp--style--global--wide-size, 86rem);
	--t0-gutter: var(--wp--custom--layout--gutter, clamp(1rem, 2.8vw, 2rem));
}

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

html {
	min-width: 20rem;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	min-width: 20rem;
	margin: 0;
	overflow-wrap: break-word;
	font-family: var(
		--wp--preset--font-family--sans,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif
	);
	background: var(--wp--preset--color--background, #ffffff);
	color: var(--wp--preset--color--text, #24211f);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#page {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.site-main {
	width: 100%;
	margin-inline: auto;
}

.site-main > article {
	width: 100%;
	margin-inline: auto;
}

.site-main > .navigation,
.site-main > p,
.site-main > article > .entry-header,
.site-main > article > .entry-content > :where(:not(.alignwide):not(.alignfull)) {
	width: min(calc(100% - (2 * var(--t0-gutter))), var(--t0-content-size));
	margin-inline: auto;
}

.site-main > article > .entry-content > .alignwide {
	width: min(calc(100% - (2 * var(--t0-gutter))), var(--t0-wide-size));
	max-width: none;
	margin-inline: auto;
}

.site-main > article > .entry-content > .alignfull {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.site-main > article + article {
	margin-block-start: var(--wp--preset--spacing--70, 3rem);
}

.site-footer {
	margin-block-start: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 0 0.5em;
	color: var(--wp--preset--color--text, #24211f);
	text-wrap: balance;
}

p,
ul,
ol,
dl,
blockquote,
pre,
figure {
	margin-block-start: 0;
	margin-block-end: var(--wp--preset--spacing--50, 1.5rem);
}

ul,
ol {
	padding-inline-start: 1.5em;
}

li + li {
	margin-block-start: 0.35em;
}

a {
	text-underline-offset: 0.18em;
	transition:
		color var(--wp--custom--transition--fast, 160ms ease),
		text-decoration-color var(--wp--custom--transition--fast, 160ms ease);
}

a:hover {
	text-decoration: underline;
}

a:focus-visible,
summary:focus-visible {
	outline: 0.1875rem solid var(--wp--preset--color--primary, #b0744a);
	outline-offset: 0.1875rem;
}

img,
picture,
svg,
video,
canvas {
	display: block;
	max-width: 100%;
}

img,
video {
	height: auto;
}

iframe {
	max-width: 100%;
}

figure {
	max-width: 100%;
}

figcaption {
	margin-block-start: var(--wp--preset--spacing--20, 0.5rem);
	color: var(--wp--preset--color--text-muted, #666666);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
}

blockquote {
	margin-inline: 0;
	padding-inline-start: var(--wp--preset--spacing--50, 1.5rem);
	border-inline-start: 0.25rem solid var(--wp--preset--color--primary, #b0744a);
	color: var(--wp--preset--color--text-muted, #666666);
}

hr {
	height: 1px;
	margin-block: var(--wp--preset--spacing--60, 2rem);
	border: 0;
	background: var(--wp--preset--color--border, #e5dfdb);
}

code,
kbd,
samp,
pre {
	font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

pre {
	max-width: 100%;
	overflow-x: auto;
	padding: var(--wp--preset--spacing--40, 1rem);
	border-radius: var(--wp--custom--radius--small, 0.5rem);
	background: var(--wp--preset--color--surface, #ffffff);
}

::selection {
	background: var(--wp--preset--color--primary, #b0744a);
	color: var(--wp--preset--color--surface, #ffffff);
}

.t0-container,
.t0-container-wide {
	width: min(calc(100% - (2 * var(--t0-gutter))), var(--t0-content-size));
	margin-inline: auto;
}

.t0-container-wide {
	width: min(calc(100% - (2 * var(--t0-gutter))), var(--t0-wide-size));
}

.t0-section {
	padding-block: clamp(4rem, 8vw, 7rem);
}

.t0-section--soft {
	background: var(--wp--preset--color--surface-soft, #f8f6f5);
}

.t0-section-heading {
	max-width: var(--wp--custom--typography--measure, 68ch);
	margin-block-end: var(--wp--preset--spacing--60, 2rem);
}

.t0-section-heading > :last-child {
	margin-block-end: 0;
}

.t0-meta {
	color: var(--wp--preset--color--primary, #b0744a);
	font-size: var(--wp--preset--font-size--x-small, 0.75rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.t0-accent-underline {
	position: relative;
	padding-block-end: var(--wp--preset--spacing--30, 0.75rem);
}

.t0-accent-underline::after {
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	width: 3rem;
	height: 0.1875rem;
	border-radius: 999px;
	background: var(--wp--preset--color--primary, #b0744a);
	content: "";
}

.t0-grid {
	display: grid;
	grid-template-columns: repeat(
		auto-fit,
		minmax(min(100%, var(--t0-grid-min, 16rem)), 1fr)
	);
	gap: clamp(1rem, 2.5vw, 2rem);
}

.t0-page-header {
	padding-block: clamp(4rem, 9vw, 7.5rem) clamp(2rem, 5vw, 4rem);
	background: linear-gradient(
		135deg,
		var(--wp--preset--color--surface-soft, #f8f6f5),
		var(--wp--preset--color--surface, #ffffff)
	);
}

.t0-page-header__inner,
.t0-page-content {
	width: min(calc(100% - (2 * var(--t0-gutter))), var(--t0-content-size));
	margin-inline: auto;
}

.t0-page-header .entry-title {
	max-width: 15ch;
	margin: 0;
}

.t0-page-content {
	padding-block: clamp(3rem, 6vw, 5rem) clamp(5rem, 9vw, 8rem);
}

.t0-page-content > :last-child {
	margin-block-end: 0;
}

.t0-flow > * {
	margin-block: 0;
}

.t0-flow > * + * {
	margin-block-start: var(--wp--style--block-gap, var(--wp--preset--spacing--50, 1.5rem));
}

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

.screen-reader-text:focus {
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: var(--wp--preset--spacing--30, 0.75rem) var(--wp--preset--spacing--40, 1rem);
	clip: auto !important;
	background: var(--wp--preset--color--surface, #ffffff);
	color: var(--wp--preset--color--text, #24211f);
	font-size: var(--wp--preset--font-size--small, 0.9375rem);
	font-weight: 700;
	white-space: normal;
}

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