/* Mona Barbu Art — Gallery landing page
   Brand: EB Garamond (display/serif) + DM Sans (body/sans)
   Palette derived from monabarbu.com — see BRANDING_KIT.md */

:root {
  --bg: #fcfcfc;
  --surface: #f5f1eb;
  --ink: #242424;
  --ink-body: rgba(36, 36, 36, 0.75);
  --ink-muted: rgba(36, 36, 36, 0.5);
  --accent: #f04664;
  --dark: #444444;
  --line: rgba(36, 36, 36, 0.12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(252, 252, 252, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  font-family: "EB Garamond", serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.site-nav a {
  color: var(--ink-body);
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.site-nav a:hover { color: var(--accent); border-color: var(--accent); }

.site-nav .cta-link {
  color: var(--bg);
  background: var(--dark);
  padding: 9px 18px;
  border-radius: 2px;
}
.site-nav .cta-link:hover { background: var(--accent); border-color: transparent; }

.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: #fcfcfc;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 20, 0.15) 0%, rgba(20, 18, 20, 0.55) 78%, rgba(20, 18, 20, 0.72) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 32px 72px;
  max-width: 720px;
}
.hero .eyebrow { color: #f6b2bd; }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  margin: 14px 0 18px;
  color: #fff;
}
.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 520px;
}

/* Intro */
.intro {
  padding: 88px 0 40px;
}
.intro .wrap { max-width: 760px; }
.intro h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 22px;
}
.intro p { font-size: 17px; margin: 0 0 16px; }
.intro p:last-child { margin-bottom: 0; }

/* Collections quick-nav */
.jump {
  padding: 8px 0 64px;
}
.jump .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.jump a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--ink);
  transition: all 0.2s ease;
}
.jump a:hover { border-color: var(--accent); color: var(--accent); }
.jump a .count { color: var(--ink-muted); margin-left: 6px; }

/* Collections */
.collection { padding: 64px 0; }
.collection:nth-of-type(even) { background: var(--surface); }

.collection-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
}
.collection-header .index {
  font-family: "EB Garamond", serif;
  font-size: 15px;
  color: var(--accent);
  padding-top: 8px;
  min-width: 26px;
}
.collection-header h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 10px;
}
.collection-header p {
  max-width: 560px;
  font-size: 16px;
  margin: 0;
}
.collection-header .meta {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  padding-top: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px 24px;
}

.artwork { cursor: pointer; }
.artwork .frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eee;
}
.artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.artwork:hover img { transform: scale(1.045); }
.artwork .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.artwork figcaption {
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.artwork .title {
  font-family: "EB Garamond", serif;
  font-size: 19px;
  color: var(--ink);
}
.artwork .year {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}

/* CTA / Acquire */
.acquire {
  padding: 96px 0;
  text-align: center;
}
.acquire .wrap { max-width: 640px; }
.acquire .eyebrow { display: block; margin-bottom: 16px; }
.acquire h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 18px; }
.acquire p { font-size: 16px; margin-bottom: 32px; }
.btn {
  display: inline-block;
  background: var(--dark);
  color: #fcfcfc;
  padding: 15px 34px;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .brand { font-size: 18px; }
.site-footer nav { display: flex; gap: 22px; font-size: 14px; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer .fine { width: 100%; font-size: 12px; color: var(--ink-muted); margin-top: 22px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 14, 15, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox figure {
  margin: 0;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}
.lightbox img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox figcaption {
  color: #f2eee8;
  margin-top: 18px;
  font-family: "EB Garamond", serif;
  font-size: 20px;
}
.lightbox figcaption .lb-collection {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: none;
  border: none;
  color: #f2eee8;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
}
.lb-close { top: 22px; right: 28px; font-size: 28px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 34px; padding: 12px; opacity: 0.7; }
.lb-prev:hover, .lb-next:hover, .lb-close:hover { opacity: 1; color: var(--accent); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

@media (max-width: 720px) {
  .site-nav a:not(.cta-link) { display: none; }
  .site-nav .cta-link { padding: 8px 14px; font-size: 13px; }
  .collection-header { flex-wrap: wrap; }
  .collection-header .meta { margin-left: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
  .lb-prev, .lb-next { font-size: 26px; padding: 8px; }
}
