/* ── Fonts ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=EB+Garamond:ital,wght@0,400;1,400&display=swap');

/* ── Reset & base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:    #FCFBF7;
  --ink:      #1A1A1A;
  --burgundy: #6B1A2C;
  --subtle:   #999;
  --light:    #e8e6e0;
  --nav-h:    60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'EB Garamond', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(252,251,247,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color .3s;
}
nav.scrolled { border-color: var(--light); }

.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--ink);
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-family: 'EB Garamond', serif;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--subtle);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* Hamburger — mobile only */
.nav-toggle { display: none; background: none; border: none;
  cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span {
  display: block; width: 24px; height: 1.5px; background: var(--ink); transition: .3s;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
#home {
  position: relative;
  height: 100vh; min-height: 560px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background: url('../images/cover.jpg') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0) 40%,
    rgba(10,6,4,.72) 100%);
}

.hero-text {
  position: relative; z-index: 1;
  padding: 0 60px 64px;
  color: #fff;
  max-width: 860px;
}

.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: .02em;
  opacity: .88;
}

.hero-scroll {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  animation: bounce 2.4s ease-in-out infinite;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: rgba(255,255,255,.35);
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── Section base ───────────────────────────────────────────────────────── */
section { padding: 100px 60px; }
section:nth-of-type(even) { background: var(--paper); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 56px;
}
.section-title::after {
  content: ''; display: block; width: 40px; height: 1px;
  background: var(--burgundy); margin-top: 14px;
}

/* ── Gallery ────────────────────────────────────────────────────────────── */
#paintings { padding-bottom: 80px; }

.gallery {
  columns: 4 220px;
  column-gap: 10px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--light);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .45s ease;
}

.gallery-item:hover img { transform: scale(1.03); }

.gallery-caption {
  position: absolute; inset: 0;
  background: rgba(10,6,4,.52);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-caption .g-num {
  font-family: 'EB Garamond', serif;
  font-size: .8rem; letter-spacing: .1em;
  color: rgba(255,255,255,.7);
}
.gallery-caption .g-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-style: italic;
  color: #fff; line-height: 1.2;
}
.gallery-caption .g-sold {
  font-family: 'EB Garamond', serif;
  font-size: .75rem; letter-spacing: .1em;
  color: #d4a0a0; text-transform: uppercase;
}

/* ── Lightbox ───────────────────────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,5,4,.93);
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
}
#lightbox.active { display: flex; }

#lb-wrap {
  position: relative;
  max-width: min(92vw, 1400px);
  max-height: 82vh;
  display: flex; align-items: center; justify-content: center;
}

#lb-img {
  max-width: 100%; max-height: 82vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 60px rgba(0,0,0,.6);
}

#lb-info {
  margin-top: 20px;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-family: 'EB Garamond', serif;
  font-size: .95rem;
  letter-spacing: .04em;
}
#lb-info .lb-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.2rem;
  color: #fff; display: block; margin-bottom: 4px;
}
#lb-info .lb-sold { color: #d4a0a0; }

.lb-btn {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.5);
  font-size: 2rem; padding: 20px 24px;
  transition: color .2s;
  line-height: 1;
}
.lb-btn:hover { color: #fff; }
#lb-prev { left: 12px; }
#lb-next { right: 12px; }

#lb-close {
  position: fixed; top: 20px; right: 28px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.5); font-size: 1.8rem;
  line-height: 1; transition: color .2s;
}
#lb-close:hover { color: #fff; }

#lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.35);
  font-family: 'EB Garamond', serif; font-size: .82rem; letter-spacing: .1em;
}

/* ── Bio ────────────────────────────────────────────────────────────────── */
#bio { background: #F5F4EF; }
.bio-text {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.bio-text p { margin-bottom: 1.2em; }

/* ── CV ─────────────────────────────────────────────────────────────────── */
.cv-grid { max-width: 760px; }

.cv-section { margin-bottom: 48px; }
.cv-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light);
}
.cv-item { margin-bottom: 14px; font-size: .97rem; }
.cv-item .cv-main { color: var(--ink); }
.cv-item .cv-sub  { color: var(--subtle); font-size: .88rem; display: block; margin-top: 2px; }
.cv-item .cv-year {
  font-size: .82rem; letter-spacing: .08em;
  color: var(--burgundy); display: block; margin-top: 1px;
}
.cv-intro {
  font-size: .97rem; line-height: 1.75; color: var(--ink);
  margin-bottom: 36px; max-width: 640px;
  font-style: italic;
}

/* ── Recordings ─────────────────────────────────────────────────────────── */
#recordings { background: #F5F4EF; }

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

.cd-item { }
.cd-item img {
  width: 100%;
  display: block;
  box-shadow: 0 3px 18px rgba(0,0,0,.18);
  transition: box-shadow .3s, transform .3s;
}
.cd-item img:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,.28);
  transform: translateY(-3px);
}
.cd-item .cd-label {
  margin-top: 10px;
  font-family: 'EB Garamond', serif;
  font-size: .85rem; color: var(--subtle);
  line-height: 1.4;
}
.cd-item .cd-label strong {
  display: block; color: var(--ink);
  font-weight: 400; font-size: .92rem;
}

/* ── Contact ────────────────────────────────────────────────────────────── */
#contact { text-align: center; padding: 100px 60px 120px; }
#contact .section-title { display: inline-block; }
#contact .section-title::after { margin: 14px auto 0; }

.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--burgundy);
  padding-bottom: 3px;
  transition: color .2s;
}
.contact-email:hover { color: var(--burgundy); }
.contact-note {
  margin-top: 20px;
  color: var(--subtle); font-size: .9rem; font-style: italic;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.35);
  text-align: center;
  padding: 28px 40px;
  font-family: 'EB Garamond', serif;
  font-size: .8rem; letter-spacing: .08em;
}
footer a { color: rgba(255,255,255,.45); text-decoration: none; }
footer a:hover { color: rgba(255,255,255,.8); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; gap: 20px; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--paper);
    padding: 24px 32px;
    border-bottom: 1px solid var(--light);
  }
  .nav-toggle { display: flex; }
  section { padding: 72px 28px; }
  .hero-text { padding: 0 28px 52px; }
  .gallery { columns: 2 160px; }
  .recordings-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 520px) {
  .gallery { columns: 2 120px; gap: 6px; }
  .gallery-item { margin-bottom: 6px; }
  #lb-prev, #lb-next { padding: 14px 12px; font-size: 1.6rem; }
}
