/* ─────────────────────────────────────────────
	FONTS
───────────────────────────────────────────── */
@font-face {
	font-family: 'Simsatigan';
	src: url('fonts/Simsatigan_CZ_extended.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* ─────────────────────────────────────────────
	CSS VARIABLES
───────────────────────────────────────────── */
:root {
	/* Colors */
	--color-bg:          #f5f2ed;
	--color-title:       #797068;
	--color-text:        #3d3a37;
	--color-text-muted:  #7e7772;
	--color-accent:      #9e8c7a;
	--color-accent-soft: #c4b5a5;
	--color-border:      #ddd8d1;
	--color-bg-block:    #eae5df;

	/* Typography */
	--font-heading: 'Simsatigan', Georgia, 'Times New Roman', serif;
	--font-body:    'Raleway', 'Helvetica Neue', Arial, sans-serif;
	--font-weight-body: 300;
	--letter-spacing-wide: 0.22em;

	/* Sizes */
	--site-padding: 2rem;
	--max-width: 90rem;
	--section-gap:  clamp(8rem, 8vw, 11.2rem);
	--border-radius: 1rem;

	/* Transitions */
	--transition: 0.3s ease;
}

/* ─────────────────────────────────────────────
	RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 62.5%;
}

body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-weight: var(--font-weight-body);
	font-size: 1.7rem;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color var(--transition);
}

a:hover {
	color: var(--color-text);
}

ul, ol {
	padding-left: 2rem;
}

:focus-visible {
	outline: .2rem solid var(--color-accent);
	outline-offset: .2rem;
}

/* ─────────────────────────────────────────────
	TYPOGRAPHY
───────────────────────────────────────────── */
h1, h2 {
	font-family: var(--font-heading);
	font-weight: normal;
	line-height: 1.2;
	text-align: center;
	color: var(--color-title);
	letter-spacing: 0.01rem;
}

h1 {
	font-size: clamp(4.5rem, 7vw, 8.8rem);
}

h2 {
	font-size: 2.7rem;
	margin-bottom: 5.6rem;
}

h4 {
	font-family: var(--font-body);
	font-size: 1.2rem;
	letter-spacing: var(--letter-spacing-wide);
	text-transform: uppercase;
	color: var(--color-text-muted);
	font-weight: 400;
	margin: 5rem 0 1rem;
}

p {
	margin-bottom: 1.6rem;
}

p:last-child {
	margin-bottom: 0;
}

blockquote {
	background: var(--color-bg-block);
	border-left: .3rem solid var(--color-accent-soft);
	padding: 4rem 3.4rem;
	margin: 0 0 4rem 0;
	font-weight: 400;
	font-size: 1.1em;
	font-style: italic;
	color: var(--color-text-muted);
}

blockquote cite {
	display: block;
	font-family: var(--font-body);
	font-size: 1.25rem;
	font-style: normal;
	letter-spacing: var(--letter-spacing-wide);
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-top: 0.8rem;
}

/* ─────────────────────────────────────────────
	LAYOUT HELPERS
───────────────────────────────────────────── */
.center {
	text-align: center;
}

/* ─────────────────────────────────────────────
	SECTION BASE
───────────────────────────────────────────── */
.section {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--section-gap) var(--site-padding);
}

.section + .section::before {
	content: '';
	display: block;
	margin: auto;
	width: 4rem;
	height: 0.1rem;
	background: var(--color-border);
	transform: translateY(calc(-1 * var(--section-gap)));
}

/* ─────────────────────────────────────────────
	HERO
───────────────────────────────────────────── */
.hero {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hero__content {
	position: relative;
	z-index: 2;
	text-align: center;
	animation: fadeIn 1.6s ease 0.3s forwards;
	opacity: 0;
}

.hero__subtitle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.9em;
	font-family: var(--font-body);
	font-weight: 300;
	font-size: clamp(1.4rem, 1.38vw, 1.7rem);
	line-height: 1.2;
	letter-spacing: var(--letter-spacing-wide);
	text-transform: uppercase;
	color: var(--color-text-muted);
	margin-top: 3rem;
}

.hero__subtitle-dot {
	display: none;
}

.hero__scroll {
	width: 5rem;
	height: 5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: none;
	background: transparent;
	position: absolute;
	bottom: 3.2rem;
	left: calc(50% - 2.5rem);
	color: var(--color-accent);
	animation: fadeIn 2.8s ease forwards;
	cursor: pointer;
	transition: background-color var(--transition);
}

.hero__scroll:hover {
	background: var(--color-bg-block);
}

.hero__scroll.hidden {
	animation: fadeOut 0.4s ease forwards;
}

/* Fade-in keyframe */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(1rem); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
	from { opacity: 1; }
	to   { opacity: 0; transform: translateY(-1rem); }
}

/* ─────────────────────────────────────────────
	INTRO
───────────────────────────────────────────── */
.intro {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: var(--section-gap) var(--site-padding);
	text-align: center;
	border-left: unset;
	min-height: 100vh;
}

.intro__photo {
	flex: 1 1 0;
	display: block;
	min-height: 28rem;
	max-height: 40rem;
	aspect-ratio: 3 / 4;
	border-radius: var(--border-radius);
	border: .4rem solid var(--color-border);
	overflow: hidden;
	box-sizing: content-box;
}

.intro__heart {
	margin: 5rem 0 2rem 0;
	animation: heartbeat 3s ease-in-out infinite;
}

