/* CSJ Curator — public site. Warm off-white ground, hairline rules, square
   corners. Instrument Serif for display, DM Sans for everything else. */

:root {
  --section-pad: 64px; /* the space above and below every section, site-wide */
  --ground: #f3f2ee;
  --ink: #1f1f1c;
  --body: #3d3c37;
  --muted: #5a5851;
  --rule: #c9c5bb;
  --field: #b9b5aa;
  --frame: #e4e1da;
  --green: #3b4331;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 96px; }
body {
  overflow-x: clip; /* iPhone Safari lets the page slide sideways if anything pokes past the edge */
  margin: 0; background-color: var(--ground); color: var(--body);
  font: 300 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--frame); }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }

.page { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header / footer */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0 24px; border-bottom: 1px solid var(--rule);
  /* Stays at the top; the page shows through softly behind it. */
  position: sticky; top: 0; z-index: 100;
}
.site-header::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: rgba(243, 242, 238, 0.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.site-mark { font: 400 24px/1 var(--serif); color: var(--ink); text-transform: uppercase; }
.site-nav { display: flex; gap: 24px; }
.site-nav a, .eyebrow, .piece-cat, .btn, .count, .ref, .form-wrap summary, .f > span {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400;
}
.site-nav a { color: var(--ink); }
.site-nav a:hover { color: var(--muted); }

/* Full-screen menu. The header button only appears once the script has run
   (html.menu-ready); until then the plain links above stay put. */
.menu-btn { display: inline-flex; align-items: center; align-self: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer;
  font: 400 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.menu-btn:hover { color: var(--muted); }
.menu-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.menu-btn[hidden] { display: none; }
.menu-plus { position: relative; width: 24px; height: 24px; flex: none; }
.menu-plus::before, .menu-plus::after { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: currentColor; transition: transform 0.25s ease; }
.menu-plus::after { transform: rotate(90deg); }
.menu-plus.is-cross::before { transform: rotate(45deg); }
.menu-plus.is-cross::after { transform: rotate(-45deg); }
.menu-ready .site-nav { display: none; }
.menu-lock { overflow: hidden; }
.site-menu { position: fixed; inset: 0; z-index: 200; background: var(--ground); opacity: 0; transition: opacity 0.25s ease; overflow-y: auto; }
.site-menu[hidden] { display: none; }
.site-menu.is-open { opacity: 1; }
.site-menu__inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; min-height: 100%; display: flex; flex-direction: column; }
.site-menu__bar { display: flex; justify-content: space-between; align-items: center; padding: 28px 0 24px; border-bottom: 1px solid var(--rule); }
.site-menu__body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 64px; align-items: center; padding: 48px 0; }
.site-menu__links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.site-menu__links a { font: 400 clamp(44px, 7vw, 88px)/1.08 var(--serif); letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); transition: opacity 0.2s ease, transform 0.25s ease; }
.site-menu__links:hover a { opacity: 0.4; }
.site-menu__links a:hover, .site-menu__links a:focus-visible { opacity: 1; }
@media (hover: hover) { .site-menu__links a:hover, .site-menu__links a:focus-visible { transform: translateX(18px); } }
.site-menu__photo { margin: 0; aspect-ratio: 4 / 5; max-height: 62vh; width: 100%; background: var(--frame); overflow: hidden; justify-self: end; }
.site-menu__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; display: block; }
.site-menu__contact { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 22px 0 32px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.site-menu__contact a { color: var(--ink); }
.site-menu__contact a:hover { color: var(--green); }
/* Page fade: in on arrival, out when a same-site link is clicked. */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body { animation: page-in 0.45s ease backwards; transition: opacity 0.3s ease; }
html.is-leaving body { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .site-menu, .menu-plus::before, .menu-plus::after, .site-menu__links a { transition: none; } .site-menu__links a:hover, .site-menu__links a:focus-visible { transform: none; } body { animation: none; transition: none; } }
@media (max-width: 760px) {
  .site-menu__inner { padding: 0 16px; }
  .site-menu__body { grid-template-columns: 1fr; padding: 32px 0; }
  .site-menu__photo { display: none; }
  .site-menu__links a { font-size: clamp(38px, 12vw, 56px); }
}
.site-footer a:hover { color: var(--ink); }
.site-footer {
  display: flex; justify-content: space-between; margin-top: 96px; padding: 32px 0;
  border-top: 1px solid var(--rule); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 42px); line-height: 1.05; }
