@font-face {
	font-family: "Playfair Display";
	src: url(../fonts/PlayfairDisplay-Regular.woff) format("woff");
	font-display: swap;
}

@font-face {
	font-family: "Playfair Display";
	src: url(../fonts/PlayfairDisplay-Black.woff) format("woff");
	font-weight: 700;
	font-display: swap;
}

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

:root {
	--ink: #011526;
	--blue: #728ea6;
	--peach: #ffe2d4;
	--cream: #f7f3ef;
	--white: #fff;
	--line: #d7dfe5;
	--danger: #a42b37;
	--success: #35785a;
	--shadow: 0 18px 55px rgba(1, 21, 38, .09);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-x: hidden;
	background: var(--cream);
	color: var(--ink);
	font-family: Inter, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

a {
	color: inherit;
}

button,
input,
select {
	font: inherit;
}

.hero-layout {
	--photo-width: min(34vw, 520px);
	--content-width: min(1160px, calc(100% - 48px));
	/* Match the photo's right edge to the form panel's right edge. */
	--text-width: calc((100% + var(--content-width)) / 2 - var(--photo-width));
	display: grid;
	grid-template-columns: var(--text-width) var(--photo-width) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	background: var(--peach);
}

.site-header {
	grid-column: 1 / -1;
	grid-row: 1;
	z-index: 1;
}

.header-inner {
	padding: 28px 0 0;
	display: grid;
	grid-template-columns: var(--text-width) var(--photo-width) minmax(0, 1fr);
	align-items: center;
}

.header-inner > a {
	justify-self: start;
	margin-left: max(24px, calc((100vw - 1160px) / 2));
}

.logo {
	display: block;
	width: 220px;
	height: auto;
}

.language-selector {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-self: end;
	grid-column: 3;
	margin-right: 32px;
}

.language-selector::after {
	content: "▾";
	position: absolute;
	right: 2px;
	top: 50%;
	transform: translateY(-52%);
	color: var(--ink);
	font-size: 12px;
	pointer-events: none;
}

.language-selector select {
	width: auto;
	min-width: 66px;
	margin: 0;
	padding: 6px 22px 6px 3px;
	appearance: none;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--ink);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
}

.language-selector select:focus {
	border: 0;
	box-shadow: none;
}

.language-selector select:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
}

.hero {
	grid-column: 1;
	grid-row: 2;
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 20px 32px 40px max(24px, calc((100vw - 1160px) / 2));
}

.hero-inner {
	width: 100%;
	max-width: 750px;
}

.hero-image {
	grid-column: 2;
	grid-row: 1 / 3;
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center;
}

.eyebrow {
	margin-bottom: 24px;
	font-style: italic;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(24px, 3vw, 28px);
}

.hero h1,
.contest-introduction h2,
.contest-info h2,
.form-panel h2 {
	font-family: "Playfair Display", Georgia, serif;
}

.hero h1 {
	margin: 0;
	font-size: clamp(34px, 7vw, 44px);
	line-height: .96;
	overflow-wrap: anywhere;
	font-weight: 500;
}

.hero-copy {
	margin: 34px 0 0;
	font-size: 18px;
}

.contest-introduction {
	background: var(--cream);
	padding: clamp(30px, 8vw, 60px) 24px 110px;
}

.contest-introduction-inner {
	position: relative;
	width: min(940px, 100%);
	margin: auto;
	padding-left: clamp(28px, 5vw, 68px);
}

.contest-introduction-inner::before {
	content: "";
	position: absolute;
	top: 7px;
	bottom: 5px;
	left: 0;
	width: 3px;
	background: var(--blue);
}

.contest-introduction h2 {
	margin: 0 0 28px;
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 500;
	line-height: 1.05;
}

.contest-introduction-copy {
	max-width: 820px;
	color: #344959;
	font-size: 18px;
	line-height: 1.72;
}

.contest-introduction-copy p {
	margin: 0 0 20px;
}

.contest-introduction-copy p:last-child {
	margin-bottom: 0;
}

.contest-introduction-lead {
	color: var(--ink);
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(22px, 3vw, 27px);
	line-height: 1.35;
}

.contest-introduction-lead strong {
	font-weight: 500;
	font-style: italic;
}

.main-grid {
	position: relative;
	z-index: 2;
	width: min(1160px, calc(100% - 48px));
	margin: 0 auto 35px;
	transform: translateY(-55px);
	display: grid;
	grid-template-columns: minmax(0, .82fr) minmax(480px, 1.18fr);
	align-items: stretch;
	box-shadow: var(--shadow);
}

