:root {
  color-scheme: dark;
  --black: #050706;
  --ink: #101612;
  --panel: #121c18;
  --panel-2: #182721;
  --teal: #00aeb3;
  --teal-bright: #28d7d2;
  --mint: #b8d0bc;
  --cream: #f0dfc4;
  --gold: #c4a46c;
  --muted: #aeb7ad;
  --line: rgba(40, 215, 210, 0.28);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 174, 179, 0.16), transparent 30rem),
    linear-gradient(135deg, #050706 0%, #0c1512 52%, #050706 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(240, 223, 196, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 223, 196, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--teal-bright);
  outline-offset: 4px;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--black);
  background: var(--cream);
  border-radius: 7px;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(5, 7, 6, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: cover;
  border: 2px solid var(--teal-bright);
  border-radius: 50%;
}

.brand-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--black);
  background: var(--teal-bright);
  border: 2px solid var(--cream);
  border-radius: 50%;
  font-family: BioRhyme, serif;
  font-weight: 800;
}

.nav-links {
  gap: clamp(0.7rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--teal-bright);
}

.hero,
.details-band,
.map-section,
.vendors-section,
.info-strip,
.upcoming-section,
.terms-section,
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 3rem 0;
}

.hero-content {
  padding: 2rem 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
strong {
  color: var(--cream);
}

h1,
h2 {
  margin: 0;
  font-family: BioRhyme, Georgia, serif;
  line-height: 1.02;
}

h1 {
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 7.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.hero-copy,
.section-heading p,
.map-copy p,
.detail-card p,
.info-strip span,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  max-width: 650px;
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--black);
  background: var(--teal-bright);
  border-color: var(--teal-bright);
}

.button.secondary {
  color: var(--cream);
  background: rgba(240, 223, 196, 0.06);
}

.flyer-panel {
  margin: 0;
}

.flyer-panel a {
  display: grid;
  gap: 0.75rem;
  color: var(--teal-bright);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.flyer-panel img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.details-band,
.vendors-section,
.upcoming-section,
.terms-section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.8rem;
}

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

