/* polimba.com: one stylesheet, no framework, mobile first. Colours from the channel's art; every text colour
   on its background passes WCAG AA (4.5:1). build.js replaces the font's path with its hashed name. */
@font-face {
  font-family: 'Andika';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/andika-700-latin.61c90acb5f.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;
}

:root {
  --ink: #3a2440;
  --ink-soft: #5b4a63;
  --pink: #c2304e;
  --pink-dark: #a3243f;
  --sea: #2f8fc4;
  --sea-dark: #1f6f9e;
  --sea-pale: #e6f6fb;
  --teal: #14808e;
  --gold: #ffd23f;
  --cream: #fffaf3;
  --line: #f0e3d4;
  --radius: 18px;
  --heading: 'Andika', 'Trebuchet MS', system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pink); text-underline-offset: 0.18em; }
a:hover { color: var(--pink-dark); }
:focus-visible { outline: 3px solid var(--sea-dark); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: #fff; padding: 8px 14px; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.5rem var(--heading); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--pink); }
@media (max-width: 420px) {
  /* The name stays for screen readers; his face is the logo. */
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav { gap: 12px; font-size: 0.95rem; }
}

/* Buttons */
.btn { display: inline-block; padding: 0.7em 1.25em; border-radius: 999px; background: var(--pink); color: #fff; font: 700 1.05rem var(--heading); text-decoration: none; box-shadow: 0 3px 0 var(--pink-dark); transition: transform 0.12s, box-shadow 0.12s; }
.btn:hover { background: var(--pink-dark); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--pink-dark); }
.btn--big { font-size: 1.2rem; }
.nav .btn, .btn--small { padding: 0.45em 0.95em; font-size: 0.95rem; color: #fff; box-shadow: none; }
.btn--ghost { background: #fff; color: var(--pink); box-shadow: inset 0 0 0 2px var(--pink); }
.btn--ghost:hover { background: var(--sea-pale); color: var(--pink-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections. The hero is under the sea: bubbles rise behind it and a wave closes it. */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #d4effa, #e9f8fc); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22c100-18 200-18 300 0s200 18 300 0 200-18 300 0 200 18 300 0v18H0z' fill='%23fffaf3'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.hero__in { position: relative; z-index: 1; display: grid; gap: 12px; align-items: center; padding: 28px 0 40px; }
@media (min-width: 760px) {
  .hero__in { grid-template-columns: 1.25fr 1fr; padding: 56px 0 64px; }
}
.bubbles span { position: absolute; bottom: -30px; width: 14px; height: 14px; border: 2px solid rgb(31 111 158 / 30%); border-radius: 50%; background: rgb(255 255 255 / 45%); animation: rise 13s linear infinite; }
.bubbles span:nth-child(1) { left: 5%; animation-delay: -1s; }
.bubbles span:nth-child(2) { left: 14%; width: 9px; height: 9px; animation-duration: 10s; animation-delay: -6s; }
.bubbles span:nth-child(3) { left: 27%; width: 20px; height: 20px; animation-duration: 16s; animation-delay: -3s; }
.bubbles span:nth-child(4) { left: 41%; width: 11px; height: 11px; animation-duration: 11s; animation-delay: -9s; }
.bubbles span:nth-child(5) { left: 56%; width: 16px; height: 16px; animation-duration: 14s; animation-delay: -12s; }
.bubbles span:nth-child(6) { left: 68%; width: 8px; height: 8px; animation-duration: 9s; animation-delay: -4s; }
.bubbles span:nth-child(7) { left: 81%; width: 18px; height: 18px; animation-duration: 15s; animation-delay: -8s; }
.bubbles span:nth-child(8) { left: 93%; width: 12px; height: 12px; animation-duration: 12s; animation-delay: -2s; }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(12px, -320px); }
  90% { opacity: 1; }
  100% { transform: translate(-6px, -660px); opacity: 0; }
}

/* The hero's Polimba: a still picture, then (site.js loads live.js) a live one in a button, with a speech bubble. */
.hero__stage { position: relative; width: min(70vw, 380px); margin-inline: auto; }
.hero__img { width: 100%; }
.hero__live { display: block; width: 100%; padding: 0; border: 0; border-radius: 24px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero__live canvas { display: block; width: 100%; height: 100%; }
.hero__live:focus-visible { outline-offset: 0; }
.hero__say { position: absolute; top: 0; left: 0; margin: 0; padding: 8px 14px; border-radius: 18px; background: #fff; color: var(--ink); font: 700 1.05rem var(--heading); box-shadow: 0 4px 14px rgb(58 36 64 / 15%); opacity: 0; transform: translateY(6px) scale(0.9); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.hero__say::after { content: ''; position: absolute; left: 28px; bottom: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.hero__say.is-shown { opacity: 1; transform: none; }
.lead { max-width: 62ch; font-size: 1.15rem; color: var(--ink-soft); }
.section { padding: 32px 0; }
.subtitle { margin-top: -0.3em; font: 700 1.2rem var(--heading); color: var(--sea-dark); }
.crumb { margin-bottom: 8px; font-size: 0.95rem; }
.crumb a::before { content: '\2190\00a0'; }
.small { font-size: 0.9rem; color: var(--ink-soft); }
.center { text-align: center; }
.center .actions { justify-content: center; }
.small-hero { width: 200px; margin: 0 auto 12px; }
.prose { max-width: 70ch; }

/* Cards: songs and printables */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 0 0 16px; padding: 0; list-style: none; }
.card__link { display: block; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 2px 10px rgb(58 36 64 / 6%); transition: transform 0.15s; }
.card__link:hover { transform: translateY(-2px); color: var(--ink); }
.card__link:active { transform: scale(0.98); }
@media (hover: hover) {
  .card__link:hover { animation: wiggle 0.5s ease-in-out; }
}
@keyframes wiggle {
  0%, 100% { transform: translateY(-2px) rotate(0); }
  30% { transform: translateY(-2px) rotate(-1.2deg); }
  70% { transform: translateY(-2px) rotate(1.2deg); }
}
.card__link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card--print .card__link img { aspect-ratio: 17 / 15; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.card__title { display: block; padding: 12px 16px 2px; font: 700 1.2rem var(--heading); }
.card__sub { display: block; padding: 0 16px 14px; color: var(--ink-soft); font-size: 0.98rem; }
.soon { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.soon li { padding: 10px 14px; border: 1px dashed var(--sea-dark); border-radius: 12px; background: #fff; }
.soon span { color: var(--ink-soft); }
.ticks { display: grid; gap: 10px; max-width: 62ch; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%233a2440' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 6px; }

/* The subscribe band, with a wave on top */
.band { position: relative; margin-top: 34px; background: var(--sea-dark); color: #fff; }
.band::before { content: ''; position: absolute; left: 0; right: 0; top: -29px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 18c100 18 200 18 300 0s200-18 300 0 200 18 300 0 200-18 300 0v22H0z' fill='%231f6f9e'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.band h2 { margin: 0 0 4px; }
.band p { margin: 0; }
.band .btn { background: #fff; color: var(--pink); box-shadow: 0 3px 0 rgb(0 0 0 / 18%); }
.band .btn:hover { background: var(--sea-pale); color: var(--pink-dark); }
.band :focus-visible { outline-color: #fff; } /* the usual ring is the band's own colour */

/* A song's video: a picture with a play button until it is pressed (site.js) */
.video { position: relative; margin: 16px 0 8px; overflow: hidden; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; }
.video__link, .video img, .video iframe { display: block; width: 100%; height: 100%; border: 0; }
.video img { object-fit: cover; }
.video__play { position: absolute; inset: 0; width: 84px; height: 84px; margin: auto; border-radius: 50%; background: rgb(194 48 78 / 92%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") 55% 50% / 40px no-repeat; box-shadow: 0 4px 16px rgb(0 0 0 / 30%); transition: transform 0.15s; }
.video__link:hover .video__play, .video__link:focus-visible .video__play { transform: scale(1.08); }
/* Inside the box: outside it, .video's overflow clips the ring away. */
.video__link:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.video__link:focus-visible .video__play { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--sea-dark); }
.video__note { font-size: 0.95rem; color: var(--ink-soft); }

/* Lyrics */
.lyrics { margin: 24px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.lyrics__part { margin-bottom: 16px; }
.lyrics__part h3 { margin-bottom: 4px; color: var(--sea-dark); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.lyrics p { margin: 0; font-size: 1.15rem; line-height: 1.75; }
.echo { color: var(--teal); font-style: italic; }

/* A printable's page */
.print { display: grid; gap: 24px; align-items: start; }
.print__img { width: min(80vw, 360px); border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 6px 24px rgb(58 36 64 / 10%); }
@media (min-width: 760px) {
  .print { grid-template-columns: 360px 1fr; }
}

/* Footer */
.foot { margin-top: 24px; padding: 24px 0; border-top: 1px solid var(--line); background: #fff; font-size: 0.95rem; }
.foot__brand { font-family: var(--heading); font-weight: 700; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__small { margin: 0; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .bubbles { display: none; }
}
@media print {
  .top, .foot, .band, .video { display: none; }
}
