/* Pagina di cortesia di Exentia Studio: colori del sito, caratteri di sistema */

:root {
  --void: #07080d;
  --void: oklch(13.5% 0.012 270);
  --bone: #eae8df;
  --bone: oklch(93% 0.012 95);
  --muted: #e0ded8;
  --muted: oklch(90% 0.008 90);
  --gold: #f5c761;
  --gold: oklch(85% 0.13 85);
  --testo: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display",
    "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  --entrata: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

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

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--void);
  color: var(--bone);
  font-family: var(--testo);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p { margin: 0; }

.centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 10vh, 7rem) 1rem 2.5rem;
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
}

.logo {
  display: block;
  width: auto;
  height: clamp(2.75rem, 2.2rem + 2vw, 3.75rem);
  margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
}

h1 {
  margin: 0;
  font-size: clamp(2.125rem, 1.4rem + 3.6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--bone);
  overflow-wrap: break-word;
}

.frase {
  margin-top: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.4;
  color: var(--bone);
}

.contatto {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-size: 1rem;
  color: var(--muted);
}

.contatto a {
  display: inline-block;
  padding: 0.6rem 0.25rem;
  min-height: 2.75rem;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
  border-radius: 0.25rem;
  transition: text-decoration-thickness 150ms var(--entrata);
}

.contatto a:hover { text-decoration-thickness: 2px; }

.contatto a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.piede {
  padding: 1.5rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Comparsa leggera all'apertura */
@media (prefers-reduced-motion: no-preference) {
  .centro > * { animation: comparsa 700ms var(--entrata) both; }
  .centro > :nth-child(2) { animation-delay: 80ms; }
  .centro > :nth-child(3) { animation-delay: 160ms; }
  .centro > :nth-child(4) { animation-delay: 240ms; }
}

@keyframes comparsa {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