.detail-card,
.address-card,
.vendor-slot,
.info-strip > div {
  background: linear-gradient(180deg, rgba(24, 39, 33, 0.95), rgba(11, 18, 16, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-card {
  min-height: 12rem;
  padding: 1.2rem;
}

.detail-label {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--teal-bright);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-card strong {
  display: block;
  min-height: 3.4rem;
  font-family: BioRhyme, serif;
  font-size: 1.25rem;
  line-height: 1.28;
}

.detail-card p {
  margin: 0.7rem 0 0;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 1.2rem;
  align-items: stretch;
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.map-copy {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(240, 223, 196, 0.04);
  border: 1px solid rgba(240, 223, 196, 0.12);
  border-radius: 8px;
}

.address-card {
  display: grid;
  gap: 0.3rem;
  margin-top: 1.5rem;
  padding: 1rem;
}

.address-card a {
  width: fit-content;
  margin-top: 0.5rem;
  color: var(--teal-bright);
  font-weight: 800;
}

.map-frame {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 1.2rem;
  align-items: start;
}

.seating-chart {
  margin: 0;
  padding: clamp(0.65rem, 2vw, 1rem);
  background: rgba(5, 7, 6, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.seating-chart img,
.editable-chart img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.seating-chart figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.vendor-directory,
.terms-grid article {
  background: linear-gradient(180deg, rgba(24, 39, 33, 0.95), rgba(11, 18, 16, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vendor-directory {
  padding: 1.2rem;
}

.terms-grid h3 {
  margin: 0 0 0.75rem;
  color: var(--cream);
  font-family: BioRhyme, serif;
  font-size: 1.22rem;
  line-height: 1.25;
}

.public-chart,
.editable-chart {
  position: relative;
}

.vendor-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vendor-pin {
  position: absolute;
  display: grid;
  aspect-ratio: 1;
  min-width: 2.75rem;
  place-items: center;
  padding: 0.2rem;
  overflow: visible;
  color: var(--black);
  background: rgba(240, 223, 196, 0.92);
  border: 2px solid var(--teal-bright);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  font-weight: 900;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  touch-action: none;
}

.vendor-pin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  overflow: hidden;
}

.vendor-pin-number {
  position: absolute;
  right: -0.45rem;
  bottom: -0.45rem;
  z-index: 2;
  display: grid;
  min-width: 1.7rem;
  min-height: 1.7rem;
  place-items: center;
  padding: 0.15rem 0.3rem;
  color: var(--black);
  background: var(--teal-bright);
  border: 2px solid var(--cream);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.vendor-directory {
  margin-top: 0;
}

.compact-heading {
  margin-bottom: 1rem;
}

.compact-heading h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.vendor-controls {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.vendor-controls label {
  display: grid;
  gap: 0.35rem;
  color: var(--cream);
  font-weight: 800;
}

.vendor-controls input,
.vendor-controls select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.65rem;
  color: var(--cream);
  background: rgba(5, 7, 6, 0.78);
  border: 1px solid rgba(240, 223, 196, 0.22);
  border-radius: 7px;
}

.vendor-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.vendor-card {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.85rem;
  min-height: 6.5rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(24, 39, 33, 0.95), rgba(11, 18, 16, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.vendor-card h3 {
  margin: 0;
  color: var(--cream);
  font-family: BioRhyme, serif;
  font-size: 1.05rem;
  line-height: 1.25;
}

.vendor-card p,
.empty-state,
.form-status,
.admin-chart-header p,
.admin-vendor-row small {
  color: var(--muted);
  line-height: 1.55;
}

.vendor-card p {
  margin: 0.25rem 0 0;
}

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

.upcoming-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(24, 39, 33, 0.95), rgba(11, 18, 16, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.upcoming-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.upcoming-card > div {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.upcoming-card h3 {
  margin: 0;
  color: var(--cream);
  font-family: BioRhyme, serif;
  font-size: 1.25rem;
  line-height: 1.25;
}

.upcoming-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.vendor-card-logo,
.dialog-logo,
.admin-vendor-logo {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: var(--black);
  background: var(--cream);
  border: 2px solid var(--teal-bright);
  border-radius: 50%;
  font-weight: 900;
}

.vendor-card-logo img,
.dialog-logo img,
.admin-vendor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vendor-dialog {
  width: min(92vw, 420px);
  padding: 1.4rem;
  color: var(--cream);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.vendor-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-close {
  float: right;
  min-height: 2.4rem;
  padding: 0.5rem 0.8rem;
  color: var(--cream);
  background: rgba(240, 223, 196, 0.08);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.dialog-logo {
  width: 6rem;
  margin: 1.2rem 0 1rem;
}

.vendor-dialog h2 {
  font-size: 2rem;
}

.dialog-table,
.dialog-username {
  color: var(--teal-bright);
  font-weight: 800;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 0 clamp(3rem, 7vw, 5rem);
}

.info-strip > div {
  min-height: 8rem;
  padding: 1.1rem;
}

.info-strip strong,
.info-strip span {
  display: block;
}

.info-strip strong {
  margin-bottom: 0.55rem;
  font-family: BioRhyme, serif;
  font-size: 1.15rem;
}

.terms-section {
  padding-top: 1rem;
}

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

.terms-grid article {
  min-height: 13rem;
  padding: 1.2rem;
}

.terms-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
}

.site-footer p {
  margin: 0;
}

.footer-copy {
  display: grid;
  max-width: 520px;
  gap: 0.65rem;
}

.link-button {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.admin-shell {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.admin-login {
  max-width: 560px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.34fr) minmax(0, 0.66fr);
  gap: 1rem;
  align-items: start;
}

.admin-form,
.admin-event-panel,
.admin-chart-panel,
.admin-vendor-list {
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(24, 39, 33, 0.95), rgba(11, 18, 16, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.admin-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--cream);
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.7rem;
  color: var(--cream);
  background: rgba(5, 7, 6, 0.78);
  border: 1px solid rgba(240, 223, 196, 0.22);
  border-radius: 7px;
}

.checkbox-label {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-label input {
  width: auto;
  min-height: auto;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button.danger {
  color: var(--cream);
  background: rgba(168, 55, 55, 0.34);
  border-color: rgba(255, 135, 135, 0.44);
}

.admin-chart-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-chart-header h2,
.admin-vendor-list h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.editable-chart {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-pin {
  cursor: grab;
}

.admin-pin.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(196, 164, 108, 0.26), 0 10px 28px rgba(0, 0, 0, 0.38);
}

.admin-vendor-list {
  margin-top: 1rem;
}

.admin-event-panel {
  margin-bottom: 1rem;
}

.event-form,
.upcoming-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.upcoming-admin-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.vendor-list-admin {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-vendor-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem;
  color: var(--cream);
  text-align: left;
  background: rgba(240, 223, 196, 0.05);
  border: 1px solid rgba(240, 223, 196, 0.14);
  border-radius: 8px;
  cursor: pointer;
}

.admin-vendor-row.active {
  border-color: var(--teal-bright);
}

.admin-vendor-logo {
  width: 3.2rem;
}

.admin-vendor-row strong,
.admin-vendor-row small {
  display: block;
}

@media (max-width: 920px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .admin-grid,
  .hero,
  .map-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .flyer-panel {
    max-width: 560px;
  }

  .chart-layout,
  .detail-grid,
  .info-strip,
  .upcoming-list,
  .vendor-list,
  .vendor-list-admin,
  .upcoming-admin-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero,
  .details-band,
  .map-section,
  .vendors-section,
  .info-strip,
  .terms-section,
  .site-footer {
    width: min(100% - 1rem, 1180px);
  }

  h1 {
    font-size: clamp(2.45rem, 15vw, 4.4rem);
  }

  .detail-grid,
  .info-strip,
  .upcoming-list,
  .terms-grid,
  .vendor-list,
  .vendor-list-admin,
  .upcoming-admin-list,
  .event-form,
  .upcoming-form {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    width: min(100% - 1rem, 1380px);
  }

  .admin-chart-header {
    display: block;
  }

  .wide-field {
    grid-column: auto;
  }

  .detail-card {
    min-height: auto;
  }

  .detail-card strong {
    min-height: auto;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 360px;
  }
}
