:root {
  --bg: #ffffff;
  --text: #2400ff;
  --muted: #2400ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: #fff;
  position: sticky;
  top: 0;
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 18px;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav a.active {
  color: var(--text);
  font-weight: 600;
}

.about-card {
  margin: 64px auto;
  max-width: 720px;
  padding: 28px;
  background: #fff;
}

.intro-card {
  margin: 64px auto;
  max-width: 900px;
  padding: 28px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.about-image {
  width: 180px;
  flex-shrink: 0;
  display: none;
}

.home-image-wrap {
  position: relative;
  display: inline-block;
  cursor: pointer;
  flex-shrink: 0;
}

.home-image {
  width: min(380px, 55vw);
  display: block;
  background: #fff;
  transition: opacity 0.3s ease;
}

.home-image-overlay {
  position: absolute;
  inset: 0;
  background: #2400ff;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.home-image-wrap:hover .home-image-overlay {
  opacity: 0.6;
}

.home-name {
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 600;
}

/* Fade in on load */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-card {
  animation: fadeIn 0.8s ease both;
}

.about-card {
  animation: fadeIn 0.8s ease both;
}

.gallery-grid {
  animation: fadeIn 0.8s ease both;
}

.work-title {
  margin-top: 36px;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.art-card {
  background: #fff;
  overflow: hidden;
}

/* First two images span wider - side by side in a 2-col layout */
.art-card:first-child {
  grid-column: 1 / 3;
  grid-row: 1;
}

.art-card:nth-child(2) {
  grid-column: 3 / 4;
  grid-row: 1;
}

.art-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.art-card img:hover {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

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

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ── Mobile ── */
@media (max-width: 600px) {

  /* Stack home layout vertically */
  .intro-card {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 32px auto;
    padding: 16px;
  }

  /* Image full width on mobile */
  .home-image {
    width: min(320px, 88vw);
  }

  /* Name words sit below image, side by side */
  .home-name {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  /* Reorder: image on top, then names side by side below */
  .home-image-wrap {
    order: -1;
  }

  /* About page stacks vertically */
  .about-card {
    flex-direction: column;
    margin: 32px auto;
    padding: 16px;
    gap: 16px;
  }

  .about-image {
    width: 100%;
    max-width: 280px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .art-card:first-child,
  .art-card:nth-child(2) {
    grid-column: span 1;
  }

  .art-card {
    margin-bottom: 0;
  }

  /* Tighten up header */
  .nav-wrap {
    min-height: 52px;
  }

  /* Work title spacing */
  .work-title {
    margin-top: 24px;
  }
}