@keyframes heartbeat {
	0%   { transform: scale(1); }
	7%   { transform: scale(1.18); }
	14%  { transform: scale(1); }
	21%  { transform: scale(1.12); }
	28%  { transform: scale(1); }
	100% { transform: scale(1); }
}

/* ─────────────────────────────────────────────
	TIMELINE
───────────────────────────────────────────── */
.timeline {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 1.6rem;
	row-gap: 2rem;
	margin-top: 1.6rem;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

.timeline dt {
	font-size: 0.9em;
	line-height: 2;
	letter-spacing: var(--letter-spacing-wide);
	color: var(--color-text-muted);
	text-align: right;
}

.timeline dd {
	margin-left: 0;
}

/* ─────────────────────────────────────────────
	RSVP / CTA
───────────────────────────────────────────── */
.btn {
	display: inline-block;
	margin-top: 4rem;
	padding: 0.85em 2.6em;
	border: 0.1rem solid var(--color-accent);
	color: var(--color-text-muted);
	font-family: var(--font-body);
	font-size: 0.8em;
	letter-spacing: var(--letter-spacing-wide);
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color var(--transition), color var(--transition);
	cursor: pointer;
	border-radius: var(--border-radius);
}

.btn:hover {
	background: var(--color-bg-block);
	color: var(--color-text);
}

/* ─────────────────────────────────────────────
	PHOTO GALLERY
───────────────────────────────────────────── */
.gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
	margin-top: 3.2rem;
}

@media (min-width: 440px) {
	.gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 600px) {
	.gallery { grid-template-columns: repeat(4, 1fr); }
}

.gallery__item {
	overflow: hidden;
	background: var(--color-bg-block);
	aspect-ratio: 4 / 3;
	border: .1rem solid var(--color-border);
	border-radius: var(--border-radius);
}

.gallery__item:nth-child(n+5) {
	display: none;
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease, opacity var(--transition);
	opacity: 0.9;
	font-size: 0.8em;
}

.gallery__item img:hover {
	transform: scale(1.04);
	opacity: 1;
}

/* GLightbox overrides */
.glightbox-container .goverlay {
	background: rgba(8, 3, 0, 0.8) !important;
}

/* ─────────────────────────────────────────────
	MAP
───────────────────────────────────────────── */
.map-wrap {
	margin-top: 3.2rem;
	position: relative;
	padding-bottom: 50%;
	height: 0;
	overflow: hidden;
	border: .1rem solid var(--color-border);
	background: var(--color-bg-block);
	border-radius: var(--border-radius);
}

.map-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(0.25) contrast(0.95);
}

/* ─────────────────────────────────────────────
	TRANSPORT / DIRECTIONS
───────────────────────────────────────────── */
.transport-sublist {
	list-style: none;
	padding-left: 0;
	margin-top: 0.8rem;
}

.transport-sublist li {
	padding-left: 2.8rem;
	position: relative;
	margin-bottom: 0.5rem;
}

.transport-sublist li::before {
	content: '–';
	position: absolute;
	left: 0;
	color: var(--color-accent-soft);
}

/* ─────────────────────────────────────────────
	ILLUSTRATIONS
───────────────────────────────────────────── */
.hero {
	background-image: url('illustrations/kvety-2.jpg'), url('illustrations/kvety-5.jpg');
	background-repeat: no-repeat, no-repeat;
	background-size: 28rem, 34rem;
	background-position:
		left -7rem bottom -15rem,
		right -13rem top -11rem;
}

body {
	padding-bottom: 20rem;
	background-image: url('illustrations/kvety-1.jpg');
	background-repeat: no-repeat;
	background-size: 45rem;
	background-position: center bottom;
}


/* ─────────────────────────────────────────────
	RESPONSIVE
───────────────────────────────────────────── */
@media (min-width: 800px) {
	body {
		font-size: 1.8rem;
	}
	.intro__photo {
		min-height: 30rem;
		max-height: 53rem;
	}
	h2 {
		font-size: 3.4rem;
	}
	.section + .section::before {
		width: 6rem;
	}
	.map-wrap {
		padding-bottom: 40%;
	}
	.hero__subtitle {
		flex-direction: row;
		margin-top: 2.2rem;
	}
	.hero__subtitle-dot {
		display: inline;
	}
	.hero {
		background-size: 35rem, 42rem;
	}
	body {
		padding-bottom: 25rem;
		background-size: 56rem;
	}
}

@media (min-width: 1200px) {
	body {
		font-size: 2rem;
	}
	.intro__photo {
		min-height: 30rem;
		max-height: 67rem;
	}
	h2 {
		font-size: 4rem;
	}
	h4 {
		font-size: 1.3rem;
	}
	.section + .section::before {
		width: 8rem;
	}
	.map-wrap {
		padding-bottom: 35%;
	}
	.hero {
		background-size: 48rem, 59rem;
		background-position:
			left clamp(-20rem, calc(16.67vw - 40rem), -5rem) bottom -18rem,
			right clamp(-29rem, calc(14.44vw - 46rem), -16rem) top -15rem;
	}
	body {
		padding-bottom: 32rem;
		background-size: 78rem;
		background-position: center bottom -5rem;
	}
}

@media (min-width: 1740px) {
	body {
		font-size: 2.2rem;
	}

	h2 {
		font-size: 4.2rem;
	}

	h4 {
		font-size: 1.4rem;
	}
}
