/* Onde Caotiche (chaoswave.it): dark oscilloscope palette, condensed sans headlines, book-serif text. */
:root {
  --notte: #14181f;
  --lavagna: #1c222c;
  --filo: #2c3542;
  --carta: #e9e4da;
  --nebbia: #a9b0ba;
  --segnale: #ff7a3d;
  --fosforo: #7fd6c2;
  --misura: 40rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--notte);
  color: var(--carta);
  font: 1.0625rem/1.68 "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
a { color: var(--fosforo); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover, a:focus-visible { color: var(--segnale); }
.salta { position: absolute; left: -999px; top: 0; background: var(--segnale); color: var(--notte); padding: .4rem .8rem; }
.salta:focus { left: .5rem; }

.testata {
  border-bottom: 1px solid var(--filo);
  padding: 1rem 1.1rem .4rem;
  background: linear-gradient(180deg, #10131a, var(--notte));
}
.marchio { display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; align-items: center; text-decoration: none; color: var(--carta); }
.onda { grid-row: span 2; width: 3.4rem; height: 1rem; fill: none; stroke: var(--segnale); stroke-width: 1.8; stroke-linecap: round; }
.nome {
  font: 700 1.45rem/1.1 "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  letter-spacing: .06em; text-transform: uppercase;
}
.motto { font-style: italic; font-size: .85rem; line-height: 1.3; color: var(--nebbia); }
.sezioni { display: flex; flex-wrap: wrap; gap: .1rem 1rem; padding: .8rem 0 .5rem;
  font: 600 .8rem/1.2 "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.sezioni a { color: var(--nebbia); text-decoration: none; white-space: nowrap; padding: .25rem 0; border-bottom: 2px solid transparent; }
.sezioni a:hover, .sezioni a[aria-current] { color: var(--carta); border-bottom-color: var(--segnale); }

.foglio { padding: 1.6rem 1.1rem 2.5rem; }
.pezzo { max-width: var(--misura); margin: 0 auto; }
.percorso { font: .78rem/1.4 "Avenir Next Condensed", "Arial Narrow", sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--nebbia); margin: 0 0 1rem; }
.percorso a { color: var(--nebbia); }
.occhiello { display: inline-block; margin: 0 0 .4rem; padding: .1rem .5rem; border: 1px solid var(--segnale); color: var(--segnale);
  font: 700 .72rem/1.4 "Avenir Next Condensed", "Arial Narrow", sans-serif; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", sans-serif; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 6.5vw, 2.8rem); font-weight: 800; margin: .2rem 0 .8rem; letter-spacing: -.005em; }
h2 { font-size: 1.3rem; font-weight: 700; margin: 2.2rem 0 .6rem; padding-left: .7rem; border-left: 3px solid var(--fosforo); }
.sommario { font-size: 1.18rem; line-height: 1.55; color: #d2cdc3; margin: 0 0 1.6rem; padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--filo); }
p { margin: 0 0 1.05rem; hyphens: auto; }
ul, ol { padding-left: 1.2rem; }
li { margin-bottom: .55rem; }
li::marker { color: var(--segnale); }
.vedi { margin-top: 2.2rem; padding: .9rem 1rem; background: var(--lavagna); border-radius: 4px; font-size: .95rem; }

.indice { list-style: none; padding: 0; counter-reset: voce; margin-top: 1.5rem; }
.indice li { counter-increment: voce; display: grid; grid-template-columns: 2.4rem 1fr; padding: .9rem 0; border-top: 1px solid var(--filo); margin: 0; }
.indice li::before { content: counter(voce, decimal-leading-zero); grid-row: span 2; color: var(--segnale);
  font: 700 1rem/1.5 "Avenir Next Condensed", "Arial Narrow", sans-serif; }
.indice a { font: 700 1.1rem/1.3 "Avenir Next Condensed", "Arial Narrow", sans-serif; }
.indice span { color: var(--nebbia); font-size: .93rem; line-height: 1.5; }
.partenze li { margin-bottom: .7rem; }

.colophon { border-top: 1px solid var(--filo); padding: 1.4rem 1.1rem 2rem; color: var(--nebbia); font-size: .88rem; }
.colophon p { max-width: var(--misura); margin: 0 auto; }

@media (min-width: 52rem) {
  .testata { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.1rem 2rem; }
  .sezioni { padding: 0; }
  .foglio { padding: 3rem 2rem 4rem; }
  .pezzo { font-size: 1.1rem; }
}
