:root {
  --ink: #302822;
  --muted: #75665c;
  --paper: #f7eddd;
  --paper-deep: #ead8c0;
  --terracotta: #ad513b;
  --terracotta-dark: #7c382b;
  --olive: #4f706a;
  --ochre: #c08b43;
  --line: rgba(46, 41, 36, 0.18);
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(63, 46, 34, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(192, 139, 67, 0.2), transparent 31rem),
    var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(156, 81, 59, 0.35);
  outline-offset: 3px;
}
.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; }

.site-header {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark { color: inherit; text-decoration: none; display: grid; gap: 2px; }
.wordmark span { font-family: "Newsreader", serif; font-size: 1.3rem; }
.wordmark small { color: var(--muted); font-size: .69rem; letter-spacing: .18em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 24px; }
.header-link { color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding: 10px 0; }

.hero {
  min-height: 610px;
  padding: 130px max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: clamp(240px, 36vw, 520px);
  aspect-ratio: 1;
  right: max(-80px, calc((100vw - 1400px) / 2));
  top: 52px;
  border-radius: 46% 54% 65% 35% / 51% 44% 56% 49%;
  background: linear-gradient(145deg, #b95640, #d7a05c 52%, #5f7d76 53%, #3e5854);
  opacity: .9;
  box-shadow: inset 22px -14px 50px rgba(255,255,255,.15), var(--shadow);
  transform: rotate(-7deg);
  z-index: -1;
}
.eyebrow { margin: 0 0 16px; color: var(--terracotta); font-size: .73rem; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Newsreader", Georgia, serif; font-weight: 400; line-height: .98; }
h1 { max-width: 720px; font-size: clamp(3.7rem, 9vw, 8rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.4rem, 5vw, 4.3rem); letter-spacing: -.035em; }
.intro { max-width: 550px; margin: 28px 0 34px; font-size: clamp(1.04rem, 1.7vw, 1.25rem); line-height: 1.65; color: #514941; }
.primary-button, .secondary-button {
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  padding: 14px 24px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.primary-button { background: var(--terracotta); color: white; }
.primary-button:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.primary-button:disabled { background: #a8a095; cursor: not-allowed; transform: none; }
.secondary-button { background: var(--paper-deep); color: var(--ink); }
.secondary-button:hover { background: #e5d7c2; }

.gallery-section { padding: 100px max(24px, calc((100vw - 1240px) / 2)) 120px; background: #fffaf1; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  padding: 13px 14px;
}
.filter-label select { min-width: 160px; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; }
.art-card { grid-column: span 4; min-width: 0; }
.art-card:nth-child(3n + 2) { padding-top: 72px; }
.art-card-button { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.art-image-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-deep); }
.art-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.art-card-button:hover img { transform: scale(1.025); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--olive); font-size: .77rem; font-weight: 600; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.reserved { color: #9a651f; }
.status-pill.sold { color: #8e8580; }
.card-meta { display: flex; justify-content: space-between; gap: 18px; padding-top: 17px; }
.card-meta h3 { margin: 0 0 6px; font-family: "Newsreader", serif; font-size: 1.6rem; font-weight: 400; line-height: 1.1; }
.card-technique, .card-price { margin: 0; color: var(--muted); font-size: .84rem; }
.card-price { white-space: nowrap; color: var(--ink); font-weight: 600; }
.card-status { margin-top: 12px; }
.empty-state { padding: 56px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }

.purchase-info-section {
  padding: 90px max(24px, calc((100vw - 1040px) / 2));
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 100px;
  align-items: start;
  background: var(--paper-deep);
}
.purchase-info-copy { padding-top: 42px; }
.purchase-info-copy p { margin: 0; color: #514941; font-size: 1.08rem; line-height: 1.75; }
.purchase-info-copy p + p { margin-top: 20px; }

.exhibitions-section {
  padding: 100px max(24px, calc((100vw - 1240px) / 2)) 120px;
  color: #fff8ed;
  background: #292522;
}
.exhibitions-heading .eyebrow, .exhibition-copy .eyebrow { color: #df8a70; }
.exhibition-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}
.exhibition-feature + .exhibition-feature {
  margin-top: 100px;
  padding-top: 100px;
  border-top: 1px solid rgba(255, 248, 237, .16);
}
.exhibition-gallery { min-width: 0; border-radius: 4px; }
.exhibition-gallery:focus-visible { outline: 3px solid rgba(223, 138, 112, .65); outline-offset: 6px; }
.exhibition-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #151619;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
.exhibition-image-wrap img { width: 100%; height: 100%; display: block; object-fit: contain; }
.exhibition-image-wrap-portrait { aspect-ratio: 3 / 4; }
.exhibition-caption { min-height: 1.4em; margin: 14px 0 12px; color: rgba(255, 248, 237, .72); font-size: .86rem; }
.exhibition-thumbnails { display: flex; gap: 9px; max-width: 100%; overflow-x: auto; padding-bottom: 4px; }
.exhibition-thumbnail {
  width: 60px;
  height: 74px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #151619;
  opacity: .58;
  cursor: pointer;
}
.exhibition-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
.exhibition-thumbnail.is-active { border-color: #df8a70; opacity: 1; }
.exhibition-copy h3 { margin: 0; font-family: "Newsreader", Georgia, serif; font-size: clamp(2.8rem, 5vw, 4.7rem); font-weight: 400; line-height: .98; letter-spacing: -.035em; }
.exhibition-copy > p:last-child { margin: 30px 0 0; color: rgba(255, 248, 237, .76); font-size: 1.02rem; line-height: 1.75; }

.atelier-section {
  padding: 100px max(24px, calc((100vw - 1040px) / 2));
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 100px;
  align-items: start;
}
.artist-summary { padding-top: 42px; }
.artist-summary p { margin: 0 0 28px; color: #514941; font-size: 1.08rem; line-height: 1.75; }
.text-link { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link span { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.about-main { background: #fffaf1; }
.about-hero {
  padding: 86px max(24px, calc((100vw - 1100px) / 2)) 110px;
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: clamp(54px, 8vw, 112px);
  align-items: center;
}
.about-portrait-wrap { aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-deep); box-shadow: var(--shadow); }
.about-portrait-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.about-intro h1 { max-width: 650px; font-size: clamp(4rem, 8vw, 7rem); }
.about-lead { max-width: 620px; margin: 30px 0 0; color: #514941; font-size: clamp(1.12rem, 2vw, 1.35rem); line-height: 1.65; }
.about-content {
  padding: 110px max(24px, calc((100vw - 1100px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(60px, 9vw, 120px);
  align-items: start;
  background: var(--paper);
}
.about-story h2 { max-width: 650px; }
.about-story p:not(.eyebrow) { margin: 30px 0 0; color: #514941; font-size: 1.08rem; line-height: 1.8; }
.about-facts { padding: clamp(32px, 5vw, 54px); color: #fff8ed; background: #292522; box-shadow: var(--shadow); }
.about-facts .eyebrow { color: #df8a70; margin-bottom: 11px; }
.fact-block + .fact-block { margin-top: 34px; padding-top: 34px; border-top: 1px solid rgba(255, 248, 237, .16); }
.fact-block h3 { margin: 0 0 8px; font-family: "Newsreader", Georgia, serif; font-size: 1.75rem; font-weight: 400; }
.fact-block p:not(.eyebrow), .fact-list { margin: 0; color: rgba(255, 248, 237, .74); font-size: .95rem; line-height: 1.65; }
.fact-list { padding: 0; list-style: none; }
.fact-list li + li { margin-top: 11px; }
.about-cta {
  padding: 90px max(24px, calc((100vw - 1100px) / 2));
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  background: var(--paper-deep);
}
.about-cta h2 { max-width: 690px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-section {
  padding: 92px max(24px, calc((100vw - 1040px) / 2));
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 100px;
  align-items: start;
  color: var(--white);
  background: var(--terracotta-dark);
}
.contact-section .eyebrow { color: #efb49f; }
.contact-details { padding-top: 42px; }
.contact-details p { margin: 0 0 26px; color: rgba(255, 253, 248, .78); font-size: 1.08rem; line-height: 1.7; }
.contact-email { color: var(--white); font-family: "Newsreader", Georgia, serif; font-size: clamp(1.45rem, 3vw, 2.25rem); text-underline-offset: 7px; overflow-wrap: anywhere; }
footer { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 34px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }

dialog {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(35, 29, 24, .66); backdrop-filter: blur(5px); }
.art-dialog { width: min(1060px, calc(100% - 34px)); max-height: calc(100vh - 34px); border-radius: 4px; }
.art-dialog-layout { display: grid; grid-template-columns: 1.18fr .82fr; min-height: 640px; }
.dialog-artwork-wrap { position: relative; background: #e8dfd1; min-height: 480px; overflow: hidden; }
.dialog-artwork-wrap img { width: 100%; height: 100%; display: block; object-fit: contain; }
.carousel-button {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 253, 248, .9);
  box-shadow: 0 6px 24px rgba(46, 41, 36, .2);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.carousel-previous { left: 16px; }
.carousel-next { right: 16px; }
.carousel-button:hover { background: var(--white); }
.carousel-count {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, .88);
  font-size: .73rem;
  font-weight: 600;
}
.carousel-thumbnails {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  max-width: calc(100% - 36px);
  gap: 8px;
  padding: 8px;
  overflow-x: auto;
  border-radius: 8px;
  background: rgba(46, 41, 36, .72);
  transform: translateX(-50%);
}
.carousel-thumbnail {
  width: 44px;
  height: 54px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: var(--paper-deep);
  cursor: pointer;
}
.carousel-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.carousel-thumbnail.is-active { border-color: var(--white); }
.carousel-button[hidden], .carousel-count[hidden], .carousel-thumbnails[hidden] { display: none; }
.dialog-copy { padding: 80px 54px 54px; display: flex; flex-direction: column; align-items: flex-start; }
.dialog-copy h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.art-price { font-size: 1.08rem; font-weight: 600; margin: 24px 0 12px; }
.art-description { color: var(--muted); line-height: 1.7; margin: 28px 0 auto; padding-bottom: 38px; }
.icon-button { position: absolute; top: 18px; right: 18px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,253,248,.9); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }


@media (max-width: 820px) {
  .hero { min-height: 660px; padding-top: 110px; justify-content: flex-start; }
  .hero::after { top: 390px; right: -55px; opacity: .72; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .art-card { grid-column: span 1; }
  .art-card:nth-child(3n + 2) { padding-top: 0; }
  .art-card:nth-child(even) { padding-top: 46px; }
  .purchase-info-section { grid-template-columns: 1fr; gap: 20px; }
  .purchase-info-copy { padding-top: 10px; }
  .atelier-section { grid-template-columns: 1fr; gap: 20px; }
  .artist-summary { padding-top: 10px; }
  .about-hero, .about-content { grid-template-columns: 1fr; }
  .about-portrait-wrap { width: min(100%, 480px); }
  .about-cta { align-items: start; flex-direction: column; }
  .contact-section { grid-template-columns: 1fr; gap: 20px; }
  .contact-details { padding-top: 10px; }
  .art-dialog-layout { grid-template-columns: 1fr; }
  .dialog-artwork-wrap { min-height: auto; aspect-ratio: 4/4.6; }
  .dialog-copy { padding: 44px 28px 34px; }
  .art-description { margin-bottom: 0; }
  .exhibition-feature { grid-template-columns: 1fr; gap: 44px; }
  .exhibition-feature + .exhibition-feature { margin-top: 76px; padding-top: 76px; }
  .exhibition-copy { max-width: 620px; }
}

@media (max-width: 560px) {
  .site-header { min-height: 76px; width: calc(100% - 32px); padding: 14px 0; flex-wrap: wrap; gap: 12px; }
  .wordmark span { font-size: 1.1rem; }
  .header-actions { width: 100%; gap: 12px; justify-content: space-between; }
  .header-link { font-size: .78rem; }
  .hero { min-height: 610px; padding-inline: 20px; }
  h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .gallery-section { padding: 72px 18px 88px; }
  .exhibitions-section { padding: 72px 18px 88px; }
  .exhibition-image-wrap { aspect-ratio: 4 / 4.7; }
  .exhibition-image-wrap-portrait { aspect-ratio: 3 / 4; }
  .exhibition-thumbnail { width: 52px; height: 64px; }
  .section-heading { display: grid; align-items: start; margin-bottom: 32px; }
  .filter-label select { min-width: 0; }
  .gallery-grid { gap: 36px 12px; }
  .card-meta { display: grid; gap: 5px; }
  .card-meta h3 { font-size: 1.25rem; }
  .card-price { grid-row: 2; }
  .art-card:nth-child(even) { padding-top: 30px; }
  .purchase-info-section { padding: 74px 24px; }
  .atelier-section { padding: 74px 24px; grid-template-columns: 1fr; gap: 20px; }
  .about-hero { padding: 58px 20px 74px; gap: 38px; }
  .about-intro h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
  .about-content { padding: 74px 20px; gap: 46px; }
  .about-facts { padding: 30px 24px; }
  .about-cta { padding: 70px 20px; }
  .about-actions { width: 100%; }
  .about-actions a { width: 100%; }
  .contact-section { padding: 74px 24px; }
  footer { width: calc(100% - 32px); display: grid; gap: 8px; }
  .art-dialog { max-height: calc(100vh - 14px); width: calc(100% - 14px); }
  .dialog-copy .primary-button { width: 100%; }
  .carousel-button { width: 40px; height: 40px; }
  .carousel-previous { left: 10px; }
  .carousel-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
