:root {
  --black: #000000;
  --white: #ffffff;
  --bg: #eceae4;
  --line: #000000;
  --muted: #5a5a5a;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h3,
p {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

h2 {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-logo {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.site-nav a {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  justify-self: end;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--black);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 900px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(88vh, 900px);
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem) clamp(2rem, 5vw, 4rem);
  max-width: 42rem;
  color: var(--white);
}

.hero .label,
.hero h1,
.hero-lead {
  color: var(--white);
}

.label,
.stat-label,
.sidebar-note,
.stat-note,
.past-when {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1,
.panel-section h2,
.admin-title {
  font-size: clamp(3.5rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-lead {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 400;
  line-height: 1.55;
  max-width: 36rem;
}

.hero-actions,
.join-links,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--black);
}

.btn-fill {
  background: var(--black);
  color: var(--white);
}

.btn-light.btn-fill {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-light.btn-outline {
  color: var(--white);
  border-color: var(--white);
}

/* Panels */
.panel-section {
  border-bottom: 1px solid var(--line);
}

.numbers-section {
  border-bottom: none;
}

.tour-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  min-height: 0;
}

.tour-sidebar {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(0.875rem, 2vw, 1.5rem);
  border-right: 1px solid var(--line);
}

.tour-sidebar h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-note {
  margin-top: 0.75rem;
}

.sidebar-cta {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
}

.sidebar-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tour-content {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}

.panel-head {
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
}

.panel-head-plain {
  border-bottom: 0;
}

.panel-head h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
}

.stat strong {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.stat-note {
  margin-top: 0.35rem;
}

/* Gallery */
.gallery-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.gallery-section img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-right: 1px solid var(--line);
}

.gallery-section img:last-child {
  border-right: 0;
}

/* Tour list */
.tour-content-flush {
  padding-top: 0;
  padding-bottom: 0;
}

.tour-list {
  border-top: none;
}

.tour-list-plain {
  border-top: 0;
}

.tour-date {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  transition: background 0.12s ease;
  cursor: default;
}

.tour-date:hover {
  background: rgba(0, 0, 0, 0.04);
}

.tour-date:last-child {
  border-bottom: none;
}

.tour-date-past {
  grid-template-columns: 5.5rem minmax(0, 1fr);
}

.tour-date-when {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tour-day {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.tour-month {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tour-date-info {
  min-width: 0;
}

.tour-date h3 {
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.tour-date p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 48rem;
}

.tour-tickets {
  min-width: 7.5rem;
  white-space: nowrap;
}

.empty-state {
  padding: 1.25rem 0;
  color: var(--muted);
}

.past-section .tour-content {
  padding-top: 0;
}

/* Press */
.press-copy {
  display: grid;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  max-width: 48rem;
}

.press-copy p {
  max-width: 48rem;
}

/* Reactions */
.reaction-scroll-wrap {
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

.reaction-scroll {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: grab;
}

.reaction-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.reaction-scroll::-webkit-scrollbar {
  display: none;
}

.reaction-item {
  position: relative;
  flex: 0 0 min(240px, 72vw);
  width: min(240px, 72vw);
  aspect-ratio: 9 / 16;
  background: #d8d6d0;
  cursor: pointer;
}

.reaction-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reaction-item video.is-unmuted {
  outline: 2px solid var(--black);
  outline-offset: -2px;
}

.reaction-views {
  position: absolute;
  bottom: 0.55rem;
  right: 0.55rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  pointer-events: none;
  user-select: none;
}

/* Join / Booking */
.join-panel p {
  max-width: 560px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
}

.email-reveal {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.01em;
}


/* Socials */
.social-section {
  border-bottom: none;
}

.social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 80px;
  padding: 1.5rem 1rem;
  color: var(--black);
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.social-link:last-child {
  border-right: none;
}

.social-link svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.social-img {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.social-link span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner a {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Admin */
.admin-main {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 6rem clamp(1rem, 4vw, 2.5rem) 4rem;
}

.admin-title {
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
}

.admin-card {
  margin-top: 1.5rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--white);
}

.admin-card[hidden],
.admin-help[hidden] {
  display: none;
}

.admin-form,
.login-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--black);
  padding: 0.75rem 1rem;
  outline: 0;
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--black);
  outline-offset: -2px;
}

.form-message {
  min-height: 1.4rem;
  font-weight: 700;
}

.admin-list {
  display: grid;
  gap: 0;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.admin-date-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.admin-date-row h3 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-help {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.button-primary {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.button-ghost {
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  color: var(--black);
}

.button-danger {
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--white);
  min-height: 2.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.section-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Admin page nav aliases */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

.nav.scrolled {
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-video {
    display: none;
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-link {
    min-width: 60px;
    padding: 1.25rem 0.75rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .site-nav a {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Tour layout: sidebar stacks above content */
  .tour-layout {
    grid-template-columns: 1fr;
  }

  .tour-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 1rem;
  }

  /* Sidebar heading is now full-width — let it breathe */
  .tour-sidebar h2 {
    font-size: clamp(2rem, 7vw, 2.75rem);
    white-space: normal;
  }

  .sidebar-note,
  .sidebar-cta {
    display: inline;
    margin-top: 0;
  }

  .sidebar-cta::before {
    content: ' · ';
  }

  /* Tour date rows: keep date + info side-by-side, tickets full-width below */
  .tour-date {
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.875rem;
    align-items: start;
  }

  .tour-date-past {
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.875rem;
    align-items: start;
  }

  .tour-day {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .tour-date h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.75rem);
  }

  .tour-tickets {
    grid-column: 1 / -1;
    justify-self: start;
  }

  /* Gallery: 1 column */
  .gallery-section {
    grid-template-columns: 1fr;
  }

  .gallery-section img {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 240px;
  }

  .gallery-section img:last-child {
    border-bottom: 0;
  }

  /* Reactions */
  .reaction-item {
    flex-basis: min(200px, 72vw);
    width: min(200px, 72vw);
  }

  /* Press */
  .press-copy {
    font-size: 0.9375rem;
  }

  /* Booking */
  .join-links {
    flex-direction: column;
    align-items: stretch;
  }

  .join-links .btn {
    width: 100%;
    justify-content: center;
  }

  /* Forms */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  /* Stats: 2 columns, shorter cells */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    min-height: 8rem;
  }

  .stat strong {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  /* Socials bar: hide text labels, show only icons */
  .social-link {
    padding: 1.1rem 0;
    min-width: 0;
    flex: 1 1 0;
  }

  .social-link span {
    display: none;
  }

  .social-link svg,
  .social-img {
    width: 1.35rem;
    height: 1.35rem;
  }

  /* Hero buttons stack */
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Numbers heading smaller */
  .panel-head h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  /* Email reveal wraps cleanly */
  .email-reveal {
    font-size: 0.875rem;
    word-break: break-all;
  }

  .admin-actions {
    flex-direction: column;
  }

  .btn,
  .button,
  .button-primary,
  .button-ghost {
    width: 100%;
  }

  .admin-date-row {
    grid-template-columns: 1fr;
  }
}
