/* =========================================================================
   Bear & Puma — brand tokens
   ========================================================================= */
:root {
  --red: #a20909;        /* brand accent (A20909) — fills, borders, white-on-red */
  --red-bright: #c21212; /* hover on red fills */
  --red-text: #e5392c;   /* readable red for text/links on the dark bg (passes AA) */
  --bg: #0b0a09;         /* warm near-black, like the album art */
  --panel: #141210;      /* slightly lifted surface */
  --fg: #f4efe6;         /* warm off-white */
  --muted: #a39b8d;      /* captions / secondary */
  --line: #2a2622;       /* hairlines */
  --maxw: 760px;
  --gutter: 20px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--red-text); text-decoration: none; }
a:hover { color: #f6655a; }

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

main, .topbar, .footer {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Top bar ------------------------------------------------------------ */
.topbar {
  padding-top: 40px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  width: 84px;
  height: auto;
  opacity: 0.96;
}
/* small social icons, top-right — understated, tint red on hover */
.topbar__social { display: flex; align-items: center; gap: 16px; }
.topbar__social a {
  display: inline-flex;
  color: var(--muted);
  transition: color .2s ease;
}
.topbar__social a:hover,
.topbar__social a:focus-visible { color: var(--red-text); }
.topbar__social a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}
.topbar__social svg { display: block; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  padding: 44px 0 28px;
  display: grid;
  gap: 28px;
}
@media (min-width: 640px) {
  .hero {
    grid-template-columns: 1fr 0.82fr;
    align-items: center;
    gap: 36px;
  }
}
.hero__text { min-width: 0; }

/* portrait as a polaroid: warm paper frame, thick bottom edge, slight tilt */
.hero__portrait {
  margin: 0;
  padding: 13px 13px 44px;
  background: linear-gradient(158deg, #efe9dd 0%, #ded5c5 100%);
  border-radius: 2px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: rotate(2.4deg);
  transition: transform 0.4s ease;
}
.hero__portrait:hover { transform: rotate(0deg); } /* straightens when you look at it */
.hero__portrait img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* dim the bokeh so it sits quietly inside the frame */
  filter: brightness(0.82) contrast(1.03);
}
.kicker {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--red-text);
}
.headline {
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 11vw, 4.4rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sub {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
}

/* ---- Section eyebrow label --------------------------------------------- */
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ---- Click-to-load player ---------------------------------------------- */
.video { padding: 28px 0 8px; }
.featured { padding: 28px 0 8px; }

.player {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}
.player--video { aspect-ratio: 16 / 9; }

/* red caption band — the signature /album/track label, drawn in CSS over the
   cover (so the band isn't baked into each image). Lives inside the facade, so
   it's removed along with it when the player loads. */
.player__band {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  background: var(--red);
  color: #fff;
  padding: 9px 13px;
  font-size: 0.86rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-align: left;
}
.player__band-lead { font-weight: 400; opacity: 0.82; }
/* tighter band on the small release-grid tiles */
.release .player__band { font-size: 0.72rem; padding: 7px 10px; }

/* ambient falling autumn leaves ----------------------------------------- */
.leaves {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.leaf {
  position: absolute;
  top: -8vh;
  --wind: 0vw; /* sideways gust offset, driven per-frame in main.js */
  transform: translateX(var(--wind));
  will-change: transform;
}
.leaf__fall {
  display: block;
  will-change: transform;
  animation: leaf-fall 12s linear forwards;
}
.leaf__sway {
  display: block;
  animation: leaf-sway 3.2s ease-in-out infinite alternate;
}
.leaf__img {
  display: block;
  opacity: 0.9;
  animation: leaf-spin 8s linear infinite;
}
@keyframes leaf-fall { to { transform: translateY(116vh); } }
@keyframes leaf-sway { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes leaf-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .leaves { display: none; }
}

.player__facade {
  all: unset;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.player__facade img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
}
.player__facade:hover img,
.player__facade:focus-visible img { transform: scale(1.03); filter: brightness(1.05); }
.player__facade:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

/* red play triangle in a disc */
.player__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px; height: 72px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  transition: transform .2s ease, background .2s ease;
}
.player__play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
}
.player__facade:hover .player__play { transform: scale(1.08); background: var(--red-bright); }

/* branded placeholder tile for tracks without cover art yet */
.player__facade--blank {
  background: radial-gradient(120% 120% at 50% 0%, #1c1916 0%, var(--bg) 72%);
}
.player iframe { width: 100%; height: 100%; border: 0; display: block; }

/* caption in the album-art language: /album/track */
.caption {
  margin: 12px 2px 0;
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.caption strong { color: var(--fg); font-weight: 700; }
.caption__demo {
  color: var(--red-text);
  text-transform: uppercase;
  font-size: 0.72em;
  letter-spacing: 0.1em;
}

/* ---- Signup ------------------------------------------------------------- */
.signup {
  margin: 8px 0 12px;
}
.signup h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 700;
}
.signup__note { margin: 12px 2px 0; color: var(--muted); font-size: 0.8rem; }

.signup__form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup__form input {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  font: inherit;
  padding: 13px 14px;
}
.signup__form input::placeholder { color: #6f6a61; }
.signup__form input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.signup__form button {
  flex: 0 0 auto;
  background: var(--red);
  color: #fff;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 13px 22px;
  cursor: pointer;
  transition: background .2s ease;
}
.signup__form button:hover { background: var(--red-bright); }
.signup__form button:disabled { opacity: .6; cursor: default; }

.signup__status { margin: 14px 0 0; min-height: 1.2em; font-size: 0.88rem; }
.signup__status.is-ok { color: #8fcf8f; }
.signup__status.is-err { color: #e88; }

/* ---- Releases ----------------------------------------------------------- */
.releases { margin: 40px 0 10px; }
.releases__title {
  margin: 0 0 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.releases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.release { margin: 0; }
.release .caption { font-size: 0.78rem; }
/* a release tile promoted to span the full grid width (standout) */
.release--wide { grid-column: 1 / -1; }
/* the wide tile is big enough for the standard band, not the tiny grid one */
.release--wide .player__band { font-size: 0.86rem; padding: 9px 13px; }

/* ---- Merch -------------------------------------------------------------- */
.merch { margin: 44px 0 10px; }
.merch__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.merch__card {
  position: relative;
  display: block;
  /* warm polaroid cream — product photos multiply onto it, so their white
     studio backgrounds become this off-white instead of clinical white */
  background: #efe9dd;
  border: 1px solid var(--line);
  overflow: hidden;
}
.merch__card img {
  width: 100%; height: auto; display: block;
  mix-blend-mode: multiply;
  transition: transform .5s ease, filter .3s ease;
}
.merch__card:hover img,
.merch__card:focus-visible img { transform: scale(1.03); filter: brightness(1.05); }
.merch__card:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.merch__cta { margin: 18px 0 0; }
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  padding: 13px 22px;
  transition: background .2s ease;
}
.btn:hover { background: var(--red-bright); color: #fff; }
.merch__note { margin: 12px 2px 0; color: var(--muted); font-size: 0.8rem; }

/* ---- Footer ------------------------------------------------------------- */
.footer {
  margin-top: 56px;
  padding-top: 24px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}
.social { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }
.social a {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer__mark {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

/* ---- Small screens ------------------------------------------------------ */
@media (max-width: 480px) {
  .releases__grid,
  .merch__grid { grid-template-columns: 1fr; }
  .signup__form button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
