/* ============================================================
   PARLAMALAMENT DE L'ARTISTA · base
   Variables, reset, tipografia i fons. La carrega cada pàgina.
   ------------------------------------------------------------
   Web paròdica del sector de les arts visuals amb estètica gencat.
   Un projecte de Jordi Bretcha amb la col·laboració de Manuel Latour.
   ============================================================ */

/* ---------- Variables de disseny ---------- */
:root {
  --red: #c8102e;          /* vermell institucional (to gencat) */
  --red-dark: #9c0c23;
  --red-bright: #ff1a1a;   /* vermell viu de les caixes d'opció */
  --green: #2faa3a;        /* verd "acceptar" */
  --ink: #141414;          /* negre de text */
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --line: #d9d9d9;         /* gris de filets i vores */
  --gray-bg: #ececec;      /* fons de blocs secundaris (peu) */
  --link: #c8102e;
  --focus: #1f6dd0;        /* anell de focus accessible */

  --header-h: 64px;
  --maxw: 1180px;
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --shadow: 0 8px 40px rgba(0, 0, 0, .12);
}

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

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

body {
  margin: 0;
  min-height: 100%;
  position: relative;
  font-family: var(--font);
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--link); }
button { font-family: inherit; }

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

/* Enllaç per saltar al contingut (accessibilitat de teclat) */
.skip-link {
  position: absolute; left: 8px; top: -48px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff; background: var(--ink);
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- Fons: només la imatge fondo.jpg, a tota pantalla ---------- */
.brand-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--paper);
}
.brand-bg::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../img/fondo.jpg") center / cover no-repeat;
}

/* ---------- Layout base ---------- */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
main { flex: 1 0 auto; }

@media (max-width: 520px) {
  .container { padding-inline: 16px; }
}

/* Respecta qui prefereix menys moviment */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
