/* ============================================================
   Ukrainian Voices — folk-watercolour design system
   ============================================================ */

:root {
  /* Palette */
  --ivory:      #fbf7ee;
  --cream:      #f4ecdb;
  --cream-deep: #ece0c8;
  --ink:        #2b2620;
  --ink-soft:   #54493b;
  --muted:      #897c66;

  --blue:       #2f6fb0;
  --blue-deep:  #1e4475;
  --blue-bright:#0057b7;
  --gold:       #f4b23e;
  --gold-deep:  #d9912a;
  --yellow:     #ffd500;
  --poppy:      #d7402f;
  --green:      #5c7d52;

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing & shape */
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:     0 18px 50px -24px rgba(40, 30, 12, .35);
  --shadow-sm:  0 8px 26px -16px rgba(40, 30, 12, .35);
  --maxw: 1160px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue-deep); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.7rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  letter-spacing: .01em; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary  { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover  { background: var(--blue-deep); }
.btn--gold     { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-deep); }
.btn--ghost    { background: transparent; color: var(--blue-deep); border-color: rgba(30, 68, 117, .35); }
.btn--ghost:hover { background: rgba(47, 111, 176, .08); border-color: var(--blue); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem var(--gutter);
  background: rgba(251, 247, 238, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(140, 120, 80, .14);
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--blue-deep); }

.nav { display: flex; align-items: center; }
.nav__menu { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  padding: .5rem .85rem; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.nav__menu a:hover { background: rgba(47, 111, 176, .1); color: var(--blue-deep); }
.nav__cta { background: var(--blue); color: #fff !important; }
.nav__cta:hover { background: var(--blue-deep) !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ---------- Layout helpers ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__title { font-size: clamp(1.9rem, 4.5vw, 3rem); color: var(--ink); }
.kicker {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em;
  font-size: .76rem; font-weight: 600; color: var(--gold-deep); margin: 0 0 .6rem;
}
.kicker--light { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) clamp(3rem, 8vw, 6rem);
  min-height: min(86vh, 760px);
}
.hero__bloom { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; pointer-events: none; }
.hero__bloom--blue { width: 460px; height: 460px; background: radial-gradient(circle, rgba(47,111,176,.5), transparent 70%); top: -120px; left: -120px; }
.hero__bloom--gold { width: 520px; height: 520px; background: radial-gradient(circle, rgba(244,178,62,.55), transparent 70%); bottom: -180px; right: -120px; }

.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em;
  font-size: .78rem; font-weight: 600; color: var(--blue-deep); margin: 0 0 1.1rem;
}
.hero__title {
  font-size: clamp(3rem, 9vw, 6rem); line-height: .98; color: var(--blue-deep);
  font-weight: 600; letter-spacing: -.02em; margin-bottom: 1.25rem;
}
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 30rem; }
.hero__native { font-family: var(--serif); font-style: italic; color: var(--gold-deep);
  font-size: clamp(1.3rem, 3.2vw, 1.75rem); margin: -.5rem 0 1.15rem; letter-spacing: .01em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.hero__photo { position: relative; z-index: 2; margin: 0; }
.hero__photo figcaption { text-align: center; margin-top: .8rem; font-size: .85rem; color: var(--muted); font-style: italic; }

/* floating petals in hero — small edge-anchored accents, behind the text */
.petal { position: absolute; z-index: 1; pointer-events: none; opacity: .55; }
.petal--1 { width: 56px; height: 56px; top: 9%;  right: 7%; }
.petal--2 { width: 70px; height: 70px; bottom: 7%; left: 1%; opacity: .5; }
.petal--3 { width: 44px; height: 44px; top: 6%;  left: 4%; opacity: .5; }
.petal--4 { width: 46px; height: 46px; bottom: 12%; right: 5%; opacity: .5; }

/* ---------- Photo slots (placeholders until originals arrive) ---------- */
.photo-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(47,111,176,.14), transparent 60%),
    radial-gradient(120% 120% at 80% 90%, rgba(244,178,62,.20), transparent 60%),
    var(--cream);
  border: 1.5px dashed rgba(140,120,80,.4);
  color: var(--muted); box-shadow: var(--shadow-sm); overflow: hidden;
}
.photo-slot svg { width: 54px; height: 54px; opacity: .85; }
.photo-slot span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.photo-slot--hero { aspect-ratio: 4 / 5; }

