/* Layout concept: a quiet gallery wall. Paintings hang in proportion with
   museum-style wall labels; type is set like an exhibition catalogue. */
:root {
  --ivory: #F6F4EF;      /* walls */
  --stone: #D9D4CA;      /* mats, dividers, quiet fills */
  --charcoal: #22221F;   /* text, buttons */
  --grey: #8A897F;       /* secondary marks */
  --grey-text: #63625A;  /* small secondary text (AA contrast on ivory) */
  --dot: #A8322A;        /* the gallery red dot for sold works */
  --line: rgba(34, 34, 31, 0.16);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1440px;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.375rem, 1.5rem + 3.6vw, 4.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font: 400 var(--step-0)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-inline: var(--gutter);
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--charcoal); color: var(--ivory); padding: 8px 12px; z-index: 10; }
main, .site-header, .site-footer { max-width: var(--max); margin-inline: auto; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px 32px; padding-block: 28px 20px;
}
.wordmark { font-family: var(--serif); font-size: var(--step-2); font-weight: 400; text-decoration: none; letter-spacing: -0.005em; }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.site-header nav a, .eyebrow, .label .status, .crumb, .facts dt, .caption, .filter, .opt, .step-n, .contact-list dt, .footer-links {
  font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase;
}
.site-header nav a { text-decoration: none; padding-block: 6px; border-bottom: 1px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { border-bottom-color: var(--charcoal); }

/* Buttons and links: square, quiet */
.btn {
  display: inline-block; font: 500 var(--step--1)/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--charcoal); color: var(--ivory); border: 1px solid var(--charcoal);
  padding: 15px 22px; text-decoration: none; cursor: pointer; border-radius: 0;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--charcoal); }
.text-link { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--charcoal); padding-bottom: 3px; }
.text-link::after { content: " \2192"; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

/* Wall label */
.label { font-size: 0.875rem; line-height: 1.5; display: grid; gap: 2px; padding-top: 14px; }
.label-title { font-family: var(--serif); font-size: 1.0625rem; font-style: italic; }
.label-line, .label-price { color: var(--grey-text); }
.label-price { font-size: 0.875rem; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--grey-text); }
.label .status { font-size: 0.6875rem; margin-top: 4px; }
.status-sold::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.status-reserved::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--dot); }
.status-private-collection { color: var(--grey); }

.art-link { display: block; }
.art { width: 100%; }
.art-link:hover .art { opacity: .94; }

/* Home: hero */
.hero {
  display: grid; gap: 36px; padding-block: clamp(24px, 6vw, 72px) clamp(56px, 9vw, 120px);
  grid-template-columns: 1fr; align-items: end;
}
.eyebrow { color: var(--grey-text); margin-bottom: 20px; }
.hero-heading { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); max-width: 15ch; margin-bottom: 18px; }
.hero-story { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.45; margin: 0 0 28px; max-width: 36ch; }
.hero-story a { color: inherit; }
@media (min-width: 64em) {
  .hero { grid-template-columns: minmax(300px, 4fr) 8fr; gap: clamp(40px, 5vw, 88px); }
  .hero-text { padding-bottom: 72px; }
}

/* Hanging works: proportional rows of equal height */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; padding-top: 28px; border-top: 1px solid var(--line); margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--grey-text); max-width: 48ch; }
.hang { display: flex; flex-wrap: wrap; gap: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px); align-items: flex-start; }
.hang::after { content: ""; flex: 10 1 0; }
.selected .hang::after { display: none; }
.hang-item { margin: 0; flex: var(--ar) 1 calc(var(--ar) * 14rem); min-width: 0; }
.hang-wall .hang-item { flex-basis: calc(var(--ar) * 17rem); }
.hang-item[hidden] { display: none; }
@media (max-width: 40em) { .hang-item { flex-basis: 100%; } }

/* Commission band */
.selected { padding-bottom: clamp(48px, 7vw, 96px); }
.section-head .page-note { flex: 1 0 100%; margin: 10px 0 0; max-width: none; }
.commission-band { background: var(--stone); margin-inline: calc(var(--gutter) * -1); padding: clamp(48px, 8vw, 104px) var(--gutter); }
.commission-inner { max-width: var(--max); margin-inline: auto; display: grid; gap: 24px 64px; }
.commission-inner h2 { font-size: var(--step-3); max-width: 14ch; }
.commission-inner p { font-size: var(--step-1); max-width: 46ch; margin-bottom: 28px; }
@media (min-width: 52em) { .commission-inner { grid-template-columns: 5fr 7fr; align-items: start; } }

