:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e6e4df;
  --accent: #1a1a1a;
  --gold: #b08d57;
  --ok: #1f7a4c;
  --sold: #8a8a8a;
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
.muted { color: var(--muted); }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 1rem;
}
.logo {
  text-decoration: none; font-weight: 700; letter-spacing: .02em;
  display: flex; flex-direction: column; line-height: 1.15;
}
.logo span { font-weight: 400; font-size: .68rem; color: var(--muted); letter-spacing: .04em; }
.site-nav { display: flex; gap: 1.25rem; align-items: center; }
.site-nav a { text-decoration: none; font-size: .92rem; font-weight: 500; }
.site-nav a.active { border-bottom: 2px solid var(--ink); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  padding: .45rem .75rem; border-radius: 6px; font: inherit; cursor: pointer;
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 1rem 1.25rem 1.25rem; gap: .85rem;
  }
  .site-nav.open { display: flex; }
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, #faf9f7 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--muted); margin: 0 0 .75rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.15; margin: 0 0 1rem; font-weight: 700; letter-spacing: -.02em; }
.hero .lede { max-width: 38rem; color: var(--muted); font-size: 1.05rem; margin: 0 0 1.75rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Sections */
section { padding: 3.5rem 0; }
.section-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); max-width: 28rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--muted); margin: 0 0 .4rem; }

/* Filters */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filters button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .45rem .95rem; font: inherit; font-size: .85rem; cursor: pointer;
}
.filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Grids */
.grid-art {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.art-card { display: flex; flex-direction: column; }
.art-card .visual {
  position: relative; display: block; background: var(--bg-soft);
  aspect-ratio: 4/5; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line);
}
.art-card .visual img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease;
}
.art-card:hover .visual img { transform: scale(1.03); }
.badge {
  position: absolute; top: .7rem; left: .7rem;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 4px; font-weight: 600; background: #fff;
}
.badge.available { color: var(--ok); }
.badge.sold { color: var(--sold); }
.card-body { padding: .85rem .1rem 0; }
.card-body .artist { margin: 0; font-size: .82rem; color: var(--muted); }
.card-body .artist a { text-decoration: none; }
.card-body h3 { margin: .25rem 0 .35rem; font-size: 1rem; font-weight: 600; line-height: 1.3; display: block; }
.card-body h3 a { text-decoration: none; display: inline; }
.card-body .price { margin: .15rem 0 0; font-weight: 600; font-size: .95rem; display: block; clear: both; }

/* Artists strip */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}
.artist-tile {
  border: 1px solid var(--line); padding: 1.1rem 1rem; text-decoration: none;
  background: var(--bg-soft); border-radius: 10px; transition: border-color .2s, transform .2s;
}
.artist-tile:hover { border-color: var(--ink); transform: translateY(-2px); color: inherit; }
.artist-tile strong { display: block; font-size: .95rem; }
.artist-tile span { color: var(--muted); font-size: .8rem; }

/* Style sections */
.style-block { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.style-block:first-of-type { border-top: 0; }
.style-intro { margin-bottom: 1.25rem; }
.style-intro h3 { margin: 0 0 .35rem; font-size: 1.35rem; }
.style-intro p { margin: 0; color: var(--muted); max-width: 36rem; }

/* Artwork detail */
.work-page {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem;
  padding: 2.5rem 0 3rem; align-items: start;
}
@media (max-width: 880px) { .work-page { grid-template-columns: 1fr; } }
.work-image {
  background: var(--bg-soft); border: 1px solid var(--line);
  position: relative; padding: 1rem;
}
.work-image img { width: 100%; max-height: 78vh; object-fit: contain; margin: 0 auto; }
.work-copy .artist { color: var(--muted); margin: 0 0 .35rem; }
.work-copy .artist a { text-decoration: none; }
.work-copy h1 { margin: 0 0 .75rem; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.work-copy .details { color: var(--muted); margin: 0 0 1rem; }
.work-copy .price { font-size: 1.35rem; font-weight: 700; margin: 0 0 1.25rem; }
.work-note { color: var(--muted); font-size: .92rem; }

/* Artist page */
.artist-hero { padding: 2.75rem 0 1rem; }
.artist-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.artist-hero p { color: var(--muted); max-width: 40rem; }

/* Prose pages */
.prose { padding: 2.75rem 0 4rem; max-width: 46rem; }
.prose h1 { margin: 0 0 1rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.prose h2 { margin: 2rem 0 .75rem; font-size: 1.2rem; }
.prose p, .prose li { color: #333; }
.prose ul { padding-left: 1.2rem; }
.prose .lead { font-size: 1.08rem; color: var(--muted); }

/* Certification */
.cert-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
  padding-bottom: 3rem;
}
@media (max-width: 800px) { .cert-layout { grid-template-columns: 1fr; } }
.cert-preview {
  border: 1px solid var(--line); background: var(--bg-soft); padding: 1rem;
}
.cert-preview img { width: 100%; height: auto; }
.cert-preview figcaption { margin-top: .75rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* Footer */
.site-footer {
  background: var(--bg-soft); border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.footer-grid {
  width: min(100% - 2.5rem, var(--max)); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3, .site-footer h4 { margin: 0 0 .75rem; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer p { color: var(--muted); font-size: .92rem; }
.footer-bottom {
  width: min(100% - 2.5rem, var(--max)); margin: 2rem auto 0;
  padding-top: 1rem; border-top: 1px solid var(--line);
  font-size: .8rem; color: var(--muted);
}

.related { padding: 1rem 0 3rem; }
.related h2 { font-size: 1.25rem; margin-bottom: 1rem; }
