
:root {
  --indigo: #1107a7;
  --indigo-deep: #0d057f;
  --ink: #17171a;
  --muted: #6e6e75;
  --paper: #fbfaf8;
  --card: #ffffff;
  --line: #e8e4de;
  --soft: #f2efea;
  --radius: 22px;
  --shadow: 0 16px 42px rgba(24, 20, 45, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 4%, rgba(17,7,167,.06), transparent 28rem),
    var(--paper);
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251,250,248,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,228,222,.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  font-weight: 780;
  letter-spacing: -.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: .84rem;
  margin-top: 2px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  border: 0;
  background: transparent;
  text-decoration: none;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--indigo);
  background: rgba(17,7,167,.08);
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 56px) clamp(58px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
}

.hero-mark {
  display: grid;
  place-items: center;
}

.hero-mark img {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(17,7,167,.10));
}

.hero-copy { max-width: 800px; }

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .77rem;
  font-weight: 760;
  color: var(--indigo);
}

h1, h2, h3 {
  margin-top: 0;
  letter-spacing: -.035em;
}

h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  line-height: .98;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  margin-bottom: 0;
}

.hero-text {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
  margin-bottom: 28px;
}

.primary-button {
  display: inline-block;
  background: var(--indigo);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--indigo-deep);
}

.catalog-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 100px;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.result-count { color: var(--muted); }

.controls {
  display: grid;
  grid-template-columns: minmax(250px, 1.7fr) repeat(3, minmax(155px, .7fr));
  gap: 10px;
  margin-bottom: 28px;
}

input, select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  outline: none;
}

input:focus, select:focus {
  border-color: rgba(17,7,167,.45);
  box-shadow: 0 0 0 3px rgba(17,7,167,.08);
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.3vw, 30px);
}

.art-card {
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  padding: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}

.art-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(25,20,45,.12);
}

.art-image-wrap {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  overflow: hidden;
  position: relative;
}

.art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-badge,
.status-badge {
  position: absolute;
  top: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 720;
  backdrop-filter: blur(8px);
}

.featured-badge {
  left: 14px;
  background: rgba(255,255,255,.92);
  color: var(--indigo);
}

.status-badge {
  right: 14px;
  background: rgba(18,20,25,.73);
  color: white;
}

.status-badge.available {
  background: rgba(17,7,167,.78);
}

.art-card-body {
  padding: 18px 18px 20px;
}

.card-kicker {
  color: var(--muted);
  font-size: .81rem;
  margin-bottom: 6px;
  min-height: 1em;
}

.art-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.12;
  margin: 0 0 10px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: .9rem;
}

.card-price {
  color: var(--ink);
  font-weight: 740;
  white-space: nowrap;
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.45);
}

.empty-logo {
  width: 92px;
  opacity: .2;
  margin-bottom: 18px;
}

.about-section {
  max-width: 1250px;
  margin: 0 auto 100px;
  padding: 70px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 50px;
}

.about-copy {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.06rem;
}

.about-copy p:first-child { margin-top: 0; }

.art-dialog {
  width: min(1080px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 24px;
  padding: 0;
  overflow: auto;
  box-shadow: 0 30px 90px rgba(0,0,0,.24);
}

.art-dialog::backdrop {
  background: rgba(20,18,27,.64);
}

.dialog-close {
  position: fixed;
  top: max(24px, calc((100vh - min(760px, calc(100vh - 28px))) / 2 + 16px));
  right: max(24px, calc((100vw - min(1080px, calc(100vw - 28px))) / 2 + 16px));
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.94);
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 5px 16px rgba(0,0,0,.12);
}

.dialog-grid {
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  min-height: 620px;
}

.dialog-image-wrap {
  background: var(--soft);
  display: grid;
  place-items: center;
}

.dialog-image {
  width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.dialog-copy {
  padding: clamp(30px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

.dialog-description {
  color: var(--muted);
  line-height: 1.65;
  margin: 14px 0 0;
}

.dialog-copy dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 26px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.dialog-copy dt { color: var(--muted); }
.dialog-copy dd { margin: 0; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.footer-brand {
  color: var(--ink);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: .45fr 1.55fr; }
  .controls { grid-template-columns: 1fr 1fr; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-section { grid-template-columns: 1fr; gap: 24px; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-image { max-height: 58vh; }
}

@media (max-width: 700px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .hero-mark img { width: 180px; }
  .hero-mark { justify-content: start; }

  .brand-subtitle { display: none; }
  .nav-link { padding: 8px 9px; font-size: .9rem; }

  .controls { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr; }
  .catalog-heading { align-items: flex-start; flex-direction: column; }

  .dialog-copy { padding: 26px 22px 34px; }

  footer { flex-direction: column; }
}


/* Individual artwork pages */
.artwork-page-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 80px) clamp(18px, 4vw, 56px) 90px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: .9rem;
}

.breadcrumbs a {
  color: var(--indigo);
  text-decoration: none;
}

.artwork-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

.artwork-page-image-wrap {
  min-height: 420px;
  padding: clamp(12px, 2vw, 24px);
  border-radius: 24px;
  background: #f0ede8;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.artwork-page-image {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

.artwork-page-copy {
  position: sticky;
  top: 98px;
}

.artwork-status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.artwork-page-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(17,7,167,.08);
  color: var(--indigo);
  font-size: .78rem;
  font-weight: 760;
}

.artwork-page-status.sold {
  background: rgba(23,23,26,.08);
  color: var(--ink);
}

.artwork-page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: 1;
  margin: 0 0 12px;
}

.artwork-page-price {
  font-size: 1.35rem;
  font-weight: 760;
  margin: 0 0 24px;
}

.artwork-page-description {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
  margin: 0 0 26px;
}

.artwork-details {
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.artwork-detail-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  padding: 7px 0;
}

.artwork-detail-label { color: var(--muted); }

.artwork-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-weight: 680;
}

.secondary-button:hover {
  border-color: rgba(17,7,167,.28);
  color: var(--indigo);
}

.page-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 80px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.page-nav a {
  color: var(--indigo);
  text-decoration: none;
}

@media (max-width: 850px) {
  .artwork-page-grid { grid-template-columns: 1fr; }
  .artwork-page-copy { position: static; }
  .artwork-page-image-wrap { min-height: 300px; }
}

/* Public content pages */
.content-page-main {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(58px, 9vw, 110px) clamp(18px, 4vw, 56px) 100px;
}

.content-page-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.content-page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1;
  margin-bottom: 18px;
}

.content-page-intro {
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.content-card {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.8);
  box-shadow: var(--shadow);
}

.content-prose {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.82;
}

.content-prose p:first-child { margin-top: 0; }
.content-prose p:last-child { margin-bottom: 0; }

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--indigo);
  font-weight: 680;
  text-decoration: none;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  background: white;
}

.contact-method span { color: var(--muted); }
.contact-method:hover { border-color: rgba(17,7,167,.28); }

.content-note {
  padding: 18px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 780px) {
  .top-nav {
    max-width: 58vw;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .top-nav::-webkit-scrollbar { display: none; }
}


.purchase-action {
  margin: 26px 0 8px;
}

.purchase-button {
  display: inline-block;
}

.purchase-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .84rem;
}