/* Page heads */
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; padding-block: clamp(24px, 5vw, 64px) clamp(32px, 5vw, 64px); }
.page-head h1 { font-size: var(--step-4); }
.page-head-wide { display: grid; gap: 24px; max-width: 60rem; }
.lede { font-family: var(--serif); font-size: var(--step-2); font-weight: 300; line-height: 1.35; max-width: 34ch; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.filter { background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0; color: var(--grey-text); cursor: pointer; }
.filter[aria-pressed="true"] { color: var(--charcoal); border-bottom-color: var(--charcoal); }
.page-works main { padding-bottom: 120px; }

/* Single work */
.work-layout { display: grid; gap: 40px; padding-block: 16px 72px; }
.work-images { display: grid; gap: clamp(28px, 4vw, 56px); min-width: 0; }
.work-figure { margin: 0; }
.work-figure:not(:first-child) .art { width: auto; max-height: 86vh; }
.caption { color: var(--grey-text); padding-top: 10px; font-size: 0.6875rem; }
.work-info { min-width: 0; }
.crumb { color: var(--grey-text); margin-bottom: 18px; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.work-title { font-size: var(--step-3); font-style: italic; margin-bottom: 28px; }
.facts { margin: 0 0 28px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts .fact-note { display: block; }
.facts .fact-note .price-note { margin-top: 0; }
.facts dt { color: var(--grey-text); padding-top: 3px; }
.facts dd { margin: 0; }
.facts .status { letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--step--1); }
.price-note { display: block; margin-top: 6px; color: var(--grey-text); font-family: var(--sans); font-size: 0.8125rem; font-style: normal; letter-spacing: 0; text-transform: none; line-height: 1.45; max-width: 36ch; }
.page-works .page-note { margin: -12px 0 36px; }
.sold-note { margin: 0 0 18px; color: var(--grey-text); max-width: 36ch; }
.work-desc { font-family: var(--serif); font-size: var(--step-1); line-height: 1.55; margin-bottom: 32px; max-width: 40ch; }
.work-desc p + p { margin-top: 1em; }
.enquire-box > summary { list-style: none; }
.enquire-box > summary::-webkit-details-marker { display: none; }
.enquire-box[open] > summary { background: transparent; color: var(--charcoal); margin-bottom: 28px; }
@media (min-width: 64em) {
  .work-layout { grid-template-columns: minmax(0, 7fr) minmax(320px, 4fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .work-info { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); }
}
.work-layout:has(+ .triptych) { padding-bottom: clamp(36px, 5vw, 56px); }
.triptych { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 40px); margin-bottom: clamp(36px, 5vw, 56px); }
.triptych h2 {
  font-family: var(--sans); font-size: var(--step--1); font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--grey-text); margin-bottom: 16px;
}
.triptych-figure { margin: 0; }
.triptych-photo { width: 100%; }
.triptych-names {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.45em; row-gap: 0.2em;
  margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(0.95rem, 3.2vw, 1.125rem); line-height: 1.35;
}
.triptych-names a { text-decoration: none; border-bottom: 1px solid var(--charcoal); }
.triptych-current { font-weight: 500; }
.triptych-dot { color: var(--grey); font-style: normal; }
.work-nav { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 28px 80px; }
.work-nav a { text-decoration: none; font-family: var(--serif); font-style: italic; font-size: var(--step-1); display: grid; gap: 4px; }
.work-nav a span { font: 400 0.6875rem var(--sans); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; color: var(--grey-text); }
.work-nav .next { text-align: right; }

/* About */
.about-layout { display: grid; gap: 40px; padding-block: clamp(24px, 5vw, 64px) clamp(64px, 9vw, 120px); }
.about-text h1 { font-size: var(--step-4); margin-bottom: 32px; }
.prose { font-family: var(--serif); font-size: var(--step-1); line-height: 1.6; max-width: 36em; margin-bottom: 36px; }
.prose p + p { margin-top: 1em; }
.prose p:first-child { font-size: var(--step-2); line-height: 1.35; }
.portrait-slot { aspect-ratio: 4 / 5; background: var(--stone); display: grid; place-items: center; color: var(--grey-text); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; max-width: 100%; }
@media (min-width: 56em) { .about-layout { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 120px); align-items: start; } }
.surface { padding-bottom: clamp(72px, 10vw, 140px); }
.surface-grid { display: grid; gap: clamp(12px, 2vw, 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.surface-grid figure { margin: 0; }
.surface-grid .detail { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
@media (min-width: 52em) { .surface-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Commissions */
.com-cats { display: grid; gap: 56px; padding-bottom: clamp(48px, 7vw, 88px); }
.com-cat { display: grid; gap: 16px; align-content: start; }
.com-img { margin-bottom: 8px; }
.com-img .art { aspect-ratio: 4 / 3; object-fit: cover; }
.com-cat h2 { font-size: var(--step-2); }
.com-cat p { max-width: 44ch; color: var(--charcoal); }
@media (min-width: 48em) { .com-cats { grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); } }
.interpretation { font-family: var(--serif); font-style: italic; font-size: var(--step-1); max-width: 52ch; padding-block: 28px; border-block: 1px solid var(--line); margin-bottom: clamp(56px, 8vw, 104px); }
.process h2 { font-size: var(--step-3); margin-bottom: 36px; }
.process ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.process li { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--charcoal); }
.process h3 { font-size: var(--step-2); }
.process li p { color: var(--grey-text); }
.step-n { color: var(--grey-text); }
@media (min-width: 56em) { .process ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; } }
.note { margin-top: 32px; margin-bottom: clamp(40px, 6vw, 72px); color: var(--grey-text); font-size: 0.9375rem; max-width: 46ch; }
.deck { max-width: 40rem; }
.com-panel { max-width: 40rem; padding-bottom: clamp(36px, 5vw, 64px); }
.com-panel h2 { font-size: var(--step-2); margin-bottom: 12px; }
.com-panel p { max-width: 48ch; }
.com-trade { border-top: 1px solid var(--line); padding-top: 28px; }
.thanks-links { margin-top: 28px; }
.form-section { display: grid; gap: 32px 72px; padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: 16px; }
.form-intro h2 { font-size: var(--step-3); margin-bottom: 16px; }
.form-intro p { color: var(--grey-text); max-width: 34ch; }
@media (min-width: 60em) { .form-section { grid-template-columns: 4fr 8fr; } }

/* Forms */
.enquiry { display: grid; gap: 22px; max-width: 46rem; min-width: 0; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 40em) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: 0.875rem; font-weight: 500; padding: 0; }
.opt { color: var(--grey-text); font-weight: 400; font-size: 0.6875rem; margin-left: 6px; }
.enquiry input[type="text"], .enquiry input[type="email"], .enquiry textarea, .enquiry select {
  width: 100%; font: inherit; color: var(--charcoal); background: transparent;
  border: 0; border-bottom: 1px solid var(--grey); border-radius: 0; padding: 10px 0;
}
.enquiry select { cursor: pointer; }
.enquiry textarea { border: 1px solid var(--grey); padding: 12px 14px; resize: vertical; min-height: 8rem; }
.enquiry input:focus, .enquiry textarea:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 1px 0 var(--charcoal); }
.enquiry input[type="file"] { font: inherit; font-size: 0.875rem; max-width: 100%; }
.enquiry ::placeholder { color: var(--grey); }
.choices { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 6px; }
.choice { display: inline-flex; gap: 8px; align-items: center; font-weight: 400 !important; cursor: pointer; }
.choice input { accent-color: var(--charcoal); width: 16px; height: 16px; }
.err { color: var(--dot); font-size: 0.8125rem; min-height: 0; }
.err:empty { display: none; }
[aria-invalid="true"] { border-color: var(--dot) !important; }
.privacy { font-size: 0.8125rem; color: var(--grey-text); max-width: 56ch; }
.form-ref { font-size: 0.9375rem; color: var(--grey-text); }
.form-ref strong { color: var(--charcoal); font-weight: 500; font-family: var(--serif); font-style: italic; font-size: 1.0625rem; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 18px 20px; border: 1px solid var(--charcoal); font-size: 0.9375rem; }
.form-status h3 { font-size: var(--step-1); font-weight: 400; margin-bottom: 6px; }
.form-status.is-pending { border-style: dashed; }
.btn[disabled] { opacity: .5; cursor: wait; }

