/* ══════════════════════════════════════
   Umbra Volatilis — As I Am
   styles.css
   ══════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  --bg:          #08080f;
  --bg-surface:  #10101c;
  --bg-card:     #141420;
  --border:      rgba(255,255,255,.08);

  --text:        #e8e2d8;
  --text-muted:  #8a8078;
  --text-dim:    #5a5450;

  --accent:      #c8954a;   /* тёплое золото — сторона света */
  --accent-glow: rgba(200,149,74,.25);
  --cool:        #8878d0;   /* холодный фиолет — сторона тьмы */

  --ym-yellow:   #FFCC00;
  --ym-dark:     #1a1400;

  --radius:      6px;
  --radius-lg:   12px;

  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --max-w: 1160px;
  --gap:   clamp(1.5rem, 4vw, 3rem);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Container ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: opacity .18s, transform .15s;
  border: none;
  white-space: nowrap;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 1; }

.btn--ym {
  background: var(--ym-yellow);
  color: var(--ym-dark);
  font-size: 1rem;
  padding: .9rem 2.2rem;
  box-shadow: 0 4px 24px rgba(255,204,0,.28);
}
.btn--ym svg { flex-shrink: 0; }

.btn--sm {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid var(--border);
  padding: .55rem 1.2rem;
  font-size: .88rem;
}
.btn--sm:hover { background: rgba(255,255,255,.14); }

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: .65rem 1.5rem;
}
.btn--ghost:hover { background: var(--accent-glow); opacity: 1; }

.btn--track {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: .85rem;
  padding: .5rem 1.1rem;
  font-weight: 500;
}
.btn--track:hover { color: var(--text); border-color: rgba(255,255,255,.22); opacity: 1; }

/* ─── Section title ─── */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: normal;
  letter-spacing: .04em;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin-top: .7rem;
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,8,15,.82) 0%,
    rgba(8,8,15,.55) 50%,
    rgba(8,8,15,.78) 100%
  ),
  linear-gradient(
    to top,
    rgba(8,8,15,.95) 0%,
    transparent 40%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem clamp(1rem, 5vw, 2.5rem) 5rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.hero__content { max-width: 560px; }

.hero__label {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: normal;
  line-height: .95;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,.6);
  margin-bottom: .6rem;
}

.hero__album {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.2rem;
  letter-spacing: .06em;
}

.hero__tagline {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  margin-bottom: 2.4rem;
  line-height: 1.7;
}

.hero__secondary {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero__cover {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__cover-img {
  width: clamp(180px, 22vw, 320px);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--text-muted);
  animation: bounce 2.4s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════
   TRACKS
   ══════════════════════════════════════ */
.tracks {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg);
}

.tracks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}
@media (min-width: 1060px) {
  .tracks__grid { grid-template-columns: repeat(3, 1fr); }
}

.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color .2s;
}
.track-card:hover { border-color: rgba(200,149,74,.3); }

.track-card__meta {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.track-card__cover {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.track-card__info { flex: 1; min-width: 0; }

.track-card__num {
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--accent);
  display: block;
  margin-bottom: .25rem;
}
.track-card__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: normal;
  color: var(--text);
  margin-bottom: .35rem;
  line-height: 1.3;
}
.track-card__desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: .4rem;
}
.track-card__style {
  font-size: .78rem;
  color: var(--text-dim);
  letter-spacing: .04em;
}

/* Player */
.track-card__player-wrap { flex: 1; }

.player-iframe-wrap { position: relative; }
.player-iframe-wrap iframe {
  width: 100%;
  height: 100px;
  border-radius: var(--radius);
  background: var(--bg-surface);
  display: block;
}


