:root {
  --paper: #f5f2ed;
  --paper-2: #ece7df;
  --ink: #171614;
  --ink-2: #3b3934;
  --muted: #76726a;
  --line: #d8d2c7;
  --accent: #8a2f1c;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--serif); font-size: 26px; letter-spacing: .01em; line-height: 1; }
.nav { display: flex; gap: 36px; }
.nav a {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { font-family: var(--serif); font-size: 30px; letter-spacing: 0; text-transform: none; padding: 10px 0; border: 0; }
}

/* ---------- Type ---------- */
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 0; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; margin: 0; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.prose p { margin: 0 0 1.1em; color: var(--ink-2); max-width: 36em; }
em, .it { font-family: var(--serif); font-style: italic; }


/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; font-size: 17px; border-radius: 0; outline: none; transition: border-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.form-msg { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); background: var(--paper-2); font-size: 15px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ---------- Page titles ---------- */
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; margin: 0; }
.page-top { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.page-top .lede { margin: 16px 0 0; }
.text-link { font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s; }
.text-link:hover { border-bottom-color: var(--ink); }

/* ---------- Home: collage ---------- */
.collage { display: flex; gap: clamp(10px, 1.4vw, 18px); align-items: flex-start; padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 96px); opacity: 0; transition: opacity .6s ease; min-height: 50vh; }
.collage.ready { opacity: 1; min-height: 0; }
.collage-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 18px); }
.tile { position: relative; display: block; overflow: hidden; background: var(--paper-2); }
.tile img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.02); }
.tile-label { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 28px 14px 12px; color: #fff; background: linear-gradient(to top, rgba(15,14,12,.6), rgba(15,14,12,0)); opacity: 0; transition: opacity .25s ease; font-size: 14px; }
.tile-title { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.tile-price { white-space: nowrap; }
.tile:hover .tile-label, .tile:focus-visible .tile-label { opacity: 1; }
.tile.is-sold::after { content: "Sold"; position: absolute; top: 10px; left: 10px; background: var(--paper); color: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; }
.tile.is-sold .tile-price { display: none; }
@media (hover: none) { .tile-label { opacity: 1; padding: 22px 10px 8px; } .tile-title { font-size: 16px; } .tile-price { display: none; } }

.home-section { padding: 0 0 clamp(48px, 7vw, 96px); }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: clamp(24px, 3vw, 40px); }
.intro { border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 56px); }
.intro p { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; max-width: 30em; margin: 0 0 24px; }
.intro p.intro-links { font-family: var(--sans); font-size: 15px; display: flex; gap: 24px; flex-wrap: wrap; margin: 0; max-width: none; }

.section { padding: clamp(56px, 8vw, 120px) 0; }
.section.tint { background: var(--paper-2); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }


/* ---------- Artwork cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card a { display: block; }
.card .frame { background: var(--paper-2); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; padding: 9%; overflow: hidden; }
.card .frame img { max-height: 100%; width: auto; object-fit: contain; box-shadow: 0 18px 30px -18px rgba(40,30,20,.45); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card a:hover .frame img { transform: scale(1.025); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.card .title { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.card .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.card .price { font-size: 14px; white-space: nowrap; text-align: right; }

.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.tag.sold::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Gallery ---------- */
.filters { display: flex; gap: 28px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: clamp(32px, 4vw, 56px); }
.filters button { background: none; border: 0; padding: 0 0 14px; margin-bottom: -1px; cursor: pointer; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.filters .count { color: var(--muted); margin-left: 4px; }
.empty { color: var(--muted); padding: 40px 0; }

/* ---------- Single artwork ---------- */
.work { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 8vw, 120px); align-items: start; }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; } }
.work-figure { background: var(--paper-2); padding: clamp(24px, 6vw, 80px); display: flex; justify-content: center; position: sticky; top: 100px; }
@media (max-width: 900px) { .work-figure { position: static; } }
.work-figure img { max-height: 76vh; width: auto; box-shadow: 0 30px 60px -30px rgba(40,30,20,.5); cursor: zoom-in; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ink); }
.work-info .h2 { margin-bottom: 10px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; margin: 28px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.buy-box { margin: 32px 0; }
.price-lg { font-family: var(--serif); font-size: 40px; line-height: 1; margin: 0 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.inline-form { display: none; margin-top: 24px; }
.inline-form.open { display: block; }

.lightbox { position: fixed; inset: 0; background: rgba(15,14,12,.94); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; }

.more { padding-bottom: clamp(56px, 8vw, 120px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(56px, 8vw, 120px); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid figure { margin: 0; }
.about-grid figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.pull { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.35; margin: 0 0 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; }
.facts span { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

.about-text { max-width: 720px; padding-bottom: clamp(56px, 8vw, 120px); }

/* ---------- Commissions ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { list-style: none; border-top: 1px solid var(--ink); padding-top: 18px; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-bottom: 18px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.steps ol, ol.steps { padding: 0; margin: 0; }
.rates { width: 100%; border-collapse: collapse; font-size: 16px; }
.rates td { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rates td:last-child { text-align: right; font-family: var(--serif); font-size: 22px; }
.form-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }

/* ---------- Mailing list ---------- */
.signup-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: end; }
@media (max-width: 860px) { .signup-band { grid-template-columns: 1fr; } }
.signup label { display: block; font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.signup-row { display: flex; border-bottom: 1px solid var(--ink); }
.signup-row input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 12px 0; font-size: 17px; outline: none; }
.signup-row button { background: none; border: 0; padding: 0 0 0 16px; cursor: pointer; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.signup-row button:hover { color: var(--accent); }
.signup .form-msg { margin-top: 12px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid .logo { color: var(--ink); display: block; margin-bottom: 12px; }
.foot-grid h4 { margin: 0 0 12px; font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { margin-top: 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
