:root {
  --bg: #060b13;
  --ink: #eef2fb;
  --muted: #b5bfd1;
  --accent: #d4ab69;
  --accent-soft: #ecd1a4;
  --panel: #0d1726;
  --panel-soft: #102137;
  --line: rgba(205, 176, 128, 0.28);
  --radius: 18px;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(75% 120% at 18% 6%, rgba(15, 74, 86, 0.36), transparent 65%),
    radial-gradient(75% 120% at 82% 16%, rgba(33, 86, 158, 0.22), transparent 66%),
    linear-gradient(180deg, #08101c 0%, #050a12 100%);
  line-height: 1.5;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.08;
}

.container {
  width: min(1240px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(5, 10, 18, 0.65);
  border-bottom: 1px solid rgba(130, 161, 197, 0.2);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  color: #f4f7ff;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.menu-panel {
  display: flex;
  gap: 1.45rem;
}

.menu-panel a {
  text-decoration: none;
  color: #ced9ee;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.menu-panel a:hover {
  color: #ffffff;
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
}

.hero-shell {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 15, 0.84) 0%, rgba(3, 8, 15, 0.56) 42%, rgba(3, 8, 15, 0.2) 76%, rgba(3, 8, 15, 0.1) 100%),
    url("paintings/painting12.jpeg") center 18% / cover no-repeat;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 7rem 0 6rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
}

h1,
h2,
h3,
h4 {
  font-family: "Bodoni Moda", serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.01;
  max-width: 10.2ch;
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.lead {
  margin: 1.3rem 0 2.1rem;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 160ms ease, filter 160ms ease;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.cta:not(.secondary) {
  color: #2b1d0f;
  background: linear-gradient(135deg, #f0cd9c, #cca25f);
}

.cta.secondary {
  color: #ebf1fe;
  border-color: rgba(214, 228, 255, 0.35);
  background: rgba(10, 19, 32, 0.35);
}

.gallery-section {
  padding: 4rem 0 2rem;
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(250px, 280px) 1fr;
  gap: 1.5rem;
}

.gallery-copy {
  position: sticky;
  top: 92px;
  align-self: start;
}

.gallery-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 0.9rem;
}

.gallery-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1rem;
}

.tab {
  border-radius: 999px;
  border: 1px solid rgba(179, 204, 243, 0.28);
  background: rgba(10, 20, 34, 0.66);
  color: #d5dded;
  font: inherit;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(135deg, #f0cd9c, #cca25f);
  border-color: transparent;
  color: #24180b;
}

.toolbar {
  display: grid;
  gap: 0.38rem;
  margin-bottom: 1.2rem;
}

.toolbar label {
  font-size: 0.86rem;
  color: #b6c1d6;
}

.toolbar input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(173, 200, 240, 0.28);
  background: rgba(8, 18, 32, 0.8);
  color: #e9f1ff;
  padding: 0.63rem 1rem;
  font: inherit;
}

.toolbar input:focus {
  outline: 2px solid rgba(212, 171, 105, 0.42);
  outline-offset: 1px;
}

.gallery-content {
  background: linear-gradient(180deg, rgba(11, 23, 39, 0.86), rgba(8, 16, 28, 0.86));
  border: 1px solid rgba(151, 187, 235, 0.2);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.card {
  margin: 0;
  background: #0d1b2f;
  border: 1px solid rgba(145, 173, 214, 0.2);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: rise-in 0.5s ease forwards;
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 171, 105, 0.45);
}

.card button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.card-meta {
  position: relative;
  padding: 0.62rem 0.72rem 0.75rem;
}

.card-meta h3 {
  margin: 0;
  font-size: 0.92rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  color: #f6fbff;
}

.card-meta p {
  margin: 0.18rem 0 0;
  font-size: 0.76rem;
  color: #a8b8d6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cats {
  display: block;
  margin-top: 0.32rem;
  font-size: 0.68rem;
  color: #d7b987;
  letter-spacing: 0.02em;
}

.card-badge {
  position: absolute;
  top: -0.62rem;
  right: 0.62rem;
  border-radius: 999px;
  padding: 0.17rem 0.52rem;
  background: linear-gradient(135deg, #ffd9a8, #ff9f69);
  color: #321b0b;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.artist-band {
  padding: 3rem 0;
}

.artist-card {
  background: linear-gradient(140deg, rgba(15, 30, 49, 0.9), rgba(9, 17, 30, 0.92));
  border: 1px solid rgba(151, 187, 235, 0.2);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 270px 1fr 280px;
  align-items: center;
}

.artist-photo {
  width: 100%;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  height: 100%;
}

.artist-copy h2 {
  font-size: clamp(1.8rem, 3.1vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.7rem;
}

.artist-copy p {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 1.1rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  display: grid;
  gap: 0.22rem;
}

.feature-list strong {
  color: #f3f8ff;
}

.feature-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.newsletter {
  margin-top: 1rem;
  background:
    linear-gradient(90deg, rgba(12, 26, 42, 0.95), rgba(10, 35, 52, 0.9)),
    url("paintings/painting1.jpeg") center / cover no-repeat;
  border-block: 1px solid rgba(151, 187, 235, 0.24);
}

.newsletter-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 2rem 0;
}

.newsletter-inner h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.newsletter-inner p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(560px, 100%);
}

.newsletter-form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(171, 197, 236, 0.36);
  background: rgba(6, 16, 29, 0.8);
  color: #f4f8ff;
  padding: 0.72rem 1rem;
  font: inherit;
}

