* {
	box-sizing: border-box;
}

body {
	display: grid;
	place-items: center;
	min-height: 100vh;
	margin: 0;
	padding: 1.5rem;
	background: #f4f4f6;
	font-family: system-ui, sans-serif;
	color: #1c1c22;
}

.card {
	width: min(32rem, 100%);
	padding: 2rem;
	border-radius: 1.5rem;
	background: #ffffff;
	box-shadow: 0 10px 30px -15px rgb(0 0 0 / 0.25);
}

.card-title {
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b6b76;
}

.quote {
	min-height: 8rem;
	margin: 0;
}

/* A big decorative quote mark, drawn by CSS so screen readers skip it. */
.quote-text::before {
	content: "“" / "";
	display: block;
	height: 2.5rem;
	font-family: Georgia, serif;
	font-size: 4rem;
	line-height: 1;
	color: #d4d4da;
}

.quote-text {
	margin: 0;
	font-family: Georgia, serif;
	font-size: 1.375rem;
	line-height: 1.45;
}

.quote-text p {
	margin: 0;
}

.quote-author {
	margin-top: 1rem;
	color: #6b6b76;
}

/* While a quote loads, fade the old one so it's clear something is happening. */
.quote[aria-busy="true"] {
	opacity: 0.4;
	transition: opacity 0.2s ease;
}

.error {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	background: #fef2f2;
	color: #b91c1c;
}

.actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.button {
	padding: 0.75rem 1.25rem;
	border: 2px solid #1c1c22;
	border-radius: 999px;
	background: #ffffff;
	font: inherit;
	font-weight: 600;
	color: #1c1c22;
	cursor: pointer;
}

.button-primary {
	background: #1c1c22;
	color: #ffffff;
}

.button:hover {
	background: #f4f4f6;
}

.button-primary:hover {
	background: #3a3a44;
}

.button:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 3px;
}

.copied {
	min-height: 1.25rem;
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: #15803d;
}
