/* 공통 스타일. 휴대폰 화면을 기준으로 잡고, 넓은 화면에서는 가운데 정렬합니다. */

:root {
	color-scheme: light dark;
	--bg: #f6f7f5;
	--surface: #ffffff;
	--text: #14201d;
	--muted: #5b6a66;
	--line: #dfe5e2;
	--accent: #0f766e;
	--accent-text: #ffffff;
	--ok: #0f766e;
	--error: #b42318;
	--radius: 14px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #101614;
		--surface: #18211e;
		--text: #e8efec;
		--muted: #9fb0aa;
		--line: #2a3632;
		--accent: #2dd4bf;
		--accent-text: #06231f;
		--ok: #2dd4bf;
		--error: #ff8a7a;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	/* 한글이 낱말 중간에서 끊기지 않게 합니다. */
	word-break: keep-all;
	overflow-wrap: break-word;
	-webkit-text-size-adjust: 100%;
}

.wrap {
	max-width: 32rem;
	margin: 0 auto;
	padding: 3rem 1.25rem 2rem;
}

.head {
	margin-bottom: 2rem;
}

.eyebrow {
	margin: 0 0 0.5rem;
	color: var(--accent);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
}

h1 {
	margin: 0 0 0.5rem;
	font-size: 2rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

h2 {
	margin: 0 0 0.75rem;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
}

.lead {
	margin: 0;
	color: var(--muted);
}

.card {
	padding: 1.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.status {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.status[data-state="loading"] {
	color: var(--muted);
}

.status[data-state="ok"] {
	color: var(--ok);
}

.status[data-state="error"] {
	color: var(--error);
}

.detail {
	min-height: 1.6em;
	margin: 0.25rem 0 1rem;
	color: var(--muted);
	font-size: 0.95rem;
}

.btn {
	display: inline-block;
	min-height: 2.75rem;
	padding: 0.6rem 1.1rem;
	border: 0;
	border-radius: 10px;
	background: var(--accent);
	color: var(--accent-text);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.btn:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 3px;
}

.foot {
	margin: 1.5rem 0 0;
	color: var(--muted);
	font-size: 0.9rem;
}