.contest-info,
.form-panel {
	min-width: 0;
	padding: 30px;
}

.contest-info {
	background: var(--blue);
	;
	color: var(--white);
}

.contest-info .section-number,
.contest-info h2 {
	color: var(--ink);
}


.form-panel {
	background: var(--white);
}

.section-number {
	margin: 0 0 34px;
	color: var(--blue);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .2em;
}

.contest-info h2,
.form-panel h2 {
	font-size: clamp(25px, 7vw, 35px);
	line-height: 1.08;
	margin: 0 0 26px;
	overflow-wrap: anywhere;
	font-weight: 500;
}

.intro {
	/* font-family: "Playfair Display", Georgia, serif; */
	font-size: 19px;
	line-height: 1.55;
	color: #e9eef2;
}

.facts {
	margin: 42px 0;
}

.facts div {
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, .18);
}

.facts div:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.facts dt {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink);
}

.facts dd {
	margin: 5px 0 0;
}

.text-link {
	display: inline-flex;
	gap: 18px;
	align-items: center;
	text-underline-offset: 6px;
}

.form-intro,
.help {
	color: #61717e;
}

.fields-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 18px;
	margin-top: 34px;
}

.field-wide {
	grid-column: 1/-1;
}

.field label,
fieldset legend {
	display: block;
	margin-bottom: 7px;
	font-size: 16px;
	font-weight: 700;
}

.field label span,
legend span,
.checkbox-field label>span {
	color: var(--danger);
}

input[type=text],
input[type=email],
input[type=tel],
select {
	width: 100%;
	border: 0;
	border-bottom: 1px solid #aebbc5;
	background: transparent;
	padding: 5px 2px;
	color: var(--ink);
	border-radius: 0;
	outline: none;
	transition: border .2s, box-shadow .2s;
}

select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
	background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-right: 30px;
}

input:focus,
select:focus {
	border-color: var(--blue);
	box-shadow: 0 2px 0 var(--blue);
}

input[aria-invalid=true],
select[aria-invalid=true] {
	border-color: var(--danger);
}

.field-error {
	display: block;
	min-height: 0;
	margin-top: 5px;
	color: var(--danger);
	font-size: 16px;
}

.field-error:not(:empty) {
	min-height: 18px;
}

.photos-fieldset {
	border: 0;
	padding: 0;
	margin: 38px 0 30px;
}

.photos-fieldset legend {
	font-size: 16px;
}

.help {
	margin: 0 0 18px;
	font-size: 16px;
}

.photo-card {
	position: relative;
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr);
	gap: 14px;
	padding: 22px 40px 22px 18px;
	margin: 12px 0;
	background: #f3f6f7;
	border: 1px solid transparent;
}

.photo-card.is-uploaded {
	border-color: #9ac2ad;
	background: #f1f8f4;
}

.photo-card.has-error {
	border-color: #d69aa1;
}

.photo-count {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 20px;
	color: var(--blue);
}

.photo-location {
	margin-top: 17px;
}

.upload-zone {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 17px;
	padding: 16px;
	border: 1px dashed #9aabb7;
	cursor: pointer;
	transition: .2s;
}

.upload-zone:hover {
	background: #fff;
	border-color: var(--blue);
}

.upload-zone.is-dragging {
	background: #e5edf2;
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
}

.upload-zone input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.upload-icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--blue);
	color: #fff;
	font-size: 22px;
}

.upload-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	font-size: 16px;
	overflow-wrap: anywhere;
}

.upload-copy small {
	color: #61717e;
}

.upload-status {
	margin-top: 9px;
	font-size: 16px;
	color: #61717e;
	overflow-wrap: anywhere;
}

.is-uploaded .upload-status {
	color: var(--success);
	font-weight: 700;
}

.has-error .upload-status {
	color: var(--danger);
	font-weight: 700;
}

.progress {
	height: 3px;
	margin-top: 10px;
	background: #dbe2e7;
	overflow: hidden;
}

.progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--blue);
	transition: width .15s;
}

.remove-photo {
	position: absolute;
	right: 12px;
	top: 12px;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: none;
	color: #6e7b84;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	border: 0;
	border-radius: 999px;
	padding: 13px 22px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .2s, background .2s, opacity .2s;
}

.button:hover:not(:disabled) {
	transform: translateY(-2px);
}

.button:disabled {
	cursor: not-allowed;
	opacity: .55;
}

.button-secondary {
	background: #e5ebef;
	color: var(--ink);
	font-size: 16px;
}

