:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --paper: #fffdf8;
  --panel: #eee6d9;
  --text: #1e2926;
  --muted: #65726c;
  --evergreen: #234b46;
  --teal: #3f756d;
  --rose: #c88f8d;
  --rose-deep: #9d5f62;
  --accent: #b68837;
  --line: #d8c7a9;
  --shadow: 0 18px 50px rgba(40, 58, 52, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #fffdf9 0, var(--bg) 42rem);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 8%, rgba(200,143,141,.16), transparent 24rem),
    radial-gradient(circle at 92% 14%, rgba(63,117,109,.13), transparent 28rem);
}
.site-header, main, footer { width: min(1320px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(320px, .8fr) auto;
  gap: 38px;
  align-items: end;
  padding: 30px 0 38px;
  border-bottom: 1px solid var(--line);
}
.brand { align-self: center; display: block; }
.brand img { display: block; width: min(100%, 620px); height: auto; mix-blend-mode: multiply; }
.header-copy { padding-bottom: 7px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--rose-deep);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 { margin: 0; font-family: Georgia, serif; color: var(--evergreen); font-size: clamp(2.4rem, 4.6vw, 4.8rem); font-weight: 400; line-height: .98; }
.intro { max-width: 690px; margin: 18px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.collection-price {
  min-width: 190px;
  margin: 0;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.collection-price span, .collection-price small { display: block; color: var(--muted); }
.collection-price strong { display: block; margin: 5px 0; font-family: Georgia, serif; color: var(--evergreen); font-size: 2.2rem; font-weight: 400; }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 26px;
  padding: 50px 0 80px;
}
.commission { padding: 52px 0 18px; border-bottom: 1px solid var(--line); }
.commission-heading { max-width: 760px; }
.commission-heading h2, .gallery-title { margin: 0; font-family: Georgia, serif; font-weight: 400; }
.commission-heading h2 { color: var(--evergreen); font-size: clamp(2rem, 4vw, 3.6rem); }
.commission-heading > p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.commission-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.commission-pair figure { position: relative; margin: 0; padding: 14px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.commission-pair img { display: block; width: 100%; height: 520px; object-fit: contain; background: #ece8e0; }
.commission-pair figcaption { padding: 13px 2px 1px; color: var(--muted); font-size: .9rem; }
.commission-prices { margin: 28px 0 42px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--teal); box-shadow: var(--shadow); }
.commission-prices h3 { margin: 0; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.commission-prices > p, .commission-prices small { color: var(--muted); line-height: 1.55; }
.price-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 22px 0; background: var(--line); border: 1px solid var(--line); }
.price-list span { display: flex; justify-content: space-between; gap: 18px; padding: 16px; background: #faf6ef; }
.price-list b { font-weight: 550; }
.price-list strong { color: var(--accent); }
.gallery-title { padding-top: 48px; color: var(--evergreen); font-size: 2.1rem; }
.artist-order { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 50px 0; border-bottom: 1px solid var(--line); }
.artist-order h2 { margin: 0; font-family: Georgia, serif; color: var(--evergreen); font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 400; }
.artist-order h2 span { color: var(--muted); font-size: .55em; }
.artist-order > div > p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.order-card { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--rose); box-shadow: var(--shadow); }
.order-card h3 { margin: 0 0 20px; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 400; }
.order-card p { margin: 14px 0 0; color: var(--muted); line-height: 1.55; }
.email { display: inline-block; padding: 13px 17px; border-radius: 999px; color: #fff; background: var(--evergreen); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.email:hover, .email:focus-visible { filter: brightness(1.08); }
.art-card { min-width: 0; }
.art-button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  text-align: left;
  cursor: zoom-in;
}
.image-frame {
  position: relative;
  display: grid;
  place-items: center;
  height: 420px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.sold-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  color: #fff;
  background: rgba(157,95,98,.94);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.art-card.sold .image-frame img { filter: saturate(.72) brightness(.82); }
.art-card.sold .price { color: var(--rose-deep); text-transform: uppercase; }
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .35s ease, filter .35s ease;
}
.art-button:hover img, .art-button:focus-visible img { transform: scale(1.018); filter: brightness(1.06); }
.art-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.card-copy { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: baseline; padding-top: 16px; }
.card-copy h2 { margin: 0; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.price { color: var(--rose-deep); font-weight: 750; }
.size { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .9rem; }
dialog {
  width: min(1120px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
}
dialog::backdrop { background: rgba(20,35,31,.78); backdrop-filter: blur(7px); }
.close {
  position: sticky;
  z-index: 2;
  top: 14px;
  float: right;
  margin: 14px 14px -58px 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  color: #fff;
  background: rgba(35,75,70,.92);
  font-size: 1.8rem;
  cursor: pointer;
}
.dialog-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); min-height: 620px; }
.dialog-grid > img { width: 100%; height: 100%; max-height: 86vh; object-fit: contain; background: #e6e1d8; }
.dialog-copy { align-self: center; padding: 48px; }
.dialog-copy h2 { margin: 0 0 34px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 400; line-height: 1.05; }
dl { margin: 0 0 30px; border-top: 1px solid var(--line); }
dl div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; }
.dialog-copy > p:last-child { color: var(--muted); line-height: 1.65; }
footer { display: flex; justify-content: space-between; gap: 32px; align-items: center; padding: 34px 0 50px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
footer img { width: min(440px, 50%); mix-blend-mode: multiply; }
footer div { display: grid; gap: 4px; text-align: right; }
footer a { color: var(--evergreen); font-weight: 750; text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr 1fr; }
  .brand { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-grid > img { max-height: 60vh; }
  .dialog-copy { padding: 32px; }
}
@media (max-width: 620px) {
  .site-header { display: block; padding-top: 22px; }
  .brand { margin-bottom: 24px; }
  .collection-price { margin-top: 28px; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr; gap: 38px; }
  .image-frame { height: 410px; }
  .dialog-copy { padding: 28px 22px 34px; }
  .commission-pair { grid-template-columns: 1fr; }
  .commission-pair img { height: 430px; }
  .price-list { grid-template-columns: 1fr; }
  .commission-prices { padding: 22px; }
  .artist-order { grid-template-columns: 1fr; gap: 24px; }
  footer { display: block; text-align: center; }
  footer img { width: 100%; }
  footer div { margin-top: 18px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .image-frame img { transition: none; }
}
