/* Kulin Ban — Festival of Arts and Culture */
/* Palette derived from the festival poster artwork */

:root {
  --navy: #0A1F44;
  --navy-soft: #132D52;
  --rust: #C73E1D;
  --rust-dark: #A33014;
  --sky: #7EB8DA;
  --sky-soft: #B8D7EB;
  --cream: #F5F3EF;
  --cream-dark: #EDE9E3;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5A5A5A;

  --font-display: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 0;
  --radius-sm: 4px;
  --shadow-soft: 0 12px 32px rgba(10, 31, 68, 0.12);
  --shadow-card: 0 4px 16px rgba(10, 31, 68, 0.08);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 22%, rgba(126, 184, 218, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 88% 78%, rgba(199, 62, 29, 0.05) 0%, transparent 40%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--rust);
  text-underline-offset: 0.15em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--rust);
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

/* Typography */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5em;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.15;
}

p {
  margin: 0 0 1.25em;
}

/* Layout helpers */

.container {
  width: min(92%, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

@media (min-width: 800px) {
  .section {
    padding: 7rem 0;
  }
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rust);
  margin-bottom: 0.75rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand:hover {
  color: var(--navy);
}

.brand .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.brand .brand-text span {
  color: var(--rust);
}

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-list a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-color: var(--rust);
  text-underline-offset: 0.2em;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle[aria-expanded="true"] {
  background: var(--navy);
  color: var(--white);
}

@media (min-width: 800px) {
  .nav-list {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream-dark);
  border-bottom: 2px solid var(--navy);
  padding: 1.5rem 0;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav .nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(92%, var(--max-width));
  margin-inline: auto;
}

/* Hero */

.hero {
  padding: 3rem 0 5rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

.hero-dates {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--rust);
  line-height: 1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-title {
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--navy-soft);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  max-width: 34ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.hero-meta strong {
  color: var(--navy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  box-shadow: var(--shadow-soft);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  background: var(--sky-soft);
  z-index: -1;
}

/* Program */

.program {
  background: var(--white);
  border-top: 1px solid rgba(10, 31, 68, 0.08);
  border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

.program-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.program-card {
  background: var(--cream);
  border-left: 4px solid var(--rust);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}

.program-card:hover {
  transform: translateY(-4px);
}

.program-card.highlight {
  border-left-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.program-card.highlight h3,
.program-card.highlight .program-day {
  color: var(--white);
}

.program-card.highlight .program-time {
  color: var(--sky-soft);
}

.program-day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.program-venue {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.program-card.highlight .program-venue {
  color: var(--sky-soft);
}

.program-time {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy-soft);
  margin-bottom: 0.5rem;
}

.program-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.program-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.program-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rust);
}

.program-card.highlight .program-list li::before {
  color: var(--sky);
}

/* About */

.about-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
  }
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.about-text {
  color: var(--text-muted);
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  box-shadow: var(--shadow-soft);
}

.about-media[data-lightbox] {
  cursor: pointer;
}

.about-media[data-lightbox]:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: -1rem 1rem 1rem -1rem;
  border: 3px solid var(--rust);
  z-index: -1;
}

/* Gallery */

.gallery {
  background: var(--navy);
  color: var(--white);
}

.gallery h2,
.gallery .section-label {
  color: var(--white);
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--navy-soft);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: var(--rust);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(10, 31, 68, 0.95), transparent);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  transform: translateY(0);
}

/* Locations */

.locations-grid {
  display: grid;
  gap: 1.5rem;
}

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

.location-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid rgba(10, 31, 68, 0.1);
  box-shadow: var(--shadow-card);
}

.location-card h3 {
  margin-bottom: 0.5rem;
}

.location-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.location-note {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rust);
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand span {
  color: var(--rust);
}

.footer-desc {
  color: rgba(255, 255, 255, 0.75);
  max-width: 32ch;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky-soft);
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.footer-contact a {
  color: var(--white);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 31, 68, 0.96);
  padding: 1.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: var(--white);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--rust);
  color: var(--white);
}

/* Utilities */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