.newsletter-form button {
  border: 0;
  border-radius: 999px;
  padding: 0.74rem 1.25rem;
  color: #2a1b0d;
  background: linear-gradient(135deg, #efcb99, #cb9f59);
  font-weight: 600;
  cursor: pointer;
}

.site-footer {
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.98), rgba(3, 7, 13, 0.98));
  border-top: 1px solid rgba(151, 187, 235, 0.18);
}

.footer-grid {
  padding: 2.2rem 0;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr;
  gap: 1.2rem;
}

.footer-brand {
  font-family: "Bodoni Moda", serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}

.footer-grid h4 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.footer-grid p,
.footer-grid a {
  margin: 0 0 0.35rem;
  color: var(--muted);
  text-decoration: none;
  display: block;
}

.footer-grid a:hover {
  color: #ffffff;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 30;
  background: rgba(4, 10, 18, 0.92);
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  margin: 0;
  max-width: min(92vw, 1080px);
  max-height: 85vh;
}

.lightbox-content img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(177, 210, 255, 0.28);
}

.lightbox-content figcaption {
  margin-top: 0.62rem;
  color: #e9f2ff;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(181, 204, 239, 0.4);
  background: rgba(12, 28, 48, 0.8);
  color: #e9f2ff;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: auto;
  padding: 0 0.92rem;
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise-in 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .artist-card {
    grid-template-columns: 1fr;
  }

  .artist-photo {
    max-height: 380px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu-panel {
    display: none;
    position: absolute;
    top: 74px;
    right: 1rem;
    flex-direction: column;
    gap: 0.65rem;
    background: rgba(7, 14, 24, 0.98);
    border: 1px solid rgba(160, 189, 230, 0.26);
    border-radius: 12px;
    padding: 0.8rem;
    box-shadow: var(--shadow);
  }

  .menu-panel.open {
    display: flex;
  }

  .hero-shell {
    min-height: 560px;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .gallery-copy {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .newsletter-inner,
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: auto;
    bottom: 1.15rem;
    width: 48px;
    height: 48px;
    background: rgba(12, 28, 48, 0.92);
  }

  .lightbox-nav.prev {
    left: calc(50% - 62px);
  }

  .lightbox-nav.next {
    right: calc(50% - 62px);
  }
}
