:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1d1b19;
  --muted: #6f6a63;
  --line: #e6e1d8;
  --accent: #9c4a2f;
  --accent-ink: #ffffff;
  --ok: #3e6b48;
  --warn: #a6772c;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --radius: 4px;
  --shadow: 0 10px 40px rgba(29, 27, 25, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--accent); font-weight: 600; }

/* Buttons */
.btn { display: inline-block; padding: .8em 1.5em; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: 500 .9rem var(--sans); letter-spacing: .04em; text-decoration: none; border-radius: var(--radius); cursor: pointer; transition: .2s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .6; cursor: wait; }
.full { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 244, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; letter-spacing: .02em; margin-right: auto; white-space: nowrap; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: .92rem; letter-spacing: .03em; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.active { border-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); white-space: nowrap; }
.cart-btn:hover { border-color: var(--ink); }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; background: var(--ink); color: var(--bg); border-radius: 999px; font-size: .75rem; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--ink); padding: 4px 8px; }

/* On phones the links fold into the ☰ menu, but the cart stays visible */
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a.active { border-color: var(--line); font-weight: 600; }
}

/* Banner */
/* Capped at 1600px wide: the photo is 1370px, so wider would blur it, and on ultrawide screens
   a full-width strip would crop off the top of the photo. */
.banner { position: relative; padding: 0; max-width: 1600px; margin-inline: auto; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; background: #2a2622; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
@media (min-width: 1640px) { .banner { margin-top: 24px; } }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 17, 14, .78) 0%, rgba(20, 17, 14, .35) 45%, transparent 75%); }
.banner-text { position: relative; z-index: 1; padding-block: 48px 56px; color: #fff; }
.banner-text .eyebrow { color: #f3d9b8; }
.banner-text h1 { max-width: 14em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.banner .btn-solid { background: #fff; color: var(--ink); border-color: #fff; }
.banner .btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Collection tiles */
.tiles { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tile { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); text-decoration: none; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 17, 14, .65), transparent 60%); }
.tile-label { position: absolute; left: 20px; bottom: 16px; z-index: 1; font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; }
.tile-label small { display: block; font: 500 .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .9; margin-top: 4px; }
.tile.soon { display: grid; background: repeating-linear-gradient(135deg, var(--line) 0 12px, var(--bg) 12px 24px); color: var(--muted); }
.tile.soon::after { display: none; }

/* Sections */
section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.page-head { padding: 64px 0 24px; }
.page-head p { max-width: 40em; color: var(--muted); font-size: 1.08rem; }
.page-head p.eyebrow { color: var(--accent); font-size: .75rem; }

/* Grids & cards */
.grid { display: grid; gap: 40px 32px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { cursor: default; }
.card.original { cursor: pointer; }
.frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.frame.square { aspect-ratio: 1; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card.original:hover .frame img, .card.original:focus .frame img { transform: scale(1.03); }
.card.original:focus { outline: 2px solid var(--accent); outline-offset: 4px; }
.card-info { padding-top: 16px; }
.card-info h3 { margin-bottom: .2em; }
.price { font-weight: 500; margin: .4em 0 0; }
.price.big { font-size: 1.4rem; font-family: var(--serif); margin: 1em 0; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--surface); padding: 4px 10px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; }
.badge.inline { position: static; display: inline-block; margin-bottom: 12px; border: 1px solid var(--line); }
.badge.available { color: var(--ok); }
.badge.reserved { color: var(--warn); }
.badge.sold { color: var(--muted); }
.buy-row { display: flex; gap: 8px; margin-top: 12px; }
.buy-row select { flex: 1; min-width: 0; padding: .7em; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); font: inherit; font-size: .9rem; color: var(--ink); }

.card-info h3 a, .card-info .eyebrow { text-decoration: none; }
.card-info .eyebrow { margin-bottom: .3em; }

/* Gallery: staggered columns so every painting keeps its real shape */
.masonry { columns: 3 280px; column-gap: 32px; }
.art-card { display: block; break-inside: avoid; margin-bottom: 36px; text-decoration: none; }
.art-img { overflow: hidden; background: var(--line); }
.art-img img { width: 100%; height: auto; transition: transform .6s ease; }
.art-card:hover .art-img img { transform: scale(1.03); }
.art-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.art-card .card-info { padding-top: 12px; }
.art-card .card-info p { margin: 0; }

.filters[hidden] { display: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filters button { background: none; border: 1px solid var(--line); padding: 8px 18px; border-radius: 999px; cursor: pointer; font: inherit; font-size: .9rem; color: var(--ink); }
.filters button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Split / about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.portrait-crop img { object-position: 28% center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Artwork page */
.crumbs { padding-top: 28px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.art-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; padding: 24px 0 48px; }
.art-detail-img { position: sticky; top: 96px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.art-detail-img img { max-height: calc(100vh - 160px); width: auto; max-width: 100%; box-shadow: var(--shadow); }
.own-title { font-size: 1.5rem; margin-top: 1.4em; }
.own-block { border: 1px solid var(--line); background: var(--surface); padding: 20px; margin-bottom: 16px; }
.own-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 14px; }
.own-head h3 { margin: 0 0 .15em; font-size: 1.3rem; }
.own-head p { margin: 0; }
.own-head strong { white-space: nowrap; font-weight: 500; }
.own-block .buy-row { margin-top: 0; }
.own-block .perks { margin: 16px 0 0; }
.prev-next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 24px 0 8px; }
.prev-next a { text-decoration: none; }
.prev-next a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .art-detail { grid-template-columns: 1fr; gap: 28px; }
  .art-detail-img { position: static; padding: 12px; }
  .art-detail-img img { max-height: 60vh; }
}

/* Commission steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps li::before { content: "0" counter(step); display: block; font: 600 .8rem var(--sans); letter-spacing: .15em; color: var(--accent); margin-bottom: 8px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.features h3 { font-size: 1.2rem; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.form input, .form select, .form textarea { padding: .8em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font: inherit; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.notice { padding: 32px; background: var(--surface); border: 1px solid var(--line); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 48px; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* Drawer */
.overlay { position: fixed; inset: 0; background: rgba(29, 27, 25, .4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 50; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease; box-shadow: var(--shadow); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.6rem; margin: 0; }
.drawer-close, .modal-close { background: none; border: 0; font-size: 1.8rem; cursor: pointer; line-height: 1; color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 4px; }
.continue-btn { display: block; margin-top: 12px; text-align: center; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 72px; height: 72px; object-fit: cover; }
.line-title { font-weight: 500; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.qty button { background: none; border: 0; cursor: pointer; font-size: 1rem; color: var(--ink); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { position: relative; background: var(--bg); max-width: 1000px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 16px; z-index: 2; }
.detail { display: grid; grid-template-columns: 1.2fr 1fr; }
.detail-img { background: var(--line); }
.detail-img img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }
.detail-info { padding: 48px 40px; }
.perks { padding-left: 1.1em; margin-top: 28px; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } .detail-img img { min-height: 0; aspect-ratio: 4 / 5; } .detail-info { padding: 28px 20px; } }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--radius);
  z-index: 60; font-size: .9rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
