/* Custom Coming Soon: public page styles. Dynamic values come from CSS custom properties set on <body>. */

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

html {
	-webkit-text-size-adjust: 100%;
}

.rhcs-body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background-color: var(--rhcs-bg-color, #0f172a);
	color: var(--rhcs-text, #fff);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.rhcs-bg {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	background-color: var(--rhcs-bg-color, #0f172a);
	background-image: var(--rhcs-bg-image, none);
	background-position: var(--rhcs-bg-position, center center);
	background-size: var(--rhcs-bg-size, cover);
	background-repeat: var(--rhcs-bg-repeat, no-repeat);
}

.rhcs-bg::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: var(--rhcs-overlay, transparent);
}

.rhcs-main {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: clamp(1.5rem, 5vw, 4rem);
}

.rhcs-content {
	display: flex;
	flex-direction: column;
	align-items: var(--rhcs-items, center);
	gap: 1.5rem;
	width: 100%;
	max-width: 44rem;
	text-align: var(--rhcs-align, center);
}

.rhcs-logo {
	max-width: 100%;
	line-height: 0;
}

.rhcs-logo a {
	display: inline-block;
}

.rhcs-logo__image {
	display: block;
	width: var(--rhcs-logo-width, 160px);
	max-width: 100%;
	height: auto;
}

.rhcs-title {
	margin: 0;
	font-size: min(var(--rhcs-title-size, 56px), max(1.75rem, 8vw));
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.rhcs-description {
	max-width: 60ch;
	font-size: min(var(--rhcs-desc-size, 18px), max(1rem, 4.5vw));
	opacity: 0.92;
}

.rhcs-description p {
	margin: 0 0 0.75em;
}

.rhcs-description p:last-child {
	margin-bottom: 0;
}

/* Countdown */
.rhcs-countdown__text {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	opacity: 0.9;
}

.rhcs-countdown__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--rhcs-items, center);
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rhcs-countdown__grid[hidden] {
	display: none;
}

.rhcs-countdown__grid li {
	min-width: 4.75rem;
	padding: 0.75rem 0.5rem;
	text-align: center;
	border: 1px solid currentColor;
	border-radius: 0.75rem;
}

.rhcs-countdown__number {
	display: block;
	font-size: clamp(1.5rem, 5vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.rhcs-countdown__label {
	display: block;
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.85;
}

/* Button */
.rhcs-button {
	display: inline-block;
	padding: 0.85rem 1.75rem;
	border: 2px solid currentColor;
	border-radius: 999px;
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.rhcs-button:hover {
	background-color: rgba(127, 127, 127, 0.25);
	transform: translateY(-2px);
}

/* Contact and social */
.rhcs-contact,
.rhcs-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--rhcs-items, center);
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rhcs-contact li {
	display: flex;
	flex-direction: column;
}

.rhcs-contact__label {
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.8;
}

.rhcs-contact a,
.rhcs-social a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.rhcs-social a {
	display: inline-block;
	padding: 0.35rem 0.9rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
}

.rhcs-social a:hover,
.rhcs-contact a:hover {
	opacity: 0.8;
}

.rhcs-button:focus-visible,
.rhcs-contact a:focus-visible,
.rhcs-social a:focus-visible,
.rhcs-logo a:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

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

/* One gentle entrance animation, only when the visitor has not asked for less motion. */
@keyframes rhcs-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.rhcs-content > * {
		animation: rhcs-rise 0.6s ease both;
	}

	.rhcs-content > *:nth-child(2) {
		animation-delay: 0.08s;
	}

	.rhcs-content > *:nth-child(3) {
		animation-delay: 0.16s;
	}

	.rhcs-content > *:nth-child(4) {
		animation-delay: 0.24s;
	}

	.rhcs-content > *:nth-child(5) {
		animation-delay: 0.32s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rhcs-button {
		transition: none;
	}
}

@media (max-width: 480px) {
	.rhcs-button {
		width: 100%;
		text-align: center;
	}

	.rhcs-countdown__grid li {
		min-width: 4rem;
	}
}
