* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family:
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		Roboto,
		Ubuntu,
		Cantarell,
		"Noto Sans",
		sans-serif;
	color: #1a1a1a;
	background: #f7f8fa;
}

[hidden] {
	display: none !important;
}

body {
	display: flex;
	flex-direction: column;
}

.site-header,
.site-footer {
	padding: 1rem;
	background: #ffffff;
	border-bottom: 1px solid #e0e4ea;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.header-nav {
	display: flex;
	gap: 1.25rem;
}

.site-footer {
	border-top: 1px solid #e0e4ea;
	border-bottom: none;
	text-align: center;
	font-size: 0.85rem;
	color: #5a5f66;
	margin-top: auto;
}

.footer-link {
	color: #3b61bc;
	text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
	text-decoration: underline;
	outline: none;
}

.quiet-link {
	color: #6b717a;
	text-decoration: none;
	font-size: 0.9rem;
}

.quiet-link:hover,
.quiet-link:focus-visible {
	color: #2f3b4d;
	text-decoration: underline;
	outline: none;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #000000;
}

.brand-link {
	color: inherit;
	text-decoration: none;
	font-family:
		"SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New",
		monospace;
	font-weight: 600;
	transition: color 150ms ease;
	text-transform: none;
}

.brand-link:hover,
.brand-link:focus-visible {
	color: #2f3b4d;
	outline: none;
}

.content {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 2.5rem 1.25rem;
}

.create-card {
	width: 100%;
	max-width: 560px;
	background: #ffffff;
	border: 1px solid #e0e4ea;
	border-radius: 16px;
	padding: 2rem 1.75rem;
	box-shadow: 0 12px 32px rgba(26, 35, 48, 0.08);
}

.card-title {
	margin: 0 0 0.6rem;
	font-size: 1.5rem;
	font-weight: 600;
}

.card-lede {
	margin: 0 0 1.25rem;
	color: #3a3f45;
}

.field-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.field-label {
	font-weight: 600;
	font-size: 0.95rem;
	color: #2a2f36;
}

.text-input {
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid #d7dce4;
	border-radius: 10px;
	font-size: 1rem;
	background: #f9fafc;
	color: #1a1a1a;
	transition:
		border-color 120ms ease,
		box-shadow 120ms ease;
}

.text-input:focus-visible {
	border-color: #3b61bc;
	box-shadow: 0 0 0 3px rgba(59, 97, 188, 0.15);
	outline: none;
	background: #ffffff;
}

.text-area {
	resize: vertical;
	min-height: 80px;
	font-family: inherit;
	line-height: 1.5;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 1.25rem;
}

.button {
	padding: 0.8rem 1.2rem;
	border: 1px solid #3b61bc;
	background: #3b61bc;
	color: #ffffff;
	border-radius: 10px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition:
		background 120ms ease,
		border-color 120ms ease,
		box-shadow 120ms ease;
}

.button:hover,
.button:focus-visible {
	background: #2f4fa0;
	border-color: #2f4fa0;
	box-shadow: 0 0 0 3px rgba(59, 97, 188, 0.2);
	outline: none;
}

.ghost-button {
	padding: 0.8rem 1.1rem;
	border: 1px solid #d7dce4;
	background: #ffffff;
	color: #2a2f36;
	border-radius: 10px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition:
		border-color 120ms ease,
		box-shadow 120ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
	border-color: #3b61bc;
	box-shadow: 0 0 0 3px rgba(59, 97, 188, 0.15);
	outline: none;
}

.muted-note {
	margin: 0;
	color: #6b717a;
	font-size: 0.9rem;
}

.qr-panel {
	margin-top: 1.25rem;
	padding: 1rem;
	border: 1px solid #d7dce4;
	border-radius: 12px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.qr-preview {
	display: grid;
	place-items: center;
	padding: 0.75rem;
	background: #f3f6fb;
	border-radius: 10px;
	min-height: 280px;
}

.qr-preview svg {
	width: 260px;
	height: 260px;
}

.noscript {
	padding: 1rem;
	margin: 1rem;
	border: 1px solid #e0a200;
	background: #fff7e0;
	color: #4a3c00;
	border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0s !important;
		transition-duration: 0s !important;
	}
}

@media (max-width: 480px) {
	.create-card {
		padding: 1.5rem 1.25rem;
	}

	.header-nav {
		gap: 0.75rem;
	}
}
