/**
 * Giuseppina Shell - Base CSS
 * Contains design system tokens, typography rules, accessibility settings, and layout wrappers.
 */

:root {
	/* Color Palette */
	--taupe: #A9A08F;
	--olive: #BAB6AC;
	--olive-dark: #9E9B92;
	--cream: #F8F6F3;
	--white: #FFFFFF;
	--dark: #3A362F;
	--dark-soft: #5C5749;

	/* Fonts */
	--font-head: 'Plus Jakarta Sans', sans-serif;
	--font-body: 'Lato', sans-serif;

	/* Transition speed */
	--transition-speed: 0.2s;
}

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	color: var(--dark);
	background-color: var(--cream);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.25;
	color: var(--dark);
	margin-bottom: 1.2rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1.5rem; }

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition-speed) ease;
}

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

/* Containers */
.container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
	width: 100%;
}

.container-page {
	max-width: 820px;
	margin: 64px auto;
	padding: 0 24px;
	width: 100%;
}

.container-legal {
	max-width: 760px;
	margin: 64px auto;
	padding: 0 24px;
	width: 100%;
}

/* Accessibility */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--white);
	clip: auto !important;
	clip-path: none;
	color: var(--dark);
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	position: absolute;
	top: 5px;
	text-decoration: none;
	width: auto;
	z-index: 100000;
	border-radius: 999px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

@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;
	}
}
