/**
 * Default demo — homepage CSS.
 *
 * 1:1 port of mockups/v2/base.css + mockups/v3/base.css. The markup uses the
 * same classes as the mockup, so the rules keep their original selectors and
 * values; only the scope and the colour tokens change. Scope: the .default
 * body class, added by inc/demo-parts.php only while the Default demo is active.
 * Header and footer are intentionally not styled here.
 */

.default {
	--default-gutter: clamp(20px, 4vw, 48px);
	--default-section-space: clamp(72px, 9vw, 128px);
	--default-head-gap: clamp(28px, 4vw, 56px);
}

/* ---- Base --------------------------------------------------------------- */
.default .wp-block-post-content :where(p, h1, h2, h3, ul, figure, blockquote, details, summary) {
	margin: 0;
}

.default .wp-block-post-content :where(ul) {
	padding: 0;
	list-style: none;
}

.default .wp-block-post-content figure,
.default .wp-block-post-content .wp-block-image {
	margin: 0;
}

.default .wp-block-post-content img {
	display: block;
	max-width: 100%;
	height: auto;
}

.default .wp-block-post-content a {
	color: inherit;
	text-decoration: none;
}

.default .wp-block-post-content a:hover {
	color: var(--wp--preset--color--primary);
}

.default .wp-block-buttons {
	margin: 0;
}

.default .wp-block-quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.default .wp-block-quote p {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

/*
 * WordPress gives every child of a flow container a 24px top margin. The
 * homepage rhythm comes from the section padding below, so the core gap is
 * removed inside the composition only.
 */
.default .wp-block-post-content :where(.is-layout-flow) > * {
	margin-block-start: 0;
}

/* ---- Layout utilities --------------------------------------------------- */
.default .wrap {
	width: min(1320px, calc(100% - 2 * var(--default-gutter)));
	margin-inline: auto;
}

.default .section {
	padding-block: var(--default-section-space);
}

.default .section--surface {
	background: var(--wp--preset--color--surface);
}

/* Sticky header: keep in-page anchors below the bar. */
.default :is(#services, #work, #process, #pricing, #contact) {
	scroll-margin-top: 96px;
}

/* ---- Typography --------------------------------------------------------- */
.default .display {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	line-height: 0.94;
	letter-spacing: -0.04em;
	margin: 0;
}

.default .kicker {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin: 0;
}

.default .lede {
	font-size: clamp(17px, 1.5vw, 21px);
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
	max-width: 58ch;
	margin: 0;
}

.default .meta {
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* ---- Buttons ------------------------------------------------------------ */
.default .btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.default .btn .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: none;
}

.default .btn--solid .wp-block-button__link {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.default .btn--primary .wp-block-button__link {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.default .btn--primary .wp-block-button__link:hover {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 88%, var(--wp--preset--color--contrast));
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 88%, var(--wp--preset--color--contrast));
	color: var(--wp--preset--color--base);
}

.default .btn--ghost .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.default .btn--small .wp-block-button__link {
	min-height: 38px;
	padding: 0 16px;
	font-size: 12px;
}

.default .actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

/* ---- Section head ------------------------------------------------------- */
.default .sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	border-top: 1px solid var(--wp--preset--color--surface-2);
	padding-top: 18px;
	margin-bottom: var(--default-head-gap);
}

.default .sec-head h2 {
	font-size: clamp(28px, 3.4vw, 48px);
}

.default .sec-head .meta {
	white-space: nowrap;
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 640px) {
	.default .sec-head {
		min-width: 0;
	}

	.default .sec-head > .wp-block-group {
		min-width: 0;
	}
}

/* ---- Small block resets ------------------------------------------------- */
.default .wp-block-button {
	margin: 0;
}

.default .wp-block-details summary {
	font-family: var(--wp--preset--font-family--heading);
}

.default .wp-block-list {
	margin: 0;
}
