* {
	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;
}

#explainer {
	max-width: 720px;
	margin: 3rem auto 1rem;
	padding: 0 1.25rem;
	flex: 1;
}

#explainer[hidden] {
	display: none;
}

#explainer h1 {
	margin: 0 0 1rem;
	font-size: 1.6rem;
}

#explainer p {
	margin: 0 0 0.9rem;
}

h1 {
	font-size: 1.4rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}

p {
	line-height: 1.6;
	margin-bottom: 1rem;
}

.secondary-links {
	margin-top: 2rem;
	display: flex;
	gap: 1.5rem;
	font-size: 0.9rem;
}

.secondary-links a {
	color: #555;
	text-decoration: none;
}

.secondary-links a:hover {
	text-decoration: underline;
}
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;
}

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

.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;
}

.brand-symbol {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 1.25rem;
	height: 1.25rem;
	border: 1px solid #b9bfc9;
	border-radius: 0.2rem;
	font-size: 0.9rem;
	line-height: 1;
}

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

.profile-card {
	width: 100%;
	max-width: 480px;
	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 1rem;
	font-size: 1.5rem;
	font-weight: 600;
}

.status-message {
	margin: 0;
	font-size: 1rem;
	color: #3a3f45;
}

.profile-links {
	margin: 1.5rem 0 0;
	padding: 0;
	list-style: none;
}

.profile-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 1rem;
	border: 1px solid #d7dce4;
	border-radius: 12px;
	margin-bottom: 0.75rem;
	text-decoration: none;
	color: inherit;
	background: #f9fafc;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

.profile-link:hover,
.profile-link:focus-visible {
	border-color: #aab5c6;
	box-shadow: 0 0 0 4px rgba(59, 97, 188, 0.15);
	outline: none;
}

.platform-icon {
	width: 32px;
	height: 32px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	border-radius: 8px;
	background: #e8edf5;
}

.platform-icon svg {
	width: 20px;
	height: 20px;
	fill: #3b5aa3;
}

.platform-text {
	flex: 1;
}

.platform-name {
	margin: 0;
	font-weight: 600;
	font-size: 1.05rem;
}

.platform-hint {
	margin: 0;
	font-size: 0.85rem;
	color: #60656c;
}

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

.create-card {
	width: 100%;
	max-width: 720px;
	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-lede {
	margin: 0 0 1.25rem;
	color: #3a3f45;
}

.field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem 1.25rem;
	margin-bottom: 1.5rem;
}

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

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

.helper-text {
	margin: 0;
	font-size: 0.85rem;
	color: #6b717a;
}

.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;
}

.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;
	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;
	cursor: pointer;
	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;
}

.output-block {
	margin-top: 1.25rem;
	padding: 1rem;
	border: 1px solid #d7dce4;
	border-radius: 12px;
	background: #f9fafc;
}

.output-row {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	align-items: center;
}

.mono-output {
	flex: 1;
	min-width: 240px;
	padding: 0.75rem 0.85rem;
	border: 1px solid #d7dce4;
	border-radius: 10px;
	background: #ffffff;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 0.95rem;
	color: #1a1a1a;
}

.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;
}

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

.footer-ad {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid #e0e4ea;
	text-align: center;
}

.ad-label {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	color: #5a5f66;
}

.footer-ad .adsbygoogle {
	width: 100%;
	min-height: 90px;
}

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