:root {
	--ck-bg: #252726;
	--ck-ink: #e5ded1;
	--ck-muted: #bdb7ac;
	--ck-line: rgba(229, 222, 209, 0.42);
	--ck-error: #ffd0c8;
	--ck-copper: #b57a54;
	--ck-copper-soft: rgba(181, 122, 84, 0.15);
	--ck-copper-medium: rgba(181, 122, 84, 0.4);
	--ck-gutter: clamp(1.25rem, 8vw, 5.5rem);
}

@font-face {
	font-family: "Montserrat CK";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/montserrat-latin.woff2") format("woff2");
}

* {
	box-sizing: border-box;
}

html {
	background: var(--ck-bg);
	overflow-x: hidden;
}

body {
	margin: 0;
	min-height: 100svh;
	background: var(--ck-bg);
	color: var(--ck-ink);
	font-family: "Montserrat CK", Montserrat, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	overflow-x: hidden;
}

html:has(body.ck-screen),
html:has(body.ck-feedback-page) {
	height: 100%;
	overflow: hidden;
}

body.ck-screen,
body.ck-feedback-page {
	height: 100svh;
	max-height: 100svh;
	overflow: hidden;
}

a {
	color: inherit;
	text-underline-offset: 0.24em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--ck-ink);
	outline-offset: 4px;
}

.ck-page {
	position: relative;
	z-index: 0;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100svh;
	background: transparent;
}

.ck-page--screen,
.ck-feedback-page .ck-page {
	height: 100svh;
	max-height: 100svh;
	overflow: hidden;
}

.ck-site-header {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	padding:
		max(1.5rem, env(safe-area-inset-top))
		max(1.25rem, env(safe-area-inset-right))
		0.35rem
		max(1.25rem, env(safe-area-inset-left));
}

.ck-site-header .custom-logo-link {
	display: inline-block;
}

.ck-site-header .custom-logo,
.ck-site-header .ck-brand-logo {
	width: min(42vw, 156px);
	margin: 0 auto;
}

.ck-main,
.ck-footer,
.ck-brand,
.ck-message,
.ck-interest,
.ck-form {
	background: transparent;
}

.ck-main,
.ck-footer {
	position: relative;
	z-index: 1;
}

.ck-main {
	display: flex;
	width: min(100%, 36rem);
	margin: 0 auto;
	flex: 1 1 auto;
	min-height: 0;
	padding:
		max(2.5rem, env(safe-area-inset-top))
		max(1.25rem, env(safe-area-inset-right))
		1.5rem
		max(1.25rem, env(safe-area-inset-left));
	text-align: center;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.ck-brand {
	margin-bottom: 1.5rem;
}

.custom-logo-link {
	display: inline-block;
}

.custom-logo,
.ck-brand-logo {
	display: block;
	width: min(42vw, 280px);
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

.ck-tagline {
	margin: 0.7rem 0 0;
	color: var(--ck-muted);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.ck-message h1 {
	max-width: 22em;
	margin: 0 auto;
	font-size: clamp(1.35rem, 2.4vw, 2.2rem);
	font-weight: 400;
	line-height: 1.28;
	letter-spacing: 0.045em;
	text-transform: uppercase;
	text-align: center;
	overflow-wrap: break-word;
	hyphens: none;
}

@media (min-width: 1280px) {
	.ck-page--screen .ck-message h1 {
		width: max-content;
		max-width: min(calc(100vw - (2 * var(--ck-gutter))), 72rem);
		white-space: nowrap;
		overflow-wrap: normal;
		position: relative;
		left: 50%;
		transform: translateX(-50%);
	}
}

.ck-message > p {
	max-width: 34em;
	margin: 1rem auto 0;
	color: var(--ck-muted);
	font-size: 0.95rem;
	line-height: 1.55;
	text-wrap: pretty;
}

.ck-interest {
	width: 100%;
	max-width: 36rem;
	margin-top: 1.6rem;
}

.ck-form {
	text-align: left;
}

.ck-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
}

.ck-form label {
	display: block;
}

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

.ck-form input[type="email"],
.ck-form input[name="email"] {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--ck-line);
	border-radius: 0;
	background: transparent;
	color: var(--ck-ink);
	padding: 12px 16px;
	font: inherit;
}

.ck-form input[type="email"]::placeholder,
.ck-form input[name="email"]::placeholder {
	color: var(--ck-muted);
	opacity: 1;
}

.ck-form button,
.ck-contact-fallback {
	display: inline-flex;
	min-height: 48px;
	border: 1px solid var(--ck-ink);
	border-radius: 0;
	align-items: center;
	justify-content: center;
	background: var(--ck-ink);
	color: var(--ck-bg);
	padding: 12px 20px;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.055em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease;
}

.ck-form button:hover {
	background: var(--ck-copper);
	border-color: var(--ck-copper);
	color: #ffffff;
}

.ck-form button:focus-visible {
	outline: 2px solid var(--ck-copper);
	outline-offset: 4px;
}

.ck-contact-fallback:hover {
	background: transparent;
	color: var(--ck-ink);
}

.ck-form button[disabled] {
	cursor: wait;
	opacity: 0.7;
}

.ck-form__consent {
	display: grid !important;
	margin-top: 14px;
	color: var(--ck-muted);
	font-size: 0.76rem;
	line-height: 1.45;
	grid-template-columns: 18px 1fr;
	gap: 10px;
	align-items: start;
}

.ck-form__consent input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--ck-ink);
}