h2 { font-size: 36px; line-height: 1.1; margin-bottom: 18px; }
.eyebrow, .piece-cat { color: var(--muted); margin: 0 0 12px; display: block; }
.lede { max-width: 440px; margin-top: 22px; font-size: 15px; }
.count { color: var(--muted); margin: 0; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 20px; border: 1px solid var(--ink); color: var(--ink);
  background: transparent; cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: var(--ink); color: var(--ground); }
.btn--primary { background: var(--green); border-color: var(--green); color: var(--ground); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }
.btn--small { padding: 9px 16px; font-size: 10px; }
/* Every button on the site is a pill, to match the admin. */
.btn, .inquiry button, .subscribe-go { border-radius: 999px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; }

/* Hero: a photo the width of the page with the headline and two links set small beneath it, like a gallery caption. */
.hero-photo { margin: 0; width: 100%; background: var(--frame); aspect-ratio: 2 / 1; max-height: 62vh; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; display: block; }
.hero-copy { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; flex-wrap: wrap; margin: 36px 0 0; }
.hero h1 { font-size: 20px; line-height: 1.3; letter-spacing: 0; text-wrap: balance; max-width: 640px; }
.hero h1.hero-title { font-size: clamp(40px, 5.4vw, 76px); line-height: 0.98; letter-spacing: -0.02em; max-width: 900px; }
.hero-title em { color: var(--green); }
/* On phones the headline scales with the screen so its two balanced lines fill the width. */
@media (max-width: 760px) { .hero h1 { font-size: clamp(20px, 6.4vw, 26px); } }
.hero-actions { margin: 0; }
.hero-actions .inquire-link { font-size: 11px; }

/* Sections */
.hero { padding: 40px 0; }
.section { padding: var(--section-pad) 0; border-top: 1px solid var(--rule); }
.hero + .section { }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
#collection { padding-top: 0; }
.section-head--filters { align-items: center; gap: 6px 24px; padding: 18px 0; margin-bottom: 36px; border-bottom: 1px solid var(--rule); }
/* The "The collection" label is hidden from view (the gallery is right there) but stays for screen readers. */
.section-head--filters h2 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.section--split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.section--split p { max-width: 340px; }
.prose { max-width: 560px; text-wrap: pretty; }
.section--curator { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 40px; align-items: start; }
.section--curator .prose { margin-bottom: 20px; }
.section--curator .prose:last-child { margin-bottom: 0; }
.curator-photo { margin: 0; background: var(--frame); aspect-ratio: 3 / 4; overflow: hidden; }
.curator-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty { color: var(--muted); }

