:root {
  --bg: #f5f5f3;
  --text: #3a3a3a;
  --muted: #7c7c7c;
  --border: #d7d0c8;
  --accent: #1c1c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.8), transparent 60%),
                    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.5), transparent 40%),
                    linear-gradient(180deg, #f5f5f3 0%, #f5f5f3 100%);
  min-height: 100vh;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header & Nav ── */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 24px;
}

.brand {
  text-decoration: none;
  color: inherit;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: inherit;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent);
  font-weight: 400;
}

nav a.active {
  color: var(--accent);
  font-weight: 400;
}

/* ── Shared ── */

.ghost-link {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.ghost-link:hover {
  color: var(--accent);
}

.tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #b5a48a;
  margin: 0 0 14px;
}

/* ── Gallery ── */

.gallery-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  padding: 64px 0 0;
  align-items: start;
}

.gallery-copy h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}

.gallery-copy p:not(.tagline) {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--muted);
}

/* ── Carousel ── */

.carousel {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 24px;
}

.carousel .slides {
  display: grid;
}

.slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: none;
}

.slide figcaption {
  text-align: center;
  margin-top: 16px;
  display: block;
  padding: 14px 12px 12px 12px;
  min-height: 80px;
  overflow: visible;
}

.slide .piece-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
}

.slide .piece-meta {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  color: #b6b1a9;
  line-height: 1.15;
  font-style: italic;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: #b5a48a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.carousel-control:hover,
.carousel-control:focus {
  background: rgba(255,255,255,0.65);
  color: var(--accent);
}

.carousel-control.prev { left: -16px; }
.carousel-control.next { right: -16px; }

.carousel-progress-container {
  margin-top: -10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.carousel-progress-bar {
  width: 90%;
  max-width: 340px;
  height: 5px;
  background: #e5e1dc;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.carousel-progress {
  height: 100%;
  background: #b5a48a;
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

.carousel-fraction {
  font-size: 0.7rem;
  color: #b6b1a9;
  letter-spacing: 0.08em;
}


/* ── Featured ── */


.exhibition-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 72px 0 64px;
  align-items: start;
}

.exhibition-meta {
  position: sticky;
  top: 32px;
}

.exhibition-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
}

.exhibition-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 16px;
}

.exhibition-visit {
  display: inline-block;
  margin-top: 28px;
  letter-spacing: 0.15em;
}

.exhibition-img {
  width: 100%;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  filter: brightness(1.03) saturate(0.9);
}

/* ── Contact ── */

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 64px 0 48px;
  align-items: start;
}

.contact-intro h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

.contact-subtext {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--accent);
}

.contact-form textarea {
  resize: none;
  min-height: 100px;
}

.contact-submit {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ── Share / QR ── */

.qr-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 64px 0 48px;
}

.qr-code {
  width: 200px;
  height: 200px;
  opacity: 0.75;
  display: block;
  margin-top: 20px;
}

.qr-caption {
  margin: 48px 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.qr-domain {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #b6b1a9;
  margin: 0;
}

/* ── Footer ── */

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: auto;
  padding-bottom: 32px;
  gap: 0;
}

/* ── Responsive ── */

@media (max-width: 700px) {
  .exhibition-entry {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0 40px;
  }
  .exhibition-meta {
    position: static;
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
  }
  nav a {
    margin-left: 0;
    margin-right: 16px;
    font-size: 0.85rem;
  }
  .gallery-hero {
    gap: 32px;
    padding: 40px 0 0;
  }
  .carousel-control.prev { left: 4px; }
  .carousel-control.next { right: 4px; }
  .carousel-control {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .carousel {
    padding: 8px;
  }
  .slide figcaption {
    font-size: 0.85rem;
    padding: 4px 6px 2px 6px;
  }
  .contact-section {
    padding: 48px 0 32px;
  }
}
