/* The home of ingzena.com, direction "Terminale" (10/11/2026): black,
 * IBM Plex Mono for the name and the line, IBM Plex Sans for the rest,
 * Carminio for the dot, the cursor and «Mugugni?». One theme only: night.
 * Desktop: a 12-column grid, the line and «Mugugni?» on columns 1-7,
 * the game and the email on columns 9-12. */

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2");
}

:root {
  --nero: #0b0b0c;
  --calce: #f4f1ea;
  --carminio: #c1121f;
  --testo: #c9c5bc;
  --grigio: #a7a39a;
  --grigio-scuro: #8c887f;
  --linea: #2e2e33;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--nero);
  color: var(--calce);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--calce);
}
a:focus-visible {
  outline: 2px solid var(--calce);
  outline-offset: 4px;
}

.rosso {
  color: var(--carminio);
}

.pagina {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(32px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right)) max(36px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}

.griglia {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 32px;
  column-gap: 40px;
  align-items: end;
}

/* ---- name ---- */
.testata {
  display: flex;
  align-items: center;
}
.marchio {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.cursore {
  color: var(--carminio);
  animation: lampeggia 1.1s steps(1) infinite;
}
@keyframes lampeggia {
  50% {
    opacity: 0;
  }
}

/* ---- the line ---- */
.eroe {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.eroe h1 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.sotto {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--testo);
  text-wrap: pretty;
}

/* ---- projects ---- */
.progetti {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.etichetta {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--grigio-scuro);
}
.progetti .etichetta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filo {
  flex: 1;
  height: 1px;
  background: var(--linea);
}
.spazio-adesivo {
  padding: 6px 6px 12px;
}
.descrizione {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--grigio);
}

/* The game's button, unchanged from 6/11: a pixel panel with an extrusion
 * and a light ring, like the buttons inside Fugassa Run. */
.adesivo {
  --ink: #140f12;
  --ring: #5a6270;
  display: inline-grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  align-items: center;
  max-width: 100%;
  padding: 12px 18px 12px 14px;
  background: #1f242d;
  color: #eae4d6;
  text-decoration: none;
  box-shadow:
    inset 0 3px 0 0 #343c49,
    0 3px 0 0 #12161c,
    0 6px 0 0 #0a0c10,
    -3px 0 0 0 var(--ink),
    3px 0 0 0 var(--ink),
    0 -3px 0 0 var(--ink),
    -3px 6px 0 0 var(--ink),
    3px 6px 0 0 var(--ink),
    0 9px 0 0 var(--ink),
    -6px 0 0 0 var(--ring),
    6px 0 0 0 var(--ring),
    0 -6px 0 0 var(--ring),
    -6px 9px 0 0 var(--ring),
    6px 9px 0 0 var(--ring),
    0 12px 0 0 var(--ring);
  transition: transform 60ms steps(2, end);
}
.adesivo img {
  display: block;
  image-rendering: pixelated;
}
.adesivo-logo {
  grid-row: 1 / span 3;
  width: 94px;
  height: 58px;
}
.adesivo-gioca {
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}
.adesivo-titolo {
  margin: 5px 0 3px;
  line-height: 0;
}
.adesivo-titolo img {
  width: 188px;
  max-width: 100%;
  height: auto;
}
.adesivo-nota {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.25;
  color: #b8bec8;
}
.lucchetto {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}
@media (hover: hover) and (pointer: fine) {
  .adesivo:hover {
    background: #2a313c;
  }
}
.adesivo:active {
  transform: translateY(5px);
  box-shadow:
    inset 0 3px 0 0 #343c49,
    0 1px 0 0 #0a0c10,
    -3px 0 0 0 var(--ink),
    3px 0 0 0 var(--ink),
    0 -3px 0 0 var(--ink),
    -3px 1px 0 0 var(--ink),
    3px 1px 0 0 var(--ink),
    0 4px 0 0 var(--ink),
    -6px 0 0 0 var(--ring),
    6px 0 0 0 var(--ring),
    0 -6px 0 0 var(--ring),
    -6px 4px 0 0 var(--ring),
    6px 4px 0 0 var(--ring),
    0 7px 0 0 var(--ring);
}
.adesivo:focus-visible {
  outline-offset: 12px;
}

/* ---- Mugugni? ---- */
.mugugni {
  margin-top: 40px;
  padding: 32px;
  row-gap: 18px;
  background: var(--calce);
  color: var(--nero);
}
.mugugni-testo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mugugni h2 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--carminio);
}
.mugugni p {
  margin: 0;
  text-wrap: pretty;
  font-size: 16px;
  line-height: 1.5;
  color: #3a3832;
}
.mugugni-mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--nero);
  text-decoration: underline;
  text-decoration-color: var(--carminio);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.mugugni-mail a:focus-visible {
  outline-color: var(--nero);
}

/* ---- socials ---- */
.segui {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.social {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #3a3a40;
  transition: border-color 120ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .social a:hover {
    border-color: var(--calce);
  }
}
.social svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.social .pieno {
  fill: currentColor;
  stroke: none;
}

/* ---- footer ---- */
.piede {
  padding-top: 18px;
  border-top: 1px solid #222226;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--grigio-scuro);
}

/* ---- 404 ---- */
.casa {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  text-decoration: underline;
  text-decoration-color: var(--carminio);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

/* ---- desktop ---- */
@media (min-width: 900px) {
  .pagina {
    gap: 104px;
    padding: 48px 64px;
  }
  .griglia {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .principale {
    padding-top: 24px;
  }
  .eroe,
  .mugugni-testo {
    grid-column: 1 / span 7;
  }
  .progetti,
  .mugugni-mail {
    grid-column: 9 / span 4;
  }
  .eroe h1 {
    font-size: 64px;
  }
  .mugugni {
    margin-top: 56px;
  }
}

/* small phones: the button keeps its pixels, the line gets smaller */
@media (max-width: 360px) {
  .eroe h1 {
    font-size: 30px;
  }
  .adesivo-logo {
    width: 70px;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursore {
    animation: none;
  }
  .adesivo,
  .social a {
    transition: none;
  }
}

/* mobile-native: controls react on tap without delay or long-press
 * callouts; the text of the page stays selectable. */
.adesivo,
.social a {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
