/* Layout concept: a quiet gallery wall. Paintings hang with generous space; every caption is a museum wall label; a red dot marks a sold work. */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --wall: #efeff2;      /* page background: cool plaster */
  --panel: #ffffff;     /* raised surfaces: forms, cards that need separation */
  --ink: #1c1d29;       /* text: indigo-black */
  --muted: #5c5e6d;
  --line: #d6d6de;
  --accent: #1c5d66;    /* Okanagan lake teal: links, buttons */
  --accent-ink: #ffffff;
  --sold: #c4122f;      /* gallery red dot */
  --avail: #2c7a44;
  --band: #e4e4ea;

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  --s-1: .8125rem; --s0: 1rem; --s1: 1.1875rem; --s2: 1.5rem; --s3: 2rem; --s4: clamp(2.25rem, 4.5vw, 3.25rem); --s5: clamp(2.75rem, 7vw, 5.25rem);
  --gap: clamp(16px, 2.4vw, 32px);
  --max: 1320px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #15161d; --panel: #1e2029; --ink: #ecebf1; --muted: #a2a3b3; --line: #2f313d;
    --accent: #6cc0c6; --accent-ink: #0b1517; --sold: #ff5468; --avail: #6fcf8a; --band: #1b1c25;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #15161d; --panel: #1e2029; --ink: #ecebf1; --muted: #a2a3b3; --line: #2f313d;
  --accent: #6cc0c6; --accent-ink: #0b1517; --sold: #ff5468; --avail: #6fcf8a; --band: #1b1c25;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 var(--s0)/1.6 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h2 { font-size: var(--s3); }
h3 { font-size: var(--s2); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 700px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.block { padding-block: clamp(48px, 7vw, 96px) 0; }
.mt { margin-top: 1.6em; }

/* Masthead */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--wall); }
.masthead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--wall) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: baseline; gap: .45em; color: var(--ink); text-decoration: none; }
.brand__name { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.01em; }
.brand__cred { font-size: .72rem; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.navtoggle { display: none; font: 500 .95rem var(--f-body); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
@media (max-width: 860px) {
  .navtoggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--wall); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .masthead.is-open .nav { display: flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 .95rem/1 var(--f-body); letter-spacing: .01em; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); padding: .95em 1.4em; border-radius: 999px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { border-color: var(--ink); }
.btn--small { padding: .6em 1em; font-size: .85rem; }
.textlink { display: inline-block; font-weight: 600; margin-top: .4em; }
.textlink::after { content: " →"; }

/* Wall label: the caption convention used everywhere a painting appears */
.label { display: grid; gap: 2px; margin-top: 12px; font-size: var(--s-1); line-height: 1.4; }
.label__title { font-family: var(--f-display); font-style: italic; font-size: 1.08rem; color: var(--ink); text-decoration: none; }
a.label__title:hover { text-decoration: underline; }
.label__meta { color: var(--muted); }
.dot { display: inline-flex; align-items: center; gap: .45em; font-size: var(--s-1); color: var(--muted); }
.dot::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: var(--avail); flex: none; }
.dot--sold::before { background: var(--sold); }
.card .dot--sold { position: relative; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); padding-block: clamp(28px, 5vw, 64px) 0; align-items: end; }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.hero__text { order: 2; padding-bottom: 8px; }
@media (min-width: 900px) { .hero__text { order: 0; padding-bottom: 46px; } }
.hero__name { font-size: var(--s5); line-height: .98; letter-spacing: -.025em; }
.hero__name span { display: block; font-family: var(--f-body); font-size: .8rem; letter-spacing: .22em; font-weight: 600; color: var(--muted); margin-top: .9em; }
.hero__tag { font-family: var(--f-display); font-style: italic; font-size: var(--s2); line-height: 1.3; margin: 1.1em 0 .3em; max-width: 22ch; }
.hero__where { color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.hero__work { margin: 0; }
.hero__work img { width: 100%; max-height: 74vh; object-fit: contain; object-position: left bottom; box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 18px 40px -18px rgb(0 0 0 / .35); }

/* Section heads */
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.5vw, 28px); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sechead a { font-weight: 600; text-decoration: none; }
.sechead a::after { content: " →"; }

