/* THEA – main.css */

:root {
	--clr-black:      #04212a;
	--clr-overlay:    rgba(4, 38, 48, 0.58);
	--clr-white:      #eef4f4;
	--clr-gold:       #e3c887;
	--clr-gold-deep:  #b89a5c;
	--clr-gold-light: #f1ddac;
	--clr-aqua:       #84cdd8;
	--clr-aqua-deep:  #4a9aa8;
	--clr-accent:       #0071e3;
	--clr-accent-hover: #0077ed;
	--clr-muted:      rgba(216, 235, 237, 0.62);
	--clr-btn-border: rgba(216, 235, 237, 0.28);
	--clr-btn-hover:  rgba(216, 235, 237, 0.1);

	--font-serif: 'Italiana', 'Times New Roman', Georgia, serif;
	--font-sans:  'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
	height: 100%;
}

body {
	height: 100%;
	background: var(--clr-black);
	color: var(--clr-white);
	font-family: var(--font-sans);
	font-weight: 400;
	letter-spacing: -0.011em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
	overflow: hidden;
}

/* ─── Background ─────────────────────────────────────── */

.thea-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	opacity: 0;
	transition: opacity 1s ease;
}

.thea-body.is-ready .thea-bg {
	opacity: 1;
}

.thea-bg__media {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.thea-bg__overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg,
			rgba(4, 44, 55, 0.5) 0%,
			rgba(3, 28, 37, 0.62) 100%),
		radial-gradient(ellipse at center,
			rgba(4, 34, 43, 0.12) 42%,
			rgba(2, 17, 23, 0.58) 100%);
}

/* ─── Invitation layout ──────────────────────────────── */

.thea-invitation {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 6vw, 3rem);
}

.thea-invitation__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(1.25rem, 3.5vh, 2.25rem);
	max-width: 560px;
	width: 100%;
}

/* ─── Logo ───────────────────────────────────────────── */

.thea-logo {
	margin-bottom: clamp(0.25rem, 1.5vh, 1rem);
	opacity: 0;
	transform: translateY(-18px);
	filter: blur(10px);
	transition: opacity 1s var(--ease-out) 0.35s,
	            transform 1s var(--ease-out) 0.35s,
	            filter 1s var(--ease-out) 0.35s;
}

.thea-body.is-ready .thea-logo {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

.thea-logo__img {
	height: clamp(88px, 14vh, 124px);
	width: auto;
	filter: brightness(0) invert(1);
	opacity: 0.92;
	display: block;
}

/* ─── Hero ───────────────────────────────────────────── */

.thea-hero {
	opacity: 0;
	transform: translateY(22px);
	filter: blur(16px);
	transition: opacity 1.1s var(--ease-out) 0.7s,
	            transform 1.1s var(--ease-out) 0.7s,
	            filter 1.1s var(--ease-out) 0.7s;
}

.thea-body.is-ready .thea-hero {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

.thea-hero__eyebrow {
	font-size: clamp(0.95rem, 2.4vw, 1.15rem);
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--clr-gold);
	margin-bottom: 0.55em;
}

.thea-hero__title {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(2.9rem, 13vw, 6.5rem);
	line-height: 0.95;
	letter-spacing: -0.005em;
	margin-bottom: 0.34em;
	background: linear-gradient(100deg,
		var(--clr-white) 0%,
		var(--clr-white) 30%,
		var(--clr-gold) 50%,
		var(--clr-white) 70%,
		var(--clr-white) 100%);
	background-size: 220% auto;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	animation: thea-shimmer 7s ease-in-out infinite;
}

@keyframes thea-shimmer {
	0%   { background-position: 100% center; }
	100% { background-position: -120% center; }
}

.thea-hero__text {
	font-size: clamp(0.95rem, 2.4vw, 1.15rem);
	line-height: 1.5;
	letter-spacing: -0.021em;
	font-weight: 500;
	color: rgba(231, 240, 241, 0.82);
}

.thea-hero__text em {
	font-style: normal;
	color: var(--clr-gold);
	font-family: var(--font-serif);
	letter-spacing: 0.04em;
}

/* ─── Event details ──────────────────────────────────── */

.thea-details {
	opacity: 0;
	transform: translateY(22px);
	filter: blur(12px);
	transition: opacity 1s var(--ease-out) 1.05s,
	            transform 1s var(--ease-out) 1.05s,
	            filter 1s var(--ease-out) 1.05s;
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: clamp(1.25rem, 5vw, 2.75rem);
	text-align: left;
}

.thea-body.is-ready .thea-details {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

.thea-details__col {
	display: flex;
	flex-direction: column;
	gap: 0.18em;
	min-width: 0;
}

.thea-details__label {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--clr-aqua);
	margin-bottom: 0.4em;
}

.thea-details__value {
	font-family: var(--font-serif);
	font-size: clamp(1.3rem, 3.6vw, 1.75rem);
	letter-spacing: -0.005em;
	font-weight: 400;
	line-height: 1.12;
	color: var(--clr-white);
}

.thea-details__value--gold {
	color: var(--clr-gold);
}

.thea-details__sub {
	font-size: clamp(0.85rem, 2vw, 0.95rem);
	letter-spacing: -0.006em;
	font-weight: 400;
	color: var(--clr-muted);
	margin-top: 0.1em;
}

.thea-details__divider {
	width: 1px;
	align-self: stretch;
	background: linear-gradient(to bottom,
		transparent,
		rgba(132, 205, 216, 0.5) 30%,
		rgba(132, 205, 216, 0.5) 70%,
		transparent);
	flex-shrink: 0;
}

/* ─── Actions ────────────────────────────────────────── */

.thea-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.65rem;
	width: 100%;
	max-width: 520px;
	opacity: 0;
	transform: translateY(22px);
	filter: blur(10px);
	transition: opacity 1s var(--ease-out) 1.35s,
	            transform 1s var(--ease-out) 1.35s,
	            filter 1s var(--ease-out) 1.35s;
}

