/* ══════════════════════════════════════════════════════
   Zecchinetta — shared styles for inner pages
   ══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'BlackBox';
  src: url('210BlackBox.ttf') format('truetype');
}

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

:root {
  --bg:    #92adcb;
  --gold:  #d8cb72;
  --mauve: #874e6c;
  --mauve-faint: rgba(135, 78, 108, 0.15);
}

html {
  min-height: 100vh;
  background: var(--bg); /* viewport fallback colour — visible before canvas draws */
}

body {
  min-height: 100vh;
  background: transparent; /* let canvas show through */
  color: var(--mauve);
  font-family: 'BlackBox', system-ui, sans-serif;
  line-height: 1.5;
}

/* ── Keyboard focus ring — visible only on keyboard nav, not mouse ── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Background animation canvas (sub-pages) ── */
#canvas-container {
  position: fixed;
  inset: 0;
  z-index: -1; /* definitively behind all page content */
}
#canvas-container canvas { display: block; width: 100% !important; height: 100% !important; }

/* ── Page layout ── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Shared page header (inner pages) ── */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  padding: 1.4rem 2rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.site-title {
  font-family: 'BlackBox', sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  color: var(--mauve);
  text-decoration: none;
  letter-spacing: 0.04em;
  line-height: 1;
  min-height: 44px; /* WCAG 2.5.5 touch target */
  display: flex;
  align-items: center;
  transition: opacity 0.15s ease;
}
.site-title:hover { opacity: 0.55; }

.back-arrow {
  font-family: 'BlackBox', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--mauve);
  text-decoration: none;
  line-height: 1;
  opacity: 0.65;
  min-height: 44px; /* WCAG 2.5.5 touch target */
  min-width: 44px;
  display: flex;
  align-items: center;
  transition: opacity 0.15s ease;
}
.back-arrow:hover { opacity: 1; }

/* ── Main content area ── */
/* padding-top clears the fixed .page-header (~7.5rem) */
.page-content {
  flex: 1;
  padding: 7.5rem 2.2rem 3rem;
  max-width: 1100px;
  width: 100%;
}

/* ── Page title ── */
.page-title {
  font-family: 'BlackBox', sans-serif;
  font-size: clamp(1.8rem, 5vw, 4rem);
  color: var(--mauve);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  line-height: 1;
}

/* ── Section titles ── */
.section-title {
  font-family: 'BlackBox', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);;
  color: var(--mauve);
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
  opacity: 0.75;
}

/* ── Gold accent line ── */
.gold-line {
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

/* ── Placeholder block ── */
.placeholder {
  border: 1.5px dashed var(--mauve);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  opacity: 0.5;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* ── Link card (platform buttons) ── */
.link-card {
  display: inline-flex;
  align-items: center;
  font-family: 'BlackBox', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--mauve);
  text-decoration: none;
  letter-spacing: 0.05em;
  min-height: 44px; /* WCAG 2.5.5 touch target */
  transition: opacity 0.15s ease;
}
.link-card:hover  { opacity: 0.55; }
.link-card:active { opacity: 0.35; }

/* ── Cards grid ── */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ── Agenda table ── */
.agenda-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.agenda-item {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(135, 78, 108, 0.2);
}

.agenda-date {
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.agenda-event {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.04em;
}

.agenda-event small {
  display: block;
  font-size: 0.8em;
  opacity: 0.55;
  margin-top: 0.15rem;
}

.agenda-link {
  font-family: 'BlackBox', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--mauve);
  text-decoration: none;
  min-height: 44px; /* WCAG 2.5.5 touch target */
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s ease;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.agenda-link:hover  { opacity: 0.55; }
.agenda-link:active { opacity: 0.35; }

/* ── Gallery grid ── */
.gallery-grid {
  columns: 3 220px;
  column-gap: 0.8rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.8rem;
  border-radius: 6px;
  overflow: hidden;
  background: var(--mauve-faint);
  border: 1px solid rgba(135, 78, 108, 0.2);
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
  border: 3px solid #fff;
}

.gallery-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0.35;
}

/* ── Contact ── */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-list li a {
  font-family: 'BlackBox', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--mauve);
  text-decoration: none;
  letter-spacing: 0.04em;
  min-height: 44px; /* WCAG 2.5.5 touch target */
  display: inline-flex;
  align-items: center;
  transition: opacity 0.15s ease;
}
.contact-list li a:hover  { opacity: 0.55; }
.contact-list li a:active { opacity: 0.35; }

/* ── Logo (fixed bottom-right) ── */
.site-logo {
  position: fixed;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 100;
  pointer-events: none;
}
.site-logo img {
  height: clamp(44px, 6vw, 72px);
  mix-blend-mode: multiply;
}

/* ── SoundCloud embed wrapper ── */
.sc-embed {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .page-header  { padding: 1rem 1.4rem 0.6rem; }
  .page-content { padding: 7rem 1.4rem 3rem; }

  .agenda-item {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .gallery-grid { columns: 2 140px; }
}
