/* Manifest en suport al doblatge en català — web d'arxiu
   CSS pla, sense dependències. Tipografies: Archivo i Literata (SIL OFL, vegeu fonts/). */

/* ---------- tipografies ---------- */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo"; font-style: italic; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-standard-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: italic; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-standard-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("fonts/literata-latin-standard-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("fonts/literata-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url("fonts/literata-latin-standard-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Literata"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url("fonts/literata-latin-ext-standard-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --estudi: #000000;      /* negre d'estudi de gravació */
  --senyal: #CD042E;      /* vermell de la capçalera original */
  --senyal-text: #B0032A; /* el mateix vermell, prou fosc per a text sobre blanc */
  --paper: #FFFFFF;
  --tinta: #1D1D1B;
  --gris: #6A6A6A;
  --gris-fosc: #A3A3A3;   /* text secundari sobre negre */
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;
  --mesura: 36rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--tinta);
  font: 400 1.125rem/1.7 var(--text);
  font-optical-sizing: auto;
  hanging-punctuation: first;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--senyal-text); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--senyal); outline-offset: 3px; border-radius: 1px; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--paper); color: var(--estudi); padding: .5rem .9rem;
  font: 600 1rem var(--display);
}
.skip:focus { top: 1rem; }

/* ---------- barra superior: igual a totes les pàgines ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--estudi);
  color: var(--paper);
  border-bottom: 1px solid #1f1f1f;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem 2rem; flex-wrap: wrap;
  min-height: 4rem;
}
.brand {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4em;
  padding-block: .9rem;
  color: var(--paper); text-decoration: none;
  font: 800 1.2rem/1 var(--display);
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.brand-manifest { font-style: italic; font-stretch: 100%; }
.brand-red { color: var(--senyal); }
.brand:hover .brand-red { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }

.topbar nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0 clamp(1rem, 2.2vw, 1.9rem);
}
.topbar nav a {
  display: block;
  padding: 1.45rem 0 1.25rem;
  color: #E6E6E6;
  text-decoration: none;
  white-space: nowrap;
  font: 600 .98rem/1 var(--display);
  font-stretch: 88%;
  box-shadow: inset 0 -3px 0 transparent;
}
.topbar nav a:hover { color: var(--paper); box-shadow: inset 0 -3px 0 rgba(255,255,255,.45); }
.topbar nav a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -3px 0 var(--senyal); }
.topbar :focus-visible { outline-color: var(--paper); outline-offset: -3px; }

/* ---------- portada: el cartell ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--estudi); color: var(--paper);
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3rem, 8vw, 5.5rem);
}
/* el micròfon de la capçalera original, fos amb el negre per l'esquerra */
.hero::before {
  content: "";
  position: absolute; z-index: -1;
  top: 0; right: 0; bottom: 0;
  aspect-ratio: 265 / 359;
  background: url("img/micro.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0, #000 55%);
}
.lockup {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .005em;
}
.lockup span { display: block; }
.lockup-manifest {
  font-style: italic;
  font-stretch: 100%;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  margin-bottom: .18em;
}
.lockup-red { color: var(--senyal); font-size: clamp(2.6rem, 8vw, 6rem); }
.lockup-red + .lockup-red { margin-top: .1em; }

/* el subratllat de la capçalera original, com a filet que s'escriu */
.ul {
  display: inline !important;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% .065em;
  padding-bottom: .09em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lockup-date {
  margin: clamp(1.25rem, 3vw, 2rem) 0 0;
  font: 700 clamp(1.4rem, 3.2vw, 2.2rem)/1 var(--display);
  font-stretch: 85%;
  text-transform: uppercase;
  letter-spacing: .02em;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .ul { animation: filet .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero .lockup-red:nth-child(2) .ul { animation-delay: .15s; }
  .hero .lockup-red:nth-child(3) .ul { animation-delay: .35s; }
  .hero .lockup-date .ul { animation-delay: .6s; }
  @keyframes filet { from { background-size: 0 .065em; } to { background-size: 100% .065em; } }
}

/* nota d'arxiu */
.archive-note {
  margin: 0;
  border-bottom: 1px solid #E4E4E2;
  color: var(--gris);
  font: 400 .9rem/1.45 var(--display);
  padding-block: .8rem;
}
.archive-note .wrap { display: block; }

/* ---------- contingut ---------- */
main { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem); }
.prose { max-width: var(--mesura); }
.prose p { margin: 0 0 1em; }

.page-title,
.prose .page-title {
  margin: 0 0 .7em;
  font: 800 clamp(2.4rem, 5.5vw, 3.75rem)/1 var(--display);
  font-stretch: 78%;
  letter-spacing: -.005em;
  color: var(--estudi);
}
.prose h2 {
  margin: 2.2em 0 .7em;
  font: 700 1.5rem/1.15 var(--display);
  font-stretch: 85%;
}

/* fórmules del manifest: EXPOSEM QUE / RECLAMEM */
.prose .clau {
  margin: 2em 0 .9em;
  font: 700 1.25rem/1.3 var(--display);
  font-stretch: 88%;
  color: var(--senyal-text);
}

.prose ol { counter-reset: idea; list-style: none; margin: 0 0 1.5em; padding: 0; }
.prose ol > li { counter-increment: idea; position: relative; padding-left: 2.4rem; margin-bottom: 1em; }
.prose ol > li::before {
  content: counter(idea);
  position: absolute; left: 0; top: .05em;
  font: 800 1.35rem/1.2 var(--display); font-stretch: 78%;
  color: var(--senyal);
}
.prose ul.dash { list-style: none; margin: 0 0 1.5em; padding: 0; }
.prose ul.dash > li { position: relative; padding-left: 2.4rem; margin-bottom: 1em; }
.prose ul.dash > li::before {
  content: ""; position: absolute; left: 0; top: .82em;
  width: 1.2rem; height: 3px; background: var(--senyal);
}

.dateline { margin-top: 2em !important; font-style: italic; }
.next { margin-top: 2.5em !important; font: 600 1.1rem/1.5 var(--display); font-stretch: 90%; }
.next .sep { color: var(--gris); font-weight: 400; }
.small { font-size: .9rem; color: var(--gris); }

/* premsa */
.press { padding-left: 1.2rem; }
.press li { margin-bottom: .55em; }
.press li::marker { color: var(--senyal); }
.arxiu { font-size: .85em; color: var(--gris); white-space: nowrap; }
.arxiu::before { content: "("; display: inline; color: var(--gris); }
.arxiu::after { content: ")"; color: var(--gris); }
.mort { color: var(--gris); font-size: .9em; }

.video { display: block; max-width: 30rem; color: var(--tinta); text-decoration: none; margin-bottom: 2rem; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--estudi); }
.video span {
  display: block; padding-top: .7rem;
  font: 600 1rem/1.4 var(--display); font-stretch: 90%;
  color: var(--senyal-text);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
}
.video:hover span { text-decoration-thickness: 2px; }

/* ---------- sotasignats: crèdits finals ---------- */
.is-credits { background: var(--estudi); color: var(--paper); }
.is-credits .archive-note { border-bottom-color: #222; color: var(--gris-fosc); }
.is-credits a { color: var(--paper); }
.is-credits :focus-visible { outline-color: var(--paper); }
.is-credits .page-title { color: var(--paper); text-align: center; }
.is-credits main { text-align: center; }

.credits-intro {
  max-width: 34rem; margin: 0 auto 4rem;
  color: var(--gris-fosc); font-style: italic;
}
.credits-head {
  margin: 0 0 2rem;
  font: 700 1rem/1.2 var(--display);
  font-stretch: 88%;
  letter-spacing: .06em;
  color: var(--senyal);
}
.credits {
  margin: 0 auto 6rem;
  max-width: 50rem;
  text-align: left;
}
.credits > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  align-items: baseline;
  padding-block: .32rem;
}
.credits dt {
  grid-column: 2; grid-row: 1;
  font: 700 1.08rem/1.3 var(--display);
  font-stretch: 82%;
  letter-spacing: .02em;
}
.credits dd {
  grid-column: 1; grid-row: 1;
  margin: 0;
  text-align: right;
  color: var(--gris-fosc);
  font: italic 400 .95rem/1.4 var(--text);
}
.credits-count { margin: -1.4rem 0 2.5rem; color: var(--gris-fosc); font-size: .95rem; }
.crawl {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 64rem;
  columns: 13.5rem;
  column-gap: 2rem;
}
.crawl li {
  break-inside: avoid;
  padding-block: .32em;
  text-wrap: balance;
  font: 500 .86rem/1.25 var(--display);
  font-stretch: 85%;
  letter-spacing: .03em;
  color: #D6D6D6;
}

/* ---------- peu ---------- */
.foot {
  border-top: 1px solid #E4E4E2;
  padding-block: 2rem 3rem;
  font: 400 .92rem/1.55 var(--display);
  color: var(--gris);
}
.foot p { margin: 0 0 .4em; max-width: 46rem; }
.is-credits .foot { border-top-color: #222; color: var(--gris-fosc); }

/* ---------- mòbil ---------- */
@media (max-width: 40rem) {
  .hero::before { opacity: .45; }
  .topbar { position: static; }
  .topbar-inner { display: block; padding-inline: 0; }
  .brand { padding: .85rem var(--gutter) .2rem; font-size: 1.05rem; }
  .topbar nav ul { padding-inline: var(--gutter); flex-wrap: wrap; gap: 0 1.1rem; }
  .topbar nav a { padding: .7rem 0 .75rem; font-size: .95rem; }
  body { font-size: 1.0625rem; }
  .credits > div { grid-template-columns: 1fr; text-align: center; padding-block: .55rem; }
  .credits dt, .credits dd { grid-column: 1; text-align: center; }
  .credits dd { grid-row: 2; }
  .crawl { columns: 2 9rem; column-gap: 1rem; }
  .crawl li { font-size: .8rem; padding-block: .4em; }
}

/* ---------- impressió ---------- */
@media print {
  @page { margin: 2cm 2.2cm; }
  body, .is-credits { background: #fff; color: #000; font-size: 11pt; }
  .topbar { position: static; background: none; color: #000; border: 0; }
  .brand { color: #000; padding: 0 0 1rem; }
  .hero { display: none; }
  .topbar nav, .skip, .archive-note, .next, .video { display: none; }
  .brand-red, .prose .clau { color: #000; }
  main { padding: 1rem 0; }
  .prose { max-width: none; }
  .press a::after { content: " <" attr(href) ">"; font-size: .8em; word-break: break-all; color: #444; }
  .credits dd, .crawl li, .credits-intro { color: #333; }
  .foot { border: 0; padding: 1rem 0 0; color: #333; }
}
