:root {
  --bg: #faf8f4;
  --panel: #ffffff;
  --line: #e8e3d9;
  --ink: #0f0f0f;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --accent: #b0432a;
  --accent-dark: #8a3220;
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

a { color: var(--ink); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent); }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.75rem;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 4rem 1.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/images/photo-1.JPG') center/cover no-repeat;
  transform: scale(1.05);
  filter: brightness(0.55) saturate(0.95);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.85) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { color: rgba(255,255,255,0.75); }
.hero h1 {
  font-size: clamp(3rem, 11vw, 8rem);
  font-weight: 900;
  color: #fff;
  line-height: 0.95;
  margin: 0.25rem 0 1rem;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin: 0 0 2rem;
}
.cta {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  z-index: 2;
  animation: bounce 2.4s infinite ease-in-out;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  width: 100%;
  height: clamp(400px, 65vh, 640px);
  overflow: hidden;
  background: #0e0e0e;
  perspective: 1600px;
}
.carousel-track {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.carousel-track img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(240px, 34vw, 420px);
  height: clamp(320px, 50vh, 540px);
  margin-left: calc(clamp(240px, 34vw, 420px) / -2);
  margin-top: calc(clamp(320px, 50vh, 540px) / -2);
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.7);
  transition: transform 0.7s cubic-bezier(.2,.7,.3,1), opacity 0.7s ease, filter 0.7s ease;
  backface-visibility: hidden;
  cursor: pointer;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: 20;
  backdrop-filter: blur(6px);
}
.carousel-btn:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.5); }
.carousel-btn.prev { left: 1.5rem; }
.carousel-btn.next { right: 1.5rem; }
.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 20;
}
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, width 0.2s ease;
}
.carousel-dot.active { background: #fff; width: 22px; border-radius: 4px; }

/* ---------- Sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 6rem 1.75rem;
}
.section-alt { max-width: 1180px; }
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.5rem;
}
.section-head .lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Shows ---------- */
.shows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.show-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}
.show-card:hover { background: rgba(176, 67, 42, 0.04); padding-left: 1.25rem; padding-right: 1.25rem; }

.show-date { text-align: left; }
.show-date .month {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.72rem;
}
.show-date .day {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-heading);
  color: var(--ink);
  margin: 0.2rem 0;
}
.show-date .year { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.05em; }

.show-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
}
.show-info .city {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.show-info .notes {
  font-size: 0.85rem;
  margin-top: 0.4rem;
  color: var(--muted);
  font-style: italic;
}

.show-actions a {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.show-actions a:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }

.no-shows {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  font-style: italic;
  border-bottom: 1px solid var(--line);
}

/* ---------- Map ---------- */
#map {
  height: 500px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.contact-links a {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.contact-links a:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-inner a { color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; }
.footer-inner a:hover { color: var(--accent); }

/* ---------- Admin ---------- */
.admin-wrap {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.75rem;
}
.admin-wrap h1 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}
.admin-wrap > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }
.admin-wrap h2 { font-size: 1.35rem; margin: 2.5rem 0 1rem; }

form.admin {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.75rem;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  box-shadow: var(--shadow);
}
form.admin label {
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
form.admin input, form.admin textarea {
  margin-top: 0.4rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 8px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form.admin input:focus, form.admin textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 67, 42, 0.15);
}
form.admin .full { grid-column: 1 / -1; }
form.admin button {
  grid-column: 1 / -1;
  padding: 0.95rem;
  background: var(--ink);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  font-size: 0.85rem;
  transition: background 0.15s ease;
}
form.admin button:hover { background: var(--accent); }

#pickMap {
  height: 340px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.picked { font-size: 0.8rem; color: var(--muted); }

.admin-list { display: grid; gap: 0.5rem; }
.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
  border-radius: 10px;
}
.admin-row button {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-row button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav { padding: 0.7rem 1.25rem; }
  .nav-brand span { display: none; }
  .nav-links { gap: 1.1rem; }
  .section { padding: 4rem 1.25rem; }
  .show-card {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    padding: 1.25rem 0.25rem;
  }
  .show-card:hover { padding-left: 0.5rem; padding-right: 0.5rem; }
  .show-date .day { font-size: 1.9rem; }
  .show-actions { grid-column: 1 / -1; }
  form.admin { grid-template-columns: 1fr; }
  #map { height: 380px; }
}

/* ---------- Admin top / tabs ---------- */
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-sub { color: var(--muted); font-size: 0.9rem; margin: 0; }
.admin-user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.admin-user a { color: var(--ink); }
.admin-user button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.admin-user button:hover { background: var(--ink); color: #fff; }

.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.tab {
  background: transparent;
  border: none;
  padding: 0.85rem 1.25rem;
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Theme form ---------- */
.theme-form input[type="color"] {
  width: 100%;
  height: 44px;
  padding: 3px;
  cursor: pointer;
  background: #fff;
}
.theme-form select {
  margin-top: 0.4rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 8px;
  color: var(--ink);
}
.theme-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  grid-column: 1 / -1;
}
.theme-buttons button {
  width: auto;
  padding: 0.75rem 1.5rem;
  grid-column: auto;
}
button.secondary {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
}
button.secondary:hover { background: var(--ink) !important; color: #fff !important; }

.ai-intro { color: var(--muted); margin-bottom: 1rem; font-size: 0.92rem; grid-column: 1 / -1; }
.ai-intro em { color: var(--ink); font-style: italic; }
.ai-proposal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.ai-proposal h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.ai-proposal pre {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  overflow: auto;
  max-height: 220px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.hidden { display: none; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1000;
  animation: toast-in 0.2s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Login page ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}
.auth-brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.auth-card h1 { font-size: 1.5rem; margin: 0 0 0.25rem; }
.auth-card label {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.auth-card input {
  margin-top: 0.4rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 8px;
  color: var(--ink);
}
.auth-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(176, 67, 42, 0.15);
}
.auth-card button {
  padding: 0.85rem;
  background: var(--ink);
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 0.25rem;
}
.auth-card button:hover { background: var(--accent); }
.auth-error {
  color: var(--accent-dark);
  font-size: 0.85rem;
  min-height: 1em;
}
.auth-hint { color: var(--muted); font-size: 0.8rem; text-align: center; margin: 0; }
