:root {
	--cream-50: #fffaf0;
	--cream-100: #f7eedf;
	--cream-200: #ecdcc3;
	--sand-400: #b89f7b;
	--ink-700: #4e4439;
	--ink-900: #2f2922;
	--surface: rgba(255, 250, 240, 0.78);
	--shadow: 0 20px 45px rgba(123, 99, 66, 0.15);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--ink-900);
	font-family: "Manrope", sans-serif;
	background:
		radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.55), transparent 30%),
		radial-gradient(circle at 85% 10%, rgba(236, 220, 195, 0.8), transparent 28%),
		linear-gradient(145deg, var(--cream-50), var(--cream-100));
}

.page {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 24px;
}

.card {
	width: min(760px, 100%);
	background: var(--surface);
	border: 1px solid rgba(184, 159, 123, 0.3);
	border-radius: 24px;
	padding: clamp(24px, 4vw, 42px);
	box-shadow: var(--shadow);
	backdrop-filter: blur(4px);
	animation: rise-in 500ms ease-out both;
}

.kicker {
	margin: 0;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sand-400);
	font-size: 0.76rem;
	font-weight: 600;
}

h1 {
	margin: 10px 0 18px;
	font-family: "Cormorant Garamond", serif;
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: 1;
	font-weight: 600;
	color: var(--ink-900);
}

.excuse-text {
	margin: 0 0 28px;
	font-size: clamp(1.02rem, 2.1vw, 1.26rem);
	line-height: 1.8;
	color: var(--ink-700);
}

button {
	border: 0;
	border-radius: 999px;
	padding: 12px 20px;
	background: linear-gradient(180deg, #a98f6b, #8f7554);
	color: #fff;
	font-family: "Manrope", sans-serif;
	font-size: 0.94rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 180ms ease, filter 180ms ease;
}

button:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
}

button:active {
	transform: translateY(1px);
}

.excuse-history {
	margin: 22px 0 0;
	padding-left: 22px;
	color: var(--ink-700);
	font-size: 0.96rem;
	line-height: 1.65;
	max-height: 180px;
	overflow-y: auto;
}

.excuse-history li + li {
	margin-top: 8px;
}

@keyframes rise-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 640px) {
	.card {
		border-radius: 18px;
		padding: 22px;
	}

	.excuse-text {
		line-height: 1.65;
	}
}
