/*
 * 基础层：重置、容器、可访问性。排版由 theme.json 下发给核心块。
 * 零字面色值：颜色一律引用 tokens.css 的变量。
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--jnr-header-h) + var(--jnr-s-4));
}

body {
	margin: 0;
	background: var(--jnr-surface-page);
	color: var(--jnr-text-primary);
	font-family: var(--jnr-font-body);
	font-size: var(--jnr-fs-base);
	line-height: var(--jnr-lh-normal);
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

/* 容器：宽版 1300 / 正文 720（04 §5.2） */
.jnr-shell {
	width: 100%;
	max-width: var(--jnr-container);
	margin-inline: auto;
	padding-inline: var(--jnr-container-pad);
}

.jnr-text-shell {
	width: 100%;
	max-width: var(--jnr-container-text);
	margin-inline: auto;
	padding-inline: var(--jnr-container-pad);
}

/* 键盘可达：不允许 outline: none */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--jnr-brand);
	outline-offset: 2px;
}

.jnr-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 跳转链接 */
.jnr-skip-link {
	position: absolute;
	top: -100px;
	left: var(--jnr-s-4);
	z-index: var(--jnr-z-skip);
	padding: var(--jnr-s-3) var(--jnr-s-4);
	border-radius: var(--jnr-r-md);
	background: var(--jnr-surface-page);
	color: var(--jnr-text-primary);
	box-shadow: var(--jnr-shadow-md);
	text-decoration: none;
}

.jnr-skip-link:focus {
	top: var(--jnr-s-4);
}

/* 区块节奏（04 §5.2：clamp(48px, 6vw, 80px)） */
.jnr-section {
	padding-block: var(--jnr-s-section);
}

.jnr-section--tight {
	padding-block: var(--jnr-s-8);
}

/* 标题层级 */
.jnr-h1 {
	margin: 0 0 var(--jnr-s-4);
	font-family: var(--jnr-font-display);
	font-size: var(--jnr-fs-3xl);
	font-weight: var(--jnr-fw-display);
	letter-spacing: -0.02em;
	line-height: var(--jnr-lh-tight);
	text-wrap: balance;
}

.jnr-h2 {
	margin: 0 0 var(--jnr-s-4);
	font-family: var(--jnr-font-display);
	font-size: var(--jnr-fs-2xl);
	font-weight: var(--jnr-fw-display);
	letter-spacing: -0.015em;
	line-height: 1.2;
	text-wrap: balance;
}

.jnr-h3 {
	margin: 0 0 var(--jnr-s-3);
	font-family: var(--jnr-font-display);
	font-size: var(--jnr-fs-lg);
	font-weight: var(--jnr-fw-semibold);
	line-height: 1.3;
}

.jnr-lead {
	max-width: 62ch;
	margin: 0 0 var(--jnr-s-6);
	color: var(--jnr-text-secondary);
	font-size: var(--jnr-fs-md);
	line-height: var(--jnr-lh-relaxed);
}

.jnr-kicker {
	margin: 0 0 var(--jnr-s-2);
	color: var(--jnr-brand-dark);
	font-size: var(--jnr-fs-sm);
	font-weight: var(--jnr-fw-semibold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.jnr-h1 {
		font-size: var(--jnr-fs-2xl);
	}

	.jnr-h2 {
		font-size: var(--jnr-fs-xl);
	}
}
