/* ==========================================================================
   Music And Art Sindicate — site stylesheet
   Self-contained: no external fonts, scripts or CDNs are loaded.
   ========================================================================== */

/* ---- Fonts (self-hosted, subset to latin + latin-ext for Polish names) --- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

/* ---------------------------------- Tokens ------------------------------- */
:root {
  --color-bg: #d5eef2;
  --color-surface: #f5f5f5;
  --color-ink: #111111;
  --color-ink-soft: #6b6b6b;
  --color-ink-faint: #999999;
  --color-line: rgba(0, 0, 0, 0.1);
  --color-dark: #111111;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial,
    sans-serif;

  --container: 1320px;
  --side-pad: clamp(20px, 5vw, 64px);
  --section-space: clamp(56px, 9vw, 120px);
  --gap: clamp(16px, 3vw, 32px);

  --radius-card: 18px;
  --radius-control: 10px;
}

/* ---------------------------------- Base --------------------------------- */
body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

section {
  padding-top: var(--section-space);
}

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.lede {
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-ink-soft);
  max-width: 640px;
}

.lede + .lede { margin-top: 14px; }

/* ---------------------------------- Header ------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 24px var(--side-pad);
  max-width: var(--container);
  margin: 0 auto;
}

.site-header .logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.main-nav a {
  font-size: 14px;
  color: var(--color-ink-soft);
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-ink);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-row a {
  display: inline-flex;
  color: var(--color-ink-faint);
  transition: color 0.15s ease;
}

.social-row a:hover { color: var(--color-ink); }
.social-row svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg { width: 22px; height: 22px; }

/* ---------------------------------- Hero --------------------------------- */
.hero-banner {
  display: flex;
  justify-content: center;
  padding: 0 var(--side-pad);
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 950px;
  aspect-ratio: 53 / 40;
  object-fit: cover;
  border-radius: 18%;
}

/* ---------------------------------- Cards -------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: var(--color-ink-soft);
  line-height: 1.5;
}

/* ---------------------------------- Collage ------------------------------ */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.collage-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* ---------------------------------- Contact / forms ----------------------- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
}

.contact-section h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--color-ink-soft);
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  border-radius: var(--radius-control);
  padding: 12px 14px;
  font-size: 14px;
}

.field textarea { min-height: 110px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--color-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 22px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover { opacity: 0.85; }
.btn-block { width: 100%; }

.form-note {
  font-size: 12px;
  color: var(--color-ink-faint);
  margin-top: 10px;
}

/* ---------------------------------- CTA (services) ------------------------ */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cta-section .btn { margin-top: 22px; }

/* ---------------------------------- Events list --------------------------- */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
}

.events-list li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line);
}

.events-list .event-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.events-list p {
  font-size: 14px;
  color: var(--color-ink-soft);
}

/* ---------------------------------- Ticket signup -------------------------- */
.ticket-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

/* ---------------------------------- Gallery -------------------------------- */
.video-block {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-block iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.play-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: 0;
  cursor: pointer;
  width: 100%;
  padding: 0;
}

.play-button svg {
  width: 64px;
  height: 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.gallery-item {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: zoom-in;
  -webkit-appearance: none;
  appearance: none;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

/* ---------------------------------- Lightbox ------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.96);
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 72px 88px;
  pointer-events: none;
}

.lightbox-bg-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(60px);
  opacity: 0.22;
  transform: scale(1.1);
}

.lightbox-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  pointer-events: auto;
}

.lightbox-img.is-entering {
  animation: lb-img-in 0.22s cubic-bezier(0.2, 0, 0, 1) both;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
}

.lightbox-close svg { width: 18px; height: 18px; }

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev svg,
.lightbox-next svg { width: 22px; height: 22px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

@keyframes lb-open {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lb-img-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.lightbox:not([hidden]) {
  animation: lb-open 0.2s cubic-bezier(0.2, 0, 0, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox:not([hidden]),
  .lightbox-img.is-entering {
    animation: none;
  }
}

.highlights-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: end;
  margin-bottom: var(--gap);
}

.highlights-head h2 {
  font-size: 20px;
  font-weight: 600;
}

/* ---------------------------------- About page bio ------------------------- */
.flyer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  max-width: 760px;
}

.flyer-grid img { border-radius: var(--radius-card); }

.bio {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bio p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-ink-soft);
}

.bio ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
}

.bio li {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink);
}

.bio .closing strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.signoff {
  margin-top: var(--gap);
  display: flex;
  align-items: center;
  gap: 14px;
}

.signoff svg { width: 56px; height: 32px; color: var(--color-ink-faint); }
.signoff p { font-size: 13px; color: var(--color-ink-faint); }

/* ---------------------------------- Closing statement ----------------------- */
.statement h1 {
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 600;
  max-width: 820px;
  margin-bottom: 18px;
}

.statement .lede { max-width: 760px; }
.statement .lede + .lede { margin-top: 16px; }

/* ---------------------------------- Footer -------------------------------- */
.site-footer {
  margin-top: var(--section-space);
  border-top: 1px solid var(--color-line);
  padding: 48px var(--side-pad) 56px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: var(--gap);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 13px;
  color: var(--color-ink-soft);
  padding: 4px 0;
}

.footer-col a:hover { color: var(--color-ink); }

.footer-social {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
}

.footer-social a { color: var(--color-ink-faint); }
.footer-social svg { width: 18px; height: 18px; }

/* ---------------------------------- Utility ------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------- Responsive ----------------------------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .collage-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-section { grid-template-columns: 1fr; }
  .flyer-grid { grid-template-columns: 1fr; max-width: 360px; }
  .highlights-head { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-social { justify-content: flex-start; grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 8px var(--side-pad) 16px;
    display: none;
  }

  .main-nav a { padding: 10px 0; }

  .site-header { position: relative; }
  .site-header.is-open .main-nav { display: flex; }

  .site-header .social-row { display: none; }

  .lightbox-stage { padding: 64px 52px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-prev,
  .lightbox-next { width: 40px; height: 40px; }
}
