/*
 * Super45 site theme. To rebrand, edit this block only.
 * Dark ground, paper bars, the three brand waves: gold, orange, red.
 * Gold (--onair) means on air and marks links and focus on dark surfaces.
 */
:root {
  --background: #1f1a24;
  --foreground: #f4efe8;
  --text-soft: #e4ddd2;
  --card: #2a2430;
  --border: rgb(244 239 232 / 22%);
  --paper: #f4efe8;
  --ink: #1f1a24;
  --ink-soft: #3e3944;
  --ink-muted: #5b5560;
  --onair: #e8b032;
  --orange: #e2792f;
  --brand: #ee3e2f;
  --focus: var(--onair);
  --radius: 2px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Bricolage Grotesque", var(--font);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --column: 42rem;
  --wide: 80rem;
  --gutter: max(1.5rem, calc((100% - var(--wide)) / 2));
  --dock-height: 3.5rem;
  color-scheme: dark;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-display: swap;
  src: url("bricolage-800.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212;
}

/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom: var(--dock-height);
  background: var(--background);
  color: var(--foreground);
  font: 17px / 1.5 var(--font);
}

a {
  color: var(--onair);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

img {
  max-width: 100%;
  height: auto;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

pre {
  overflow-x: auto;
  padding: 0.75rem 1rem;
  background: var(--card);
  border-radius: var(--radius);
}

blockquote {
  margin-inline: 0;
  padding-inline: 1rem;
  border-left: 2px solid var(--onair);
  color: var(--text-soft);
}

/* Readable column for page content; home parts span the full width. */
#content {
  padding-block: 1rem 3rem;
}

#content > :not(.hero, .bands, .club, .news) {
  width: min(100% - 2rem, var(--column));
  margin-inline: auto;
}

#content:has(.hero) {
  padding-block: 0;
}

/* Pills: header, club and newsletter calls to action */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.pill:hover {
  filter: brightness(1.08);
}

.pill-red {
  background: var(--brand);
}

.pill-ink {
  background: var(--ink);
  color: var(--paper);
}