/* Grids */
.grid { display: grid; gap: clamp(28px, 3.4vw, 48px) var(--gap); }
.grid--row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); align-items: end; }
@media (max-width: 559px) { .grid--row { grid-template-columns: 1fr 1fr; gap: 24px 14px; } .grid--row .label__title { font-size: 1rem; } }
.grid--wall { display: block; columns: 1; column-gap: var(--gap); }
@media (min-width: 560px) { .grid--wall { columns: 2; } }
@media (min-width: 900px) { .grid--wall { columns: 3; } }
@media (min-width: 1240px) { .grid--wall { columns: 4; } }
.grid--wall .card { break-inside: avoid; margin-bottom: clamp(28px, 3.4vw, 44px); }
.card { margin: 0; min-width: 0; }
.card__img { display: block; }
.card__img img { width: 100%; box-shadow: 0 1px 2px rgb(0 0 0 / .1), 0 10px 24px -14px rgb(0 0 0 / .35); transition: transform .25s ease, box-shadow .25s ease; }
.card__img:hover img { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(0 0 0 / .1), 0 20px 34px -16px rgb(0 0 0 / .4); }

/* Series */
.series { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (min-width: 900px) { .series { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.series__item { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.series__item picture, .series__item img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.series__item img { transition: filter .25s ease; }
.series__item:hover img { filter: saturate(1.15); }
.series__name { font-family: var(--f-display); font-size: var(--s2); margin-top: 10px; }
.series__count { color: var(--muted); font-size: var(--s-1); }

/* About strip */
.band { background: var(--band); margin-top: clamp(56px, 8vw, 110px); padding-block: clamp(40px, 6vw, 80px); }
.about-strip { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 900px) { .about-strip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); } }
.about-strip__img { margin: 0; }
.about-strip__text { max-width: 60ch; }
.about-strip__text h2 { margin-bottom: .6em; }
.about-strip__text p { font-size: var(--s1); }

/* See in person */
.see { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .see { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.see h2 { margin-bottom: .5em; }
.see__list { list-style: none; padding: 0; margin: 0 0 1em; columns: 1; }
@media (min-width: 560px) { .see__list { columns: 2; column-gap: var(--gap); } }
.see__list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.show-mini { padding: 12px 0; border-bottom: 1px solid var(--line); }
.show-mini p { margin: 0; }
.show-mini__date { font-size: var(--s-1); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.show-mini__t { font-family: var(--f-display); font-size: 1.25rem; }

/* Page heads */
.pagehead { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 3.5vw, 40px); }
.pagehead h1 { font-size: var(--s4); }
.lede { font-size: var(--s1); color: var(--muted); max-width: 60ch; margin-top: .7em; }
.crumbs { font-size: var(--s-1); margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-bottom: 20px; margin-bottom: clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--links { margin-top: 20px; }
.chip { font: 500 .9rem var(--f-body); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.avail { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.avail input { width: 18px; height: 18px; accent-color: var(--accent); }
.count { margin: 0 0 0 auto; color: var(--muted); font-size: var(--s-1); font-variant-numeric: tabular-nums; }
.card.is-hidden { display: none; }

/* Painting detail */
.work { padding-block: clamp(20px, 3vw, 36px) 0; }
.work__grid { display: grid; gap: clamp(24px, 4vw, 56px); }
@media (min-width: 1000px) { .work__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; } }
.work__img img { width: 100%; max-height: 82vh; object-fit: contain; object-position: left top; box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 24px 50px -24px rgb(0 0 0 / .45); cursor: zoom-in; }
.work__label { position: sticky; top: 96px; display: grid; gap: 18px; align-content: start; }
.work__title { font-style: italic; font-size: var(--s4); }
.work__facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.work__facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.work__facts dt { color: var(--muted); font-size: .9rem; }
.work__facts dd { margin: 0; }
.work__facts .dot { font-size: inherit; color: var(--ink); }
.work__cta-note { color: var(--muted); margin: 0; }
.work__label .btn { justify-self: start; }
.work__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.work__pager a { display: grid; gap: 2px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-style: italic; font-size: 1.05rem; line-height: 1.25; }
.work__pager a span { font-family: var(--f-body); font-style: normal; font-size: var(--s-1); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.work__pager .is-next { text-align: right; }
.more { padding-block: clamp(56px, 8vw, 100px) 0; }

/* Prose pages */
.prose { max-width: 64ch; }
.prose p { font-size: var(--s1); line-height: 1.65; }
.about { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.about__img { margin: 0; }
.about__img figcaption { font-size: var(--s-1); margin-top: 8px; }
.facts { margin: 1.6em 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(8em, 11em) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .92rem; }
.facts dd { margin: 0; }
.twocol { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 800px) { .twocol { grid-template-columns: 1fr 1fr; } }
.twocol h2 { font-size: var(--s2); margin-bottom: .6em; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Galleries */
.galleries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 var(--gap); }
.gallery { padding: 22px 0; border-top: 1px solid var(--line); }
.gallery p { margin: 0 0 .25em; }
.gallery__name { font-size: var(--s2); }
.gallery__city { font-size: var(--s-1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .3em 0 .7em !important; }
.note { background: var(--panel); border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); max-width: 760px; }
.note h2 { font-size: var(--s2); margin-bottom: .5em; }

/* Shows */
.shows h2 { font-size: var(--s2); margin-bottom: .6em; }
.show { display: grid; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .show { grid-template-columns: 16em minmax(0, 1fr); } }
.show p { margin: 0 0 .3em; }
.show__date { font-variant-numeric: tabular-nums; color: var(--muted); }
.show__title { font-size: 1.4rem; }
.empty { color: var(--muted); font-size: var(--s1); }

/* Forms */
.form { background: var(--panel); border: 1px solid var(--line); padding: clamp(20px, 3.5vw, 40px); display: grid; gap: 4px; min-width: 0; }
.form h2 { font-size: var(--s2); margin-bottom: .6em; }
.form p { margin: 0 0 14px; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem var(--f-body); color: var(--ink); background: var(--wall); border: 1px solid var(--line); border-radius: 6px; padding: 12px 13px; }
.form input[type="file"] { padding: 10px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form .btn { justify-self: start; margin-top: 4px; }
.f2 { display: grid; gap: 0 16px; }
@media (min-width: 620px) { .f2 { grid-template-columns: 1fr 1fr; } }
.contact, .commission { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) { .contact, .commission { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.contact__side .lede { margin-top: 0; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); column-gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--f-display); font-size: 1.9rem; line-height: 1; color: var(--accent); }
.steps h2 { font-size: 1.3rem; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }
.formstatus { color: var(--sold); font-size: .92rem; margin: 0 0 12px; }
.formnote { background: var(--band); border-left: 3px solid var(--accent); padding: 12px 14px; font-size: .92rem; }

/* Press */
.press { display: grid; gap: clamp(28px, 5vw, 72px); }
@media (min-width: 900px) { .press { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; } }
.press__side figure { margin: 0 0 8px; }
.press__side h2 { font-size: var(--s2); margin-bottom: .4em; }
.copyblock { padding: 22px 0; border-top: 1px solid var(--line); max-width: 68ch; }
.copyblock__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.copyblock h2 { font-size: var(--s2); }

/* CV */
.cv { max-width: 820px; padding-block: clamp(32px, 6vw, 72px) 0; }
.cv__head { border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 8px; display: grid; gap: 6px; }
.cv__head h1 { font-size: var(--s4); }
.cv__head p { margin: 0; color: var(--muted); }
.cv__head .btn { justify-self: start; margin-top: 8px; }
.cv section { padding: 18px 0; }
.cv h2 { font-size: 1.35rem; margin-bottom: .5em; }
.cv .facts { margin-top: 0; }

/* Footer */
.foot { margin-top: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 64px) calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot__in { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot__in { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
.foot__id p { margin: 0 0 .2em; }
.foot__name { font-family: var(--f-display); font-size: 1.4rem; }
.foot__id a { color: var(--ink); }
.signup__h { font-size: var(--s2); margin-bottom: .3em; }
.signup__t { color: var(--muted); max-width: 52ch; }
.signup__row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup__row input { flex: 1 1 220px; min-width: 0; font: 400 1rem var(--f-body); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }
.foot__nav a { color: var(--ink); text-decoration: none; font-size: .92rem; }
.foot__nav a:hover { text-decoration: underline; }
.foot__copy { grid-column: 1 / -1; color: var(--muted); font-size: var(--s-1); margin: 0; }

.preview-note { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--wall); padding: 12px 18px; border-radius: 10px; font-size: .92rem; max-width: min(92vw, 520px); box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

@media print {
  .masthead, .foot, .noprint, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .cv { padding: 0; max-width: none; }
  a { color: #000; text-decoration: none; }
}
