
/* Layout idea: a studio wall. Paintings hang in an uneven grid on linen, each with a handwritten-style label card. */
:root {
  --linen: #efe7d8;
  --paper: #f8f3ea;
  --ink: #2e2a24;
  --muted: #6e6556;
  --ochre: #b8862b;
  --olive: #5e6b3a;
  --line: #d9cdb8;
  --alert: #a2452e;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --linen: #221f1a; --paper: #2c2822; --ink: #efe6d6; --muted: #b3a891;
    --ochre: #dcaa4c; --olive: #a3b276; --line: #443d33; --alert: #e48a70; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --linen: #221f1a; --paper: #2c2822; --ink: #efe6d6; --muted: #b3a891;
  --ochre: #dcaa4c; --olive: #a3b276; --line: #443d33; --alert: #e48a70; color-scheme: dark;
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
body { margin: 0; background: var(--linen); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 26px 0 20px; border-bottom: 1px solid var(--line); }
.brand { font: 28px/1.1 var(--display); text-decoration: none; }
.brand small { display: block; font: 22px/1.2 var(--hand); color: var(--olive); margin-top: 2px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--paper); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.tabs a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); padding: 7px 16px; border-radius: 999px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.view[hidden] { display: none; }

.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 56px 0 48px; }
.intro h1, .page-head h1 { font: 46px/1.1 var(--display); margin: 0 0 18px; text-wrap: balance; }
.intro p { max-width: 52ch; color: var(--muted); margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hung { position: relative; }
.hung .art { border: 10px solid var(--paper); box-shadow: 0 14px 30px -18px rgba(40,30,15,.55); transform: rotate(1.2deg); }
.hung.left .art { transform: rotate(-1deg); }
.hung .note { position: absolute; left: -14px; bottom: -22px; background: var(--paper); padding: 6px 14px; font: 22px var(--hand); transform: rotate(-3deg); box-shadow: 0 6px 14px -10px rgba(0,0,0,.5); }
.hung.left .note { left: auto; right: -8px; transform: rotate(2deg); }
.art { display: block; width: 100%; height: auto; background: var(--line); }

.btn { display: inline-block; padding: 12px 22px; border-radius: 3px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font: 700 15px var(--body); letter-spacing: .02em; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn:hover { background: var(--olive); border-color: var(--olive); color: #fff; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); border-color: var(--line); cursor: default; pointer-events: none; }

section { padding: 48px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
h2 { font: 34px/1.15 var(--display); margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { font: 500 14px var(--body); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 32px; align-items: start; }
.piece { display: flex; flex-direction: column; gap: 14px; }
.piece .frame { background: var(--paper); padding: 12px; box-shadow: 0 12px 24px -18px rgba(40,30,15,.6); cursor: zoom-in; border: 0; display: block; width: 100%; }
.piece:nth-child(3n+1) .frame { transform: rotate(-.6deg); }
.piece:nth-child(3n+2) .frame { transform: rotate(.5deg); }
.label { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.label h3 { font: 20px/1.25 var(--display); margin: 0; }
.label .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.label .meta { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.piece .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tag { font: 20px var(--hand); color: var(--olive); }
.tag.sold { color: var(--alert); }
.empty { color: var(--muted); font: 24px var(--hand); }

.page-head { padding: 48px 0 8px; max-width: 62ch; }
.hand { font: 26px/1.3 var(--hand); color: var(--olive); margin: 0 0 6px; }
.lede { font-size: 20px; color: var(--ink); }
h2.sub { font-size: 24px; margin: 28px 0 6px; }
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.about p { max-width: 62ch; }
.cv { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cv li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.cv span { font-variant-numeric: tabular-nums; color: var(--ochre); font-weight: 700; }
.facts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.facts li { background: var(--paper); padding: 16px 18px; border-left: 3px solid var(--ochre); }
.facts strong, .steps strong { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; margin-bottom: 4px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { background: var(--paper); padding: 22px; border-top: 3px solid var(--olive); }
.steps li > span { font: 34px/1 var(--hand); color: var(--ochre); display: block; margin-bottom: 6px; }
.prices { width: 100%; max-width: 640px; border-collapse: collapse; background: var(--paper); }
.prices th, .prices td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prices th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.prices td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.commission { background: var(--paper); border: 1px solid var(--line); padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
form.enquiry { display: grid; gap: 14px; }
label { font-weight: 500; font-size: 14px; display: grid; gap: 6px; }
input, textarea, select { font: 16px var(--body); padding: 10px 12px; border: 1px solid var(--line); background: var(--linen); color: var(--ink); border-radius: 3px; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.form-msg { font: 22px var(--hand); color: var(--olive); min-height: 1.4em; margin: 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

dialog.viewer { border: 0; padding: 0; background: var(--paper); color: var(--ink); max-width: min(940px, 94vw); width: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
dialog.viewer::backdrop { background: rgba(30,24,16,.7); }
.dlg { display: grid; grid-template-columns: 1.3fr 1fr; }
.dlg .info { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.dlg h3 { font: 28px/1.2 var(--display); margin: 0; }
.dlg dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.dlg dt { color: var(--muted); }
.dlg dd { margin: 0; }
.close { position: absolute; top: 10px; right: 12px; background: var(--paper); border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--ink); z-index: 1; }

@media (max-width: 760px) {
  .intro, .about, .commission, .detail, .newsletter { grid-template-columns: 1fr; }
  .intro h1, .page-head h1 { font-size: 36px; }
  .commission { padding: 22px; }
}

/* ---------- additions for the standalone site ---------- */
html { scroll-behavior: smooth; }
picture { display: block; }
.hung { display: block; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.piece[hidden] { display: none; }
.piece .frame { text-decoration: none; }
.label h3 a { text-decoration: none; }
.label h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.art.missing { display: grid; place-items: center; aspect-ratio: 4 / 5; color: var(--muted); font: 22px var(--hand); }
.crumbs { margin: 28px 0 0; font-weight: 500; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding: 28px 0 56px; align-items: start; }
.detail .info { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.detail h1 { font: 40px/1.1 var(--display); margin: 0; text-wrap: balance; }
.detail .desc p { margin: 0 0 10px; color: var(--muted); max-width: 52ch; }
.detail dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 15px; }
.detail dt { color: var(--muted); }
.detail dd { margin: 0; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
h2.spaced { margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
.hidden-field { position: absolute; left: -9999px; }
.newsletter > * { min-width: 0; }
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; margin: 24px 0 48px; padding: 36px; background: var(--olive); color: #fbf7ef; border-radius: 3px; }
.newsletter h2 { color: #fff; }
.newsletter p { max-width: 50ch; margin: 8px 0 0; }
.newsletter .hand { color: #f1d9a0; margin: 0; }
.newsletter .hint { color: #e4e8d4; margin-top: 8px; }
.nl-form label { color: #fff; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-row input { flex: 1 1 180px; min-width: 0; width: auto; background: #fbf7ef; color: #2e2a24; border-color: transparent; }
.nl-row .btn { background: #2e2a24; border-color: #2e2a24; color: #fbf7ef; }
.nl-row .btn:hover { background: #fbf7ef; color: #2e2a24; border-color: #fbf7ef; }
.newsletter :focus-visible { outline-color: #f1d9a0; }
footer .social { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .detail .info { position: static; }
  .detail h1 { font-size: 32px; }
  .newsletter { padding: 24px; }
}

/* ---------- policies ---------- */
mark.gap { background: #f6dd8a; color: #2e2a24; padding: 1px 4px; border-radius: 2px; font-weight: 700; }
.gap-note { background: #f6dd8a; color: #2e2a24; padding: 10px 14px; border-radius: 3px; font-weight: 500; max-width: 68ch; }
.policy { padding-bottom: 48px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 24px; margin: 36px 0 8px; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 12px; }
.prose a { text-underline-offset: 3px; }
.prose blockquote { margin: 12px 0; padding: 16px 20px; background: var(--paper); border-left: 3px solid var(--ochre); }
.prose blockquote p { margin: 0 0 8px; }
.prose blockquote p:last-child { margin: 0; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 500; }
footer { align-items: flex-start; }
footer .legal { display: grid; gap: 6px; max-width: 70ch; }
footer .legal p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 500; color: var(--ink); }
.footer-links a, footer .social a { text-underline-offset: 3px; }
