/* ==========================================================
   Nicki Nicole – Splash
   ========================================================== */

@font-face {
	font-family: "Inter";
	src: url("../webfonts/Inter_24pt-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../webfonts/Inter_24pt-Medium copia.ttf") format("truetype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #e7e6e2;
	--text: #111;
	--icon: #767676;
	--font: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(16px, 10vw, 185px);
}

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

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

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.sr-only-focusable:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100;
	width: auto; height: auto; margin: 0; clip: auto;
	padding: 8px 12px;
	background: var(--text); color: var(--bg);
}

.container {
	width: 100%;
	padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header { padding-top: 72px; }

.site-header .container {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 56px;
}

.social {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	justify-self: start;
}

.social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	color: var(--icon);
	font-size: 19px;
	text-decoration: none;
	transition: color .2s ease;
}
.social a:hover,
.social a:focus-visible { color: var(--text); }

.site-title {
	margin: 0;
	font-size: 24px;
	font-weight: 400;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
}

/* Logo hangs below the header row (as in the mock) without pushing content down */
.logo {
	position: absolute;
	top: -40px;
	right: calc(var(--gutter) + 2vw);
	width: 110px;
	mix-blend-mode: multiply; /* logo.png has a white (non-transparent) background */
}

/* ---------- Main ---------- */
/* Flex column so the content block centers vertically in the space between header and footer */
main {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: 40px 64px;
}

main .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 60px;
}

/* Cap width by viewport height too, so art + button fit above the fold (art is 3:4) */
.cover {
	width: min(446px, 100%, (100svh - 360px) * .75);
	min-width: min(260px, 100%);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.btn-newsletter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: min(330px, 100%);
	min-height: 50px;
	padding: 8px 20px;
	border: 2px solid var(--text);
	background: transparent;
	color: var(--text);
	font-family: inherit;
	cursor: pointer;
	font-size: 17px;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.btn-newsletter:hover,
.btn-newsletter:focus-visible {
	background: var(--text);
	color: var(--bg);
}

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ---------- Signup dialog (SMF form) ---------- */
.signup-dialog {
	width: min(480px, calc(100% - 32px));
	max-height: calc(100svh - 32px);
	padding: 48px 40px 40px;
	border: 2px solid var(--text);
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
}
.signup-dialog::backdrop { background: rgba(17, 17, 17, .55); }

.signup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--icon);
	font-size: 22px;
	cursor: pointer;
}
.signup-close:hover { color: var(--text); }

.signup-title {
	margin: 0 0 24px;
	font-size: 22px;
	font-weight: 400;
	letter-spacing: .02em;
	text-align: center;
	text-transform: uppercase;
}

.signup-form .form-group { margin-bottom: 16px; }

.signup-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	letter-spacing: .02em;
}

.signup-form .form-control {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--text);
	border-radius: 0;
	background: #fff;
	color: var(--text);
	font: 16px/1.3 var(--font); /* 16px stops iOS zoom on focus */
}
.signup-form select.form-control { cursor: pointer; }

.signup-form .has-error .form-control { border-color: #b00020; box-shadow: inset 0 0 0 1px #b00020; }

.signup-form .field-error,
.signup-status {
	margin: 6px 0 0;
	color: #b00020;
	font-size: 13px;
}
.signup-status { margin-top: 12px; text-align: center; }

/* Hidden SMF opt-in / triggered_sends fields (Bootstrap class names from the integration file) */
.signup-form .display-none,
.signup-form .hidden { display: none !important; }

.signup-legal {
	margin: 20px 0;
	color: var(--icon);
	font-size: 12px;
	line-height: 1.5;
}
.signup-legal a { text-decoration: underline; }

.signup-submit { width: 100%; font-size: 18px; min-height: 56px; }
.signup-submit:disabled { opacity: .6; cursor: progress; }

.signup-success { text-align: center; outline: none; }
.signup-success p { margin: 0 0 8px; }
.signup-success-title { font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }

@media (max-width: 600px) {
	.signup-dialog { padding: 44px 20px 24px; }
}

/* ---------- Footer ---------- */
footer {
	padding-block: 24px 32px;
	color: var(--icon);
	font-size: 11px;
	line-height: 1.6;
	text-align: center;
}
footer p { margin: 0; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- Large screens ---------- */
@media (min-width: 1600px) {
	.social { gap: 10px; }
	.social a { width: 42px; height: 42px; font-size: 23px; }
}

@media (min-width: 1920px) {
	.social { gap: 14px; }
	.social a { width: 46px; height: 46px; font-size: 26px; }
}

/* ---------- Tablet + Mobile (stacked header) ---------- */
@media (max-width: 1024px) {
	.site-header { padding-top: 24px; }

	.site-header .container {
		grid-template-columns: 1fr;
		justify-items: center;
		row-gap: 14px;
	}

	.logo {
		position: static;
		order: -2;
		width: 80px;
		margin-block: -10px -14px;
	}

	.site-title { font-size: 20px; order: -1; }

	.social { justify-self: center; gap: 2px; }

	main { padding-block: 28px 40px; }
	main .container { gap: 36px; }

	.cover { width: min(446px, 100%); }

	.btn-newsletter { font-size: 15px; min-height: 46px; }
}