.ck-form__consent.is-invalid {
	color: var(--ck-error);
	outline: 1px solid var(--ck-error);
	outline-offset: 4px;
}

.ck-form__consent-error {
	margin: 8px 0 0;
	max-width: 100%;
	color: var(--ck-error);
	font-size: 0.76rem;
	line-height: 1.4;
	text-align: left;
	overflow-wrap: break-word;
}

.ck-form__consent-error[hidden] {
	display: none;
}

.ck-form__status {
	min-height: 1.5em;
	margin: 14px 0 0;
	font-size: 0.82rem;
	text-align: center;
}

.ck-form__status[data-state="error"] {
	color: var(--ck-error);
}

.ck-form.is-sent .ck-form__row,
.ck-form.is-sent .ck-form__consent,
.ck-form.is-sent .ck-form__consent-error {
	display: none !important;
}

.ck-form.is-sent .ck-form__status {
	margin: 0;
	min-height: 0;
	color: var(--ck-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.ck-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.ck-footer {
	display: flex;
	width: 100%;
	max-width: 40rem;
	margin: 0 auto;
	flex-shrink: 0;
	padding:
		0
		max(1.25rem, env(safe-area-inset-right))
		max(1.25rem, env(safe-area-inset-bottom))
		max(1.25rem, env(safe-area-inset-left));
	color: var(--ck-muted);
	font-size: 0.72rem;
	line-height: 1.4;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px 24px;
}

.ck-footer nav {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 20px;
}

.ck-footer p {
	margin: 0;
	white-space: nowrap;
}

.ck-content {
	position: relative;
	z-index: 1;
	width: min(100% - 40px, 720px);
	margin: 0 auto;
	padding:
		max(1.5rem, env(safe-area-inset-top))
		max(1.25rem, env(safe-area-inset-right))
		max(2.5rem, env(safe-area-inset-bottom))
		max(1.25rem, env(safe-area-inset-left));
	background: transparent;
}

.ck-page:has(.ck-site-header) .ck-content {
	padding-top: 1rem;
}

.ck-content > h1 {
	margin: 0 0 1.5rem;
	font-size: clamp(1.28rem, 2.4vw, 2rem);
	font-weight: 400;
	line-height: 1.28;
	letter-spacing: 0.045em;
	text-transform: uppercase;
	text-align: center;
	text-wrap: balance;
}

@media (max-width: 700px) {
	:root {
		--ck-gutter: 1.15rem;
	}

	.ck-page--screen .ck-main {
		display: grid;
		width: 100%;
		justify-content: stretch;
		justify-items: center;
		align-content: stretch;
		grid-template-rows:
			minmax(0, 1fr)
			auto
			clamp(36px, 5svh, 48px)
			auto
			clamp(20px, 3svh, 28px)
			auto
			clamp(20px, 3svh, 28px)
			auto
			minmax(0, 1fr);
		gap: 0;
		padding:
			max(0.65rem, env(safe-area-inset-top))
			1.15rem
			0.5rem;
	}

	.ck-page--screen .ck-message {
		display: contents;
	}

	.ck-page--screen .ck-brand {
		grid-row: 2;
		width: 100%;
	}

	.ck-page--screen .ck-message h1 {
		grid-row: 4;
	}

	.ck-page--screen .ck-message > p {
		grid-row: 6;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100%;
		margin-top: 0;
	}

	.ck-page--screen .ck-interest {
		grid-row: 8;
		width: 100%;
		margin-top: 0;
	}

	.ck-brand {
		margin-bottom: 0;
	}

	.ck-page--screen .custom-logo,
	.ck-page--screen .ck-brand-logo {
		width: min(44vw, 9.25rem);
		max-height: 16svh;
		object-fit: contain;
	}

	.ck-tagline {
		margin-top: 0.35rem;
		font-size: 0.62rem;
		letter-spacing: 0.16em;
	}

	.ck-message h1 {
		font-size: clamp(1.12rem, 5vw, 1.28rem);
		line-height: 1.26;
		letter-spacing: 0.04em;
	}

	.ck-message > p {
		margin-top: 0.45rem;
		font-size: 0.86rem;
		line-height: 1.45;
	}

	.ck-interest {
		margin-top: 0.35rem;
	}

	.ck-form__row {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ck-form button,
	.ck-contact-fallback {
		width: 100%;
		min-height: 44px;
	}

	.ck-form input[type="email"],
	.ck-form input[name="email"] {
		min-height: 44px;
	}

	.ck-form__consent {
		margin-top: 10px;
		font-size: 0.72rem;
	}

	.ck-form__status {
		margin-top: 8px;
		min-height: 1.2em;
	}

	.ck-form.is-sent .ck-form__status {
		margin-top: 0;
		font-size: 0.86rem;
		line-height: 1.45;
	}

	.ck-footer {
		flex-wrap: wrap;
		font-size: 0.68rem;
		gap: 6px 16px;
		padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
	}

	.ck-feedback-page .ck-site-header {
		flex-shrink: 0;
		padding-top: max(0.7rem, env(safe-area-inset-top));
		padding-bottom: 0;
	}

	.ck-feedback-page .ck-site-header .custom-logo,
	.ck-feedback-page .ck-site-header .ck-brand-logo {
		width: min(34vw, 7.25rem);
	}

	.ck-feedback-page .ck-content {
		flex: 1 1 auto;
		min-height: 0;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		padding:
			0.45rem
			max(1.15rem, env(safe-area-inset-right))
			max(0.75rem, env(safe-area-inset-bottom))
			max(1.15rem, env(safe-area-inset-left));
	}
}

@media (min-width: 701px) {
	.custom-logo,
	.ck-brand-logo {
		width: min(34vw, 280px);
	}
}

html:has(body.ck-screen),
body.ck-screen {
	background-color: #242424;
}

body.ck-screen .ck-page {
	z-index: 1;
}

.background-kotti {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background-color: #242424;
	background-image: url("../images/dark_charcoal_textured_wall.jpg");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

.ck-page--screen .ck-message h1::after,
.ck-page--screen .ck-message > p::after {
	content: "";
	display: block;
	width: 32px;
	height: 1px;
	background: var(--ck-copper);
	opacity: 0.85;
}

.ck-page--screen .ck-message h1::after {
	margin: 0.75rem auto 0;
}

.ck-page--screen .ck-message > p::after {
	margin: 1.15rem auto 0;
}

.ck-message h1 .ck-accent {
	color: var(--ck-copper);
}

@media (max-width: 700px) {
	.background-kotti {
		background-attachment: scroll;
		background-position: center;
	}

	.ck-page--screen .ck-message h1::after,
	.ck-page--screen .ck-message > p::after {
		width: 26px;
	}

	.ck-page--screen .ck-message h1::after {
		margin-top: 0.5rem;
	}

	.ck-page--screen .ck-message > p::after {
		margin-top: 0.7rem;
	}
}

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