/* Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #ffffff;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Menu button (hamburger) */
.menu-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.75);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  backdrop-filter: blur(4px);
}
.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Slide-out nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  max-width: 80vw;
  background: #ffffff;
  box-shadow: 2px 0 12px rgba(0,0,0,0.08);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  padding: 80px 30px 30px;
}
.site-nav.open { transform: translateX(0); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 18px 0; }
.site-nav a {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #111;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-nav a:hover, .site-nav a.active { border-bottom-color: #111; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* Landing page */
.landing {
  height: 100vh;
  width: 100vw;
  background-image: url('../images/backgrounds/landing.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.landing h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 200;
  font-size: clamp(2.2rem, 7vw, 6rem);
  color: #fff;
  text-align: center;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  margin: 0;
  padding: 0 20px;
}

/* Content page wrapper */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px 80px;
}
.page h2 {
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 40px 0 20px;
}
.page-hero {
  width: 100%;
  margin-bottom: 32px;
}
.page p { font-size: 1.05rem; }
.page ul.news-list { padding-left: 1.2rem; }
.page ul.news-list li { margin-bottom: 14px; }

/* Artwork grid */
.artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.artwork-grid .tile {
  display: block;
  overflow: hidden;
  background: #f7f7f7;
  aspect-ratio: 1 / 1;
  position: relative;
}
.artwork-grid .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.artwork-grid .tile:hover img { transform: scale(1.03); }
.artwork-grid .tile .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.artwork-grid .tile:hover .caption { opacity: 1; }

/* Artwork detail */
.artwork-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 800px) {
  .artwork-detail { grid-template-columns: 1.2fr 1fr; }
}
.artwork-detail .meta dt { font-weight: 500; margin-top: 12px; }
.artwork-detail .meta dd { margin: 0 0 4px 0; }
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #111;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin-top: 20px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
  justify-self: start;
  padding: 10px 24px;
  background: #111;
  color: #fff;
  border: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
}
.contact-form button:hover { background: #333; }
.instagram-link {
  display: inline-block;
  margin-top: 30px;
  border-bottom: 1px solid #111;
  padding-bottom: 2px;
}

/* Loading/empty states */
.state-msg {
  color: #777;
  font-style: italic;
  margin-top: 20px;
}