.pill-line {
  border-color: currentcolor;
  color: inherit;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* Header: paper bar, like a single sleeve */
.site-header {
  --focus: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem var(--gutter);
  background: var(--paper);
  color: var(--ink);
}

.brand img {
  display: block;
  width: 150px;
}

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a {
  display: inline-block;
  padding-block: 0.5rem;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 40rem) {
  .site-header nav {
    order: 3;
    width: 100%;
  }
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3.5rem 4rem;
  padding: 4.5rem var(--gutter) clamp(8rem, 16vw, 12.5rem);
  overflow: hidden;
}

.hero-text {
  flex: 1 1 30rem;
  min-width: 0;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgb(244 239 232 / 40%);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.hero h1 {
  margin: 1.75rem 0 0;
  font-size: clamp(2.75rem, 7.4vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero-sub {
  max-width: 30em;
  margin: 1.75rem 0 0;
  color: var(--text-soft);
  font-size: 1.25rem;
}

/* Player card: cover art, now playing, round play button */
.player-card {
  --focus: var(--ink);
  position: relative;
  z-index: 2;
  flex: 0 1 25rem;
  min-width: min(100%, 18rem);
  padding: 1.25rem;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
}

.player-card p {
  margin: 0;
}

.cover {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.125rem;
  border-radius: 16px;
}

.now-label {
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.now-title {
  margin-top: 0.25rem;
  font: 800 1.625rem / 1.15 var(--font-display);
}

.now-artist {
  color: var(--ink-soft);
}

.player-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.35;
}

.player-row span {
  color: var(--ink-muted);
}

.hero-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.hero-play svg {
  width: 26px;
  fill: currentcolor;
}

.hero-play[aria-pressed="true"] .icon-play,
.hero-play:not([aria-pressed="true"]) .icon-pause {
  display: none;
}

.waves {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: clamp(6rem, 14vw, 12.5rem);
}

/* Home bands: one per "##" in the home Markdown, cycling red, dark, gold */
.band {
  padding: 2.5rem var(--gutter) 6rem;
}

.band h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
}

.band > p {
  max-width: 24em;
  margin: 1.125rem 0 0;
  font-weight: 500;
}

.band ul,
.band ol {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56rem) {
  .band:not(:nth-of-type(3n)) {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr 2fr;
    column-gap: 4.5rem;
  }

  .band:not(:nth-of-type(3n)) > :is(ul, ol) {
    grid-row: 1 / -1;
    grid-column: 2;
    margin: 0;
  }
}

/* Red band: schedule, "**time** show" plus "*host*" on the next line */
.band:nth-of-type(3n + 1) {
  --focus: var(--ink);
  background: var(--brand);
  color: var(--ink);
}

.band:nth-of-type(3n + 1) li {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  column-gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.25rem;
  border-top: 2px solid var(--ink);
  font-size: 1.25rem;
  font-weight: 600;
}

.band:nth-of-type(3n + 1) li:last-child {
  border-bottom: 2px solid var(--ink);
}

.band:nth-of-type(3n + 1) strong {
  grid-row: span 2;
  font: 800 1.875rem var(--font-display);
}

.band:nth-of-type(3n + 1) em {
  grid-column: 2;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
}

/* Dark band: programs, "**name** hosts" */
.band:nth-of-type(3n + 2) {
  padding-top: 6rem;
}

.band:nth-of-type(3n + 2) > p {
  color: var(--text-soft);
  font-weight: 400;
}

.band:nth-of-type(3n + 2) li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  padding: 1.375rem 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
}

.band:nth-of-type(3n + 2) li:last-child {
  border-bottom: 1px solid var(--border);
}

.band:nth-of-type(3n + 2) strong {
  color: var(--onair);
  font: 800 clamp(1.75rem, 3.4vw, 2.75rem) / 1.1 var(--font-display);
}

.band:nth-of-type(3n + 2) li:nth-child(3n + 2) strong {
  color: var(--orange);
}

.band:nth-of-type(3n + 2) li:nth-child(3n) strong {
  color: var(--brand);
}

/* Gold band: big numbers, "**60** años" then the record */
.band:nth-of-type(3n) {
  --focus: var(--ink);
  padding-top: 5rem;
  background: var(--onair);
  color: var(--ink);
}

.band:nth-of-type(3n) ul,
.band:nth-of-type(3n) ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2rem 2.5rem;
}

.band:nth-of-type(3n) li {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  font-weight: 500;
  white-space: pre-line;
}

.band:nth-of-type(3n) strong {
  display: block;
  margin-bottom: 0.5rem;
  font: 800 6rem / 0.95 var(--font-display);
  letter-spacing: -0.03em;
}

/* Club and newsletter */
.club,
.news {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem 4.5rem;
  padding: 6rem var(--gutter);
}

.club > *,
.news > div {
  flex: 1 1 24rem;
  min-width: 0;
}

.club h2,
.news h2 {
  margin: 0;
}

.club h2 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.club p:not(.actions) {
  margin: 0 0 1.75rem;
  color: var(--text-soft);
  font-size: 1.25rem;
}

.news {
  --focus: var(--ink);
  padding-block: 4rem;
  background: var(--paper);
  color: var(--ink);
}

.news p {
  margin: 0.625rem 0 0;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.75rem 4rem;
  padding: 3rem var(--gutter) 3.5rem;
}

.site-footer > * {
  flex: 1 1 20rem;
}

.site-footer p {
  max-width: 26em;
  margin: 0.5rem 0 0;
  color: var(--text-soft);
}

.site-footer .footer-name {
  margin: 0;
  color: var(--foreground);
  font: 800 1.625rem var(--font-display);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.375rem 1.75rem;
}

.site-footer nav a {
  padding-block: 0.5rem;
  color: inherit;
  font-weight: 500;
}

/* Tables */
table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

th {
  background: var(--card);
  font-weight: 600;
}

/* Dock: persistent player bar */
#dock {
  --focus: var(--ink);
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--dock-height);
  padding: 0.5rem 1rem;
  background: var(--paper);
  color: var(--ink);
}

#dock button {
  flex: none;
  min-height: 40px;
  padding: 0.5rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

#dock[data-live="true"] button {
  border-color: var(--brand);
}

#dock-now {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
}

.post-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.post-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list time,
.post-meta,
.post-subtitle,
.post-tags {
  color: var(--text-soft);
  font-size: 0.875rem;
}

.post-subtitle {
  margin: 0;
}

.post-tags a {
  margin-right: 0.5rem;
}

.post-header-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: var(--radius);
}

@media (prefers-reduced-motion: reduce) {
  * {
    /* biome-ignore lint/complexity/noImportantStyles: must beat any theme rule */
    transition: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: must beat any theme rule */
    animation: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: must beat any theme rule */
    scroll-behavior: auto !important;
  }
}
