:root {
  --bg: #FFFDF9;
  --bg-2: #F9F3EA;
  --surface: #F1E6D4;
  --line: #E5D5BC;
  --fg: #33231B;
  --muted: #7A6454;
  --accent: #5B4034;
  --accent-dark: #3B2A20;
  --gold: #C29A4B;
  --cream: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'Azeret Mono', ui-monospace, monospace;

  --fs-display: clamp(4rem, 10vw, 9rem);
  --fs-title: clamp(2.75rem, 6.5vw, 6rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);

  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2.5rem;
  --sp-5: 4rem;
  --sp-6: 5rem;
  --sp-7: 8rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Telefono: meno spazio tra le sezioni e titoli un po' più piccoli, pagine più corte */
@media (max-width: 599px) {
  :root {
    --fs-title: clamp(2.2rem, 10vw, 2.75rem);
    --sp-5: 3rem;
    --sp-6: 4rem;
    --sp-7: 5.5rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 72, 'WONK' 0;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  outline: 0;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

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

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}

.title {
  font-size: var(--fs-title);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 34ch;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
