/* ==========================================================================
   OVEN — coming-soon page (template-parts/coming-soon/page.php)
   White page. Desktop: photo on the left half, content on the right
   (logo on top, text right-aligned, airy). Mobile: photo on top, content
   below. Owner's canvas, artboards D-desktop / D-mobile.
   Standalone page: only tokens.css is loaded before this file.
   ========================================================================== */

.oven-cs {
	margin: 0;
	min-height: 100vh;
	background: var(--oven-bg);
	color: var(--oven-fg);
	font-family: var(--oven-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.oven-cs__layout {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)); /* RTL: content right, photo left */
	min-height: 100vh;
}

/* ---- Photo --------------------------------------------------------------- */
.oven-cs__media {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
	background: var(--oven-sand);
}

.oven-cs__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
}

/* ---- Content ------------------------------------------------------------- */
.oven-cs__content {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding-block: 64px 56px;
	/* Airy on the outer (right) edge, tighter toward the photo, so the
	   537px headline keeps the owner's two-line break down to ~1280px. */
	padding-inline: clamp(40px, 7.8vw, 112px) clamp(32px, 2.5vw, 48px);
}

.oven-cs__logo .oven-icon {
	display: block;
	width: auto;
	height: 34px;
	color: var(--oven-fg);
}

.oven-cs__body {
	display: flex;
	flex-direction: column;
	gap: 44px;
	max-width: 537px;
	margin-block: auto;
	padding-block: 48px;
}

.oven-cs__title {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: 34px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.2px;
}

/* ---- Form ---------------------------------------------------------------- */
.oven-cs__form {
	display: flex;
	flex-direction: column;
	gap: 26px;
	max-width: 440px;
}

.oven-cs__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.oven-cs__field label {
	color: var(--oven-color1);
	font-size: 13px;
}

.oven-cs__field input {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-block-end: 1px solid rgb(var(--oven-fg-rgb) / 0.25);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--oven-fg);
	font: inherit;
	font-size: 16px; /* 16px: no zoom on iOS */
	text-align: end; /* dir=ltr → aligned right, with the labels */
	transition: border-color 0.125s ease-in-out;
}

.oven-cs__field input::placeholder {
	color: rgb(var(--oven-fg-rgb) / 0.45);
	opacity: 1;
}

.oven-cs__field input:hover {
	border-block-end-color: rgb(var(--oven-fg-rgb) / 0.5);
}

.oven-cs__field input:focus-visible {
	outline: none;
	border-block-end: 2px solid var(--oven-fg);
}

.oven-cs__field input[aria-invalid="true"] {
	border-block-end: 2px solid var(--oven-brick);
}

.oven-cs__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: 479px;
	color: var(--oven-color1);
	font-size: 13px;
	line-height: 1.6;
	cursor: pointer;
}

.oven-cs__consent input {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 3px 0 0;
	accent-color: var(--oven-fg);
	cursor: pointer;
}

.oven-cs__consent input:focus-visible,
.oven-cs__consent input[aria-invalid="true"] {
	outline: 2px solid var(--oven-fg);
	outline-offset: 2px;
}

/* Honeypot: off-screen, still in the form. */
.oven-cs__hp {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.oven-cs__msg {
	margin: 0;
	color: var(--oven-brick);
	font-size: 14px;
	font-weight: 500;
}

.oven-cs__msg:empty {
	display: none;
}

.oven-cs__submit {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 10px;
	min-height: 44px;
	margin-block-start: 4px;
	padding: 0;
	border: 0;
	border-block-end: 1px solid var(--oven-fg);
	border-radius: 0;
	background: none;
	color: var(--oven-fg);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
}

.oven-cs__submit:focus-visible {
	outline: 2px solid var(--oven-fg);
	outline-offset: 4px;
}

.oven-cs__submit[aria-busy="true"] {
	opacity: 0.5;
	cursor: progress;
}

.oven-cs__arrow {
	flex: none;
	transition: transform 0.125s ease-in-out;
}

.oven-cs__submit:hover .oven-cs__arrow {
	transform: translateX(-3px); /* RTL page: forward = left */
}

/* ---- Thank-you state ----------------------------------------------------- */
.oven-cs__thanks {
	display: none;
}

.oven-cs__thanks:focus {
	outline: none;
}

[data-oven-cs-state="success"] .oven-cs__form {
	display: none;
}

[data-oven-cs-state="success"] .oven-cs__thanks {
	display: block;
}

.oven-cs__thanks-text {
	margin: 0;
	font-size: 20px;
	line-height: 1.5;
}

.oven-cs__again {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-block-start: 12px;
	color: var(--oven-color1);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.oven-cs__again:hover {
	color: var(--oven-fg);
}

.oven-cs__again:focus-visible {
	outline: 2px solid var(--oven-fg);
	outline-offset: 2px;
}

/* ---- Footer: social + e-mail --------------------------------------------- */
.oven-cs__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.oven-cs__social {
	display: flex;
	gap: 4px;
	margin-inline-start: -11px;
}

.oven-cs__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--oven-fg);
	transition: color 0.125s ease-in-out;
}

.oven-cs__social a:hover {
	color: var(--oven-fg-hover);
}

.oven-cs__social a:focus-visible,
.oven-cs__mail:focus-visible {
	outline: 2px solid var(--oven-fg);
	outline-offset: 2px;
}

.oven-cs__social-icon {
	width: 22px;
	height: 22px;
}

.oven-cs__mail {
	color: var(--oven-subdued);
	font-size: 13px;
	text-decoration: none;
}

.oven-cs__mail:hover {
	color: var(--oven-fg);
	text-decoration: underline;
}

/* ---- Mobile: photo on top, content below --------------------------------- */
@media (max-width: 749px) {
	.oven-cs__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.oven-cs__media {
		position: relative;
		order: -1;
		height: clamp(260px, 47vh, 420px);
		height: clamp(240px, 44svh, 420px); /* in-app browsers: keep the form near the fold */
	}

	.oven-cs__img {
		object-position: 50% 35%;
	}

	.oven-cs__content {
		min-height: 0;
		padding: 36px 28px 32px;
	}

	.oven-cs__logo .oven-icon {
		height: 28px;
	}

	.oven-cs__body {
		gap: 32px;
		margin-block: 32px 40px;
		padding-block: 0;
	}

	.oven-cs__title {
		font-size: 24px;
		line-height: 1.45;
		letter-spacing: 0;
	}

	.oven-cs__form {
		gap: 22px;
	}

	.oven-cs__field {
		gap: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.oven-cs__field input,
	.oven-cs__arrow,
	.oven-cs__social a {
		transition: none;
	}
}

/* Privacy notice under the consent box: aligned with the consent text (16px box + 10px gap). */
.oven-cs__fine {
	max-width: 479px;
	margin: 0;
	margin-block-start: -18px; /* Sits with the consent box, not as a new form row (form gap 22–26px). */
	padding-inline-start: 26px;
	color: var(--oven-color1);
	font-size: 13px;
	line-height: 1.6;
}
