/* Les aventures dels Sants · web pública. La mateixa identitat que l'Estudi: crema, blau marí i groc daurat. */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/baloo2-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format("woff2");
}

:root {
  color-scheme: light;
  --page: #fbf7ec;
  --card: #ffffff;
  --ink: #13294b;
  --muted: #66708a;
  --line: #ece3cf;
  --line-strong: #e3d6b8;
  --navy: #003b6a;
  --sun: #ffb50c;
  --sun-soft: #fff4d6;
  --warn: #8a5300;
  --on-navy-muted: #c9d6e8;
  --display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --sans: "Nunito", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --shadow: 0 28px 56px -28px rgba(19, 41, 75, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
p,
h1,
h2,
h3,
h4,
ul,
ol,
figure {
  margin: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* Disposició */
.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(56px, 8vw, 104px);
}
.section-lg {
  padding-block: clamp(64px, 9vw, 120px);
}
.stack-4,
.stack-8,
.stack-10,
.stack-12,
.stack-16,
.stack-18,
.stack-20,
.stack-40,
.stack-48 {
  display: flex;
  flex-direction: column;
}
.stack-4 { gap: 4px; }
.stack-8 { gap: 8px; }
.stack-10 { gap: 10px; }
.stack-12 { gap: 12px; }
.stack-16 { gap: 16px; }
.stack-18 { gap: 18px; }
.stack-20 { gap: 20px; }
.stack-40 { gap: 40px; }
.stack-48 { gap: 48px; }
.narrow {
  max-width: 760px;
}
.band-white {
  background: var(--card);
  border-block: 1px solid var(--line);
}
.band-navy {
  background: var(--navy);
  color: #fff;
}

/* Tipografia */
.h1,
.h2,
.h3,
.h4 {
  font-family: var(--display);
  color: var(--navy);
  text-wrap: balance;
}
.h1 {
  font-weight: 800;
  font-size: clamp(48px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.h1 mark {
  background: none;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 0.26em;
  text-underline-offset: -0.14em;
  text-decoration-skip-ink: none;
}
.h2 {
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
}
.h3 {
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.15;
}
.h4 {
  font-weight: 700;
  font-size: 21px;
  line-height: 1.25;
}
.eyebrow {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
}
.lead {
  max-width: 32em;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.55;
}
.intro {
  font-size: clamp(18px, 1.7vw, 20px);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 15px;
  line-height: 1.5;
}
.text-link {
  font-weight: 700;
  color: var(--navy);
  text-underline-offset: 3px;
}
.chip {
  align-self: flex-start;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--sun-soft);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
}

/* Botons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn-lg {
  min-height: 56px;
  padding-inline: 26px;
  font-size: 19px;
}
.btn-block {
  display: flex;
  width: 100%;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: #0a4a80;
}
.btn-sun {
  min-height: 44px;
  padding-inline: 22px;
  background: var(--sun);
  color: var(--navy);
}
.btn-sun:hover {
  background: #ffc23a;
}
.btn-outline {
  border: 2px solid var(--navy);
  background: var(--card);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--sun-soft);
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.pill:hover {
  border-color: var(--navy);
}
.round-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--navy);
}

/* Avís d'idioma (el navegador demana un altre idioma que la web té) */
.hint {
  margin: 0;
  padding: 8px var(--gutter);
  background: var(--navy);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}
.hint a {
  color: #fff;
  text-underline-offset: 3px;
}

/* Capçalera */
.header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 20px;
}
.brand {
  line-height: 0;
}
.brand img {
  width: auto;
  height: clamp(64px, 7vw, 88px);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  font-weight: 700;
  font-size: 17px;
}
.nav-link {
  padding-block: 10px;
  color: var(--ink);
  text-decoration: none;
}
.nav-link:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 3px;
}
.langs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.langs a {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.langs a:hover {
  color: var(--navy);
}
.langs a[aria-current="true"] {
  background: var(--sun-soft);
  color: var(--navy);
}
@media (max-width: 720px) {
  .nav {
    gap: 10px;
  }
  .nav-link {
    display: none;
  }
}

/* Portada */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 64px;
  padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 96px);
}
.hero-text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pills,
.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.pills-label,
.also > span {
  margin-right: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.human {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
.dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sun-soft);
  color: var(--navy);
}
.hero-art {
  position: relative;
  flex: 1 1 360px;
  max-width: 520px;
  min-width: 0;
  margin-inline: auto;
}
.rays {
  position: absolute;
  left: -60px;
  top: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  color: var(--sun);
  pointer-events: none;
}
@media (max-width: 520px) {
  .rays {
    left: -14px;
    top: -14px;
    width: calc(100% + 28px);
    height: calc(100% + 28px);
  }
}
.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.hero-play {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(19, 41, 75, 0.45);
}
.play-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
}
.hero-play-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.hero-play-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warn);
}
.hero-play-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}

