@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf8f5;
  --ink: #202027;
  --muted: #77747d;
  --pink: #ff6f91;
  --purple: #9470ee;
  --orange: #ffad60;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}
a { color: inherit; text-decoration: none; }

.header {
  height: 76px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eae6e2;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
  font-size: 20px;
}
.logo > span:last-child { color: var(--purple); }
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  color: white;
  border-radius: 10px;
  background: linear-gradient(135deg,#ff6f91,#9470ee);
}
.header nav { display: flex; gap: 30px; font-size: 14px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 105px 8% 115px;
  background: linear-gradient(115deg,#ffe5dc,#f5e7ff 55%,#e1edff);
}
.hero-label,.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #8664cf;
}
.hero h1 {
  margin: 24px 0;
  font-family: 'Space Grotesk',sans-serif;
  font-size: clamp(54px,8vw,105px);
  line-height: .98;
  letter-spacing: -6px;
}
.hero h1 span {
  background: linear-gradient(90deg,#ff648d,#9664e8,#438fdc);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}
.hero p { max-width: 460px; color: #68616e; line-height: 1.8; }
.explore-button {
  display: inline-block;
  margin-top: 22px;
  padding: 15px 25px;
  border-radius: 30px;
  color: white;
  background: #28232e;
  font-size: 13px;
  font-weight: 700;
}
.hero-decoration {
  position: absolute;
  right: 12%;
  top: 15%;
  font-size: clamp(130px,22vw,280px);
  color: rgba(255,255,255,.6);
  transform: rotate(-15deg);
}

.gallery-section { padding: 85px 7%; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.section-heading h2,.about h2 {
  margin: 12px 0;
  font: 700 clamp(32px,5vw,54px) 'Space Grotesk',sans-serif;
  letter-spacing: -2px;
}
.section-heading h2 span { color: var(--purple); }
.search-box input {
  width: 230px;
  padding: 13px 18px;
  border: 1px solid #e5dfe8;
  border-radius: 24px;
  background: white;
  outline: none;
}
.search-box input:focus { border-color: var(--purple); }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0;
}
.filters button {
  padding: 10px 19px;
  border: 1px solid #e7e0e7;
  border-radius: 24px;
  background: white;
  cursor: pointer;
  color: #625d68;
}
.filters button.active {
  color: white;
  background: #292530;
  border-color: #292530;
}

.masonry { columns: 4 220px; column-gap: 20px; }
.art-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  overflow: hidden;
  background: white;
  text-align: left;
  cursor: pointer;
  break-inside: avoid;
  transition: transform .25s,box-shadow .25s;
}
.art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px #43304b20;
}
.artwork {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}
.artwork::after {
  content: "✳";
  position: absolute;
  right: 15px;
  top: 8px;
  color: #ffffffaa;
  font-size: 25px;
}
.artwork.tall { height: 310px; }
.artwork.medium { height: 240px; }
.artwork.short { height: 185px; }
.artwork.a1 { background: radial-gradient(circle at 65% 35%,#ffe8a7,#ff9fbd 38%,#8c63d9 75%); }
.artwork.a2 { background: radial-gradient(circle at 40% 35%,#c9f2ee,#65a6d8 45%,#374d91); }
.artwork.a3 { background: radial-gradient(circle at 55% 45%,#fff2b4,#ffb45f 40%,#e35c76); }
.artwork.a4 { background: radial-gradient(circle at 50% 35%,#f7c9f0,#a982df 48%,#434d91); }
.artwork.a5 { background: radial-gradient(circle at 40% 45%,#dcf5b4,#69bda3 45%,#315e83); }
.artwork.a6 { background: radial-gradient(circle at 55% 35%,#ffdeaa,#f17b83 45%,#743b88); }
.artwork.a7 { background: radial-gradient(circle at 50% 50%,#f7e3b0,#e9a1c5 50%,#806ac7); }
.artwork.a8 { background: radial-gradient(circle at 55% 40%,#d1e9ff,#789be0 48%,#433c7b); }

.art-meta { display: block; padding: 14px 15px 16px; }
.art-meta strong { display: block; font-size: 14px; }
.art-meta small { display: block; margin-top: 6px; color: #8b8590; font-size: 11px; }

.about {
  padding: 75px 8%;
  text-align: center;
  background: linear-gradient(120deg,#ffe8e1,#eee4ff,#e1f0ff);
}
.about > span { font-size: 11px; letter-spacing: 2px; color: #8064c5; font-weight: 800; }
.about p { color: #706a75; }

footer {
  padding: 28px 7%;
  display: flex;
  justify-content: space-between;
  color: #89828c;
  font-size: 11px;
  letter-spacing: 1px;
}
.empty-state { text-align: center; padding: 40px; color: var(--muted); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  align-items: center;
  justify-content: center;
  padding: 40px 65px;
  background: #17141eeF;
}
.lightbox.open { display: flex; }
.lightbox-content {
  display: flex;
  max-width: 950px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
}
.lightbox-art { flex: 1.3; min-height: 420px; background-size: cover; }
.lightbox-info { flex: 1; padding: 35px; align-self: center; }
.lightbox-info h2 { font: 700 28px 'Space Grotesk',sans-serif; }
.lightbox-info p { color: #777; line-height: 1.8; font-size: 13px; }
.lightbox-info small { color: #9a8ca8; }
.lightbox-info > span { color: var(--purple); font-size: 11px; text-transform: uppercase; }
.close,.previous,.next {
  position: absolute;
  border: 0;
  background: #ffffff22;
  color: white;
  cursor: pointer;
  border-radius: 50%;
}
.close { top: 25px; right: 30px; width: 42px; height: 42px; font-size: 28px; }
.previous,.next { top: 50%; width: 44px; height: 44px; font-size: 32px; }
.previous { left: 15px; }
.next { right: 15px; }

@media(max-width:700px) {
  .header { padding: 0 5%; }
  .hero { padding: 80px 7%; }
  .hero h1 { letter-spacing: -3px; }
  .hero-decoration { right: 4%; top: 45%; opacity: .5; }
  .gallery-section { padding: 55px 5%; }
  .section-heading { align-items: start; flex-direction: column; }
  .search-box,.search-box input { width: 100%; }
  .masonry { columns: 2 140px; column-gap: 12px; }
  .artwork.tall { height: 230px; }
  .artwork.medium { height: 180px; }
  .artwork.short { height: 145px; }
  .lightbox { padding: 55px 15px; }
  .lightbox-content { flex-direction: column; max-height: 80vh; }
  .lightbox-art { flex: none; min-height: 260px; }
  .lightbox-info { padding: 20px; }
  footer { gap: 15px; flex-direction: column; }
}
