:root {
  --ink: #17130f;
  --muted: #6f675d;
  --paper: #fbfaf7;
  --ivory: #f1eadc;
  --bronze: #a66c35;
  --terracotta: #b64f38;
  --olive: #4c5a3a;
  --line: rgba(23, 19, 15, 0.14);
  --shadow: 0 20px 60px rgba(23, 19, 15, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  color: var(--bronze);
  font-family: Georgia, serif;
  letter-spacing: 0;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.site-nav { display: flex; align-items: center; gap: 20px; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-toggle { display: none; }

.page-hero {
  padding: clamp(64px, 10vw, 128px) clamp(18px, 4vw, 56px);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.page-hero h1, .page-contact h1 { max-width: 980px; }
.page-hero .lead { margin-bottom: 0; }
.section-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: var(--ivory);
}
.section-links a {
  display: grid;
  align-content: end;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.section-links span { color: var(--bronze); text-transform: uppercase; font-size: 12px; font-weight: 800; }
.section-links strong { margin-top: 8px; font: 500 26px/1.15 Georgia, serif; }
.page-shop { min-height: 560px; }
.page-verger { border-bottom: 1px solid var(--line); }
.page-contact { min-height: calc(100vh - 150px); }
.page-contact h1 { font-size: clamp(44px, 7vw, 88px); }
.contact-direct { display: grid; gap: 8px; margin-top: 24px; }
.contact-direct a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.hero {
  min-height: calc(100vh - 81px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  background:
    radial-gradient(circle at 26% 28%, rgba(182, 79, 56, 0.75), transparent 24%),
    radial-gradient(circle at 68% 36%, rgba(76, 90, 58, 0.62), transparent 20%),
    linear-gradient(135deg, #201811 0%, #6d4426 43%, #d4b98a 100%);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(255,255,255,.45);
}
.hero-art span {
  position: absolute;
  display: block;
  background: rgba(251,250,247,.9);
  box-shadow: var(--shadow);
}
.hero-art span:nth-child(1) { width: 31%; height: 58%; left: 16%; top: 18%; }
.hero-art span:nth-child(2) { width: 25%; height: 44%; right: 18%; top: 24%; background: #15100d; }
.hero-art span:nth-child(3) { width: 36%; height: 20%; left: 34%; bottom: 13%; background: var(--terracotta); }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 80px);
  background: var(--ivory);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 8vw, 112px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: 0;
}
h2 {
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}
.lead { max-width: 680px; color: #3b322a; font-size: clamp(18px, 2vw, 24px); line-height: 1.55; }
.hero-actions, .filters { display: flex; flex-wrap: wrap; gap: 12px; }
.button, .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.button.ghost { color: var(--bronze); border-color: rgba(166,108,53,.4); }
.button.full { width: 100%; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.section, .shop-band, .verger, .contact {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px);
}
.intro, .verger, .contact {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
}
.intro-text, .verger p, .contact p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.art-grid, .event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.art-card, .event-card, .cart-panel, .verger-card, .press-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.art-card { overflow: hidden; }
.art-thumb {
  display: grid;
  place-items: center;
  height: 310px;
  background: var(--art-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.art-body, .event-card, .cart-panel, .press-list article { padding: 18px; }
.art-meta, .event-meta, .status, .price { color: var(--muted); font-size: 14px; }
.art-card h3, .event-card h3 { margin-bottom: 8px; font-size: 21px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.detail-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--bronze);
  font-size: 14px;
  font-weight: 700;
}

.shop-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  background: #18130f;
  color: #fff;
}
.shop-band p { color: rgba(255,255,255,.72); max-width: 720px; line-height: 1.75; }
.cart-panel { color: var(--ink); box-shadow: var(--shadow); }
.cart-items { display: grid; gap: 12px; min-height: 82px; }
.cart-line, .cart-total { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.cart-total { margin: 16px 0; font-size: 18px; border-bottom: 0; }

.event-card { display: grid; gap: 12px; }
.ticket-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); }
.memory { background: var(--ivory); }
.memory-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.memory-strip article {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #322219, #a66c35);
  border-radius: 8px;
}
.memory-strip article:nth-child(2) { background: linear-gradient(135deg, #182015, #4c5a3a); }
.memory-strip article:nth-child(3) { background: linear-gradient(135deg, #251413, #b64f38); }
.memory-strip article:nth-child(4) { background: linear-gradient(135deg, #15100d, #82715a); }
.verger { background: #fff; }
.verger-card { display: grid; align-content: end; min-height: 280px; padding: 24px; background: var(--ivory); }
.verger-card span { color: var(--bronze); text-transform: uppercase; font-size: 12px; font-weight: 800; }
.verger-card strong { font-family: Georgia, serif; font-size: 30px; line-height: 1.15; font-weight: 500; }
.press-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.press-list span { display: block; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.contact { background: var(--ink); color: #fff; }
.contact p { color: rgba(255,255,255,.72); }
.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
}
.contact-form label { display: grid; gap: 8px; color: rgba(255,255,255,.76); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 13px 14px;
}
.contact-form option { color: var(--ink); }
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--muted);
  background: #fff;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.footer-links a:hover { color: var(--ink); }
.legal-page { background: var(--ivory); color: var(--ink); }
.site-header.compact { position: sticky; min-height: 72px; }
.legal-shell {
  width: min(920px, calc(100vw - 36px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) 0;
}
.legal-shell h1 {
  margin: 8px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .92;
}
.legal-note {
  margin: 0 0 30px;
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  background: #fff;
}
.legal-section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.legal-section h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
}
.legal-section p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.biography-shell {
  width: min(980px, calc(100vw - 36px));
}
.biography-shell .legal-section p {
  font-size: 17px;
}
.biography-contact a {
  color: var(--bronze);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.biography-hero-image {
  margin: 30px 0 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.biography-hero-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.biography-hero-image figcaption,
.biography-gallery figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.biography-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.biography-gallery figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.biography-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}
dialog {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(23,19,15,.55); }
.checkout { position: relative; padding: 24px; }
.close { position: absolute; right: 14px; top: 14px; border: 0; background: transparent; cursor: pointer; }
.payment-options { display: grid; gap: 10px; margin: 20px 0; }

.artwork-page .site-header { position: sticky; }
.detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}
.detail-visual {
  display: grid;
  place-items: center;
  min-height: 560px;
  border: 1px solid rgba(255,255,255,.42);
  background: var(--art-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.detail-visual img {
  width: 100%;
  height: 100%;
  max-height: 720px;
  object-fit: contain;
  background: #fff;
}
.detail-copy {
  align-self: center;
}
.detail-copy h1 {
  font-size: clamp(48px, 7vw, 94px);
}
.detail-status {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(166,108,53,.3);
  border-radius: 999px;
  color: var(--bronze);
  background: rgba(255,255,255,.48);
  font-size: 13px;
  font-weight: 800;
}
.detail-price {
  display: block;
  margin: 18px 0 24px;
  font-size: 28px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: clamp(46px, 7vw, 92px) clamp(18px, 4vw, 56px);
}
.detail-panel, .certificate-panel, .share-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}
.detail-panel p, .certificate-panel p, .share-panel p { color: var(--muted); line-height: 1.7; }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.spec-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--paper);
}
.spec-grid span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.spec-grid strong { display: block; margin-top: 8px; }
.side-stack { display: grid; gap: 16px; align-content: start; }
.share-buttons { display: grid; gap: 10px; }
.not-found { min-height: 60vh; padding: clamp(56px, 8vw, 104px) clamp(18px, 4vw, 56px); }

.checkout-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 56px);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.checkout-status {
  border: 1px solid rgba(166,108,53,.28);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}
.checkout-status span { display: block; color: var(--muted); font-size: 13px; }
.checkout-status strong { display: block; margin-top: 8px; font-size: 24px; }
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  padding: clamp(46px, 7vw, 92px) clamp(18px, 4vw, 56px);
}
.checkout-form, .order-summary, .confirmation-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}
.checkout-form {
  display: grid;
  gap: 18px;
}
.form-block {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.form-block:last-of-type { border-bottom: 0; }
.form-grid, .choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 13px 14px;
}
.choice-grid label {
  align-content: start;
  min-height: 54px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.checkout-items {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.checkout-line, .summary-line, .summary-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.checkout-line span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.remove-line {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: var(--terracotta);
  cursor: pointer;
}
.summary-total {
  margin: 14px 0 18px;
  border-bottom: 0;
  font-size: 20px;
}
.confirmation-panel {
  margin: 0 clamp(18px, 4vw, 56px) clamp(46px, 7vw, 92px);
}
.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ticket-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: end;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 56px);
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.ticket-status {
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 1px solid rgba(76,90,58,.35);
  border-radius: 8px;
  color: var(--olive);
  background: #fff;
  box-shadow: var(--shadow);
}
.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: clamp(46px, 7vw, 92px) clamp(18px, 4vw, 56px);
}
.ticket-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}
.qr-box {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  aspect-ratio: 1;
  padding: 14px;
  border: 1px solid var(--ink);
  background: #fff;
}
.qr-box span {
  border-radius: 2px;
  background: var(--paper);
}
.qr-box span.on {
  background: var(--ink);
}

@media (max-width: 980px) {
  .hero, .intro, .verger, .contact, .shop-band { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-art { min-height: 420px; order: 2; }
  .art-grid, .event-grid, .press-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memory-strip { grid-template-columns: repeat(2, 1fr); }
  .section-links { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .detail-hero, .detail-layout { grid-template-columns: 1fr; }
  .detail-visual { min-height: 420px; }
  .checkout-hero, .checkout-layout, .ticket-hero, .ticket-layout, .ticket-card { grid-template-columns: 1fr; }
  .qr-box { width: min(240px, 100%); }
}

@media (max-width: 820px) {
  .site-header { align-items: flex-start; }
  .nav-toggle { display: inline-flex; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .hero-art { min-height: 330px; }
  .hero-copy { padding: 34px 18px; }
  .art-grid, .event-grid, .press-list, .memory-strip { grid-template-columns: 1fr; }
  .art-thumb { height: 260px; }
  .card-actions { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .biography-gallery { grid-template-columns: 1fr; }
  .detail-visual { min-height: 320px; }
  .detail-actions { flex-direction: column; }
  .detail-actions .button { width: 100%; }
  .spec-grid { grid-template-columns: 1fr; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .confirmation-actions { flex-direction: column; }
  .confirmation-actions .button { width: 100%; }
}