/* Contact */
.contact-layout { padding-block: clamp(24px, 5vw, 64px) clamp(80px, 12vw, 160px); max-width: 52rem; }
.contact-layout h1 { font-size: var(--step-4); margin-bottom: 40px; }
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list div { display: grid; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--grey-text); }
.contact-list dd { margin: 0; font-family: var(--serif); font-size: var(--step-1); overflow-wrap: anywhere; }
@media (min-width: 40em) { .contact-list div { grid-template-columns: 10rem 1fr; } }
.copy { font: 500 0.6875rem var(--sans); letter-spacing: .08em; text-transform: uppercase; background: none; border: 1px solid var(--line); padding: 4px 8px; margin-left: 10px; cursor: pointer; vertical-align: middle; color: var(--charcoal); }

/* Footer */
.site-footer { display: grid; gap: 16px 40px; border-top: 1px solid var(--line); padding-block: 36px 48px; grid-template-columns: 1fr; }
.footer-name { font-family: var(--serif); font-size: var(--step-1); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links .email-text { text-transform: none; letter-spacing: 0; font-size: 0.875rem; }
.copyright { font-size: 0.75rem; color: var(--grey-text); }
@media (min-width: 52em) { .site-footer { grid-template-columns: auto 1fr; } .footer-links { justify-content: flex-end; } .copyright { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Phones and tablets: show the painting, then its details, then further views */
@media (max-width: 63.99em) {
  .work-images { display: contents; }
  .work-figure:first-child { order: 0; }
  .work-info { order: 1; padding-bottom: 16px; }
  .work-figure:not(:first-child) { order: 2; }
  .work-figure:not(:first-child) .art { width: 100%; max-height: none; }
}

.contact-form { margin-top: clamp(56px, 8vw, 96px); display: grid; gap: 28px; }
.contact-form h2 { font-size: var(--step-3); }
