/* ====================================================================
 *  Reset + base typography — Warm Premium.
 *  Inter for body and UI, Fraunces for headlines, mono for tiny labels.
 *  Friendly, dense, denotenshop-flavored.
 * ==================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	font-feature-settings: "ss01", "cv11", "cv02", "kern";
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ff-text);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	color: var(--c-fg);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "ss01", "cv02", "cv11";
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
img { font-style: italic; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-family: inherit; }

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur) var(--ease);
}
a:hover { color: var(--c-primary); }

p { margin: 0 0 var(--sp-4); }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Headlines — Fraunces for warmth + premium fragrance feel */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--sp-4);
	font-family: var(--ff-display);
	font-weight: 500;
	line-height: var(--lh-snug);
	letter-spacing: var(--ls-tight);
	color: var(--c-fg);
	font-optical-sizing: auto;
}
h1 {
	font-size: clamp(2.25rem, 6vw, var(--fs-6xl));
	line-height: var(--lh-tight);
	letter-spacing: var(--ls-tighter);
	font-weight: 500;
}
h2 {
	font-size: clamp(1.75rem, 3.6vw, var(--fs-3xl));
	letter-spacing: var(--ls-tight);
	font-weight: 500;
}
h3 { font-size: var(--fs-2xl); font-weight: 500; }
h4 { font-size: var(--fs-xl); font-weight: 600; }
h5 { font-size: var(--fs-lg); font-weight: 600; }
h6 {
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: var(--ls-wider);
	font-family: var(--ff-text);
	font-weight: 700;
	color: var(--c-muted-fg);
}

em, i { font-style: italic; }
strong, b { font-weight: 700; }

::selection { background: var(--c-primary-soft); color: var(--c-fg); }

:focus-visible {
	outline: 3px solid var(--c-primary);
	outline-offset: 3px;
	border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---- Anchor scroll offset under the sticky header ---- */
:where(section[id], h1[id], h2[id], h3[id]) {
	scroll-margin-top: calc(var(--header-h) + var(--topbar-h) + 1rem);
}

/* ---- Skip link / SR helper ---- */
.screen-reader-text, .sr-only {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	clip-path: inset(50%);
	width: 1px; height: 1px;
	overflow: hidden;
	padding: 0; margin: -1px;
	border: 0;
	white-space: nowrap;
}
.screen-reader-text:focus,
.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	background: var(--c-fg);
	color: var(--c-bg);
	padding: var(--sp-3) var(--sp-5);
	width: auto; height: auto;
	z-index: var(--z-toast);
	top: var(--sp-3); left: var(--sp-3);
	font-family: var(--ff-text);
	font-size: var(--fs-sm);
	font-weight: 600;
	border-radius: var(--r-sm);
}
