:root {
  --bg: #f7f5f2;
  --bg-2: #f1eee8;
  --card: #fffdf9;
  --ink: #1f1b16;
  --muted: #6e655c;
  --accent: #c4a26a;
  --border: #e3ddd4;
  --shadow: 0 18px 40px rgba(22, 18, 14, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--ink);
  background: linear-gradient(130deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(196, 162, 106, 0.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(31, 27, 22, 0.05), transparent 45%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  letter-spacing: 0.08em;
}

.brand-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
}

.nav a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.nav .cta {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  margin-bottom: 64px;
}

.hero.hero-landing {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  position: relative;
  padding: 24px 0 12px;
}

.hero-text h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5vw, 70px);
  margin: 12px 0 16px;
}

.hero-landing .hero-text {
  max-width: 520px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--muted);
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-hint::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
  transform-origin: left;
  animation: linePulse 2.6s ease-in-out infinite;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.hero-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(240px, 40vw, 360px);
  height: clamp(240px, 40vw, 360px);
  border-radius: 50%;
  border: 1px dashed rgba(196, 162, 106, 0.4);
  transform: translate(-50%, -50%);
  animation: orbitSpin 28s linear infinite;
  pointer-events: none;
}

.hero-orbit--soft {
  width: clamp(300px, 48vw, 440px);
  height: clamp(300px, 48vw, 440px);
  border: 1px solid rgba(31, 27, 22, 0.08);
  animation: orbitSpinReverse 40s linear infinite;
}

.logo-shell {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}

.hero-logo {
  width: min(280px, 60vw);
  height: auto;
  display: block;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px var(--border);
}

.logo-caption {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fdfbf7;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.text-link {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.hero-card {
  background: var(--card);
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card p {
  margin: 0 0 6px;
  font-weight: 600;
}

.section {
  margin-top: 48px;
}

.section.light {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.section-header h2,
.section-header h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3vw, 40px);
  margin: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  padding: 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.filter-group {
  display: grid;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-group select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 280px));
  gap: 24px;
  justify-content: start;
}

.card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s ease both;
  animation-delay: var(--delay, 0ms);
  width: 100%;
  max-width: 280px;
}

.card-link {
  display: block;
}

.card-title {
  color: inherit;
}

.card-image {
  aspect-ratio: 4 / 3;
  min-height: 200px;
  background: #f4efe7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fbf8f2;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--border);
}

.image-placeholder {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.card-body {
  padding: 18px;
  display: grid;
  gap: 6px;
}

.card-body h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  margin: 0 0 4px;
}

.card-body p {
  margin: 0 0 8px;
  color: var(--muted);
}

.meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.card-dimensions {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.button.tiny {
  padding: 8px 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.artist-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.artist-search {
  position: relative;
  margin: 20px 0 28px;
  max-width: 520px;
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-input {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
  z-index: 10;
}

.search-results.is-open {
  display: block;
}

.search-result,
.search-empty {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.search-result:last-child,
.search-empty:last-child {
  border-bottom: none;
}

.search-result:hover {
  background: #f7f3ed;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.artist-card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease both;
  animation-delay: var(--delay, 0ms);
}

.artist-link {
  display: grid;
  color: inherit;
}

.artist-image {
  height: 220px;
  background: #f4efe7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-body {
  padding: 18px;
  display: grid;
  gap: 6px;
}

.artist-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  margin: 0;
}

.pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.list-grid {
  display: grid;
  gap: 20px;
}

.list-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease both;
  animation-delay: var(--delay, 0ms);
}

.list-card h2 {
  font-family: "Cormorant Garamond", serif;
  margin: 0 0 4px;
}

.list-meta {
  text-align: right;
  display: grid;
  gap: 6px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.artist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.artist-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.artist-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #f4efe7;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.artwork-image {
  background: var(--card);
  border-radius: 20px;
  padding: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.artwork-image img {
  border-radius: 14px;
  width: 100%;
  height: auto;
}

.artwork-info h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 10px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.info-grid .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.info-grid strong {
  display: block;
  margin-top: 4px;
}

.rich-text {
  background: #fdfbf7;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease both;
  animation-delay: var(--delay, 0ms);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong {
  display: block;
  color: var(--ink);
}

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 12px 20px;
  background: var(--ink);
  color: #fdfbf7;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.empty-state {
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 24px;
  color: var(--muted);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes orbitSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbitSpinReverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

@keyframes linePulse {
  0%,
  100% {
    transform: scaleX(0.6);
    opacity: 0.6;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    flex-wrap: wrap;
  }
  .hero.hero-landing {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-visual {
    order: -1;
    min-height: 280px;
  }
  .logo-shell {
    padding: 22px 20px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
  }
  .card {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px 18px 56px;
  }
  .nav {
    width: 100%;
    justify-content: space-between;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-visual {
    min-height: 240px;
  }
  .hero-logo {
    width: min(220px, 70vw);
  }
  .hero-orbit {
    width: 220px;
    height: 220px;
  }
  .hero-orbit--soft {
    width: 280px;
    height: 280px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    max-width: none;
  }
  .list-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .list-meta {
    text-align: left;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