/* Episodis */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
}
.section-aside {
  max-width: 26em;
  align-items: flex-start;
}
.lang-note {
  align-self: flex-start;
  padding: 12px 20px;
  border-radius: 20px;
  background: var(--sun-soft);
  color: var(--navy);
  font-weight: 700;
}
.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 48px;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--page);
}
.feature-cover {
  flex: 1 1 320px;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 40px -24px rgba(19, 41, 75, 0.45);
}
.feature-body {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feature-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  color: var(--navy);
  text-wrap: balance;
}
.feature-summary {
  max-width: 36em;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--page);
}
.card-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}
.card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  color: var(--navy);
}
.card-summary {
  font-size: 16px;
}
.next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px clamp(20px, 3vw, 32px);
  border: 2px dashed var(--line-strong);
  border-radius: 28px;
}
.next > div {
  flex: 1 1 320px;
  min-width: 0;
}
.next-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
}

/* Reproductor */
.player {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}
.player-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
.player-btn:hover {
  background: #0a4a80;
}
.player-seek {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--navy);
  height: 28px;
}
.player-time {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.when-playing {
  display: none;
}
.is-playing .when-playing {
  display: contents;
}
.is-playing .when-paused {
  display: none;
}
.when-paused {
  display: contents;
}

/* Com els fem */
.steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 28px;
}
.step {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
}
.step-n {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
}
.step-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  color: var(--navy);
}
.ai {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 32px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
}
.ai > div {
  flex: 1 1 420px;
  min-width: 0;
}
.ai p {
  max-width: 46em;
}
.ai-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sun-soft);
  color: var(--navy);
}
.ai-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: var(--navy);
}

/* La fórmula de tancament */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.closing-q {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
}
.closing-formula {
  max-width: 18em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 68px);
  line-height: 1.05;
  color: var(--sun);
  text-wrap: balance;
}
.closing-note {
  font-size: 15px;
  color: var(--on-navy-muted);
}

/* Col·labora */
.donate {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 56px;
  padding: clamp(24px, 5vw, 64px);
  border-radius: 36px;
  background: var(--sun-soft);
}
.donate-text {
  flex: 1 1 400px;
  min-width: 0;
}
.donate-text > p {
  max-width: 34em;
}
.donate-text .h4 {
  margin-top: 8px;
}
.ways {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 17px;
}
.ways li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ways li > span:last-child {
  padding-top: 5px;
}
.way-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  color: var(--navy);
}
.widget {
  flex: 1 1 340px;
  max-width: 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 18px 40px -24px rgba(19, 41, 75, 0.4);
}
.widget-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--navy);
}
.seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--page);
}
.seg button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}
.seg button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}
.amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 8px;
}
.amounts button {
  min-height: 52px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
}
.amounts button[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--sun-soft);
}

/* Qui som */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 64px;
}
.about-photo {
  flex: 1 1 300px;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
}
.about-text {
  flex: 1 1 420px;
  min-width: 0;
}
.about-text > p {
  max-width: 34em;
}

/* Textos llargs (privacitat) */
.prose {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prose .h4 {
  margin-top: 20px;
}

/* Peu */
.footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 64px;
  padding-block: 48px;
}
.footer-brand {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand img {
  width: 120px;
}
.footer-brand p {
  max-width: 24em;
}
.footer-col {
  display: flex;
  flex-direction: column;
  font-size: 16px;
}
.footer-col .eyebrow {
  margin-bottom: 4px;
  font-size: 13px;
}
.footer-col a {
  padding-block: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.footer-col a:hover {
  text-decoration: underline;
}
.footer-legal {
  flex: 1 1 100%;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