.track-card__footer {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}
.track-card__footer .btn--track { font-size: .82rem; padding: .45rem .9rem; }
.track-card__footer .btn--lyrics {
  background: transparent;
  color: var(--cool);
  border: 1px solid rgba(136,120,208,.3);
  font-size: .82rem;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: opacity .18s, transform .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.track-card__footer .btn--lyrics:hover { opacity: .82; background: rgba(136,120,208,.08); }
.track-card__footer .btn--clip {
  background: transparent;
  color: #ff5555;
  border: 1px solid rgba(255,60,60,.3);
  font-size: .82rem;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: opacity .18s, background .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.track-card__footer .btn--clip:hover { opacity: .85; background: rgba(255,60,60,.08); }

.track-card__dream {
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: .25rem;
  letter-spacing: .03em;
}

.tracks__footer {
  margin-top: 3rem;
  text-align: center;
}

/* ══════════════════════════════════════
   ABOUT
   ══════════════════════════════════════ */
.about {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.about__photo-wrap {
  flex-shrink: 0;
}
.about__photo {
  width: clamp(200px, 26vw, 380px);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
  object-fit: cover;
  aspect-ratio: 3/4;
  object-position: center top;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  max-width: 56ch;
}
.about__text strong { color: var(--text); }
.about__text em { color: var(--accent); font-style: italic; }
.about__link { margin-top: 1rem; }

/* ══════════════════════════════════════
   BOOK — Танец с тенью
   ══════════════════════════════════════ */
.book {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.book__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: 3rem;
}

.book__cover-wrap { flex-shrink: 0; }

.book__cover {
  width: clamp(140px, 16vw, 220px);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
  display: block;
}

.book__cover-placeholder {
  width: clamp(140px, 16vw, 220px);
  aspect-ratio: 2/3;
  background: var(--bg-card);
  border: 1px dashed rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.book__label {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cool);
  margin-bottom: .75rem;
}

.book__intro .section-title { margin-bottom: .4rem; }

.book__author {
  font-size: .88rem;
  color: var(--accent);
  letter-spacing: .06em;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.book__intro p {
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: .9rem;
}

.book__dzen-link { margin-top: .5rem; }

.book__stories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .book__stories { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1060px) {
  .book__stories { grid-template-columns: repeat(3, 1fr); }
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  transition: border-color .2s;
}
.story-card:hover { border-color: rgba(136,120,208,.3); }

.story-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--text);
  line-height: 1.3;
}

.story-card__desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.story-card__links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: .25rem;
}

.story-card__song {
  font-size: .8rem;
  color: var(--accent);
  opacity: .75;
  transition: opacity .15s;
}
.story-card__song:hover { opacity: 1; }

.story-card__dzen {
  font-size: .8rem;
  color: var(--cool);
  border: 1px solid rgba(136,120,208,.25);
  border-radius: var(--radius);
  padding: .25rem .65rem;
  transition: opacity .15s, background .15s;
}
.story-card__dzen:hover { opacity: .85; background: rgba(136,120,208,.1); }

@media (max-width: 640px) {
  .book__header { grid-template-columns: 1fr; }
  .book__cover-placeholder,
  .book__cover { width: 120px; margin: 0 auto; }
}

/* ══════════════════════════════════════
   FOLLOW SECTION
   ══════════════════════════════════════ */
.follow {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-surface);
  text-align: center;
}

.follow__title { margin-bottom: .5rem; }

.follow__sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.follow__primary {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.follow__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 320px;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}

.follow__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

.follow__card--ym {
  background: linear-gradient(135deg, #1a1400, #2a2200);
  border-color: rgba(255,204,0,.25);
  color: var(--ym-yellow);
}

.follow__card--yt {
  background: linear-gradient(135deg, #140000, #200000);
  border-color: rgba(255,60,60,.2);
  color: #ff5555;
}

.follow__card-icon {
  font-size: 2rem;
  line-height: 1;
}

.follow__card-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}

.follow__card-action {
  font-size: .85rem;
  opacity: .7;
}

.follow__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}

.follow__pill {
  padding: .5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .875rem;
  color: var(--text-muted);
  transition: color .15s, border-color .15s;
  text-decoration: none;
}

.follow__pill:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.25);
}

.footer__legal {
  margin-top: .4rem;
  font-size: .75rem;
  color: var(--text-dim);
}

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.footer {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 5rem;
  margin-bottom: 3rem;
}

.footer__block-label {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .85rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.footer__links a {
  color: var(--text-muted);
  font-size: .95rem;
  transition: color .15s;
}
.footer__links a:hover { color: var(--text); }

.footer__email {
  color: var(--text-muted);
  font-size: .95rem;
  transition: color .15s;
}
.footer__email:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: .82rem;
  color: var(--text-dim);
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .hero__content,
  .hero__cover,
  .track-card,
  .about__inner {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .hero__content,
  .hero__cover { opacity: 1; transform: none; }

  .is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 7rem;
  }
  .hero__cover { justify-self: center; order: -1; }
  .hero__cover-img { width: clamp(160px, 55vw, 240px); }
  .hero__secondary { justify-content: center; }

  .about__inner { grid-template-columns: 1fr; }
  .about__photo-wrap { display: flex; justify-content: center; }
  .about__photo { width: clamp(180px, 60vw, 300px); }
  .about__text p { max-width: none; }

  .footer__inner { gap: 2rem; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 2.6rem; }
  .hero__inner { padding-top: 6rem; }
  .btn--ym { width: 100%; justify-content: center; }
  .hero__secondary { flex-direction: column; align-items: center; }
  .hero__secondary .btn--sm { width: 100%; justify-content: center; }
}
