/* Shared visual refinement across the TRIBE OF US pages. */
:root {
  --night: #100b14;
  --blue: #24152d;
  --cyan: #55d8cf;
  --violet: #8d4f9e;
  --orange: #f4a35f;
  --acid: #e8f65a;
  --ink: #fff9f2;
  --muted: #c8bdce;
  --line: rgba(255, 242, 225, .17);
  --signal: #e8f65a;
}

html { scroll-behavior: smooth; }
body {
  background: #100b14;
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
::selection { color: #171016; background: var(--acid); }
a { text-underline-offset: .22em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

/* Keep navigation pinned to the viewport while scrolling. */
.nav {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 100 !important;
  padding: 0 !important;
  background: rgba(16, 11, 20, .94) !important;
  border-bottom: 1px solid rgba(255, 242, 225, .15);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav-inner { min-height: 78px; }
html { scroll-padding-top: 88px; }

main {
  background: linear-gradient(145deg, #100b14 0%, #1b1021 48%, #100d17 100%);
}
#events, #story, #archive, .community {
  background-color: #100b14;
  background-image:
    radial-gradient(ellipse at 86% 15%, rgba(244, 163, 95, .095), transparent 31%),
    radial-gradient(ellipse at 12% 82%, rgba(85, 216, 207, .055), transparent 32%),
    linear-gradient(145deg, #100b14 0%, #1c1122 54%, #100d17 100%);
}
.hero:before {
  background: linear-gradient(90deg, rgba(12, 8, 16, .78), rgba(12, 8, 16, .18) 62%, rgba(12, 8, 16, .4)),
    linear-gradient(0deg, #100b14 0%, transparent 38%);
}
.hero:after {
  background: radial-gradient(ellipse at 76% 28%, rgba(244, 163, 95, .24), transparent 23%),
    radial-gradient(ellipse at 44% 68%, rgba(85, 216, 207, .15), transparent 30%),
    radial-gradient(ellipse at 28% 35%, rgba(232, 246, 90, .1), transparent 24%);
}
.hero h1 { text-shadow: 0 3px 30px rgba(12, 8, 16, .5); }
.eyebrow { color: var(--acid); }
.button.primary {
  color: #121014;
  background: var(--acid);
  border-color: var(--acid);
  box-shadow: 0 8px 28px rgba(232, 246, 90, .16);
}
.button:not(.primary) { border-color: rgba(85, 216, 207, .74); }
.button:hover, .ticket:hover { transform: translateY(-1px); }

.section-top { gap: clamp(22px, 5vw, 72px); }
.section-lede { max-width: 34rem; line-height: 1.55; }
.event-list { border-color: transparent; }
.event-row {
  gap: clamp(16px, 2.5vw, 30px);
  border: 1px solid rgba(255, 242, 225, .14) !important;
  border-left: 3px solid var(--cyan) !important;
  background: linear-gradient(115deg, rgba(30, 20, 36, .97), rgba(20, 15, 26, .97)) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18) !important;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease !important;
}
.event-row:after { opacity: .45; }
.event-row:hover {
  padding: 24px !important;
  transform: none !important;
  border-color: rgba(85, 216, 207, .42) !important;
  border-left-color: var(--acid) !important;
  background: linear-gradient(115deg, rgba(39, 25, 44, .98), rgba(24, 17, 31, .98)) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .26) !important;
}
.event-date { color: var(--acid); }
.event-name span { color: var(--cyan); }
.event-flyer {
  border: 1px solid rgba(255, 242, 225, .26) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .23);
}
.ticket, .timetable-button {
  border-color: var(--acid);
  color: var(--acid);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.ticket:hover { background: var(--acid); color: #121014; }

.archive-year {
  border-color: rgba(255, 242, 225, .17);
  background: linear-gradient(145deg, rgba(44, 28, 51, .76), rgba(22, 17, 31, .9));
}
.archive-year:hover, .archive-year:focus-visible {
  border-color: rgba(232, 246, 90, .65);
  background: linear-gradient(145deg, rgba(57, 36, 58, .9), rgba(27, 20, 35, .95));
}

/* Use the existing campaign artwork as atmosphere, with a readable overlay. */
.community:after {
  inset: 0 !important;
  background: linear-gradient(90deg, rgba(16, 11, 20, .96) 0%, rgba(16, 11, 20, .75) 48%, rgba(16, 11, 20, .48) 100%),
    url('assets/tribe-hero-ocean.webp') center 54% / cover !important;
  opacity: .62 !important;
  filter: saturate(.88) contrast(1.06) !important;
}
.community .section-title { max-width: 14ch !important; }
.community p { color: var(--ink); }
.social { border-color: rgba(255, 242, 225, .22); background: rgba(16, 11, 20, .72); }
.social:hover { border-color: var(--acid); color: var(--acid); }

.footer-imprint { border-color: rgba(255, 242, 225, .14); }
footer { background: #0b080f; }

@media (max-width: 760px) {
  .nav-inner { min-height: 64px; }
  html { scroll-padding-top: 74px; }
  section { padding-block: clamp(64px, 13vw, 92px); }
  .event-row:hover { padding: 23px 18px 25px !important; }
  .event-flyer { max-width: min(100%, 280px); }
  .community:after {
    inset: 34% 0 0 !important;
    opacity: .38 !important;
    background: linear-gradient(180deg, #100b14 0%, rgba(16, 11, 20, .35) 46%, rgba(16, 11, 20, .7) 100%),
      url('assets/tribe-hero-ocean.webp') center / cover !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
