:root {
  /* Warm neutral background */
  --bg: #faf7f2;
  --text: #111111;
  --max: 1040px;

  /* Match Mixcloud (light theme) UI greys */
  --icon: #6b7280;

  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.06);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* Background image is desktop-only (mobile stays clean/warm). */
body::before,
body::after {
  content: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.card {
  width: min(760px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 16px;
}

@media (min-width: 860px) {
  .card {
    padding: 20px;
  }

  /* Desktop background: bolder image, still readable. */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("assets/bg.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    transform: scale(1.06);
    opacity: 0.52;
    z-index: 0;
    pointer-events: none;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(250, 247, 242, 0.55) 0%,
      rgba(250, 247, 242, 0.90) 56%,
      rgba(250, 247, 242, 1) 100%
    );
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 0;
    pointer-events: none;
  }
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0 40px;
  position: relative;
  z-index: 1;
}

.flyer-link {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
}

.flyer {
  width: 100%;
  height: auto;
}

.flyer-link:hover,
.flyer-link:focus-visible {
  outline: none;
  filter: brightness(0.98);
}

.links {
  margin-top: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Mobile: keep social + Mixcloud accessible while scrolling the flyer */
@media (max-width: 859px) {
  .links {
    position: sticky;
    bottom: 0;
    z-index: 2;

    /* Attach to the card edges */
    margin: 16px -16px -16px;
    padding: 12px 16px 16px;

    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.08);
  }
}

.social {
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-link {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--icon);
  text-decoration: none;
  border-radius: 999px;
}

.social-link:hover,
.social-link:focus-visible {
  outline: none;
  background: rgba(0, 0, 0, 0.06);
}

/* Brand colors on interaction */
.social-link.social-facebook:hover,
.social-link.social-facebook:focus-visible {
  color: #1877f2;
}

.social-link.social-instagram:hover,
.social-link.social-instagram:focus-visible {
  /* Instagram gradient isn't feasible via currentColor; use the primary brand pink */
  color: #e1306c;
}

.social-link svg {
  width: 36px;
  height: 36px;
  display: block;
}

.player {
  margin: 0;
  width: 100%;
}

.player iframe {
  width: 100%;
  height: 60px;
  border: 0;
  display: block;
}

@media (min-width: 860px) {
  .links {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 22px;
  }

  .player {
    flex: 0 1 520px;
  }
}