/* Real images in flow (hero / about) */
.photo-frame { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Divider ---------- */
.divider { display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 1rem; }
.divider::before, .divider::after {
  content: ""; height: 1px; width: min(28vw, 220px);
  background: linear-gradient(to right, transparent, rgba(140,120,80,.5), transparent);
}
.divider__fl { width: 34px; height: 34px; opacity: .9; }
.divider__fl:nth-child(2) { width: 44px; height: 44px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__text p { color: var(--ink-soft); font-size: 1.06rem; }
.about__meta { margin-top: 1.4rem; font-size: .98rem; color: var(--muted); }
.about__photo { margin: 0; }
.about__photo .photo-slot { aspect-ratio: 1 / 1; }

/* ---------- Music cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.7rem;
  border: 1px solid rgba(140,120,80,.16); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { width: 56px; height: 56px; margin-bottom: 1rem; }
.card h3 { font-size: 1.35rem; margin-bottom: .5rem; color: var(--blue-deep); }
.card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery__item:not(.gallery__item--feature) img { aspect-ratio: 16 / 10; }
.gallery__item--feature { grid-column: 1 / -1; }
.gallery__item--feature img { aspect-ratio: 12 / 5; }
.gallery__item:hover img { transform: scale(1.04); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.timeline__item {
  display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; align-items: baseline;
  padding: 1.4rem 0; border-top: 1px solid rgba(140,120,80,.2);
}
.timeline__item:last-child { border-bottom: 1px solid rgba(140,120,80,.2); }
.timeline__date { font-family: var(--serif); font-weight: 600; color: var(--gold-deep); font-size: 1.05rem; }
.timeline__body h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: .2rem; }
.timeline__body p { margin: 0; color: var(--muted); }

/* ---------- Invite band ---------- */
.invite {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 60%, #2a619c);
  color: #fff; text-align: center;
}
.invite__inner { position: relative; z-index: 2; max-width: 42rem; margin: 0 auto; padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }
.invite .section__title { color: #fff; }
.invite__lead { color: rgba(255,255,255,.9); font-size: 1.1rem; margin: 1rem auto 2rem; }
.invite__cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.invite__fl { position: absolute; z-index: 1; opacity: .22; }
.invite__fl--1 { width: 180px; height: 180px; top: -40px; left: -30px; }
.invite__fl--2 { width: 150px; height: 150px; bottom: -40px; right: -20px; }

/* ---------- Follow ---------- */
.follow { text-align: center; }
.follow .section__head { margin-left: auto; margin-right: auto; }
.follow__lead { color: var(--ink-soft); }
.follow__links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.social {
  display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.6rem;
  background: #fff; border: 1px solid rgba(140,120,80,.18); border-radius: 999px;
  font-weight: 600; color: var(--blue-deep); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, color .2s;
}
.social:hover { transform: translateY(-2px); color: var(--blue-bright); box-shadow: var(--shadow); }
.social svg { width: 22px; height: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.8); }
.site-footer__top {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem,5vw,3.5rem) var(--gutter) 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center;
}
.site-footer__brand { display: flex; align-items: center; gap: .9rem; }
.site-footer__brand img { width: 48px; height: 48px; border-radius: 50%; }
.site-footer__name { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin: 0; }
.site-footer__native { margin: .1rem 0; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; }
.site-footer__tag { margin: 0; font-size: .9rem; }
.site-footer__links { display: flex; gap: 1.4rem; }
.site-footer__links a { font-weight: 500; }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__bottom {
  max-width: var(--maxw); margin: 0 auto; padding: 1.2rem var(--gutter) 2.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: .86rem;
}
.site-footer__bottom a { text-decoration: underline; text-underline-offset: 2px; }
.site-footer__bottom a:hover { color: var(--gold); }
.site-footer__flag { margin: 0; font-weight: 600; color: var(--gold); letter-spacing: .02em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(20, 16, 10, .88); padding: 5vw; backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 4vh; right: 5vw; background: none; border: none; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(6deg); } }
.float-slow { animation: floaty 7s ease-in-out infinite; }
.petal--2.float-slow { animation-duration: 9s; }
.petal--3.float-slow { animation-duration: 8s; animation-delay: -2s; }
.petal--4.float-slow { animation-duration: 10s; animation-delay: -4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-slow { animation: none; }
  .btn:hover, .card:hover, .social:hover { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 3rem; }
  .hero__inner { order: 2; }
  .hero__photo { order: 1; max-width: 380px; margin: 0 auto; }
  .hero__sub, .hero__cta { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 460px; }
  .cards { grid-template-columns: 1fr; }
  .gallery__item--feature img { aspect-ratio: 2 / 1; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; z-index: 112; }
  .nav__menu {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh;
    width: min(80vw, 320px);
    flex-direction: column; align-items: stretch; gap: .35rem;
    background-color: #fbf7ee; border-left: 1px solid rgba(140,120,80,.18);
    padding: 5rem 1.4rem 2rem; box-shadow: -24px 0 70px -30px rgba(0,0,0,.45);
    transform: translateX(100%); transition: transform .32s ease; z-index: 111;
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a { display: block; width: 100%; font-size: 1.08rem; padding: .75rem .85rem; }
  /* backdrop scrim — sits above the page content but below header + menu */
  body.nav-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(24, 18, 10, .42);
    z-index: 90; animation: fadein .3s ease;
  }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 540px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item img, .gallery__item--feature img { aspect-ratio: 16 / 10; }
  .timeline__item { grid-template-columns: 84px 1fr; gap: .8rem; }
  .site-footer__top { flex-direction: column; align-items: flex-start; }
}
