@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --paper: #f5eee4;
  --paper-deep: #eee3d5;
  --ink: #38332f;
  --muted: #82776e;
  --clay: #a85f45;
  --clay-dark: #854832;
  --sage: #78816c;
  --line: #e4d8c9;
  --white: #fffdf9;
  --shadow: 0 12px 35px rgba(67, 48, 34, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif; line-height: 1.55;
}
a { color: inherit; }
.site-header {
  background: rgba(255,253,249,.88); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1180px; margin: auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--clay); color: white; font: 600 23px "Playfair Display", Georgia, serif;
}
.brand strong { display: block; font: 600 21px "Playfair Display", Georgia, serif; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 25px; }
.main-nav a { text-decoration: none; color: #665c54; font-size: 13px; font-weight: 600; padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--clay-dark); border-color: var(--clay); }
.page-shell { max-width: 1180px; margin: 0 auto; padding: 52px 28px 80px; min-height: 70vh; }
.intro { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.eyebrow { color: var(--clay); text-transform: uppercase; letter-spacing: .19em; font-size: 11px; font-weight: 700; margin: 0 0 10px; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.15; margin: 0 0 14px; }
.intro-text { color: var(--muted); font-size: 15px; margin: 0 auto; max-width: 610px; }
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: 15px;
  box-shadow: var(--shadow); padding: 20px 22px;
}
.filters { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 auto 34px; }
.filter-form { display: flex; flex-wrap: wrap; align-items: end; gap: 15px; flex: 1; }
.field { min-width: 220px; display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
select {
  width: 100%; min-height: 43px; padding: 9px 35px 9px 12px; border-radius: 8px;
  border: 1px solid #d9cbbb; background: #fffdfa; color: var(--ink); font: inherit; font-size: 13px;
}
select:focus { outline: 2px solid rgba(168,95,69,.25); border-color: var(--clay); }
.text-link { color: var(--clay-dark); text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; padding: 10px 0; }
.text-link:hover { text-decoration: underline; }
.section-title { font-size: 25px; margin: 0 0 22px; }
.subheading { font-size: 22px; margin: 34px 0 18px; }
.notice {
  border: 1px dashed #d4c2b0; background: rgba(255,253,249,.6); color: var(--muted);
  text-align: center; padding: 28px 18px; border-radius: 12px; margin: 22px 0;
}
.gallery {
  columns: 3 250px; column-gap: 22px;
}
.artwork { display: inline-block; width: 100%; margin: 0 0 25px; break-inside: avoid; }
.artwork-open {
  display: block; width: 100%; border: 0; padding: 0; background: transparent;
  cursor: zoom-in; border-radius: 5px; overflow: hidden;
}
.artwork-open img { display: block; width: 100%; height: auto; transition: transform .35s ease, filter .35s ease; }
.artwork-open:hover img { transform: scale(1.025); filter: saturate(1.04); }
.artwork figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 2px 0; }
.artwork figcaption strong { font-family: "Playfair Display", Georgia, serif; font-size: 16px; font-weight: 600; }
.artwork figcaption span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.gallery-date { column-span: all; margin: 18px 0 16px; border-bottom: 1px solid var(--line); color: var(--clay-dark); font: 600 21px "Playfair Display", Georgia, serif; padding-bottom: 8px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.video-item { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.video-item video { display: block; width: 100%; background: #211e1b; max-height: 420px; }
.video-item figcaption { padding: 12px 15px; font-weight: 600; font-size: 13px; }
.about-panel { max-width: 760px; margin: 0 auto; padding: 28px 32px; }
.about-panel h2 { margin-top: 0; font-size: 25px; }
.about-panel p { color: #655b53; }
.site-footer { text-align: center; padding: 25px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer span { color: var(--clay); padding: 0 5px; }
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 100; background: rgba(28,24,21,.94);
  align-items: center; justify-content: center; padding: 55px 85px 45px;
}
.lightbox.open { display: flex; }
.lightbox-content { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-content img { display: block; max-width: 100%; max-height: calc(100vh - 125px); width: auto; height: auto; object-fit: contain; }
.lightbox-content figcaption { color: #f7eee4; font-size: 13px; text-align: center; }
.lightbox button { position: absolute; border: 0; color: white; background: rgba(255,255,255,.12); cursor: pointer; border-radius: 50%; }
.lightbox-close { top: 17px; right: 22px; width: 43px; height: 43px; font-size: 30px; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 58px; font-size: 42px; line-height: 1; border-radius: 12px !important; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
@media (max-width: 700px) {
  .header-inner { padding: 12px 17px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .main-nav { width: 100%; gap: 18px; overflow-x: auto; }
  .main-nav a { font-size: 12px; white-space: nowrap; }
  .page-shell { padding: 36px 17px 58px; }
  .filters { align-items: stretch; flex-direction: column; padding: 17px; }
  .filter-form { flex-direction: column; align-items: stretch; }
  .field { min-width: 0; width: 100%; }
  .gallery { columns: 2 145px; column-gap: 13px; }
  .artwork { margin-bottom: 17px; }
  .artwork figcaption { display: block; }
  .artwork figcaption strong, .artwork figcaption span { display: block; }
  .lightbox { padding: 55px 12px 35px; }
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
  .lightbox-prev, .lightbox-next { width: 36px; height: 48px; font-size: 34px; }
  .lightbox-content img { max-height: calc(100vh - 145px); }
  .about-panel { padding: 22px; }
}
