/* The parts every version of Clive's site shares: the oak frame, buttons, fields and the
   painting page. Each page sets the tokens: --bg --panel --ink --soft --mute --line --accent
   --room-wall and the fonts --f-mark --f-display --f-body. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
#pp-title:focus { outline: none; }
:root { --gutter: clamp(16px, 4vw, 64px); }
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
/* soft light pools and lifted frames may reach past the screen edge: clip them, never scroll sideways */
main { overflow-x: clip; }

/* the pale oak floater from Clive's own frames, with its shadow gap; small works sit in a white mount */
.frame { display: block; position: relative; background: linear-gradient(#2A1D12, #3A2A1B 45%, #30231A); padding: var(--gp, 2px); border: var(--fw, 6px) solid #D9BE98; border-image: url(oak-frame.webp) 80 stretch; box-shadow: 0 2px 3px rgba(40, 28, 16, .18), 0 16px 26px -12px rgba(40, 28, 16, .42), 0 34px 50px -30px rgba(40, 28, 16, .28); }
.frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 3px 4px -1px rgba(16, 10, 4, .5), inset 0 0 0 1px rgba(16, 10, 4, .28); }
.frame img { width: 100%; height: auto; background: #D9D2C5; }
.frame.mount { background: #F6F4EE; padding: 10%; }
.frame.mount img { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3px rgba(60, 50, 40, .14); }

/* actions */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); font: 500 13px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .3s, color .3s; }
.btn:hover { background: transparent; color: var(--ink); }
.tlink { display: inline-flex; align-items: center; min-height: 44px; font: 500 13px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; cursor: pointer; }
.tlink:hover { color: var(--accent); }
.field { display: grid; gap: 6px; }
.field label { font: 500 12px/1.4 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea { font: 400 16px/1.45 var(--f-body); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; border-radius: 0; width: 100%; }
.field textarea { min-height: 92px; resize: vertical; }
.field select { min-height: 44px; }
/* every tap target a full fingertip: the name, the phone number, Instagram */
header .mark { min-height: 44px; display: inline-flex; flex-direction: column; justify-content: center; }
dd a[href] { display: inline-flex; align-items: center; min-height: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.note { font-size: 14px; color: var(--accent); min-height: 1.3em; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); vertical-align: 2px; margin-right: 8px; }
.dot.sold { background: #B8312F; }

/* the painting page */
.pp { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding-top: env(safe-area-inset-top, 0px); animation: pp-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pp-in { from { opacity: 0; } to { opacity: 1; } }
.pp-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 68px; padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.pp-bar button { background: none; border: 0; cursor: pointer; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0; }
.pp-back { justify-self: start; font: 500 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.pp-mark { font: 400 15px/1 var(--f-mark); letter-spacing: .32em; margin-right: -.32em; white-space: nowrap; }
.pp-nav { justify-self: end; display: flex; align-items: center; gap: 2px; }
.pp-count { font: 500 13px/1 var(--f-body); letter-spacing: .08em; color: var(--mute); min-width: 62px; text-align: center; font-variant-numeric: tabular-nums; }
.pp-body { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(32px, 5vw, 88px); padding: 28px var(--gutter) 56px; align-items: start; }
.pp-stage { display: grid; gap: 18px; justify-items: center; min-width: 0; }
.pp-view { width: 100%; min-height: min(calc(var(--vh100, 100vh) - 260px), 760px); display: flex; align-items: center; justify-content: center; }
.pp-view > .frame { --fw: 10px; --gp: 3px; }
.pp-views { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; }
.pp-views button { background: none; border: 0; border-bottom: 1px solid transparent; min-height: 44px; padding: 0; cursor: pointer; font: 500 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.pp-views button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.pp-info { position: sticky; top: 28px; display: grid; gap: 20px; padding-top: clamp(0px, 6vh, 64px); }
.pp-status { font: 500 12px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.pp-info h1 { font: 300 italic clamp(32px, 2.8vw, 44px)/1.08 var(--f-display); }
.pp-meta { font-size: 15px; color: var(--soft); line-height: 1.75; }
.pp-price { font: 400 30px/1 var(--f-display); font-variant-numeric: lining-nums tabular-nums; }
.pp-price small { font: 400 13px/1 var(--f-body); color: var(--mute); margin-left: 8px; }
.pp-cta .btn { width: 100%; }
.pp-form { display: grid; gap: 16px; }
.pp-call { font-size: 14px; color: var(--mute); }
.pp-call a { color: var(--ink); }
.pp-words { font: 300 18px/1.6 var(--f-display); color: var(--soft); border-top: 1px solid var(--line); padding-top: 20px; }
.pp-small { font-size: 13px; color: var(--mute); }
.pp-dock { display: none; }
.pp-note { font-size: 13px; color: var(--mute); text-align: center; }

/* in a room: 320 cm of wall over 30 cm of oak floor, a 2.1 m sofa, all to scale */
.scene { position: relative; aspect-ratio: 320 / 260; overflow: hidden; background: var(--room-wall, #F5F3EF); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.sc-light { position: absolute; inset: 0 0 11.54% 0; background: linear-gradient(100deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 48%), radial-gradient(ellipse 90% 60% at 30% 0%, rgba(255, 255, 255, .45), transparent 70%), linear-gradient(rgba(0, 0, 0, 0) 55%, rgba(70, 50, 30, .07)); pointer-events: none; }
.sc-skirt { position: absolute; left: 0; right: 0; bottom: 11.54%; height: 3.1%; background: linear-gradient(#FFFFFF, #F1EEE8); box-shadow: 0 -1px 0 rgba(0, 0, 0, .07); }
.sc-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 11.54%; background: url(floor-persp.jpg) center / 100% 100% no-repeat; }
.sc-floor::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(60, 40, 20, .18), transparent 40%); }
.sc-art { position: absolute; }
.sc-art .frame { --fw: 3px; --gp: 1px; height: 100%; box-shadow: 0 1px 2px rgba(40, 28, 16, .25), 0 10px 14px -8px rgba(40, 28, 16, .45); }
.sc-art .frame.mount { padding: 8%; }
.sc-art .frame::after { box-shadow: inset 0 1px 2px rgba(16, 10, 4, .45); }
.sc-canvas { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; }
.sofa2 { position: absolute; left: 17.19%; width: 65.63%; bottom: 8.4%; height: 30.77%; }
.sofa2::before { content: ''; position: absolute; left: 2%; right: 2%; bottom: -9%; height: 16%; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(60, 40, 20, .28), transparent 70%); }
.sofa2 i { position: absolute; display: block; }
.sofa2 .back { left: 4%; right: 4%; top: 0; height: 62%; border-radius: 22px 22px 6px 6px; background: linear-gradient(#D9D1C4, #C8BFB1); }
.sofa2 .bc { top: 8%; height: 50%; border-radius: 16px; background: linear-gradient(#E0D9CD, #CFC6B8); box-shadow: inset 0 -6px 10px rgba(80, 60, 40, .12); }
.sofa2 .bc.a { left: 8%; width: 41%; } .sofa2 .bc.b { right: 8%; width: 41%; }
.sofa2 .throw { left: 11%; top: 30%; width: 13%; height: 25%; border-radius: 12px; background: linear-gradient(#C3AA85, #AE946E); transform: rotate(-9deg); box-shadow: 0 6px 8px -4px rgba(60, 40, 20, .3); }
.sofa2 .seat { left: 3%; right: 3%; top: 56%; height: 26%; border-radius: 10px; background: linear-gradient(#DDD6C9, #C6BDAF); box-shadow: inset 0 3px 4px rgba(255, 255, 255, .45); }
.sofa2 .seam { left: 50%; top: 57%; width: 1px; height: 24%; background: rgba(90, 70, 50, .18); }
.sofa2 .arm { top: 34%; width: 9%; height: 50%; border-radius: 16px 16px 6px 6px; background: linear-gradient(90deg, #D3CBBE, #C2B9AB); box-shadow: 0 6px 10px -6px rgba(60, 40, 20, .3); }
.sofa2 .arm.l { left: 0; } .sofa2 .arm.r { right: 0; background: linear-gradient(90deg, #C9C0B2, #BBB1A3); }
.sofa2 .plinth { left: 2%; right: 2%; top: 82%; height: 7%; border-radius: 2px; background: #B8AE9F; }
.sofa2 .leg { bottom: 0; width: 1.6%; height: 11%; background: linear-gradient(90deg, #7A5F44, #5E4733); border-radius: 0 0 2px 2px; }
.sofa2 .leg.l { left: 5%; } .sofa2 .leg.r { right: 5%; }
.sc-table { position: absolute; left: 85%; width: 10.6%; bottom: 9.2%; overflow: visible; }
.rw { aspect-ratio: 4 / 3; background-size: cover; background-repeat: no-repeat; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
/* a real photograph of the paintings on a wall, edge to edge, never taller than the screen */
.band { margin: 0; }
.band a, .band > img { display: block; }
.band img { width: 100%; height: auto; max-height: calc(var(--vh100, 100vh) - 90px); object-fit: cover; background: #ECEAE5; }
.band figcaption { max-width: 1440px; margin: 0 auto; padding: 12px var(--gutter) 0; font-size: 13px; color: var(--mute); }
.band figcaption i { font-family: var(--f-display); font-size: 1.12em; color: var(--ink); }
.artist-photo { margin: 0; display: grid; gap: 10px; }
.artist-photo img { width: 100%; height: auto; }
.artist-photo figcaption { font-size: 13px; color: var(--mute); }
.pan { aspect-ratio: 4 / 3; background-size: 300%; background-repeat: no-repeat; cursor: crosshair; touch-action: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }

@media (max-width: 900px) {
  .pp-body { grid-template-columns: minmax(0, 1fr); padding-bottom: 120px; }
  .pp-info { position: static; padding-top: 0; }
  .pp-view { min-height: 0; padding-block: 8px; }
  .pp-mark { display: none; }
  .pp-bar { grid-template-columns: 1fr auto; }
  .pp-dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: var(--bg); border-top: 1px solid var(--line); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); align-items: center; justify-content: space-between; gap: 16px; }
  .pp-dock b { display: block; font: 400 22px/1 var(--f-display); font-variant-numeric: lining-nums; }
  .pp-dock span { display: block; font-size: 12px; color: var(--mute); margin-top: 4px; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pp-dock .btn { min-height: 46px; padding: 0 24px; }
}
