.hn-hello-world {
	display: grid;
	justify-items: center;
	gap: 0.875rem;
	padding: 2rem 1.25rem;
	border: 2px solid currentColor;
	border-radius: 10px;
	box-shadow: 6px 6px 0 var(--color-brandPrimary, #1f7a5c);
	text-align: center;
}

.hn-hello-world__wave {
	display: inline-block;
	font-size: 2.5rem;
	transform-origin: 70% 70%;
}

.hn-hello-world__wave.is-waving {
	animation: hn-hello-world-wave 0.6s ease-in-out;
}

.hn-hello-world__greeting {
	min-height: 1.2em;
	font-size: clamp(2rem, 6vw, 3.4rem);
	font-weight: 900;
	line-height: 1.1;
}

.hn-hello-world__lang,
.hn-hello-world__count {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.8125rem;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}

.hn-hello-world__button {
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 4px;
	background: var(--color-interactive-accent, #e0a526);
	color: #111;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.hn-hello-world__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@keyframes hn-hello-world-wave {
	0%, 100% { transform: rotate(0); }
	25% { transform: rotate(18deg); }
	50% { transform: rotate(-10deg); }
	75% { transform: rotate(14deg); }
}

@media (prefers-reduced-motion: reduce) {
	.hn-hello-world__wave.is-waving {
		animation: none;
	}
}
