/* ==========================================================
   Reset & base typography
   ========================================================== */

/* --- Minimal reset --- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

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

body {
	font-family: var(--f-body);
	font-size: var(--fs-base);
	line-height: 1.6;
	color: var(--c-text);
	background-color: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

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

/* --- Lists --- */
ul, ol {
	list-style: none;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-display);
	font-weight: 400;
	line-height: 1.2;
	color: var(--c-text);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl);  }

/* --- Body text --- */
p {
	margin-bottom: var(--sp-md);
	color: var(--c-text-2);
}

p:last-child {
	margin-bottom: 0;
}

strong, b {
	font-weight: 700;
}

/* --- Selection --- */
::selection {
	background-color: var(--c-gold);
	color: var(--c-text);
}

/* --- Focus visible --- */
:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
}

/* --- Scrollbar (webkit) --- */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--c-ivory);
}

::-webkit-scrollbar-thumb {
	background: var(--c-stone);
	border-radius: var(--r-full);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--c-stone-dark);
}
