/* =========================================================================
   TYNDALLA — style
   ========================================================================= */

:root {
  --bg: #0A0A0A;
  --fg: #F4F1EA;
  --muted: #6E6E6E;
  --muted-text: #9A9A9A;   /* szarość tekstowa — kontrast AA na #0A0A0A */
  --glow: #E8C38A;
  --line: rgba(244, 241, 234, 0.12);

  --font-head: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --maxw: 880px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 1px solid var(--glow);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-size: .875rem;
}
.skip-link:focus { top: var(--gutter); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 680px; }

/* ---------- Sekcje ---------- */

.section {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.section__title {
  margin: 0 0 24px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: .4em;
  text-transform: uppercase;
  /* kompensacja rozstrzelenia po ostatniej literze */
  padding-left: .4em;
}

.section__subtitle {
  margin: 0 0 56px;
  color: var(--muted-text);
  font-size: .875rem;
  letter-spacing: .12em;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* szeroki, bardzo subtelny snop w tle */
.hero__shaft {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--beam-x, 50%);
  width: min(420px, 70vw);
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 50%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 50%, transparent);
  background:
    radial-gradient(ellipse 50% 100% at 50% 0%, rgba(232, 195, 138, .10), transparent 70%),
    linear-gradient(to bottom, rgba(244, 241, 234, .05), transparent 85%);
  z-index: -2;
  pointer-events: none;
}

.hero__content {
  text-align: center;
  padding: 0 var(--gutter);
}

.logo {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2rem, 10vw, 6rem);
  letter-spacing: .32em;
  line-height: 1;
}

.logo__part:first-child { margin-right: -.08em; }
.logo__part:last-child { margin-right: -.32em; }

.logo__beam {
  position: relative;
  display: inline-block;
  width: 2px;
  height: 1.9em;
  margin: 0 .34em 0 .02em;
  background: linear-gradient(to bottom,
    rgba(244, 241, 234, 0) 0%,
    rgba(244, 241, 234, 1) 30%,
    rgba(244, 241, 234, .85) 60%,
    rgba(244, 241, 234, 0) 100%);
  box-shadow:
    0 0 8px rgba(244, 241, 234, .55),
    0 0 26px rgba(232, 195, 138, .35);
  border-radius: 2px;
}
.logo__beam::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 26px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(232, 195, 138, .22), transparent 70%);
  filter: blur(6px);
}

.tagline {
  margin: 40px 0 0;
  color: var(--muted-text);
  font-size: clamp(.875rem, 2.4vw, 1.05rem);
  letter-spacing: .18em;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 72px;
}
.scroll-cue__line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--fg));
  opacity: .5;
  animation: cue 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: .55; }
  100% { transform: scaleY(1) translateY(12px); opacity: 0; }
}

/* ---------- O projekcie ---------- */

.about__text {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.9;
}

/* ---------- Album ---------- */

.album__cover {
  margin: 0 auto;
  max-width: 420px;
  aspect-ratio: 1;
  background:
    linear-gradient(to bottom, rgba(244, 241, 234, .06), transparent 70%),
    #111;
  box-shadow: 0 30px 80px -40px rgba(232, 195, 138, .25);
}
.album__cover img { width: 100%; height: 100%; object-fit: cover; }

.album__links {
  min-height: 44px;
  margin: 28px 0 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.label {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--muted-text);
  white-space: nowrap;
}
.label--next {
  color: var(--glow);
  text-shadow: 0 0 12px rgba(232, 195, 138, .45);
}

/* ---------- Lista utworów ---------- */

.tracklist {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  text-align: left;
  border-top: 1px solid var(--line);
}

.track {
  display: grid;
  grid-template-columns: 2.5em 1fr;
  grid-template-areas:
    "num title"
    ".   meta";
  column-gap: 12px;
  row-gap: 2px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease), opacity .4s var(--ease);
}

.track__num {
  grid-area: num;
  font-family: var(--font-head);
  color: var(--muted-text);
  font-size: .875rem;
  letter-spacing: .08em;
  line-height: 44px;
}

.track__title {
  grid-area: title;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: .06em;
  line-height: 44px;
}

.track__meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.track__date {
  color: var(--muted-text);
  font-size: .8125rem;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}

.track__links {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 2px;
}

.track.is-upcoming .track__title { color: #8C8C8C; }
.track.is-upcoming .track__num,
.track.is-upcoming .track__date { color: #7E7E7E; }

.track.is-next {
  background: linear-gradient(90deg, transparent, rgba(232, 195, 138, .06), transparent);
}
.track.is-next .track__title {
  color: var(--fg);
  text-shadow: 0 0 18px rgba(232, 195, 138, .35);
}

@media (min-width: 640px) {
  .track {
    grid-template-columns: 3em 1fr auto;
    grid-template-areas: "num title meta";
    align-items: center;
    padding: 10px 8px;
  }
  .track__meta { gap: 20px; }
  .track__links { min-width: 92px; justify-content: flex-end; }
}

/* ---------- Ikony ---------- */

.icon-link {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
  opacity: .82;
  border-radius: 50%;
  transition: opacity .3s var(--ease), filter .3s var(--ease), transform .3s var(--ease);
}
.icon-link:hover,
.icon-link:focus-visible {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(232, 195, 138, .55));
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .fill { fill: currentColor; stroke: none; }

/* ---------- Słuchaj ---------- */

.listen__main {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px 72px;
  margin-top: 48px;
}

.listen__big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px;
  min-width: 120px;
  color: var(--fg);
  text-decoration: none;
  transition: filter .35s var(--ease), opacity .35s var(--ease);
  opacity: .88;
}
.listen__big .icon { width: 56px; height: 56px; stroke-width: 1; }
.listen__big span {
  font-family: var(--font-head);
  font-size: .8125rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding-left: .3em;
}
.listen__big:hover,
.listen__big:focus-visible {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(232, 195, 138, .5));
}
.listen__big.is-soon { opacity: 1; }
.listen__big.is-soon .icon,
.listen__big.is-soon span:not(.label) { opacity: .5; }
.listen__big .label { padding-left: 0; text-transform: none; font-family: var(--font-body); letter-spacing: .14em; font-size: .75rem; }

.listen__social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.listen__social:empty { display: none; }

.listen__note {
  margin: 40px 0 0;
  color: var(--muted-text);
  font-size: .8125rem;
  letter-spacing: .12em;
}

/* ---------- Kontakt ---------- */

.contact__mail {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: .08em;
}
.contact__mail a {
  display: inline-block;
  padding: 10px 2px;
  text-decoration: none;
  background: linear-gradient(var(--fg), var(--fg)) left 85% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), text-shadow .4s var(--ease);
}
.contact__mail a:hover,
.contact__mail a:focus-visible {
  background-size: 100% 1px;
  text-shadow: 0 0 14px rgba(232, 195, 138, .45);
}

/* ---------- Stopka ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted-text);
  font-size: .8125rem;
  letter-spacing: .1em;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer p { margin: 0; }
.footer__links { display: flex; }
.footer .icon { width: 18px; height: 18px; }

/* ---------- Pojawianie się przy przewijaniu ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Większe ekrany ---------- */

@media (min-width: 768px) {
  :root { --gutter: 40px; }
  .section { padding: 160px 0; }
}

/* ---------- Ograniczenie ruchu ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__dust { display: none; }
  .scroll-cue__line { transform: none; opacity: .5; }
}