/* Category filter: dropdown */
.filter-set { display: flex; gap: 6px 28px; flex-wrap: wrap; margin-right: auto; }
.filters { position: relative; margin: 0; }
.filters summary {
  list-style: none; cursor: pointer; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); padding: 6px 0; display: inline-flex; gap: 8px; align-items: center;
}
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: ''; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg) translateY(-2px); }
.filters[open] summary::after { transform: rotate(-135deg); }
.filters nav {
  position: absolute; z-index: 5; top: 100%; left: 0; min-width: 220px; display: flex; flex-direction: column;
  background: var(--ground); border: 1px solid var(--rule); border-radius: 12px; padding: 6px 0;
}
.filters nav a { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 9px 16px; }
.filters nav a:hover { color: var(--ink); }
.filters nav a[aria-current] { color: var(--ink); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 18px; }
.piece { margin: 0; }
.piece-link { display: block; }
.frame { background: var(--frame); aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 14px; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.piece-cat { margin-bottom: 4px; font-size: 10px; }
.piece-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.piece-name { font: 400 19px/1.15 var(--serif); color: var(--ink); }
.piece-note { font-size: 13px; line-height: 1.45; color: var(--muted); }
.piece-price { font-size: 13px; color: var(--ink); white-space: nowrap; }
.piece--sold .frame img { opacity: 0.6; }
.piece--sold .piece-price { color: var(--muted); }

/* Consignment */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.steps li { display: flex; gap: 28px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.step-n { font-size: 11px; color: var(--muted); width: 22px; padding-top: 3px; flex: none; }
.steps strong { display: block; font-weight: 400; color: var(--ink); font-size: 15px; }
.step-d { display: block; font-size: 13px; color: var(--body); }

/* Inquire */
.contact { color: var(--ink); line-height: 1.7; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; }
.contact .sep { color: var(--muted); }
@media (max-width: 520px) { .contact { flex-direction: column; } .contact .sep { display: none; } }
.form-wrap { margin-top: 32px; max-width: 460px; }
.form-wrap summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.form-wrap summary:hover { color: var(--ink); }
.inquiry { margin-top: 20px; }
.f { display: block; margin-bottom: 18px; }
.f > span { display: block; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--field); background: transparent;
  font: 300 15px/1.4 var(--sans); color: var(--ink); border-radius: 12px; /* the admin's field radius */
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
/* iPhone Safari zooms the page when a field under 16px is focused, and leaves it zoomed and slideable. */
@media (max-width: 760px) { input, select, textarea { font-size: 16px; } }
.inquiry button:not(.pill-cta) { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--green);
  border: 1px solid var(--green); color: var(--ground); padding: 13px 28px; cursor: pointer; font-family: var(--sans); }
.inquiry button:not(.pill-cta):hover { background: var(--ink); border-color: var(--ink); }
.form-error { color: #8c3a2e; }
.sent { color: var(--ink); }
.about-piece { color: var(--ink); }
.about-piece .ref { color: var(--muted); margin-left: 8px; }

/* Piece details */
.section-head + .lede { margin: -12px 0 36px; }
.details { margin: 24px 0 8px; border-top: 1px solid var(--rule); }
.details > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.details dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.details dd { margin: 0; color: var(--ink); }

/* Honeypot: hidden from people and assistive tech, still in the DOM and submitted */
.hp { display: none !important; }

/* Piece page */
.piece-page { display: grid; grid-template-columns: 0.9fr 1fr; gap: 28px 56px; padding: 20px 0 0; align-items: start; }
.crumb { grid-column: 1 / -1; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .piece-page > .crumb { margin-bottom: -14px; } }
.crumb a:hover { color: var(--ink); }
.piece-photos { display: grid; gap: 12px; }
.piece-photos .frame { margin: 0; aspect-ratio: auto; }
/* The whole photo at its own shape: never trimmed, whatever the ratio. */
.piece-photos .frame img { height: auto; object-fit: contain; }
.piece-info { position: sticky; top: 104px; }
.piece-info h1 { font-size: clamp(28px, 3.2vw, 36px); margin-bottom: 12px; }
.piece-info .piece-price { font-size: 17px; margin-bottom: 4px; }
.status { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.price-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 36px; }
.price-row .piece-price { margin: 0; }
.piece-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.piece-actions form { margin: 0; }
.price-row .hint { margin: 4px 0 0; }
.piece-price .status:first-child { margin-left: 0; }
.ref { color: var(--muted); margin-bottom: 28px; }
.policy-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; max-width: 340px; }
.policy-note a { text-decoration: underline; }
.policy-note a:hover { color: var(--ink); }
.policy-h { font-size: 24px; margin: 36px 0 10px; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq-cols .policy-h { margin-top: 0; padding-top: 36px; }
.faq-cols .prose { max-width: none; }
@media (max-width: 760px) { .faq-cols { grid-template-columns: 1fr; } .faq-cols > div + div .policy-h:first-child { margin-top: 0; } }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* Ledger: one stacked, spreadsheet-style list. A whole row is the link. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ledger { width: 100%; border-collapse: collapse; margin-top: 8px; }
.ledger th {
  font: 400 10px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); white-space: nowrap;
}
.ledger td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; font-size: 14px; color: var(--body); }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .col-photo { width: 72px; padding-right: 16px; }
.ledger-thumb { width: 56px; height: 56px; background: var(--frame); overflow: hidden; }
.ledger-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ledger .col-name { font: 400 20px/1.2 var(--serif); color: var(--ink); width: 34%; }
.ledger .col-cat, .ledger .col-year, .ledger .col-status { text-align: center; }
.ledger .col-status { white-space: nowrap; padding-right: 0; }
.ledger-row { position: relative; }
.ledger-row:hover td { background: rgba(31, 31, 28, 0.035); }
.ledger-link::after { content: ''; position: absolute; inset: 0; }
.ledger-row--sold .col-status { color: var(--muted); }
.ledger-row--sold .ledger-thumb img { opacity: 0.6; }

@media (max-width: 760px) {
  .ledger .col-year { display: none; }
  .ledger .col-photo { width: 60px; padding-right: 12px; }
  .ledger-thumb { width: 48px; height: 48px; }
  .ledger .col-name { font-size: 17px; width: auto; }
  .ledger td, .ledger th { padding-right: 10px; }
}

