@import "./tailwind.css";

/*! Emily & Tyler custom theme and components */
:root {
	--primary: #123524;
	--secondary: #91ab9f;
	--accent: #540009;
	--cream: #f8f4e3;
	--shadow: 0 24px 70px rgba(18, 53, 36, 0.18);
	--font-cursive: "Parisienne", cursive;
	--font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-sans);
}

.font-cursive { font-family: var(--font-cursive); }
.font-sans { font-family: var(--font-sans); }
.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }
.bg-cream { background-color: var(--cream); }
.bg-secondary\/25 { background-color: rgba(145, 171, 159, 0.25); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-cream { color: var(--cream); }
.text-secondary { color: var(--secondary); }
.text-cream\/75 { color: rgba(248, 244, 227, 0.75); }
.text-cream\/85 { color: rgba(248, 244, 227, 0.85); }
.text-primary\/70 { color: rgba(18, 53, 36, 0.7); }
.text-primary\/75 { color: rgba(18, 53, 36, 0.75); }
.text-leading { line-height: 1.1; }
.text-balanced { text-wrap: balance; }

.section {
	padding-bottom: clamp(4.5rem, 9vw, 7rem);
	padding-top: clamp(4.5rem, 9vw, 7rem);
}

.nav-link {
	color: rgba(248, 244, 227, 0.72);
	transition: color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
	color: var(--cream);
}

.btn {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.85rem;
	font-weight: 700;
	justify-content: center;
	letter-spacing: 0.12em;
	min-height: 3rem;
	padding: 0.85rem 1.25rem;
	text-transform: uppercase;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover,
.btn:focus-visible {
	transform: translateY(-1px);
}

.btn-accent {
	background: var(--accent);
	color: var(--cream);
}

.btn-outline {
	border: 1px solid rgba(248, 244, 227, 0.48);
	color: var(--cream);
}

.btn-outline:hover,
.btn-outline:focus-visible {
	border-color: var(--cream);
}

.btn-primary {
	background: var(--primary);
	color: var(--cream);
}

.hero-photo {
	height: 100%;
	inset: 0;
	object-fit: cover;
	object-position: center;
	position: absolute;
	width: 100%;
}

.hero-shade {
	background:
		linear-gradient(90deg, rgba(18, 53, 36, 0.86), rgba(18, 53, 36, 0.46) 48%, rgba(18, 53, 36, 0.16)),
		linear-gradient(0deg, rgba(18, 53, 36, 0.55), rgba(18, 53, 36, 0.05) 44%);
	inset: 0;
	position: absolute;
}

.eyebrow {
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.eyebrow-cream {
	color: var(--cream);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.info-card {
	background: rgba(255, 255, 255, 0.28);
	border: 1px solid rgba(18, 53, 36, 0.14);
	border-radius: 8px;
	box-shadow: var(--shadow);
	padding: 1.5rem;
}

.info-label {
	color: var(--accent);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	margin: 0 0 0.8rem;
	text-transform: uppercase;
}

.info-title {
	color: var(--primary);
	font-family: var(--font-sans);
	font-size: 1.6rem;
	line-height: 1.1;
	margin: 0;
}

.info-copy {
	color: rgba(18, 53, 36, 0.68);
	margin: 0.9rem 0 0;
}

.feature-photo {
	aspect-ratio: 4 / 5;
	border: 1px solid rgba(18, 53, 36, 0.14);
	border-radius: 8px;
	box-shadow: var(--shadow);
	flex: none;
	min-width: 0;
	overflow: hidden;
	width: 100%;
}

.feature-photo img {
	height: 100%;
	object-fit: cover;
	object-position: center;
	width: 100%;
}

.schedule-tabs {
	background: rgba(248, 244, 227, 0.42);
	border: 1px solid rgba(18, 53, 36, 0.14);
	border-radius: 8px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.tab-input {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

.tab-list {
	background: rgba(18, 53, 36, 0.08);
	display: grid;
	gap: 0.35rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 0.45rem;
}

.tab-button {
	align-items: center;
	border-radius: 6px;
	color: rgba(18, 53, 36, 0.68);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font-size: 0.78rem;
	font-weight: 800;
	justify-content: center;
	min-height: 4.2rem;
	padding: 0.55rem;
	text-align: center;
	text-transform: uppercase;
	transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.tab-button span {
	font-family: var(--font-sans);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.15;
	text-transform: none;
}

.tab-button:hover,
.tab-button:focus-visible {
	color: var(--primary);
}

#day-5:focus-visible ~ .tab-list label[for="day-5"],
#day-6:focus-visible ~ .tab-list label[for="day-6"],
#day-7:focus-visible ~ .tab-list label[for="day-7"],
#day-8:focus-visible ~ .tab-list label[for="day-8"] {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.tab-panels {
	padding: clamp(1rem, 3vw, 2rem);
}

.tab-panel {
	display: none;
}

#day-5:checked ~ .tab-list label[for="day-5"],
#day-6:checked ~ .tab-list label[for="day-6"],
#day-7:checked ~ .tab-list label[for="day-7"],
#day-8:checked ~ .tab-list label[for="day-8"] {
	background: var(--cream);
	box-shadow: 0 10px 28px rgba(18, 53, 36, 0.13);
	color: var(--accent);
}

#day-5:checked ~ .tab-panels .panel-5,
#day-6:checked ~ .tab-panels .panel-6,
#day-7:checked ~ .tab-panels .panel-7,
#day-8:checked ~ .tab-panels .panel-8 {
	display: block;
}

.timeline {
	background: transparent;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	padding: 0;
}

.timeline-item {
	display: grid;
	gap: 1rem;
	grid-template-columns: 6rem 1fr;
	padding: 1.35rem 0;
}

.timeline-item + .timeline-item {
	border-top: 1px solid rgba(18, 53, 36, 0.16);
}

.timeline-time {
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	padding-top: 0.3rem;
	text-transform: uppercase;
}

.timeline-title {
	font-family: var(--font-sans);
	font-size: 1.65rem;
	line-height: 1.1;
	margin: 0;
}

.timeline-copy {
	color: rgba(18, 53, 36, 0.7);
	margin: 0.55rem 0 0;
}

.dark-card {
	background: rgba(248, 244, 227, 0.42);
	border: 1px solid rgba(18, 53, 36, 0.14);
	border-radius: 8px;
	box-shadow: var(--shadow);
	padding: 1rem;
}

.dark-card-title {
	color: var(--primary);
	font-family: var(--font-sans);
	font-size: 1.5rem;
	margin: 0;
}

.dark-card-copy {
	color: rgba(18, 53, 36, 0.7);
	margin: 0.8rem 0 0;
}

@media (max-width: 639px) {
	header section {
		min-height: 75svh;
	}

	header h1 {
		font-size: clamp(3.05rem, 16vw, 3.75rem);
	}

	.hero-photo {
		object-position: 58% center;
	}

	.feature-photo {
		aspect-ratio: 4 / 5;
	}

	.timeline-item {
		grid-template-columns: 1fr;
	}

	.btn {
		width: 100%;
	}
}

@media (min-width: 768px) {
	.feature-photo {
		flex: 1 1 0;
	}
}

@media (max-width: 767px) {
	.section {
		padding-bottom: 3.5rem;
		padding-top: 3.5rem;
	}

	.section > .mx-auto:not(.px-6) {
		padding-inline: 1.5rem;
	}

	.section .flex-row {
		flex-direction: column;
	}

	.section .flex-row > .flex-1 {
		flex: none;
		width: 100%;
	}

	.section .flex-row.items-center {
		align-items: flex-start;
	}

	.schedule-tabs {
		width: 100%;
	}

	.tab-button {
		min-height: 3.65rem;
		padding: 0.45rem 0.3rem;
	}

	.tab-button span {
		font-size: 1rem;
	}

	footer {
		letter-spacing: 0.16em;
		line-height: 1.7;
	}
}
