/* ============================================================
   VELUM — base.css
   Design tokens, reset, typography scale.
   Palette rule: Clay (--clay) appears ONCE per screen. Never
   use it for anything but the single primary action of a view.
   ============================================================ */

:root {
  /* ---- Palette ------------------------------------------- */
  --bone:  #F5F1EA;   /* primary ground, ~70% of every page   */
  --ink:   #1B1A17;   /* warm black, never pure               */
  --stone: #B7AC9C;   /* hairlines, secondary type            */
  --clay:  #A85C43;   /* accent — ONE per screen              */
  --depth: #3E463C;   /* footer, product variants             */

  /* Tints derived from the palette, for solid placeholders    */
  --bone-deep:  #EAE4D9;
  --stone-soft: #CFC6B8;
  /* Non lo usa più nessuna regola: è il pavimento delle ombre con cui
     le quindici fotografie sono state virate, e resta scritto qui perché
     una nuova immagine va cotta con lo stesso valore o stonerà. */
  --ink-soft:   #2C2A26;

  /* ---- Type scale (rem) ---------------------------------- */
  --fs-display: 4.5rem;
  --fs-h2:      2.25rem;
  --fs-h3:      1.5rem;
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-micro:   0.75rem;

  /* Line height in em so it tracks font-size across breakpoints */
  --lh-tight: 1.1em;
  --lh-body:  1.6em;

  --track-wide:  0.08em;   /* wordmark                        */
  --track-label: 0.16em;   /* uppercase micro-labels          */

  --ff-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ff-mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;

  /* ---- Space --------------------------------------------- */
  --gutter: 2rem;          /* page side padding               */
  --grid-gap: 2.5rem;      /* wide gutters, per brief         */
  --section: 8rem;         /* vertical rhythm between blocks  */
  --maxw: 1440px;
  --maxw-text: 34em;

  --hair: 1px solid var(--stone);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 900px. In em, non in px: cosi il breakpoint segue anche la
   dimensione di testo impostata dall utente nel browser. */
@media (max-width: 56.25em) {
  :root {
    --fs-display: 3rem;
    --fs-h2:      1.875rem;
    --fs-h3:      1.25rem;
    --gutter:     1.5rem;
    --grid-gap:   1.5rem;
    --section:    5.5rem;
  }
}

/* 560px */
@media (max-width: 35em) {
  :root {
    --fs-display: 2.375rem;
    --fs-h2:      1.625rem;
    --gutter:     1.25rem;
    --grid-gap:   1.25rem;
    --section:    4.5rem;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
/* Nessuna fotografia si stacca dalla pagina: il trascinamento nativo
   la porterebbe fuori dal suo riquadro dietro al cursore, e qui non
   serve a niente — non c’è un file da spostare da nessuna parte. */
img { -webkit-user-drag: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

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

/* La selezione non deve essere il blu di sistema: e' l'unico pezzo di
   interfaccia che il browser colora al posto nostro. Ink su Bone tiene
   su entrambi i fondi del sito — sul Bone e' testo chiaro su scuro,
   sul Depth resta comunque piu' scuro dello sfondo, quindi si legge. */
::selection {
  background: var(--ink);
  color: var(--bone);
  text-shadow: none;
}

:focus-visible {
  /* Ink, not Clay: the accent is spent on one action per screen, and an
     Ink ring stays legible on Bone, Depth and Clay alike. */
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---- Typography ----------------------------------------- */
/* Fraunces is reserved for type at 32px and above (brief §2).
   Anything smaller is set in Inter. */
h1, h2, .h2 {
  font-family: var(--ff-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-display); }
h2, .h2      { font-size: var(--fs-h2); }

h3, .h3 {
  font-family: var(--ff-body);   /* 24px — below the Fraunces floor */
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.25em;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.125rem;
  line-height: 1.55em;
  max-width: var(--maxw-text);
}

.label {
  font-size: var(--fs-micro);
  line-height: 1.4em;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: var(--stone);
  font-weight: 500;
  margin: 0;
}

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

.muted { color: var(--stone); }

/* The "spec" voice: composition, weight, origin — facts, not adjectives */
.spec {
  font-family: var(--ff-mono);
  font-size: var(--fs-small);
  letter-spacing: -0.01em;
  line-height: 1.5em;
  color: var(--ink);
}

.num { font-variant-numeric: tabular-nums; }

/* ---- Layout --------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}


.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.55); }
.section--top0 { padding-top: 0; }



.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bone);
  padding: 0.75rem 1rem;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Scroll reveal --------------------------------------
   Lo stato nascosto di [data-reveal] vive in motion.css, dentro
   `.motion-on`, e quella classe la mette JS solo se GSAP è
   arrivato davvero. Qui non si nasconde niente: se il CDN cade,
   il sito resta questo e si legge tutto. */

/* ---- Spacing utilities ----------------------------------- */
/* A small, fixed set — enough to keep inline styles out of the
   markup without turning into a utility framework. */
.mt-1  { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2  { margin-top: 2rem; }
.mt-25 { margin-top: 2.5rem; }
.mt-3  { margin-top: 3rem; }
.fig   { margin: 0; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 2rem; }

/* ============================================================
   LA BARRA DI SCORRIMENTO — non c'e'

   Prima era sottile col binario trasparente, e non bastava: su
   Windows un binario "trasparente" lascia vedere il fondo del
   DOCUMENTO, che e' Bone. Sopra la schermata scura restava una
   striscia chiara — esattamente la cosa che si voleva togliere.
   Non dipende dal CSS: il browser disegna la barra
   fuori dal riquadro del contenuto, e li' sotto c'e' sempre il
   colore della pagina, non quello della sezione.

   Quindi sparisce. La pagina si scorre con la rotella, col dito, con
   le frecce e con Pag su/giu': niente di tutto questo passa dalla
   barra. Si perde l'indicatore di posizione, ed e' un costo vero su
   una pagina lunga — dichiarato, non ignorato.

   Dentro la vista del capo era gia' nascosta, per la stessa ragione.
   ============================================================ */
html { scrollbar-width: none; }
::-webkit-scrollbar { width: 0; height: 0; display: none; }
