/* ============================================================
   BASE STYLES — NoisyPixel.com
   CSS reset + global HTML element styles.
   Replaces Tailwind Preflight + @layer base from app.css.
   ============================================================ */

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

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
	margin: 0;
	padding: 0;
}

ul,
ol {
	list-style: none;
}

/* ===== HTML ===== */
html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ===== Body ===== */
body {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	color: var(--np-charcoal);
	background: white;
	line-height: 1.6;
	font-size: var(--text-body-size);
}

/* ===== Headings ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Space Grotesk', system-ui, sans-serif;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

/* ===== Links ===== */
a {
	color: inherit;
	text-decoration: none;
}

/* ===== Media ===== */
img,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ===== Interactive elements ===== */
button {
	cursor: pointer;
	font-family: inherit;
}

input,
textarea,
select {
	font-family: inherit;
}

/* ===== Focus styles — visible for keyboard navigation ===== */
:focus-visible {
	outline: 2px solid var(--np-cyan);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ===== Skip navigation — accessibility ===== */
/* Visually hidden until focused; reveals on keyboard tab */
.skip-nav {
	position: absolute;
	left: 1rem;
	top: 1rem;
	z-index: 50;
	padding: 8px 16px;
	background: var(--np-magenta);
	color: white;
	font-size: 0.875rem;
	font-weight: 700;
	border-radius: var(--radius-btn);
	transform: translateY(-200%);
	transition: transform 0.2s ease;
}
.skip-nav:focus {
	transform: translateY(0);
}
