:root {
  --paper: #f5f2ec;
  --paper-deep: #ece7dc;
  --ink: #23201b;
  --ink-soft: #565048;
  --line: #ddd6c7;
  --accent: #a8412e;
  --accent-ink: #ffffff;
  --sold: #8a8479;
  --band: #241c1f;
  --band-deep: #1a1417;
  --max-width: 1180px;
  --max-width-wide: 1320px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  padding: clamp(16px, 1.6vw, 26px) clamp(28px, 6vw, 110px);
}

.brand {
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  font-weight: 400;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: center;
}

.brand .name {
  font-size: clamp(1.15rem, 1.3vw, 1.55rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand .tag {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.58rem, 0.6vw, 0.7rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 5px;
}

nav.site-nav {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.74rem, 0.75vw, 0.9rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav.site-nav a {
  text-decoration: none;
  margin-left: 30px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.15s ease;
}

nav.site-nav a:hover { border-color: var(--ink); }

@media (max-width: 600px) {
  .site-header .wrap {
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  nav.site-nav {
    display: flex;
    justify-content: center;
  }

  nav.site-nav a {
    margin-left: 0;
    margin: 0 12px;
  }
}

/* Hero — full-bleed image with dark scrim, editorial overlay text */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper-deep) center / cover no-repeat;
  color: var(--ink);
  overflow: hidden;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(245, 242, 236, 0.9) 0%,
    rgba(245, 242, 236, 0.68) 42%,
    rgba(245, 242, 236, 0.32) 75%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) clamp(28px, 6vw, 110px) clamp(70px, 10vw, 140px);
  box-sizing: border-box;
}

.hero-kicker {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.68rem, 0.9vw, 0.82rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 4.6rem);
  font-weight: 400;
  margin: 0 0 22px;
  line-height: 1.14;
  max-width: 18ch;
  color: var(--ink);
}

.hero p.lede {
  font-size: clamp(1.05rem, 1.2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero .cta {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: inline-block;
  font-size: clamp(0.78rem, 0.85vw, 0.92rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: clamp(13px, 1.1vw, 17px) clamp(26px, 2vw, 34px);
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.hero .cta:hover { background: var(--ink); color: var(--paper); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 22px;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 16px;
  background: var(--ink-soft);
  transform: translateX(-50%);
}

@media (max-width: 700px) {
  .hero { min-height: 70vh; }
  .hero-content { padding: 60px 20px 80px; }
}

/* Category band — full-bleed dark section, framed subject thumbnails */
.category-band {
  background: var(--band-deep);
  color: #f0e9db;
  padding: 68px 0 76px;
}

.band-kicker {
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #b8ab93;
  margin: 0 0 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 800px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

.category-item {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-item .frame {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(240, 233, 219, 0.25);
  background: #000;
}

.category-item .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.88;
}

.category-item:hover .frame img {
  transform: scale(1.045);
  opacity: 1;
}

.category-label {
  margin-top: 16px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.filter-bar {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  min-height: 1em;
  margin: 0 0 24px;
}

.filter-bar a {
  color: var(--accent);
  text-decoration: underline;
}

/* Section headings */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 8px;
  padding-top: 64px;
}

.section-heading h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0;
}

.section-heading .count {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.section-sub {
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 34px;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
  padding-bottom: 20px;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
}

.card figure {
  margin: 0;
  background: #fff;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}

.card figure img { transition: transform 0.5s ease; }
.card figure:hover img { transform: scale(1.03); }

.card img {
  display: block;
  width: 100%;
  height: auto;
}

.card .sold-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.card .meta {
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 400;
  margin: 0 0 4px;
}

.card .details {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.card .price-col {
  text-align: right;
  flex-shrink: 0;
}

.card .price {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
}

.card .price.tbc {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.buy-btn {
  margin-top: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.buy-btn:hover { background: var(--accent); color: var(--accent-ink); }

.buy-btn.enquire {
  border-color: var(--ink-soft);
  color: var(--ink-soft);
}

.buy-btn.enquire:hover { background: var(--ink-soft); color: var(--paper); }

/* About */
.about {
  padding-top: 20px;
  padding-bottom: 60px;
  border-top: 1px solid var(--line);
  margin-top: 60px;
}

.about .wrap {
  padding-top: 56px;
}

.about .wrap.about-single > div {
  max-width: 76ch;
}

.about h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 18px;
}

.about p { color: var(--ink-soft); margin: 0 0 16px; max-width: 68ch; }

.about blockquote {
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin: 24px 0;
  color: var(--ink);
}

.exhibitions {
  margin-top: 28px;
}

.exhibitions h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.exhibitions ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}

@media (max-width: 560px) { .exhibitions ul { columns: 1; } }

.exhibitions li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

.exhibitions li .yr {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
}

/* Contact / Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.contact {
  padding: 56px 0;
}

.contact h2 {
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 14px;
}

.contact p { color: var(--ink-soft); margin: 0 0 10px; }

.contact a.email {
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.footer-bottom {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  color: var(--ink-soft);
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
}

/* Painting detail page */
.painting-page {
  padding-top: 40px;
  padding-bottom: 70px;
  min-height: 60vh;
}

.back-link {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 34px;
  border-bottom: 1px solid transparent;
}

.back-link:hover { border-color: var(--ink-soft); }

.pd-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 800px) {
  .pd-grid { grid-template-columns: 1fr; }
}

.pd-figure {
  margin: 0;
  position: relative;
  background: #fff;
}

.pd-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.pd-category {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.pd-info h1 {
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 10px;
  line-height: 1.2;
}

.pd-details {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.pd-price {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.pd-price.tbc {
  font-size: 1rem;
  color: var(--ink-soft);
}

.pd-purchase { margin-bottom: 36px; }

.purchase-btn {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 30px;
  border: 1px solid var(--accent);
  transition: opacity 0.15s ease;
}

.purchase-btn:hover { opacity: 0.86; }

.pd-note, .pd-sold-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

.pd-sold-note {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.pd-enquiry {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.pd-enquiry h2 {
  font-size: 1.15rem;
  font-weight: 400;
  margin: 0 0 8px;
}

.pd-enquiry-sub {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 20px;
  max-width: 48ch;
}

#enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.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;
}

#enquiry-form textarea {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--radius);
  resize: vertical;
}

#enquiry-form textarea:focus {
  outline: none;
  border-color: var(--ink-soft);
}

.enquiry-submit {
  align-self: flex-start;
  background: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mail-icon {
  font-size: 1rem;
  line-height: 1;
}

.pd-enquiry-note {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.painting-not-found {
  text-align: center;
  padding: 60px 0;
}

.painting-not-found h1 {
  font-weight: 400;
  font-size: 1.6rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox .close {
  position: absolute;
  top: 22px;
  right: 28px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 8px 14px;
}

.lightbox .caption {
  position: static;
  margin-top: 20px;
  text-align: center;
  color: #f0ece2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  max-width: 70ch;
}