@media (max-width: 760px) {
  .page { padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .section--split, .section--curator, .piece-page { grid-template-columns: 1fr; gap: 28px; }
  .curator-photo { max-width: 160px; }
  .piece-info { position: static; }
  .hero { padding: 24px 0; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-copy { margin: 24px 0 0; }
  :root { --section-pad: 48px; }
  .site-nav { gap: 16px; }
  .section-head { flex-direction: column; gap: 6px; }
  .section-head--filters { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; margin-bottom: 24px; }
        .piece-name { font-size: 18px; }
  .piece-row { gap: 2px; }
}

/* High-density gallery (homepage + catalog). Columns are fluid: as many 200px-minimum tracks as fit
   (140px on phones, so they still get two). auto-fill keeps empty tracks, so a short last row sits on the
   left at the same square size. The page itself is the photo backdrop (#E4E1DA, measured from the served
   JPEGs; flattened to the same value in lib/photos.js), so the tiles are transparent and the image edge disappears
   into the page. The title appears as an overlay on hover or keyboard focus. */
.grid.grid--gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; justify-content: start; }
@media (max-width: 760px) { .grid.grid--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid--gallery .frame { position: relative; margin-bottom: 0; padding: 0; box-sizing: border-box; background: var(--frame); aspect-ratio: 1200 / 1240; } /* the studio cover shape: near-square, photo runs edge to edge */
.grid--gallery .frame img { object-fit: contain; }
.grid--gallery .piece-link { position: relative; }
.grid--gallery .piece-title {
  position: absolute; left: 0; right: 0; bottom: 0; display: block; box-sizing: border-box;
  padding: 36px 14px 12px; text-align: left;
  font: 400 11px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(to top, rgba(228, 225, 218, 0.92) 0%, rgba(228, 225, 218, 0.6) 55%, rgba(228, 225, 218, 0) 100%);
  opacity: 0; transition: opacity 0.2s ease; pointer-events: none;
}
.grid--gallery .t-name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid--gallery .piece-link:hover .piece-title,
.grid--gallery .piece-link:focus-visible .piece-title { opacity: 1; }

/* Items similar: four tiles under the piece, in the same tile style as the collection. */
.similar { padding: var(--section-pad) 0 0; margin-top: var(--section-pad); border-top: 1px solid var(--rule); }
.similar-label { margin: 0 0 24px; font: 400 12px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.grid.grid--gallery.grid--similar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.js .grid--gallery.grid--similar .piece { opacity: 1; transform: none; }
@media (max-width: 760px) { .grid.grid--gallery.grid--similar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Touch screens have no hover, so the overlay never shows: put a minimal one-line title under each tile. */
@media (hover: none) {
  .grid--gallery .piece-title {
    position: static; display: block; padding: 2px 2px 0; text-align: left;
    font: 300 12px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--body); background: none;
    opacity: 1; transition: none;
  }
}

/* Consignment band: a full-width olive section. The section stays inside .page for layout; the
   box-shadow and clip-path paint the green out to both screen edges without adding markup or scroll. */
#consign.section--split, .band {
  background: var(--green); color: #d9d7cf; border-top: 0;
  box-shadow: 0 0 0 100vmax var(--green); clip-path: inset(0 -100vmax);
}
#consign h2, .band h2 { color: var(--ground); }
#consign .btn, .band .btn { border-color: var(--ground); color: var(--ground); }
#consign .btn:hover, .band .btn:hover { background: var(--ground); color: var(--green); }
#consign .steps, #consign .steps li, .band .steps, .band .steps li { border-color: #5c6650; }
#consign .step-n, .band .step-n { color: #b9b8ae; }
#consign .steps strong, .band .steps strong { color: var(--ground); }
#consign .step-d, .band .step-d { color: #d9d7cf; }
#consign + .section, .band + .section { border-top: 0; }
.band a:not(.btn) { color: var(--ground); text-decoration: underline; text-underline-offset: 3px; }
/* A closing band sits directly on the footer. */
.band--cta { padding: var(--section-pad) 0; }
.page:has(.band--cta) .site-footer { margin-top: 0; }
/* Next pop-up: a light section between the collection and the olive Consignment band. */
.popup-when { font-family: var(--serif, inherit); font-size: clamp(22px, 4vw, 30px); line-height: 1.25; margin: 0 0 10px; }
.popup-when .sep { margin: 0 12px; color: var(--muted); }
.popup-where { margin: 0 0 16px; }
.popup-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.popup-actions .btn { cursor: pointer; }
/* Inquire is the last section: kept compact between the band above and the footer rule. */
#inquire { padding: var(--section-pad) 0; }
.page:has(#inquire) .site-footer { margin-top: 0; }
#inquire .form-wrap { margin-top: 20px; }


.ref-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.ref-row p { margin: 0; }
.tear-link { font-size: 13px; }
.tear-link a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tear-link a:hover { color: var(--green); }

.inquire-link { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); text-decoration: none; }
.inquire-link:hover { color: var(--ink); }

.js .grid--gallery .piece { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .grid--gallery .piece.visible { opacity: 1; transform: none; }

/* Subscribe: a button that reads as the same link, and a quiet modal dialog. */
button.inquire-link { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--sans); }
.subscribe { border: 1px solid var(--rule); background: var(--ground); color: var(--ink); padding: 0; width: min(440px, calc(100vw - 32px)); border-radius: 18px; overflow: hidden; }
.subscribe::backdrop { background: rgba(31, 31, 28, 0.45); }
.subscribe-form { position: relative; padding: 40px 36px 36px; }
.subscribe-form h2 { font-size: 30px; margin: 0 0 12px; }
.subscribe-form p { margin: 0 0 20px; color: var(--body); font-size: 15px; line-height: 1.55; }
.subscribe-form .f { margin-bottom: 8px; }
.subscribe-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.subscribe-close:hover { color: var(--ink); }
.subscribe-form p.subscribe-msg { min-height: 1.4em; margin: 6px 0 14px; font-size: 13px; color: #8a2f25; }
.subscribe-go { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--green); border: 1px solid var(--green); color: var(--ground); padding: 13px 28px; cursor: pointer; font-family: var(--sans); }
.subscribe-go:hover { background: var(--ink); border-color: var(--ink); }
.subscribe-go:disabled { opacity: 0.6; cursor: default; }
.subscribe-form.done p.subscribe-msg { display: none; }

.unsub { border-top: 0; padding-top: 48px; }
.unsub h1 { margin-bottom: 14px; }
.unsub .prose { margin: 0 0 20px; }

/* Text for screen readers and search engines only. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Studio page: a large statement on the left, the five-question standard on the right. */
.studio-stage { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: center; padding: 28px 0 40px; }
.studio-label { font: 400 11px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.studio-title { margin: 0 0 28px; font: 400 clamp(48px, 6.2vw, 92px)/0.94 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.studio-title em { color: var(--green); }
.studio-lede { max-width: 48ch; margin: 0 0 12px; font-size: 15px; color: var(--body); text-wrap: pretty; }
.pill-cta { white-space: nowrap; position: relative; overflow: hidden; contain: paint; isolation: isolate; display: inline-flex; align-items: center; gap: 36px; margin-top: 14px; padding: 2px 2px 2px 24px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, 0.5); font-size: 16px; color: var(--body); transition: color 0.35s, border-color 0.35s; }
.pill-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--green); border-radius: inherit; transform: translateX(-101%); transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1); }
.pill-cta span { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--ground); font-size: 18px; transition: background 0.35s, color 0.35s, transform 0.45s cubic-bezier(0.65, 0, 0.35, 1); }
.pill-cta span::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--green); animation: pill-ring 2.8s ease-out infinite; }
.pill-cta:hover, .pill-cta:focus-visible { color: var(--ground); border-color: var(--green); }
.pill-cta:hover::before, .pill-cta:focus-visible::before { transform: translateX(0); }
.pill-cta:hover span, .pill-cta:focus-visible span { background: var(--ground); color: var(--green); transform: rotate(45deg); }
.pill-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button.pill-cta { font-family: var(--sans); font-weight: 300; line-height: 1.6; cursor: pointer; }
.pill-cta--ghost { background: transparent; }
.pill-cta--sm { margin-top: 0; padding: 1.5px 1.5px 1.5px 18px; font-size: 14px; gap: 22px; }
.pill-cta--sm span { width: 32px; height: 32px; font-size: 14px; }
.piece-actions .pill-cta { margin-top: 0; }
.popup-actions .pill-cta { margin-top: 0; }
@media (max-width: 420px) { .pill-cta { gap: 20px; } }
@media (max-width: 340px) { .pill-cta { white-space: normal; max-width: 100%; justify-content: space-between; } }
@keyframes pill-ring { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
.pill-cta--light { border-color: rgba(243, 242, 238, 0.5); background: transparent; color: var(--ground); }
.pill-cta--light::before { background: var(--ground); }
.pill-cta--light span { background: var(--ground); color: var(--green); }
.pill-cta--light span::after { border-color: var(--ground); }
.pill-cta--light:hover, .pill-cta--light:focus-visible { color: var(--green); border-color: var(--ground); }
.pill-cta--light:hover span, .pill-cta--light:focus-visible span { background: var(--green); color: var(--ground); }
@media (prefers-reduced-motion: reduce) {
  .pill-cta span::after { animation: none; }
  .pill-cta::before, .pill-cta span { transition: none; }
}
.studio-standard { border: 1px solid var(--rule); border-radius: 18px; background: rgba(255, 255, 255, 0.35); padding: 22px; }
.studio-standard .studio-label { margin-bottom: 12px; }
.studio-standard__title { margin: 0 0 6px; font: 400 30px/1.1 var(--serif); color: var(--ink); }
.studio-standard__sub { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.standard-q { margin-bottom: 8px; border-radius: 12px; background: var(--green); color: var(--ground); transition: background 0.2s; }
.standard-q:hover { background: #454e3a; }
.standard-q summary { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center; padding: 14px 18px; cursor: pointer; list-style: none; }
.standard-q summary::-webkit-details-marker { display: none; }
.standard-q summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 12px; }
.standard-n { font-size: 10px; letter-spacing: 0.2em; color: rgba(243, 242, 238, 0.55); }
.standard-text { font-size: 15px; line-height: 1.4; }
.standard-plus { text-align: right; font-size: 20px; color: rgba(243, 242, 238, 0.6); transition: transform 0.25s; }
.standard-q[open] .standard-plus { transform: rotate(45deg); }
.standard-q p { margin: 0; padding: 0 56px 16px 52px; font-size: 14px; line-height: 1.6; color: rgba(243, 242, 238, 0.8); }
.studio-standard__foot { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.text-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--green); }
@media (max-width: 960px) {
  .studio-stage { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
}
@media (max-width: 760px) {
  .studio-stage { padding-top: 32px; }
  .studio-title { margin-bottom: 28px; }
  .studio-standard { padding: 20px; }
  .standard-q summary { padding: 18px 14px; }
  .standard-q p { padding: 0 44px 18px 48px; }
}

/* Studio is a short page: keep the footer close under the last section. */
.page:has(.studio) .site-footer { margin-top: 0; }


.viewing { margin: 18px 0 28px; font-size: 13px; color: var(--muted); }
.viewing a { color: inherit; text-decoration: underline; }
/* The same actions again after the details, for buyers who read to the end before deciding. */

/* Consign page: the intro runs longer than the one-line ledes elsewhere. */
.consign-title { font-size: clamp(44px, 5.6vw, 80px); line-height: 0.96; letter-spacing: -0.02em; text-wrap: balance; }
.consign-title em { color: var(--green); }
.consign-lede { max-width: 640px; margin-top: 28px; text-wrap: pretty; }
.consign-intro { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; }
.consign-card { border: 1px solid var(--rule); border-radius: 18px; background: rgba(255, 255, 255, 0.35); padding: 26px 28px; }
.consign-card a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.consign-card h2 { font-size: 28px; margin: 0 0 12px; }
.consign-card p { margin: 0 0 16px; max-width: none; }
.consign-card p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .consign-intro { grid-template-columns: 1fr; gap: 28px; } }
.section--split p.consign-example { max-width: none; margin-top: 20px; }
.section--split p.consign-looking { max-width: 560px; text-wrap: pretty; }
.section--split h2.consign-looking-h { margin-top: 48px; }
.consign-photo { margin: 0; position: relative; height: 100%; min-height: 360px; background: var(--frame); overflow: hidden; }
.consign-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 760px) { .consign-photo { height: auto; min-height: 0; aspect-ratio: 9 / 10; } }

/* The pill is never underlined, even inside a band or card whose links are. */
.band a.pill-cta, #consign a.pill-cta, .consign-card a.pill-cta { text-decoration: none; }
.band a.pill-cta--light, #consign a.pill-cta--light { color: var(--ground); }
.band a.pill-cta--light:hover, .band a.pill-cta--light:focus-visible, #consign a.pill-cta--light:hover, #consign a.pill-cta--light:focus-visible { color: var(--green); }

/* Studio: the curator beside the invitation. */
.studio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 14px; }
.studio-actions .pill-cta { margin-top: 0; }
.studio-by { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.studio-by img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.studio-by strong { display: block; font-weight: 400; font-size: 14px; color: var(--ink); }
.band a.pill-cta--ghost { text-decoration: none; }