.button-primary {
	width: 100%;
	margin-top: 30px;
	padding: 17px 24px;
	background: var(--blue);
	color: #fff;
}

.button-primary:hover:not(:disabled) {
	background: var(--ink);
}

.consents {
	display: grid;
	gap: 17px;
	margin-top: 30px;
}

.checkbox-field {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 0 10px;
}

.checkbox-field input {
	width: 20px;
	height: 20px;
	margin: 2px 0;
	accent-color: var(--blue);
}

.checkbox-field label {
	font-size: 16px;
}

.checkbox-field .field-error {
	grid-column: 2;
}

.alert {
	padding: 14px 18px;
	margin: 22px 0;
	font-size: 16px;
}

.alert-error {
	border-left: 3px solid var(--danger);
	background: #faeff0;
	color: #791d27;
}

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

.success-panel {
	padding: 60px 15px;
	text-align: center;
}

.success-mark {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin: 0 auto 30px;
	border-radius: 50%;
	background: #e7f2eb;
	color: var(--success);
	font-size: 28px;
}

.participation-code {
	display: block;
	margin: 22px auto;
	padding: 18px;
	background: var(--ink);
	color: #fff;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 28px;
	letter-spacing: .08em;
}

.site-footer {
	background: var(--white);
	border-top: 1px solid #e1e5e8;
}

.footer-inner {
	width: min(1160px, calc(100% - 48px));
	margin: auto;
	padding: 35px 0;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	color: #6b7983;
	font-size: 13px;
}

.footer-inner nav {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.footer-inner a {
	text-underline-offset: 4px;
}

.footer-text{
	text-align: center;
	font-size: 16px;
	margin-bottom: 30px;
	margin-top: -30px;
	font-style: italic;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(18px, 3vw, 24px);
}

@media (min-width: 1261px) and (max-width: 1370px) {
	.language-selector {
		margin-right: 0;
	}

	.language-selector select {
		min-width: 40px;
		padding-right: 12px;
		font-size: 13px;
		letter-spacing: 0;
	}

	.language-selector::after {
		right: 0;
	}
}

@media (max-width: 1260px) {
	.hero-layout {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.site-header,
	.hero {
		grid-column: 1;
		grid-row: auto;
	}

	.header-inner {
		display: flex;
		justify-content: space-between;
		gap: 24px;
		padding: 24px max(24px, calc((100vw - 940px) / 2)) 0;
	}

	.header-inner > a {
		margin-left: 0;
	}

	.language-selector {
		grid-column: auto;
		margin-right: 0;
	}

	.hero {
		padding: 55px max(24px, calc((100vw - 940px) / 2)) 60px;
	}

	.hero-inner {
		max-width: 940px;
	}

	.hero-image {
		grid-column: 1;
		grid-row: auto;
		width: 100%;
		height: auto;
		aspect-ratio: 3 / 2;
	}
}

@media (max-width: 900px) {
	.main-grid {
		grid-template-columns: 1fr;
		margin-bottom: 50px;
		transform: translateY(-40px);
	}

	/* .contest-info, .form-panel {
		padding: 48px;
	} */

	.hero-copy {
		margin-left: 0;
	}

}

@media (max-width: 600px) {
	.header-inner {
		padding: 20px 16px 0;
	}

	.logo {
		width: 165px;
	}

	.language-selector {
		font-size: 14px;
	}

	.language-selector select {
		min-width: 62px;
		font-size: 14px;
	}

	.hero {
		padding: 55px 16px 55px;
	}

	.hero h1 {
		font-size: 46px;
	}

	.hero-copy {
		margin: 25px 0 0;
		font-size: 16px;
	}

	.contest-introduction {
		padding: 54px 16px 92px;
	}

	.contest-introduction-inner {
		padding-left: 22px;
	}

	.contest-introduction h2 {
		margin-bottom: 22px;
		font-size: 34px;
	}

	.contest-introduction-copy {
		font-size: 16px;
		line-height: 1.65;
	}

	.main-grid {
		width: calc(100% - 24px);
		margin-bottom: 50px;
	}

	/* .contest-info, .form-panel {
		padding: 36px 24px;
	} */

	.fields-grid {
		grid-template-columns: 1fr;
		gap: 19px;
	}

	.field-wide {
		grid-column: auto;
	}

	.photo-card {
		grid-template-columns: 24px 1fr;
		padding-left: 12px;
	}

	.footer-inner {
		width: calc(100% - 32px);
		flex-direction: column;
	}

	.footer-inner nav {
		gap: 12px 20px;
	}

}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*:before,
	*:after {
		transition: none !important;
	}

}