.thea-body.is-ready .thea-actions {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

/* ─── Buttons ────────────────────────────────────────── */

.thea-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex: 1 1 0;
	min-width: 0;
	padding: 1.05em 1.1em;
	border: 1px solid var(--clr-btn-border);
	border-radius: 980px;
	background: rgba(231, 240, 241, 0.07);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	color: var(--clr-white);
	font-family: var(--font-sans);
	font-size: clamp(0.9rem, 2.3vw, 1rem);
	font-weight: 600;
	letter-spacing: -0.014em;
	cursor: pointer;
	transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
	            transform 0.25s var(--ease-out), opacity 0.3s ease;
	-webkit-appearance: none;
	appearance: none;
	line-height: 1;
}

.thea-btn:hover:not(:disabled) {
	background: rgba(231, 240, 241, 0.14);
	border-color: rgba(231, 240, 241, 0.5);
}

.thea-btn:active:not(:disabled) {
	transform: scale(0.97);
	background: rgba(231, 240, 241, 0.17);
}

.thea-btn__icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.thea-btn__icon svg {
	width: 17px;
	height: 17px;
}

.thea-btn--confirm {
	background: var(--clr-accent);
	border-color: var(--clr-accent);
	color: #fff;
}

.thea-btn--confirm:hover:not(:disabled) {
	background: var(--clr-accent-hover);
	border-color: var(--clr-accent-hover);
}

.thea-btn--confirmed,
.thea-btn--confirmed:disabled {
	background: rgba(0, 113, 227, 0.22);
	border-color: rgba(0, 113, 227, 0.4);
	color: rgba(255, 255, 255, 0.7);
	cursor: default;
}

.thea-btn--loading {
	opacity: 0.5;
	pointer-events: none;
}

/* ─── Background WebGL canvas (voda) ─────────────────── */

.thea-bg__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* ─── Not found ──────────────────────────────────────── */

.thea-not-found {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	background: var(--clr-black);
}

.thea-not-found__inner {
	text-align: center;
}

.thea-not-found__text {
	font-family: var(--font-serif);
	font-size: clamp(1rem, 3.5vw, 1.4rem);
	color: var(--clr-muted);
	letter-spacing: 0.03em;
	line-height: 1.6;
}

/* ─── Reduced motion ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.thea-bg,
	.thea-logo,
	.thea-hero,
	.thea-details,
	.thea-actions {
		transition: none;
		opacity: 1;
		transform: none;
		filter: none;
	}

	.thea-btn {
		transition: none;
	}

	.thea-hero__title {
		animation: none;
		background-position: 50% center;
	}
}

/* ─── Small screens ──────────────────────────────────── */

@media (max-height: 600px) {
	body {
		overflow-y: auto;
	}

	.thea-invitation {
		padding-block: 2.5rem;
	}

	.thea-invitation__inner {
		gap: 1rem;
	}

	.thea-hero__title {
		font-size: clamp(2.2rem, 9vw, 3.4rem);
	}

	.thea-logo__img {
		height: clamp(64px, 18vh, 88px);
	}
}
