/* ==========================================================================
   INESJ — Base
   Reset · document · typography roles · accessibility helpers
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body,
body.is-one-page {
	margin: 0;
	min-height: 100vh;
	background-color: var(--bg);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	font-weight: 400;
	font-stretch: 100%;
	line-height: 1.5;
	font-kerning: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-size: inherit;
	font-weight: inherit;
}

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

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

::selection {
	background: var(--fg);
	color: var(--bg);
}

/* Sky palette: selected text is highlighted in sky blue (cloud white in
   About, which is sky blue itself). */
.palette-sky ::selection {
	background: var(--accent);
	color: var(--c-ink);
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.site-main:focus {
	outline: none;
}

/* Typography roles -------------------------------------------------------- */

.label {
	font-family: var(--font-sans);
	font-size: var(--fs-label);
	font-weight: 600;
	font-stretch: 100%;
	font-style: normal;
	line-height: 1.25;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
}

.statement {
	font-size: var(--fs-statement);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.022em;
	text-wrap: balance;
}

.lede {
	font-size: var(--fs-lede);
	line-height: 1.42;
	letter-spacing: -0.006em;
	max-width: 36em;
	text-wrap: pretty;
}

/* The second voice: italic serif, always lowercase-friendly, never roman. */
.deck,
.statement em,
.lede em,
.category__title {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
	text-transform: none;
}

.statement em {
	letter-spacing: -0.02em;
}

/* Accessibility helpers ---------------------------------------------------- */

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

.skip-link {
	position: fixed;
	top: 10px;
	left: var(--margin);
	z-index: 100;
	padding: 12px 16px;
	background: var(--fg);
	color: var(--bg);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

/* Editor hints for empty fields (only printed for logged-in editors). */
.hint {
	display: inline-block;
	padding: 6px 10px;
	border: 1px dashed currentColor;
	font-size: var(--fs-small);
	font-family: var(--font-sans);
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0;
	opacity: 0.8;
}
