/* Drycastle — base: reset minimo, tipografia, link, layout di pagina. */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 5rem;
}

body {
	margin: 0;
	background: var(--dc-paper);
	color: var(--dc-ink);
	font-family: var(--dc-font-sans);
	font-size: var(--dc-fs-body);
	line-height: 1.55;
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--dc-font-display);
	font-weight: 400;
	line-height: var(--dc-lh-title);
	text-transform: uppercase;
	overflow-wrap: break-word;
}

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

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
a:hover {
	color: var(--dc-accent-text);
}

:focus-visible {
	outline: 3px solid var(--dc-accent);
	outline-offset: 3px;
}
/* Su fondo accento (footer, pulsanti arancioni) l'anello arancione non si vedrebbe. */
.dc-footer :focus-visible,
.dc-btn--accent:focus-visible,
.dc-menu-cta > a:focus-visible {
	outline-color: var(--dc-ink);
}

::selection {
	background: var(--dc-accent);
	color: var(--dc-ink);
}

button {
	font: inherit;
	color: inherit;
}

/* Contenitore di pagina */
.dc-container {
	width: 100%;
	max-width: var(--dc-max);
	margin-inline: auto;
	padding-inline: var(--dc-gutter);
}

.dc-main {
	display: block;
	min-height: 50vh;
}

/* Accessibilità */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--dc-ink);
	color: var(--dc-on-ink);
	font-family: var(--dc-font-display);
	text-transform: uppercase;
}
.skip-link:focus {
	top: 1rem;
}

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