/*
 * Base — minimal reset and body typography. Mobile-first: designed at
 * 390px first, minimum 44px touch targets.
 */

*, *::before, *::after {
	box-sizing: border-box;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-ui);
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	padding-inline: var(--sp-4);
}

img, svg, video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--link);
	text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--accent-strong);
}

:is(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 2px;
}

h1, h2, h3, h4 {
	font-family: var(--f-display);
	font-weight: 600;
	line-height: 1.15;
	text-wrap: balance;
	margin: 0 0 var(--sp-3);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
	margin: 0 0 var(--sp-4);
}

.wrap {
	max-width: var(--wide-size);
	margin-inline: auto;
}

.reading {
	font-family: var(--f-ui);
	font-size: var(--fs-lead);
	line-height: 1.75;
	max-width: var(--content-size);
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
		animation: none !important;
	}
}
