/* ─── Custom Properties ─────────────────────────────────── */
:root {
  --bg: #f9f8f6;
  --text: #1c1c1a;
  --muted: #6b6460;
  --accent: #8b7355;
  --border: #e5e1db;
  --white: #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --max-width: 1200px;
  --nav-h: 68px;
  --gap: 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Header / Nav ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.site-name:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile nav ────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }
}

/* ─── Page Container ────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Painting Hero ─────────────────────────────────────── */
.painting-hero {
  background: #0e0d0b;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.painting-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 600px) {
  .painting-hero {
    height: auto;
  }
  .painting-hero-img {
    height: auto;
    object-fit: unset;
  }
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 5rem 2rem 3.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 460px;
  line-height: 1.7;
}

/* ─── Gallery Grid ──────────────────────────────────────── */
.gallery-section {
  padding: 1rem 2rem 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 600px) {
  .gallery-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .gallery-item {
    aspect-ratio: 3 / 4;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}

.gallery-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: var(--border);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
}

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

.gallery-item-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.gallery-item:hover .gallery-item-info {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
}

.gallery-item-meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-top: 0.2rem;
}

/* Placeholder (no image) */
.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  cursor: default;
}

/* ─── Lightbox ──────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 8, 0.93);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin-top: 1.2rem;
  text-align: center;
  color: rgba(255,255,255,0.85);
}

.lightbox-caption-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.lightbox-caption-meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 0.5rem;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: color 0.2s;
  line-height: 1;
  user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover { color: var(--white); }

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ─── About Page ────────────────────────────────────────── */
.about-section {
  padding: 5rem 2rem 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-photo-col {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  align-self: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 65%;
  background: var(--border);
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.about-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.about-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.about-body p {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.about-body p:last-child { margin-bottom: 0; }

.about-details {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-detail-row {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}

.about-detail-label {
  color: var(--muted);
  min-width: 80px;
  letter-spacing: 0.05em;
}

.about-detail-value { color: var(--text); }

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-photo-col {
    position: static;
  }

  .about-photo,
  .about-photo-placeholder {
    aspect-ratio: 4 / 3;
    max-width: 480px;
  }
}

/* ─── Contact Page ──────────────────────────────────────── */
.contact-section {
  padding: 5rem 2rem 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-inner {
  max-width: 560px;
}

.contact-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.contact-text {
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
}

.social-links {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-links-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text);
  transition: color 0.2s;
}

.social-link:hover { color: var(--accent); }

.social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--muted);
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--text); }

@media (max-width: 480px) {
  .site-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ─── About CV (integrated in right column) ─────────────── */
.about-cv {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-cv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.about-cv-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-outline {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}

.cv-block {
  margin-bottom: 2.5rem;
}

.cv-block-title {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.cv-entry {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cv-entry-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cv-entry-main strong {
  font-size: 0.95rem;
  font-weight: 500;
}

.cv-entry-meta,
.cv-entry-venue {
  font-size: 0.85rem;
  color: var(--muted);
}

.cv-entry-date {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .cv-entry {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ─── Utilities ─────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── Language Toggle ───────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.lang-toggle:hover {
  color: var(--text);
}
