html {
	scroll-behavior: smooth;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

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

:root {
	/*
	 * Shared inner padding for content cards. The mobile floor is identical
	 * across all sections; each card may scale up to its own ceiling on desktop.
	 */
	--omg-card-padding-min: 28px;
	--omg-card-padding: clamp(var(--omg-card-padding-min), 3.5vw, 40px);

	/* One corner radius for cards and media alike. */
	--omg-radius: 24px;
}

.wp-site-blocks {
	padding-top: 0;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

:where(.omg-section) {
	margin-block: 0;
	padding-block: var(--wp--preset--spacing--50);
}

:where(.omg-section) > .alignwide,
:where(.omg-section) > .wp-block-group__inner-container {
	width: 100%;
}

/* On phones the spacing presets shrink to a few vw, which leaves sections
   feeling cramped top-to-bottom. Give every section more breathing room here.
   `!important` is required because patterns set their padding inline. */
@media (max-width: 781px) {
	.omg-section {
		padding-top: 6rem !important;
		padding-bottom: 6rem !important;
	}
}

.omg-eyebrow {
	margin-block: 0 0.65rem;
	color: var(--wp--preset--color--gold);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Eyebrows built from links (e.g. post categories) keep the eyebrow look. */
.omg-eyebrow a {
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-decoration: none;
}

.omg-eyebrow a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.omg-section-heading {
	max-width: 820px;
	margin-block: 0;
}

.omg-section-lead {
	max-width: 700px;
	/* Match the theme's standard block gap (1.2rem) so the lead sits the same
	   distance below the heading as text does in the other sections. */
	margin-block-start: 1.2rem;
}

.is-style-soft-rounded img {
	border-radius: var(--omg-radius);
}

.wp-block-image img {
	display: block;
	height: auto;
}

.wp-block-post-content > :where(p, ul, ol, blockquote) {
	max-width: var(--wp--style--global--content-size);
}

.wp-block-post-content > :where(h2, h3, h4) {
	max-width: 780px;
}

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

