@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("/fonts/barlow-semi-condensed-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  /* Two accents: purple first, used across the site; pink second, kept in
     reserve. Pink reaches 3.4:1 on white, so use it for large text or graphics. */
  --accent: #4407a6;
  --accent-2: #ca6cac;
  --on-accent: #ffffff;
  --panel: #ececea;
  --muted: #5f6368;
  --rule: #dcdcd9;
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --text: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --inline: max(var(--gutter), calc((100% - 1328px) / 2));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(16px, 0.35vw + 14.5px, 19px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

img,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

.latest-cover img,
.podcast-cover img {
  width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

cite {
  font-style: normal;
  font-weight: 500;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  transform: none;
}

/* Masthead */

.masthead {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--inline);
}

.brand img {
  width: clamp(64px, 5vw, 80px);
}

.site-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 20px;
  font-size: 16px;
  font-weight: 500;
}

.site-menu a {
  text-decoration: none;
}

.site-menu a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
}

/* Hero */

.hero {
  padding: clamp(150px, 14vw, 200px) var(--inline) clamp(48px, 6vw, 80px);
}

.hero-stage {
  position: relative;
}

.hero-slogan {
  position: relative;
  display: flex;
}

.hero h1,
.hero-slice span {
  font-family: var(--display);
  font-size: clamp(40px, 8.6vw, 150px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero h1 {
  margin: 0;
}

/* The waveform, slice and playhead only exist once hero.js is running. */
.hero-wave,
.hero-slice,
.hero-playhead {
  display: none;
}

.hero-stage.is-live {
  touch-action: pan-y;
}

.is-live .hero-wave {
  display: block;
  width: 100%;
  height: clamp(56px, 9vw, 140px);
  margin-bottom: clamp(10px, 1.4vw, 18px);
}

.is-live h1,
.hero-slice span {
  display: block;
  white-space: nowrap;
}

.is-live .hero-slice {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--accent);
  color: var(--on-accent);
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition:
    clip-path 320ms cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 280ms ease-out;
}

.is-live .hero-slice.is-on {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .is-live .hero-slice {
    transition: none;
  }
}

.is-live .hero-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
}

.hero-stage.is-playing .hero-playhead,
.hero-stage.is-scrubbing .hero-playhead {
  opacity: 1;
}

/* Sections */

.section {
  padding: clamp(72px, 9vw, 136px) var(--inline);
}

.section-title {
  margin: 0 0 clamp(24px, 3.5vw, 48px);
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.release-name {
  margin: 0;
  font-weight: 400;
}

.release-name .artist {
  display: block;
  font-family: var(--display);
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.release-name cite {
  display: block;
  margin-top: 0.2em;
  font-size: clamp(21px, 1.9vw, 28px);
  line-height: 1.15;
}

.release-meta {
  margin: 0.6em 0 1.2em;
  color: var(--muted);
  font-size: 0.85em;
  font-variant-numeric: lining-nums;
}

/* Releases */

.latest {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
  padding: clamp(16px, 2.5vw, 32px);
  background: var(--accent);
  color: var(--on-accent);
}

.latest-cover {
  grid-column: 1 / span 6;
}

.latest-copy {
  grid-column: 7 / -1;
  max-width: 34em;
}

.latest-copy p {
  margin: 0 0 1em;
}

.latest-copy p:last-child {
  margin-bottom: 0;
}

.latest-copy .latest-label {
  margin-bottom: 0.6em;
  font-size: 0.85em;
  font-weight: 500;
}

.latest-copy .release-meta {
  margin: 0.8em 0 1.2em;
  color: rgb(255 255 255 / 78%);
}

.catalogue-title {
  margin: clamp(72px, 9vw, 128px) 0 24px;
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(176px, 40vw), 1fr));
  gap: 36px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalogue a {
  display: block;
  text-decoration: none;
}

.catalogue img {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 10px;
  object-fit: cover;
  background: var(--panel);
}

.catalogue .artist {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}

.catalogue cite {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.25;
}

.catalogue a:hover cite {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.catalogue .release-meta {
  display: block;
  margin: 3px 0 0;
  font-size: 13px;
}

/* Granito */

.granito-intro {
  max-width: 28em;
  margin: 0 0 clamp(40px, 6vw, 80px);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.35;
}

.granito-volumes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px);
}

.granito .release-name cite {
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.granito .release-meta {
  margin: 0.4em 0 0;
}

.granito-head {
  display: grid;
  grid-template-columns: clamp(112px, 14vw, 200px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: end;
  margin-bottom: clamp(20px, 2.4vw, 28px);
}

.granito-cover img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--panel);
}

.tracklist {
  margin: 0 0 1.2em;
  padding: 0;
  border-bottom: 1px solid var(--rule);
  list-style: none;
}

.tracklist li {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 16px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}

.tracklist .side {
  color: var(--muted);
  font-size: 0.85em;
  font-variant-numeric: lining-nums tabular-nums;
}

.tracklist .artist {
  font-family: var(--display);
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.15;
}

/* Selected Jams */

.podcast {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: center;
}

.podcast-cover {
  grid-column: 1 / span 4;
  width: 100%;
}

.podcast-copy {
  grid-column: 6 / -1;
  max-width: 30em;
}

.podcast-copy p {
  margin: 0 0 1em;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Rosário Jazz */

.rosario-copy {
  max-width: 34em;
}

.rosario-copy p {
  margin: 0 0 1em;
}

.sessions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.sessions img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel);
}

/* About and contact */

.about,
.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--gutter);
}

.about .section-title,
.contact .section-title {
  grid-column: 1 / span 4;
}

.about-copy,
.contact-copy {
  grid-column: 5 / -1;
}

.about-copy p {
  max-width: 26em;
  margin: 0 0 0.9em;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.3;
}

.contact-list {
  display: grid;
  gap: 20px;
  margin: 0 0 32px;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.85em;
}

.contact-list dd {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
}

.contact-copy p {
  max-width: 32em;
  margin: 0;
}

/* 404 */

.not-found {
  min-height: 60vh;
  padding-top: clamp(150px, 14vw, 200px);
}

.not-found p {
  max-width: 34em;
  margin: 0 0 1em;
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px var(--inline) 40px;
  color: var(--muted);
  font-size: 15px;
}

.site-footer img {
  width: 32px;
  height: 32px;
}

.site-footer p {
  margin: 0;
}

/* Narrow screens */

@media (max-width: 900px) {
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about .section-title,
  .contact .section-title,
  .about-copy,
  .contact-copy {
    grid-column: 1;
  }

  .granito-volumes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .js .menu-toggle {
    display: block;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
  }

  .js .site-menu {
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: var(--gutter);
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 14px 20px 18px;
    border: 1px solid var(--ink);
    background: var(--paper);
  }

  .js .site-menu.is-open {
    display: flex;
  }

  .js .site-menu a {
    padding: 6px 0;
    font-size: 21px;
  }

  .hero {
    padding-top: 136px;
  }

  .latest,
  .podcast {
    grid-template-columns: 1fr;
  }

  .latest-cover,
  .latest-copy,
  .podcast-cover,
  .podcast-copy {
    grid-column: 1;
  }

  .podcast-cover {
    max-width: 360px;
  }

  .sessions {
    grid-template-columns: 1fr;
  }

  .tracklist li {
    grid-template-columns: 2.2em minmax(0, 1fr);
  }

  .tracklist li > span:last-child {
    grid-column: 2;
  }
}
