:root {
  --bg: #F5F1EA;
  --surface: #FFFDF9;
  --ink: #1F1B17;
  --muted: #625950;
  --line: #E2DACE;
  --accent: #A4441C;
  --accent-ink: #FFFFFF;
  --accent-soft: #F3E3D8;
  --sold: #B3261E;
  --ok: #3F6B3A;
  --shadow: 0 1px 2px rgba(31,27,23,.06), 0 8px 24px rgba(31,27,23,.08);
  --radius: 6px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
/* The site always uses the light gallery colours, even when a visitor's device is in dark mode. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--muted); margin: 0 0 .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.wordmark { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; text-decoration: none; }
.wordmark em { font-weight: 500; color: var(--accent); }
nav { display: flex; gap: 4px; }
nav a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 12px; border-radius: var(--radius); color: var(--muted); transition: color .2s var(--ease), background .2s var(--ease); }
nav a:hover { color: var(--ink); background: var(--accent-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .fb { width: 18px; height: 18px; margin-right: 8px; fill: currentColor; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 8vw, 96px); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1 / 1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-art img:first-child { grid-row: span 2; }

/* Gallery */
.gallery-section { padding-block: 24px 80px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.result-count { color: var(--muted); margin: 0; font-size: .95rem; }
/* Category bar: sticks under the header while browsing the gallery */
.toolbar-sentinel { height: 1px; margin-top: 8px; }
.toolbar { position: sticky; top: 64px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 28px; padding: 12px 0; background: var(--bg); box-shadow: 0 0 0 100vmax var(--bg), 0 1px 0 100vmax var(--line); clip-path: inset(0 -100vmax); }
.toolbar.is-stuck { clip-path: inset(0 -100vmax -1px); }
.toolbar .chips { flex: 1 1 auto; min-width: 0; }
.head-right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .92rem var(--sans); cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { opacity: .6; margin-left: 6px; font-variant-numeric: tabular-nums; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; min-height: 44px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 42px; height: 24px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s var(--ease); }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Gallery wall: each painting keeps its full shape (nothing cropped), in narrow columns */
.grid { columns: 5 190px; column-gap: 22px; }
.card { display: block; break-inside: avoid; margin: 0 0 26px; text-decoration: none; color: inherit; }
.card-frame { position: relative; container-type: inline-size; background: var(--surface); padding: 8px; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.card:hover .card-frame, .card:focus-visible .card-frame { box-shadow: 0 2px 4px rgba(31,27,23,.08), 0 14px 32px rgba(31,27,23,.14); transform: translateY(-2px); }
.card-frame img { width: 100%; height: auto; border-radius: 1px; background: var(--line); transition: filter .3s var(--ease); }

.card.is-sold .card-frame img { filter: saturate(.85); }
.card-body { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 9px 2px 0; }
.card-body > div { min-width: 0; }
.card-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.card-meta { color: var(--muted); font-size: .82rem; margin: 2px 0 0; }
.price { font-size: .9rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Sold: a red banner across the bottom of the photo */
.badge { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 6px; background: rgba(179, 38, 30, .93); color: #fff; text-align: center; font-size: clamp(.55rem, 6cqw, .8rem); white-space: nowrap; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: 0 0 2px 2px; pointer-events: none; }
.viewer-sold { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; background: rgba(179, 38, 30, .93); color: #fff; text-align: center; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.sold-label { color: var(--sold); font-weight: 600; white-space: nowrap; }
.loading, .empty { color: var(--muted); }
.empty { text-align: center; padding: 48px 0; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; padding-block: 72px; border-top: 1px solid var(--line); }
.about.no-portrait { grid-template-columns: 1fr; max-width: 760px; }
.about-portrait img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.about-body p { font-size: 1.08rem; max-width: 62ch; margin: 0 0 1em; }

/* Contact */
.contact { background: var(--surface); border-block: 1px solid var(--line); padding-block: 72px; text-align: center; }
.contact-inner p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.75rem; font-size: 1.08rem; }
.contact-card { max-width: 560px; margin: 0 auto; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.contact-card .viewer-close, .contact-card #inquiry-title { display: none; }
.contact-card form { padding: 0; }
.contact-alt { margin: 20px auto 0 !important; font-size: .95rem !important; }
.contact-alt a { color: var(--accent); font-weight: 600; }
.site-footer { padding: 32px 0 48px; color: var(--muted); font-size: .9rem; }

/* Dialogs */
dialog { border: 0; padding: 0; background: var(--surface); color: var(--ink); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.35); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
dialog::backdrop { background: rgba(18,15,12,.72); }
dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: background .2s var(--ease); }
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.viewer-close { position: absolute; top: 12px; right: 12px; z-index: 2; }

.viewer { width: min(1180px, 100vw - 24px); }
.viewer-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
.viewer-media { position: relative; background: #0f0d0b; display: grid; place-items: center; min-height: 320px; }
.viewer-media img { max-height: calc(100dvh - 48px); width: auto; max-width: 100%; object-fit: contain; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); }
.nav.prev { left: 12px; } .nav.next { right: 12px; }
.viewer-info { padding: 56px 32px 32px; display: flex; flex-direction: column; overflow-y: auto; max-height: calc(100dvh - 24px); }
.viewer-info h2 { font-size: 2.1rem; }
.meta { color: var(--muted); margin: 0 0 1rem; }
.status { font-weight: 600; margin: 0 0 1rem; }
.status.is-available { color: var(--ok); }
.status.is-sold { color: var(--sold); }
.desc { white-space: pre-line; margin: 0 0 1.5rem; }
.viewer-info .btn { margin-top: auto; }

.inquiry { width: min(520px, 100vw - 24px); }
.inquiry form { padding: 32px; position: relative; }
.inquiry h2 { font-size: 2rem; padding-right: 40px; }
.inquiry-about { background: var(--accent-soft); padding: 10px 14px; border-radius: var(--radius); margin: 0 0 18px; font-size: .95rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; min-height: 46px; transition: border-color .2s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--sold); }
.error { color: var(--sold); font-size: .88rem; margin: 6px 0 0; }
.form-note { margin: 12px 0 0; font-size: .95rem; min-height: 1.4em; }
.form-note.ok { color: var(--ok); font-weight: 600; }
.hidden-field { position: absolute; left: -9999px; }

/* Responsive */
@media (max-width: 860px) {
  .grid { columns: 3 160px; column-gap: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 4 / 3; }
  .about { grid-template-columns: 1fr; }
  .viewer-inner { grid-template-columns: 1fr; }
  .viewer-media img { max-height: 60dvh; }
  .viewer-info { padding: 24px; max-height: none; }
}
@media (max-width: 1100px) {
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 32px; }
  .toolbar .chips::-webkit-scrollbar { display: none; }
}
@media (max-width: 520px) {
  nav a { padding: 10px 8px; font-size: .9rem; }
  .wordmark { font-size: 1.35rem; }
  .grid { columns: 2; column-gap: 12px; }
  .card { margin-bottom: 18px; }
  .card-frame { padding: 5px; }
  .card-title { font-size: 1.02rem; }
  .card-body { flex-direction: column; gap: 2px; padding-top: 8px; }
  .contact-card { padding: 20px 16px; }
  .toolbar { padding: 10px 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; }
  .chips::-webkit-scrollbar { display: none; }
  .head-right { width: 100%; justify-content: space-between; gap: 12px; }
  .inquiry form { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Category dropdown (phones only) */
.cat-select { display: none; position: relative; flex: 1; min-width: 0; }
.cat-select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 44px; padding: 0 40px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .95rem var(--sans); cursor: pointer; }
.cat-select.is-active select { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-select svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: currentColor; stroke-width: 2; pointer-events: none; color: var(--ink); }
.cat-select.is-active svg { color: var(--bg); }
.cat-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) {
  .toolbar .chips, .chips { flex-wrap: nowrap; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-right: 0; gap: 8px; }
  .chips .chip { display: none; }
  .cat-select { display: block; }
  .toolbar { flex-direction: row; align-items: center; gap: 8px; }
  .sections { flex: 1 1 0; min-width: 0; border-bottom: 0; margin: 0; }
  .sections .sec { display: none; }
  .toolbar .chips { flex: 1 1 0; }
  .toolbar .chips:empty { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chip { flex-shrink: 0; }

/* ---------- Top of page: motion options ---------- */
.hero { position: relative; isolation: isolate; }
.hero-text, .hero-art { position: relative; z-index: 1; }

/* Option 1: scrolling paintings */
.hero-art.is-scroll { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); }
.scroll-col { overflow: hidden; min-width: 0; }
.scroll-track { display: flex; flex-direction: column; animation: hero-up 60s linear infinite; will-change: transform; }
.scroll-col:nth-child(2) .scroll-track { animation-name: hero-down; animation-duration: 70s; }
.hero-art.is-scroll img { width: 100%; height: auto; object-fit: initial; grid-row: auto; margin-bottom: 14px; background: var(--surface); padding: 7px; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-art.is-scroll:hover .scroll-track { animation-play-state: paused; }
@keyframes hero-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes hero-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

/* Option 2: simple line sketch (one colour, very light) */
.hero-sketch { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; color: var(--ink); opacity: .55; }
.hero--sketch .hero-art { visibility: hidden; }
.hero--sketch .hero-sketch { display: block; }
.hero-sketch path, .hero-sketch circle { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero-sketch .sk-stroke { stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sk-draw 3.2s .2s cubic-bezier(.6,.1,.3,1) forwards; }
.hero-sketch .sk-stroke-2 { animation-delay: 1.4s; animation-duration: 2s; }
.hero-sketch .sk-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sk-draw 2.4s .6s ease-out forwards; }
.hero-sketch .sk-dab { opacity: 0; fill: currentColor; fill-opacity: .12; animation: sk-fade .6s ease-out forwards; }
.hero-sketch .sk-dab:nth-of-type(2) { animation-delay: 2.2s; } .hero-sketch .sk-dab:nth-of-type(3) { animation-delay: 2.35s; } .hero-sketch .sk-dab:nth-of-type(4) { animation-delay: 2.5s; } .hero-sketch .sk-dab:nth-of-type(5) { animation-delay: 2.65s; } .hero-sketch .sk-dab:nth-of-type(6) { animation-delay: 2.8s; }
.hero-sketch .sk-palette { transform-box: fill-box; transform-origin: center; animation: sk-float 9s 3s ease-in-out infinite; }
.hero-sketch .sk-brush { transform-box: fill-box; transform-origin: 20% 10%; animation: sk-sway 7s 3s ease-in-out infinite; }
@keyframes sk-draw { to { stroke-dashoffset: 0; } }
@keyframes sk-fade { to { opacity: 1; } }
@keyframes sk-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes sk-sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(4deg); } }
@media (max-width: 860px) { .hero--sketch .hero-art { display: none; } .hero-sketch { opacity: .14; } }

@media (prefers-reduced-motion: reduce) {
  .scroll-track { animation: none !important; }
  .hero-sketch .sk-stroke, .hero-sketch .sk-draw { stroke-dashoffset: 0; }
  .hero-sketch .sk-dab { opacity: 1; }
}

/* Option 3: swoosh — full-width brush strokes behind the top area */
html, body { overflow-x: clip; }
.hero-swoosh { position: absolute; z-index: 0; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; height: 100%; pointer-events: none; }

/* ---------- Sections (Paintings, Décor, Seasonal, Jewelry) ---------- */
.toolbar { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 8px; }
.sections { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.sections::-webkit-scrollbar { display: none; }
.sec { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 2px 7px; margin-bottom: -1px; font: 600 1.3rem var(--serif); color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 44px; }
.sec:hover { color: var(--ink); }
.sec[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.sec:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips:empty { display: none; }
.sec-select { display: none; }
.soon { text-align: center; padding: 56px 16px 72px; max-width: 520px; margin: 0 auto; }
.soon-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.soon-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.soon h3 { font: 600 1.9rem var(--serif); margin: 0 0 6px; }
.soon p { color: var(--muted); margin: 0 0 18px; }
.soon[hidden], .grid[hidden] { display: none; }
@media (max-width: 720px) {
  .toolbar { flex-direction: row; align-items: center; gap: 8px; }
  .sections { flex: 1 1 0; min-width: 0; border-bottom: 0; overflow: visible; }
  .sections .sec { display: none; }
  .sec-select { display: block; flex: 1 1 0; }
  .toolbar .chips { flex: 1 1 0; min-width: 0; }
}
.sections[hidden] { display: none; }
