/* Reset */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg: oklch(91% 5% 98deg);
	--green: oklch(81% 64% 139deg);
	--purple: oklch(56% 59% 305deg);
	--orange: oklch(73% 44% 58deg);
}

html,
body {
	height: 100%;
}

body {
	background: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
}

a {
	color: inherit;
	text-decoration: none;
}

/* A4 poster — fixed aspect ratio, scales with viewport height */
.poster {
	background: var(--bg);
	height: 90vh;
	height: 90dvh;
	aspect-ratio: 595 / 841;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	/* padding: 3cqh 0 3cqh; */
	/* padding-top: 5cqh; */
	gap: 1.5cqh;
	position: relative;
	overflow: hidden;
	container-type: size;
}

/* Top section: names + date */
.top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	position: relative;
	z-index: 2;
	margin-bottom: auto;
}

.names h1 {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 2.6cqh;
	color: var(--purple);
	text-transform: uppercase;
}

.monogram {
	width: 14cqw;
	margin-top: 0.3em;
}

.heart-svg {
	width: 100%;
	height: auto;
}

.datetime {
	text-align: right;
	font-family: "Bricolage Grotesque", sans-serif;
	font-weight: 700;
	color: var(--green);
	font-size: 3.25cqh;
	line-height: 1.1;
	padding-top: 31.5cqh;
}

/* Main logo — centered, sized to match design */
.logo-area {
	position: absolute;
	top: 4cqh;
	left: 50%;
	transform: translateX(-50%);
	width: 90cqw;
	height: 60cqh;
	z-index: 1;
	pointer-events: none;
}

.main-logo {
	width: 100%;
	height: 100%;
	display: block;
	transform: scale(1.35);
	transform-origin: center top;
}

/* Info section */
.info {
	position: relative;
	z-index: 2;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1cqw;
	bottom: 10cqh;
}

.info-text {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 1.1cqh;
	text-align: justify;
	color: var(--purple);
	line-height: 1.1;
	max-width: 46%;
	columns: 2;
	column-gap: 1.6 em;
}

.info-text p {
	break-inside: avoid;
}

.wedding-label {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 2.7cqh;
	color: var(--purple);
	display: flex;
	align-items: center;
	gap: 0.1em;
	white-space: nowrap;
}

.wedding-label .line {
	display: inline-block;
	width: 8cqh;
	height: 0.4cqh;
	background: var(--purple);
}

/* Footer */
.bottom {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	position: relative;
	z-index: 2;
	margin-top: 1cqh;
}

.venue a {
	display: block;
	transition: opacity 0.2s;
}

.venue a:hover {
	opacity: 0.8;
}

.venue-name {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 2.5cqh;
	line-height: 1.1;
	color: var(--purple);
}

.coords {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 2.5cqh;
	line-height: 1.3;
	color: var(--purple);
}

.rsvp a {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	font-size: 2.6cqh;
	color: var(--purple);
	text-transform: uppercase;
	transition: opacity 0.2s;
	text-decoration: underline;
	text-underline-offset: 0.175em;
	text-decoration-thickness: 0.4cqh;
}

.rsvp a:hover {
	opacity: 0.8;
}
