
@font-face {
  font-family: Epilogue;
  font-style: normal;
  font-weight: 300;
  font-display: fallback;
  src: url('/fonts/epilogue_300.ttf') format('truetype');
}
@font-face {
  font-family: Epilogue;
  font-style: italic;
  font-weight: 300;
  font-display: fallback;
  src: url('/fonts/epilogue_300italic.ttf') format('truetype');
}
@font-face {
  font-family: Epilogue;
  font-style: normal;
  font-weight: 500;
  font-display: fallback;
  src: url('/fonts/epilogue_500.ttf') format('truetype');
}
@font-face {
  font-family: Epilogue;
  font-style: italic;
  font-weight: 500;
  font-display: fallback;
  src: url('/fonts/epilogue_500italic.ttf') format('truetype');
}

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

:root {
  --bg: #1a1a1a;
  --fg: #dbdbdb;
  --fg-dim: #a2a2a2;
  --surface: #282828;
  --gap: 1.5rem;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Epilogue, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1.1rem);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-title {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

nav { display: flex; align-items: center; }

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav li { position: relative; }

nav a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
  white-space: nowrap;
  transition: color 0.2s;
}

nav a:hover, nav a.active { color: var(--fg); text-decoration: none; }

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg);
  border: 1px solid var(--surface);
  min-width: 160px;
  z-index: 200;
  padding: 0.5rem 0;
}

nav li:hover .submenu { display: block; }
.submenu li { display: block; }
.submenu a { padding: 0.4rem 1.2rem; }

/* ── Main ── */
main {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ── Page header ── */
.page-header { margin-bottom: 3rem; }

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ── Home page ── */
.home-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.home-block.image-right .home-text { order: 1; }
.home-block.image-right .home-img  { order: 2; }

.home-text p {
  margin-bottom: 1.2rem;
  color: var(--fg-dim);
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
}

.home-text p strong { color: var(--fg); font-weight: 500; }

.home-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Gallery ── */
.gallery {
  columns: 3 280px;
  column-gap: var(--gap);
}

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

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.25s;
}

.gallery-item:hover img { opacity: 0.85; }

/* ── Fine Arts landing ── */
.fine-arts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.fine-arts-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4/3;
}

.fine-arts-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s, transform 0.4s;
}

.fine-arts-card:hover img { opacity: 0.7; transform: scale(1.03); }

.fine-arts-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  font-weight: 300;
  pointer-events: none;
}

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

#lightbox.open { display: flex; }

#lightbox-img {
  max-width: min(92vw, calc(100vh * 1.2));
  max-height: 80vh;
  object-fit: contain;
  user-select: none;
}

#lightbox-caption {
  margin-top: 1.2rem;
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1.5;
  max-width: 600px;
  padding: 0 2rem;
  white-space: pre-line;
}

#lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}

#lightbox-close:hover { opacity: 1; }

#lightbox-prev, #lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--fg);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.4;
  transition: opacity 0.2s;
  user-select: none;
}

#lightbox-prev:hover, #lightbox-next:hover { opacity: 1; }
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }

/* ── Footer ── */
footer {
  padding: 2rem;
  border-top: 1px solid var(--surface);
  color: var(--fg-dim);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a { color: var(--fg-dim); }
footer a:hover { color: var(--fg); text-decoration: none; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .home-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .home-block.image-right .home-text { order: 2; }
  .home-block.image-right .home-img  { order: 1; }
}

@media (max-width: 640px) {
  header { padding: 0 1rem; }
  main { padding: 2rem 1rem; }
  .gallery { columns: 2 160px; }
  nav a { padding: 0.3rem 0.6rem; font-size: 0.72rem; }
  .site-title { font-size: 0.8rem; }
}
