:root {
  color-scheme: light dark;
  --bg: #faf6f1;
  --card-bg: #fdfaf6;
  --card-border: #ffffff;
  --text: #241d17;
  --muted: #7c7064;
  --btn-bg: #fffdfb;
  --btn-border: #ece1d4;
  --btn-shadow: 0 1px 2px rgba(60, 40, 20, 0.06);
  --btn-shadow-hover: 0 6px 16px rgba(60, 40, 20, 0.10);
  --accent: #bd5b3a;
  --accent-contrast: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18130f;
    --card-bg: #211a15;
    --card-border: #382d23;
    --text: #f5efe7;
    --muted: #b3a695;
    --btn-bg: #221b15;
    --btn-border: #362c22;
    --btn-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --btn-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.45);
    --accent: #e0895f;
    --accent-contrast: #1c130b;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  padding: 48px 16px 32px;
}

main.card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--btn-shadow);
}

h1 {
  font-size: 1.35rem;
  margin: 16px 0 0;
}

p.artist {
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

p.bio {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 34ch;
}

/* Social pills */
.social-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

a.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--btn-shadow);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

a.social-pill:hover,
a.social-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.85rem;
  background: var(--accent);
  object-fit: cover;
}

.social-icon--email { background: var(--accent); }

/* Link buttons */
nav.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

a.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  box-shadow: var(--btn-shadow);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

a.link-btn:hover,
a.link-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover);
  border-color: var(--accent);
}

a.link-btn:active {
  transform: translateY(0);
}

a.link-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

a.link-btn--primary:hover,
a.link-btn--primary:focus-visible {
  border-color: var(--accent);
  filter: brightness(1.05);
}

.cta-arrow {
  flex-shrink: 0;
  transition: transform 150ms ease;
}

a.link-btn--primary:hover .cta-arrow,
a.link-btn--primary:focus-visible .cta-arrow {
  transform: translate(2px, -2px);
}

footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.75rem;
}

footer a {
  color: inherit;
}

/* Page sections */
section.program,
section.gallery {
  width: 100%;
  text-align: left;
}

section.program h2,
section.gallery h2 {
  font-size: 1rem;
  margin: 0 0 14px;
}

section.gallery {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--btn-border);
}

section.program {
  margin-top: 24px;
  padding: 24px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: var(--btn-shadow);
}

.program p {
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 14px;
}

.program p.schedule-line {
  color: var(--accent);
  font-weight: 600;
}

.price-badge-wrap {
  margin: 0 0 14px;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

.program p.closing {
  color: var(--muted);
}

.program ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program ul li {
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
  color: var(--text);
}

.program ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Gallery */
.gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

button.gallery-thumb {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  display: block;
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--btn-shadow);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

button.gallery-thumb:hover img,
button.gallery-thumb:focus-visible img {
  transform: scale(1.03);
  box-shadow: var(--btn-shadow-hover);
}

.gallery-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--btn-bg);
  border: 1px dashed var(--btn-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  opacity: 0.6;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(8px);
  max-width: calc(100% - 32px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  text-align: center;
  box-shadow: var(--btn-shadow-hover);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 50;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}
