/* ---------------------------------------------------------------------------
   MyDolcetto — coming soon
   CSS scritto a mano, nessun build step. I token replicano quelli dello
   storefront (apps/storefront/src/routes/layout.css): se lì cambia la palette,
   vanno riallineati a mano anche qui.
--------------------------------------------------------------------------- */

/* ---- Font self-hostati (nessuna richiesta esterna) ---------------------- */
@font-face {
	font-family: 'Fraunces Variable';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url('fonts/fraunces-latin-wght.woff2') format('woff2-variations');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
		U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Inter Variable';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url('fonts/inter-latin-wght.woff2') format('woff2-variations');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
		U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Token ------------------------------------------------------------- */
:root {
	--primary: oklch(0.52 0.14 62);
	--on-media: oklch(0.99 0 0);
	--on-media-muted: oklch(0.99 0 0 / 0.72);
	--on-media-accent: oklch(0.84 0.13 72);

	--font-sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-display: 'Fraunces Variable', Georgia, 'Times New Roman', serif;

	/* Ombra comune a tutto il testo: senza una card alle spalle, ogni riga
	   poggia direttamente sulla fotografia e deve reggersi da sola. */
	--lift: 0 2px 10px rgb(0 0 0 / 0.8);
}

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

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

body {
	margin: 0;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	font-family: var(--font-sans);
	color: var(--on-media);
	background-color: oklch(0.16 0.012 50);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1 {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	margin: 0;
}

p {
	margin: 0;
}

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

/* ---- Sfondo fisso ------------------------------------------------------ */
.backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.backdrop img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Doppio velo: uno uniforme che abbassa tutta la foto, e una vignettatura
   radiale che scurisce il centro, cioè esattamente dove sta il testo. */
.backdrop::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 60% at 50% 45%, rgb(0 0 0 / 0.62), transparent 70%),
		linear-gradient(to bottom, rgb(0 0 0 / 0.45), rgb(0 0 0 / 0.35), rgb(0 0 0 / 0.55));
}

/* ---- Contenuto --------------------------------------------------------- */
.page {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	padding: 3rem 1.25rem;
	text-align: center;
}

.wordmark {
	display: inline-flex;
	align-items: baseline;
	font-size: clamp(44px, 13vw, 132px);
	font-weight: 600;
	line-height: 0.9;
	letter-spacing: -0.02em;
	text-shadow:
		0 3px 8px rgb(0 0 0 / 0.75),
		0 0 36px rgb(255 200 120 / 0.38),
		0 0 72px rgb(255 200 120 / 0.18);
}

.wordmark .accent {
	color: var(--on-media-accent);
}

.wordmark .mark {
	width: auto;
	height: 0.85em;
	margin-left: 0.18em;
	align-self: center;
	filter: drop-shadow(0 3px 8px rgb(0 0 0 / 0.5));
}

.tagline {
	font-size: clamp(15px, 3.6vw, 26px);
	color: var(--on-media-muted);
	text-shadow: var(--lift);
}

.badge {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.3rem 1.1rem;
	border: 1px solid oklch(0.52 0.14 62 / 0.45);
	border-radius: 9999px;
	background: oklch(0.52 0.14 62 / 0.14);
	font-size: clamp(13px, 2.6vw, 18px);
	font-weight: 600;
	letter-spacing: 0.16em;
	color: var(--on-media-accent);
	backdrop-filter: blur(4px);
}

.lede {
	max-width: 30ch;
	margin-top: 1.5rem;
	font-family: var(--font-display);
	font-size: clamp(18px, 4vw, 26px);
	line-height: 1.4;
	text-shadow: var(--lift);
}

.contact a {
	display: inline-block;
	padding: 0.35rem 0.2rem;
	color: var(--on-media-accent);
	font-size: clamp(15px, 3vw, 18px);
	text-decoration: none;
	border-bottom: 1px solid oklch(0.84 0.13 72 / 0.45);
	text-shadow: var(--lift);
	transition: border-color 0.2s;
}

.contact a:hover {
	border-bottom-color: var(--on-media-accent);
}

.contact a:focus-visible {
	outline: 2px solid var(--on-media-accent);
	outline-offset: 4px;
	border-radius: 2px;
}

/* ---- Footer ------------------------------------------------------------ */
.colophon {
	position: relative;
	z-index: 1;
	padding: 0 1.25rem 2rem;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--on-media-muted);
	text-shadow: var(--lift);
}

/* ---- Accessibilità ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	* {
		transition-duration: 0.01ms !important;
	}
}
