:root {
  --bg: #f4f2ed;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #55514a;
  --accent: #4f5f49;
  --line: #d8d3ca;
  --soft-line: #ebe6dc;
  --shadow: 24px 36px 70px -42px rgba(23, 23, 23, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.site-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px 32px 26px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  position: sticky;
  top: 0;
  background: linear-gradient(var(--bg) 86%, rgba(244, 242, 237, 0));
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
.site-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: baseline;
  gap: 28px;
}
.nav-link {
  display: inline-flex;
  align-items: baseline;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-current { color: var(--ink); border-color: var(--accent); }

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  padding-bottom: 18px;
  margin-bottom: -18px;
}
.nav-dropdown-toggle {
  gap: 5px;
}
.nav-caret {
  display: inline-block;
  font-size: 0.68rem;
  line-height: 1;
  transform: translateY(-1px) rotateX(0deg);
  transform-origin: 50% 45%;
  opacity: 1;
  transition: opacity 0.22s ease, transform 0.32s ease;
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown:focus-within .nav-caret,
.nav-dropdown.is-open .nav-caret {
  opacity: 0;
  transform: translateY(-4px) rotateX(90deg);
}
.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px -32px rgba(23, 23, 23, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.22s ease, visibility 0.18s ease;
}
.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu,
.nav-dropdown.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.dropdown-link {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft-line);
}
.dropdown-link:last-child { border-bottom: 0; }
.dropdown-link:hover {
  color: var(--accent);
  background: #f7f5f0;
}

/* ---------- Layout ---------- */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 36px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 20px;
}
.hero-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  max-width: 900px;
}
.hero-title .ital {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}
.hero-intro {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0;
}

/* ---------- Panels ---------- */
.panel { display: none; }
.panel.is-active { display: block; animation: fade 0.45s ease; }
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Gallery ---------- */
.gallery {
  columns: 3;
  column-gap: 24px;
}
.art {
  break-inside: avoid;
  margin: 0 0 24px;
  cursor: zoom-in;
  position: relative;
}
.art img {
  width: 100%;
  display: block;
  border-radius: 2px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(23, 23, 23, 0.08);
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.4s ease;
}
.art:hover img {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.art figcaption {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 12px 2px 0;
}

/* ---------- Placeholder panels ---------- */
.placeholder-panel {
  max-width: 900px;
  padding: 40px 0 80px;
}
.placeholder-panel h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}
.placeholder-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Prose (About / Contact) ---------- */
.prose { max-width: 640px; padding-top: 40px; }
.prose h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.prose p { font-size: 1.05rem; color: var(--muted); margin: 0 0 20px; }

.contact-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}
.contact-form label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(79, 95, 73, 0.22);
  border-color: var(--accent);
}
.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}
.contact-form button {
  justify-self: start;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 10px 20px;
  margin-top: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.contact-form button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.lightbox.is-open { display: flex; animation: lbfade 0.25s ease; }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage {
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lb-stage img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7);
}
.lb-stage figcaption {
  font-family: "Libre Baskerville", Georgia, serif;
  font-style: italic;
  color: #f4f2ed;
  font-size: 0.95rem;
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #f4f2ed;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-close {
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  font-size: 1.6rem; line-height: 1;
}
.lb-nav {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2rem; line-height: 1;
}
.lb-prev { left: 28px; }
.lb-next { right: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gallery { columns: 2; }
}
@media (max-width: 620px) {
  .site-header { padding: 24px 20px 18px; flex-direction: column; gap: 14px; align-items: flex-start; }
  .site-nav { gap: 18px; flex-wrap: wrap; }
  .nav-menu { left: 0; right: auto; }
  main { padding: 0 20px 72px; }
  .gallery { columns: 1; }
  .hero { padding: 32px 0 32px; }
  .placeholder-panel { padding: 32px 0 72px; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-close { top: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
