/*
 * Mikel Wewers Art: one stylesheet, no build step.
 *
 * Design: the site is the white wall of a gallery and the work hangs on it. Primed-canvas white, graphite text (his
 * sketch medium), ultramarine for anything you can press (the blue in his portraits), and one cadmium-yellow
 * brushstroke behind his name. His name is set like an exhibition poster in a tall condensed face; everything else is
 * quiet so the paintings carry the colour. Sold works get the gallery's red dot.
 */

@font-face {
    font-family: "Big Shoulders Display";
    src: url("../fonts/big-shoulders-display.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans-italic.woff2") format("woff2");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}
/* Caveat Brush (SIL Open Font License, self-hosted): a brush script for the small, playful bits: labels, numbers, counters. */
@font-face {
    font-family: "Caveat Brush";
    src: url("../fonts/caveat-brush.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root {
    --gesso: #F3F3F0;        /* primed canvas: the wall */
    --wall: #E8E8E3;         /* a shade deeper, behind a single artwork */
    --white: #FFFFFF;
    --graphite: #26272A;     /* text */
    --pencil: #5F6167;       /* secondary text (5.6:1 on gesso) */
    --rule: #CFCFC9;
    --ultramarine: #2236B8;  /* links and buttons (8.2:1 on gesso) */
    --ultramarine-deep: #18288C;
    --cadmium: #F2B705;      /* the brushstroke, and buttons on the dark band */
    --red-dot: #C8102E;      /* sold */
    --error: #A8231C;

    --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --text: "Instrument Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --brush: "Caveat Brush", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;

    --gutter: clamp(16px, 4vw, 48px);
    --section: clamp(56px, 9vw, 120px);
    --hung: 0 1px 2px rgba(38, 39, 42, .16), 0 22px 36px -22px rgba(38, 39, 42, .45);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--gesso);
    color: var(--graphite);
    font: 400 1.0625rem/1.65 var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; }

a { color: var(--ultramarine); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ultramarine-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .95; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 20;
    background: var(--graphite); color: var(--gesso); padding: .6em 1em; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--gesso); }
#main:focus { outline: none; }

/* Header ------------------------------------------------------------------ */
.site-header { padding-block: 18px; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.wordmark {
    font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1;
    text-transform: uppercase; letter-spacing: .03em; color: var(--graphite); text-decoration: none;
}
.wordmark:hover { color: var(--graphite); }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.site-nav a {
    color: var(--graphite); text-decoration: none; font-weight: 500; display: inline-block; padding-block: 6px;
}
.site-nav a:hover { color: var(--ultramarine); }
@media (max-width: 420px) {
    .site-nav__list { gap: 2px 18px; }
    .site-nav a { font-size: .97rem; }
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ultramarine); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* Buttons and links ------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 1.75rem 0 0; }
.button {
    display: inline-block; padding: .8em 1.35em; border: 2px solid var(--ultramarine); border-radius: 2px;
    background: var(--ultramarine); color: var(--white); font: 600 1rem/1.2 var(--text); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--ultramarine-deep); border-color: var(--ultramarine-deep); color: var(--white); }
.button--quiet { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.button--quiet:hover { background: var(--graphite); border-color: var(--graphite); color: var(--gesso); }
.text-link { font-weight: 600; }

/* Home: the poster -------------------------------------------------------- */
.hero { padding-block: clamp(16px, 4vw, 56px) var(--section); }
.hero__inner { display: grid; gap: 40px; align-items: end; }
.hero__name {
    margin: 0; font-weight: 800; text-transform: uppercase; line-height: .8; letter-spacing: -.005em;
    font-size: min(25vw, 13.5rem);
}
.hero__first, .hero__last { display: block; }
.hero__last { position: relative; isolation: isolate; width: fit-content; }
.hero__last-text { position: relative; }
.brushstroke {
    position: absolute; z-index: -1; left: -6%; width: 114%; top: 18%; height: 66%;
    overflow: visible;
}
.brushstroke path { fill: none; stroke: var(--cadmium); }
.brushstroke path:first-child { fill: var(--cadmium); stroke: none; }
.hero__line { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; max-width: 30ch; margin: 1.75rem 0 0; }
.hero__place { color: var(--pencil); }
.hero__art { margin: 0; }
.hero__art a { display: block; }
.hero__art img { display: block; width: auto; max-width: 100%; max-height: min(78vh, 920px); box-shadow: var(--hung); }
.hero__art figcaption, .artwork__caption { margin-top: .85rem; font-size: .95rem; font-weight: 600; }
.hero__art figcaption span { display: block; font-weight: 400; color: var(--pencil); }

@media (min-width: 800px) {
    .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 4vw, 64px); }
    .hero__name { font-size: clamp(5rem, 14.5vw, 14rem); }
    .hero__art img { margin-left: auto; }
    .hero__art figcaption { text-align: right; }
}

/* The brushstroke is painted in once, left to right, when the page opens. */
@media (prefers-reduced-motion: no-preference) {
    .js .brushstroke { clip-path: inset(0 100% 0 0); animation: paint 900ms cubic-bezier(.3, .7, .2, 1) 250ms forwards; }
}
@keyframes paint { to { clip-path: inset(0 0 0 0); } }

/* Sections ---------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--commission + .section { padding-top: var(--section); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section__head h2 { margin: 0; }

/* The salon wall: pieces keep their own shapes. */
.salon { columns: 1; column-gap: clamp(20px, 3vw, 44px); }
@media (min-width: 560px) { .salon { columns: 2; } }
@media (min-width: 980px) { .salon { columns: 3; } }
.piece { break-inside: avoid; margin: 0 0 clamp(32px, 4vw, 56px); }
.piece__link { display: block; color: var(--graphite); text-decoration: none; }
.piece__link img { display: block; width: 100%; height: auto; box-shadow: var(--hung); }
.piece__caption { display: flex; flex-direction: column; margin-top: .8rem; line-height: 1.4; }
.piece__title { font-weight: 600; }
.piece__link:hover .piece__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; color: var(--ultramarine); }
.piece__details { color: var(--pencil); font-size: .925rem; }
.piece__empty {
    display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 4 / 5;
    padding: 1.25rem; border: 2px dashed #A9AAA4; color: var(--pencil); font-size: .95rem;
}
.piece__empty--hero, .piece__empty--portrait { min-height: 340px; }

.status { font-size: .925rem; color: var(--pencil); }
.status--sold::before {
    content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .4em;
    border-radius: 50%; background: var(--red-dot); vertical-align: .02em;
}

/* Two ways of working */
.mediums { display: grid; gap: clamp(28px, 4vw, 56px); margin-top: clamp(24px, 3vw, 40px); }
@media (min-width: 800px) { .mediums { grid-template-columns: 1fr 1fr; } }
.medium { display: grid; color: var(--graphite); text-decoration: none; }
.medium img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; box-shadow: var(--hung); }
.medium__name { font: 700 clamp(2rem, 4vw, 3rem)/1 var(--display); margin-top: 1rem; }
.medium:hover .medium__name { color: var(--ultramarine); }
.medium__count { color: var(--pencil); }
.medium__text { margin-top: .5rem; max-width: 52ch; }

/* Commissions: the one dark band, charcoal like his sketches. */
.section--commission { background: var(--graphite); color: var(--gesso); }
.commission { display: grid; gap: 16px 64px; }
.commission h2 { color: var(--gesso); margin: 0; font-size: clamp(2.75rem, 7vw, 5.5rem); }
.commission__body { font-size: 1.2rem; max-width: 46ch; }
.commission .button { background: var(--cadmium); border-color: var(--cadmium); color: var(--graphite); }
.commission .button:hover { background: var(--gesso); border-color: var(--gesso); color: var(--graphite); }
.commission .text-link { color: var(--gesso); }
.commission :focus-visible { outline-color: var(--cadmium); }
@media (min-width: 900px) { .commission { grid-template-columns: 1fr 1fr; align-items: end; } }

/* About teaser */
.about-teaser { display: grid; gap: 32px 64px; align-items: center; }
.about-teaser__photo img { display: block; width: 100%; height: auto; box-shadow: var(--hung); }
.about-teaser__text { max-width: 60ch; font-size: 1.15rem; }
@media (min-width: 800px) { .about-teaser:has(.about-teaser__photo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }

.placeholder { background: #FFF2C2; box-shadow: inset 3px 0 0 var(--cadmium); padding: .15em .5em; }
p.placeholder { padding: .75em 1em; }
/* A placeholder that runs on inside a sentence: a highlight, not a box. */
.placeholder--inline { display: inline; padding: .05em .3em; box-shadow: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Page heads, prose -------------------------------------------------------- */
.page-head { padding-top: clamp(28px, 6vw, 80px); padding-bottom: clamp(24px, 4vw, 48px); }
.page-head h1, .about h1, .contact h1 {
    font-weight: 800; text-transform: uppercase; line-height: .85; font-size: clamp(3.25rem, 11vw, 8rem); margin-bottom: .3em;
}
.page-body { padding-bottom: var(--section); }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; max-width: 52ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { height: auto; }
.prose ul, .prose ol { padding-left: 1.25em; }
.empty { font-size: 1.15rem; padding-bottom: var(--section); }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: .6em 0; border-bottom: 1px solid var(--rule); }
.post-date { color: var(--pencil); font-size: .925rem; }

.filter { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 1.5rem; }
.filter a { color: var(--graphite); text-decoration: none; font-weight: 600; padding-block: 6px; }
.filter a:hover { color: var(--ultramarine); }
.filter a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ultramarine); text-decoration-thickness: 3px; text-underline-offset: 8px; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: var(--section); font-weight: 600; }
.pagination .current { color: var(--pencil); }

/* One artwork ------------------------------------------------------------- */
.artwork { display: grid; gap: 32px clamp(32px, 4vw, 72px); padding-top: clamp(16px, 3vw, 40px); padding-bottom: var(--section); }
.artwork__image { margin: 0; background: var(--wall); padding: clamp(20px, 5vw, 64px); display: flex; justify-content: center; align-items: center; }
.artwork__zoom { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-decoration: none; color: var(--pencil); cursor: zoom-in; }
.artwork__zoom img { display: block; width: auto; max-width: 100%; max-height: 78vh; box-shadow: var(--hung); }
.artwork__zoom-hint { font-size: .9rem; }
.artwork__zoom:hover .artwork__zoom-hint { color: var(--ultramarine); text-decoration: underline; }
.artwork__collection { margin: 0 0 .5rem; font-weight: 600; }
.artwork__title { font-size: clamp(2.5rem, 5vw, 4rem); }
.artwork__facts { margin: 1.25rem 0 0; display: grid; gap: .65rem; }
.artwork__facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; border-top: 1px solid var(--rule); padding-top: .65rem; }
.artwork__facts dt { color: var(--pencil); }
.artwork__facts dd { margin: 0; }
.artwork__note { margin: .75rem 0 0; color: var(--pencil); font-size: .925rem; }
.artwork__follow { margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: .35rem; font-size: .925rem; }
.artwork__follow-line { color: var(--pencil); }
.artwork__follow-line a, .gallery__note a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.artwork__follow-line a:hover, .gallery__note a:hover { color: var(--graphite); }
.artwork .prose { margin-top: 1.5rem; }
.artwork__nav { display: grid; gap: .6rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.artwork__nav a { color: var(--graphite); text-decoration: none; font-weight: 600; }
.artwork__nav a:hover { color: var(--ultramarine); }
.artwork__nav span { display: inline-block; min-width: 5.5em; color: var(--pencil); font-weight: 400; }
@media (min-width: 900px) {
    .artwork { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
    .artwork__info { position: sticky; top: 24px; }
}

/* About ------------------------------------------------------------------- */
.about { display: grid; gap: 32px clamp(32px, 5vw, 80px); padding-top: clamp(28px, 6vw, 80px); padding-bottom: var(--section); }
.about__photo img { display: block; width: 100%; height: auto; box-shadow: var(--hung); }
@media (min-width: 800px) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; } }
.elsewhere { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 600; }
.elsewhere--stacked { flex-direction: column; }

/* Contact and the form ---------------------------------------------------- */
.contact { display: grid; gap: 24px clamp(32px, 5vw, 96px); padding-top: clamp(28px, 6vw, 80px); padding-bottom: var(--section); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; } }
.contact__form:focus { outline: none; }
.form { max-width: 40rem; }
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; }
.optional { font-weight: 400; color: var(--pencil); }
.field input, .field select, .field textarea {
    width: 100%; padding: .75rem .85rem; font: inherit; font-size: 1rem; color: var(--graphite);
    background: var(--white); border: 1.5px solid #8A8C91; border-radius: 2px;
}
.field textarea { resize: vertical; min-height: 10rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ultramarine); outline: 3px solid rgba(34, 54, 184, .25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; margin-top: .4rem; color: var(--error); font-size: .95rem; font-weight: 600; }
.field__hint { display: block; margin-top: .4rem; color: var(--pencil); font-size: .925rem; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__about { display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem; padding: 12px; background: var(--white); border: 1px solid var(--rule); }
.form__about img { width: 64px; height: 64px; object-fit: cover; flex: none; }
.form__about p { margin: 0; }
.form__send { margin: 1.75rem 0 .75rem; }
.form__small { color: var(--pencil); font-size: .925rem; }
.notice { background: var(--white); padding: 1.25rem 1.4rem; margin-bottom: 1.75rem; border-left: 4px solid var(--ultramarine); }
.notice h2 { font-size: 2rem; }
.notice p:last-child { margin-bottom: 0; }
.notice--error { border-left-color: var(--error); }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(40px, 6vw, 72px) 32px; }
.site-footer__inner { display: grid; gap: 28px 48px; }
.site-footer .wordmark { font-size: 2.25rem; }
.site-footer__name p { margin: .6rem 0 0; color: var(--pencil); max-width: 34ch; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; align-content: start; }
.site-footer__links a { color: var(--graphite); text-decoration: none; font-weight: 500; }
.site-footer__links a:hover { color: var(--ultramarine); text-decoration: underline; }
.site-footer__small { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--pencil); font-size: .9rem; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 2fr 1fr 1fr; } }

/* The full-size viewer ---------------------------------------------------- */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(22, 22, 24, .96); }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer::backdrop { background: rgba(22, 22, 24, .96); }
.viewer__img { max-width: 96vw; max-height: 92dvh; width: auto; height: auto; }
.viewer form { position: absolute; top: 14px; right: 14px; margin: 0; }
.viewer__close { font: 600 1rem/1 var(--text); color: var(--gesso); background: transparent; border: 1.5px solid var(--gesso); border-radius: 2px; padding: .65em 1em; cursor: pointer; }
.viewer__close:focus-visible { outline: 3px solid var(--cadmium); }

/* =========================================================================
 * v0.3.0 mock-up: the site as an extension of the paintings (DESIGN-BRIEF.md)
 *
 * Looks (body classes set in inc/setup.php; Dillon's pick, 7 Nov 2026: all dark): look-dark is the dark canvas wall
 * on every page, look-room the dark room around a single artwork, where the wall takes a little of that painting's
 * colour. The light rules above this section remain the base and are overridden below; a later clean-up can fold
 * the dark values into :root. has-strokes / has-canvas say the brushstroke PNGs and the canvas tile are present, so
 * nothing below points at a missing file. Each piece may carry --piece-main / --piece-accent (colours measured from
 * its photo); the defaults are the theme's own. All motion sits inside prefers-reduced-motion: no-preference and
 * stops under html.motion-paused.
 * ====================================================================== */

:root {
    --piece-main: #2A2A2E;
    --piece-accent: var(--cadmium);
    --room: #141416;                 /* the dark wall */
    --glow: 16%;                     /* how much of a piece's accent colour shows behind the headline painting */
    --stroke-rule-1: url("../images/strokes/rule-1.png");
    --stroke-rule-2: url("../images/strokes/rule-2.png");
    --stroke-mark: url("../images/strokes/mark.png");
    --bg-sweep-dark: url("../images/strokes/bg-sweep-dark.png");
    --bg-sweep-blue: url("../images/strokes/bg-sweep-blue.png");
    --bg-scribble: url("../images/strokes/bg-scribble.png");
    --bg-red: url("../images/strokes/bg-red.png");
}

/* 00. Square cuts of the paintings (tools/make-wallpaper.php; Dillon, 7 Nov). The patchwork tile sits behind the
   whole site under a heavy dark wash, and clearer behind the commissions band and the footer; the strip of five
   squares fills the letters of his name and the page titles. */
body.look-dark.has-wallpaper, body.look-dark.has-canvas.has-wallpaper { /* outranks the canvas-weave rule further down */
    background-image: linear-gradient(rgba(20, 20, 22, .9), rgba(20, 20, 22, .9)), url("../images/wallpaper-dark.jpg");
    background-size: auto, 720px auto;
    background-repeat: repeat;
}
.has-wallpaper .section--commission { background: linear-gradient(rgba(31, 31, 35, .86), rgba(31, 31, 35, .86)), url("../images/wallpaper-dark.jpg") center / 960px auto repeat; }
.has-wallpaper .site-footer { background: linear-gradient(rgba(20, 20, 22, .84), rgba(20, 20, 22, .84)), url("../images/wallpaper-dark.jpg") center / 960px auto repeat; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    /* Each line of the name is its own window onto the strip (the strip is 5:1, a line of the name about 6:1, so
       "cover" shows most of the five squares); the second line looks further along the strip. */
    .has-fill .hero__first, .has-fill .hero__last-text, .has-fill .page-head h1, .has-fill .contact h1 {
        background: url("../images/name-fill-hint.jpg") 15% center / cover no-repeat;
        -webkit-background-clip: text; background-clip: text; color: transparent;
        -webkit-text-stroke: 1px rgba(243, 243, 240, .45); /* a hairline of gesso keeps the letters readable where the paint is dark */
        filter: saturate(1.15) brightness(1.08);
    }
    .has-fill .hero__last-text { display: inline-block; background-position: 62% center; }
    .has-fill .brushstroke { opacity: .85; }
}

/* 0. His paint on the walls. Two sets of cut-outs: has-backgrounds (sweep, blue drags, scribble, red slab) and
   has-paint (hair, red streaks, mane, curls, study strokes), each used only when its files exist. Every stroke sits
   in a layer behind its section's content, clipped to the section, in the paint's real colour and bold enough to
   read as paint (Dillon, 7 Nov: "way more brush strokes"). Nothing here is drawn: every shape is a photo of his
   brushwork with the canvas removed. */
:root {
    --bg-hair-dark: url("../images/strokes/bg-hair-dark.png");
    --bg-red-streaks: url("../images/strokes/bg-red-streaks.png");
    --bg-mane: url("../images/strokes/bg-mane.png");
    --bg-curls: url("../images/strokes/bg-curls.png");
    --bg-study: url("../images/strokes/bg-study.png");
}
.section, .page-head, .contact, .site-footer, .gallery { position: relative; isolation: isolate; }
.section, .page-head, .contact, .site-footer { overflow: clip; }
.paint, .section::before, .section::after, .page-head::before, .page-head::after, .banner::after, .contact::before, .site-footer::before, .site-footer::after, .gallery::after, .look-room .artwork::after {
    position: absolute; z-index: -1; pointer-events: none; background-repeat: no-repeat; background-size: contain;
}

/* The banner: the name is itself filled with his paint, so the wall behind it stays calm: the scribble of highlights
   up in the corner, and the yellow mane low on the left under the text. */
.has-backgrounds .banner::after { content: ""; left: -4%; top: -4%; width: min(44vw, 560px); aspect-ratio: 1; background-image: var(--bg-scribble); background-position: left top; opacity: .3; }
.has-paint .banner .wrap::before { content: ""; position: absolute; z-index: -1; left: -6%; bottom: -10%; width: min(40vw, 520px); aspect-ratio: 1; background: var(--bg-mane) left bottom / contain no-repeat; opacity: .3; pointer-events: none; }
.banner .wrap { position: relative; }

/* Who he is: the yellow mane drifts in from the right; the headline piece gets the study's black strokes behind it. */
.has-paint .section--intro::after { content: ""; right: -4%; top: -10%; width: min(46vw, 640px); aspect-ratio: 1; background-image: var(--bg-mane); background-position: right top; opacity: .5; }
.has-paint .section--headline::before { content: ""; left: -6%; bottom: -8%; width: min(60vw, 820px); aspect-ratio: 1.3; background-image: var(--bg-study); background-position: left bottom; opacity: .32; }

/* Section headings: the curls behind the words. */
.has-paint .section__head { position: relative; isolation: isolate; }
.has-paint .section__head::before { content: ""; position: absolute; z-index: -1; left: -4%; top: -120%; width: min(60%, 700px); height: 320%; background: var(--bg-curls) left center / contain no-repeat; opacity: .42; pointer-events: none; }
.has-backgrounds:not(.has-paint) .section__head { position: relative; isolation: isolate; }
.has-backgrounds:not(.has-paint) .section__head::before { content: ""; position: absolute; z-index: -1; left: -3%; top: -40%; width: min(70%, 760px); height: 180%; background: var(--gesso); opacity: .1; -webkit-mask: var(--bg-sweep-dark) left center / contain no-repeat; mask: var(--bg-sweep-dark) left center / contain no-repeat; pointer-events: none; }

/* Commissions: blue drags behind the steps, red streaks bursting from the corner. */
.has-backgrounds .section--commission::before { content: ""; right: -4%; top: -10%; width: min(52vw, 700px); aspect-ratio: 1400 / 1082; background-image: var(--bg-sweep-blue); background-position: right top; opacity: .45; }
.has-paint .section--commission::after { content: ""; left: -10%; bottom: -30%; width: min(60vw, 760px); aspect-ratio: 1.2; background-image: var(--bg-red-streaks); background-position: left bottom; opacity: .3; }

/* For sale: the red slab; About band: the scribble behind the hand-lettered name. */
.has-backgrounds .section--sale::before { content: ""; right: -6%; top: -18%; width: min(44vw, 560px); aspect-ratio: 1000 / 924; background-image: var(--bg-red); background-position: right top; opacity: .32; }
.has-backgrounds .section--about::before { content: ""; left: -4%; top: 0; width: min(50vw, 620px); height: 100%; background-image: var(--bg-scribble); background-position: left center; opacity: .4; }

/* Page heads (Work, Commissions, Contact, Privacy): hair strokes behind the title; Contact: red streaks beside the form. */
.has-paint .page-head::after { content: ""; right: -6%; top: -20%; width: min(60vw, 820px); aspect-ratio: 1.6; background-image: var(--bg-hair-dark); background-position: right top; opacity: .45; }
.has-paint .contact::before { content: ""; right: 0; bottom: 0; width: min(50vw, 640px); aspect-ratio: 1.2; background-image: var(--bg-red-streaks); background-position: right bottom; opacity: .3; }

/* The gallery wall: curls peeking in at the top right, the mane at the bottom left. */
.has-paint .gallery::after { content: ""; right: 0; top: -2%; width: min(40vw, 520px); aspect-ratio: 1; background-image: var(--bg-curls); background-position: right top; opacity: .3; }

/* The dark room: the study's strokes behind the details column. */
.has-paint.look-room .artwork { position: relative; isolation: isolate; }
.has-paint.look-room .artwork::after { content: ""; right: 0; bottom: 0; width: min(40vw, 520px); aspect-ratio: 1.3; background-image: var(--bg-study); background-position: right bottom; opacity: .22; }

/* The footer: the dark sweep as a ghost, the mane in the corner. */
.has-backgrounds .site-footer::before { content: ""; right: -4%; top: -20%; width: min(70vw, 900px); height: 140%; background: var(--gesso); opacity: .08; -webkit-mask: var(--bg-sweep-dark) right center / contain no-repeat; mask: var(--bg-sweep-dark) right center / contain no-repeat; }
.has-paint .site-footer::after { content: ""; left: -6%; bottom: -20%; width: min(40vw, 480px); aspect-ratio: 1; background-image: var(--bg-mane); background-position: left bottom; opacity: .4; }

/* About sign-off: blue drags. */
.has-backgrounds .section--signoff::before { content: ""; left: 0; top: 0; width: min(70vw, 820px); height: 100%; background-image: var(--bg-sweep-blue); background-position: left center; opacity: .4; }

@media (max-width: 799px) {
    .has-backgrounds .banner::after { width: 70vw; left: -20%; top: 0; opacity: .25; }
    .has-paint .section--intro::after, .has-paint .page-head::after { width: 80vw; }
}

/* Small label above a heading ("Portrait artist", "Headline piece"): hand-lettered in the brush face, a touch askew. */
.kicker {
    display: inline-block; font: 400 clamp(1.25rem, 1.6vw, 1.5rem)/1.1 var(--brush); letter-spacing: .01em; text-transform: none;
    color: var(--cadmium); margin: 0 0 .9rem; transform: rotate(-2deg); transform-origin: left bottom;
}
.kicker__sep { display: inline-block; width: .5em; height: .5em; margin: 0 .3em; vertical-align: .1em; background: var(--cadmium); border-radius: 50%; }
.has-strokes .kicker__sep { width: .8em; height: .6em; border-radius: 0; -webkit-mask: var(--stroke-mark) center / contain no-repeat; mask: var(--stroke-mark) center / contain no-repeat; }

/* 1. The banner (home and About): Mikel himself, his name as the poster, the photo melting into the dark wall. */
.banner { position: relative; isolation: isolate; overflow: clip; padding-block: 0 var(--section); }
.banner::before {
    content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 55% 50% at 22% 78%, color-mix(in srgb, var(--cadmium) 9%, transparent), transparent 70%);
}
.banner__inner { display: grid; gap: 0 clamp(24px, 4vw, 56px); align-items: end; }
.banner__photo { position: relative; order: -1; margin: 0 calc(-1 * var(--gutter)); }
.banner__photo img {
    /* On a phone the text block rides up over the photo's foot, so the photo is gone by the time the kicker starts. */
    display: block; width: 100%; height: auto; object-fit: cover;
    -webkit-mask: linear-gradient(to bottom, #000 45%, transparent 82%); mask: linear-gradient(to bottom, #000 45%, transparent 82%);
}
.banner__photo figcaption { display: none; position: absolute; left: var(--gutter); bottom: 8%; font-size: .85rem; color: var(--pencil); } /* on a phone the name sits over the photo's lower part, so the caption shows from 800px up */
.banner__photo .piece__empty { margin: clamp(16px, 4vw, 48px) var(--gutter) 0; }
.banner__text { position: relative; z-index: 1; margin-top: -14%; }
/* Under the name, one paragraph: the tagline leads in bold, the sentence about Mikel runs on from it. */
.banner__line { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; max-width: 48ch; margin: 1.5rem 0 0; color: var(--pencil); }
.banner__tagline { color: var(--gesso); font-weight: 600; }
.banner__tagline::after { content: " "; }
.banner .actions { margin-top: 1.6rem; }
@media (min-width: 800px) {
    .banner { padding-top: clamp(8px, 2vw, 32px); }
    .banner__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
    .banner__photo { order: 0; margin: 0 calc(-1 * var(--gutter)) 0 -8%; }
    .banner__photo img {
        -webkit-mask: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to top, transparent 0, #000 28%), linear-gradient(to bottom, transparent 0, #000 24%);
        -webkit-mask-composite: source-in;
        mask: linear-gradient(to right, transparent 0, #000 30%), linear-gradient(to top, transparent 0, #000 28%), linear-gradient(to bottom, transparent 0, #000 24%);
        mask-composite: intersect;
    }
    .banner__photo figcaption { display: block; left: auto; right: var(--gutter); bottom: 6%; text-align: right; }
    .banner__text { margin-top: 0; padding-bottom: 4%; }
    .banner .hero__name { font-size: clamp(5rem, 13vw, 13rem); }
}
.banner--about .banner__line { color: var(--gesso); }

/* Section dividers: a plain hairline, or one of Mikel's strokes when the PNGs are there. */
.stroke-rule { height: 2px; width: min(100%, 520px); margin: 0 0 clamp(24px, 3vw, 40px); background: var(--rule); }
.has-strokes .stroke-rule {
    height: 18px; width: min(100%, 900px); background: var(--graphite); opacity: .85;
    -webkit-mask: var(--stroke-rule-1) left center / 100% 100% no-repeat;
    mask: var(--stroke-rule-1) left center / 100% 100% no-repeat;
}
.has-strokes .stroke-rule--2 { -webkit-mask-image: var(--stroke-rule-2); mask-image: var(--stroke-rule-2); }

/* Link underlines in the menu and filters paint in as a thin stroke; the current page keeps its stroke. */
.has-strokes .site-nav a, .has-strokes .filter a { position: relative; }
.has-strokes .site-nav a::after, .has-strokes .filter a::after {
    content: ""; position: absolute; left: -3%; right: -3%; bottom: 0; height: 6px; pointer-events: none;
    background: var(--ultramarine);
    -webkit-mask: var(--stroke-rule-2) center / 100% 100% no-repeat;
    mask: var(--stroke-rule-2) center / 100% 100% no-repeat;
    clip-path: inset(0 100% 0 0);
}
.has-strokes .site-nav a:hover::after, .has-strokes .site-nav a[aria-current="page"]::after,
.has-strokes .filter a:hover::after, .has-strokes .filter a[aria-current="page"]::after { clip-path: inset(0); }
.has-strokes .site-nav a[aria-current="page"], .has-strokes .filter a[aria-current="page"] { text-decoration: none; }
.has-strokes .text-link { position: relative; text-decoration: none; }
.has-strokes .text-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: 5px; pointer-events: none;
    background: currentColor; opacity: .6; transform-origin: left center;
    -webkit-mask: var(--stroke-rule-2) center / 100% 100% no-repeat;
    mask: var(--stroke-rule-2) center / 100% 100% no-repeat;
}
.has-strokes .text-link:hover::after { opacity: 1; transform: scaleY(1.6); }

/* The hero stroke cut from a painting (replaces the drawn SVG when present; keeps its own yellow). */
.brushstroke--photo { max-width: none; top: 14%; height: 72%; object-fit: fill; }

/* Who he is and what the site is for: one sentence and three ways in, right under the banner. */
.section--intro { padding-top: 0; }
.intro__lede { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; max-width: 34ch; margin: 0 0 clamp(28px, 4vw, 48px); }
.ways { display: grid; gap: 20px clamp(24px, 3vw, 48px); list-style: none; margin: 0; padding: 0; }
.way { border-top: 1px solid var(--rule); padding-top: 1rem; }
.has-strokes .way { border-top: 0; padding-top: 0; }
.has-strokes .way::before { content: ""; display: block; height: 8px; width: 72%; margin-bottom: 1rem; background: var(--gesso); opacity: .55; -webkit-mask: var(--stroke-rule-2) left center / 100% 100% no-repeat; mask: var(--stroke-rule-2) left center / 100% 100% no-repeat; }
.way h3 { font-size: 1.6rem; margin: 0 0 .35rem; }
.way h3 a { color: inherit; text-decoration: none; }
.way h3 a:hover { color: var(--cadmium); }
.way p { margin: 0; color: var(--pencil); max-width: 34ch; }
@media (min-width: 700px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Commissions, the section the site is here for: the ask, then the three steps. Overrides the light-wall band above. */
.section--commission { position: relative; isolation: isolate; overflow: clip; }
.commission { gap: clamp(28px, 4vw, 48px) clamp(32px, 5vw, 80px); align-items: start; }
.commission__lede { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; max-width: 36ch; margin: 1rem 0 0; }
.commission__head .actions { margin-top: 1.5rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 3vw, 32px); counter-reset: none; }
.steps__step { display: grid; grid-template-columns: 2.4em 1fr; gap: 0 14px; align-items: start; }
.steps__n { grid-row: 1 / span 2; font: 400 3rem/1 var(--brush); color: var(--cadmium); transform: rotate(-6deg); }
.steps__step h3 { font-size: 1.45rem; margin: .1em 0 .2em; }
.steps__step p { margin: 0; color: var(--pencil); max-width: 36ch; }
.steps__step p.placeholder { color: var(--graphite); }
@media (min-width: 900px) { .commission { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.commission-page__how { margin-top: clamp(40px, 6vw, 72px); }
.page-body .steps { max-width: 60ch; }

/* For sale: a small strip, four at most, the price beside "Available". */
.h2--small { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.section__head .kicker { margin-bottom: .4rem; }
.sale { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .sale { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sale .piece { margin: 0; }
.sale .piece__title { font-size: .95rem; }
.piece__price { color: var(--gesso); font-weight: 600; }
.piece__price::before { content: "· "; color: var(--pencil); font-weight: 400; }
@media (max-width: 759px) { .piece__price { display: block; } .piece__price::before { content: none; } }

/* The headline piece: one painting lit against the wall, its own accent colour breathing behind it. */
.headline { display: grid; gap: 28px clamp(32px, 5vw, 80px); align-items: center; }
.headline__art img { margin-inline: auto; max-height: min(84vh, 960px); }
.headline__title { font-size: clamp(2.25rem, 4.5vw, 3.75rem); margin: 0 0 .5rem; }
.headline__title a { color: inherit; text-decoration: none; }
.headline__title a:hover { color: var(--cadmium); }
.headline__details { color: var(--pencil); margin: 0 0 .35rem; }
.headline .status { margin: 0; }
@media (min-width: 800px) {
    .headline { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
}

/* The about band on the home page: his first name hand-lettered large, then the words. */
.about-band { display: grid; gap: 8px clamp(32px, 5vw, 80px); align-items: center; }
.about-band__word { font-size: clamp(4rem, 9vw, 8rem); line-height: 1; font-family: var(--brush); color: var(--cadmium); display: inline-block; transform: rotate(-5deg); }
.about-band__text { max-width: 60ch; font-size: 1.15rem; }
@media (min-width: 800px) { .about-band { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); } }

/* The About page: the story, then some work, then the sign-off. */
.about-body { padding-bottom: var(--section); }
.about-story.prose { max-width: 66ch; font-size: 1.15rem; }
.about-story .lede { margin-top: 0; }
.signoff { display: grid; gap: 12px; justify-items: start; max-width: 60ch; }
.signoff__word { margin: 0 0 .25rem; font: 400 clamp(3rem, 7vw, 6rem)/1 var(--brush); color: var(--cadmium); transform: rotate(-4deg); display: inline-block; }
.signoff__text { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0; }
.signoff .actions { margin-top: .5rem; }

/* A breath of the headline piece's accent colour on the wall behind it. */
.hero__art { position: relative; isolation: isolate; }
.hero__art::before {
    /* Kept inside the figure's box: a box that sticks out sideways causes phone pages to scroll sideways; the blur still bleeds past the edge. */
    content: ""; position: absolute; z-index: -1; inset: 6% 0 18% 0; pointer-events: none;
    background: radial-gradient(ellipse at 62% 48%, color-mix(in srgb, var(--piece-accent) var(--glow), transparent), transparent 72%);
    filter: blur(34px);
}

/* 3. The salon wall: mixed scales, a lift and the piece's own colour behind it on hover, the sold mark as a stroke. */
.salon .piece:nth-child(4n+2) { width: 86%; }
.salon .piece:nth-child(4n+4) { width: 90%; margin-left: auto; }
@media (min-width: 980px) {
    .salon .piece:nth-child(9n+5) { width: 114%; margin-left: -7%; }
}
.piece__link { position: relative; isolation: isolate; }
.piece__link::before {
    content: ""; position: absolute; z-index: -1; inset: 3% 0 24% 0; pointer-events: none;
    background: var(--piece-accent); filter: blur(34px); opacity: 0;
}
.piece__link:hover img, .piece__link:focus-visible img {
    transform: translateY(-6px);
    box-shadow: var(--hung), 0 32px 56px -20px color-mix(in srgb, var(--piece-accent) 60%, transparent);
}
.piece__link:hover::before, .piece__link:focus-visible::before { opacity: .42; }
.piece__count {
    font: 400 1.15rem/1 var(--brush); letter-spacing: .01em; color: var(--cadmium);
    margin-bottom: .3rem; display: inline-block; transform: rotate(-3deg); transform-origin: left bottom;
}
.has-strokes .status--sold::before {
    width: 1em; height: .8em; border-radius: 0; margin-right: .35em; vertical-align: -.08em;
    -webkit-mask: var(--stroke-mark) center / contain no-repeat;
    mask: var(--stroke-mark) center / contain no-repeat;
}

/* 2 and 6. Motion: hidden until we know it may run (no reduced-motion preference). */
.scroll-progress, .motion-toggle, .artwork__keys { display: none; }
.js .artwork__keys { display: block; margin: .5rem 0 0; font-size: .85rem; color: var(--pencil); }

@media (prefers-reduced-motion: no-preference) {
    /* In the footer's last row on a phone (a fixed button there covers buttons and form fields); pinned to the corner
       from 800px up, with the footer padded so its last row stays reachable. */
    .js .motion-toggle {
        display: inline-flex; align-items: center; grid-column: 1 / -1; justify-self: start; margin-top: 4px;
        padding: .6em .95em; border: 1.5px solid var(--graphite); border-radius: 999px;
        background: var(--gesso); color: var(--graphite); font: 600 .85rem/1 var(--text); cursor: pointer;
        box-shadow: 0 2px 10px rgba(38, 39, 42, .18);
    }
    .js .motion-toggle:hover, .js .motion-toggle[aria-pressed="true"] { background: var(--graphite); color: var(--gesso); }
    .js .motion-toggle[aria-pressed="true"]::before { content: "▶"; font-size: .7em; margin-right: .5em; }
    @media (min-width: 800px) {
        .js .motion-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 25; margin: 0; }
        .js .site-footer { padding-bottom: 72px; }
    }

    .piece__link img, .piece__link::before, .text-link::after, .site-nav a::after, .filter a::after {
        transition: transform .35s cubic-bezier(.3, .7, .2, 1), box-shadow .35s cubic-bezier(.3, .7, .2, 1), opacity .35s, clip-path .32s cubic-bezier(.3, .7, .2, 1);
    }

    /* The hand-lettered labels are painted in once, like the stroke behind the name. */
    .js .kicker, .js .about-band__word, .js .signoff__word { clip-path: inset(0 100% 0 0); animation: paint 700ms cubic-bezier(.3, .7, .2, 1) 600ms forwards; }

    /* Scroll-driven: pieces rise into view, the counter paints in, a paint stroke across the top fills with the page,
       the banner photo drifts over the first screen. Browsers without scroll timelines simply show the still page. */
    @supports (animation-timeline: view()) {
        .scroll-progress {
            /* Sticky, not fixed: a fixed bar spans the viewport including the scrollbar and causes sideways scroll on phones. */
            --bar: 5px;
            display: block; position: sticky; top: 0; width: 100%; height: var(--bar); margin-bottom: calc(-1 * var(--bar)); z-index: 30; pointer-events: none;
            background: var(--cadmium); clip-path: inset(0 100% 0 0);
            animation: mwa-paint linear both; animation-timeline: scroll(root block);
        }
        .has-strokes .scroll-progress {
            --bar: 9px;
            -webkit-mask: var(--stroke-rule-1) left center / 100% 100% no-repeat;
            mask: var(--stroke-rule-1) left center / 100% 100% no-repeat;
        }
        .piece { animation: mwa-rise linear both; animation-timeline: view(block); animation-range: entry 5% entry 55%; }
        .piece__count { clip-path: inset(0 100% 0 0); animation: mwa-paint linear both; animation-timeline: view(block); animation-range: entry 35% entry 90%; }
        .banner__photo img { animation: mwa-drift linear both; animation-timeline: scroll(root block); animation-range: 0px 100vh; }
    }

    /* Paused (the footer button): scroll effects come off entirely so nothing is left half-shown, timed ones stop. */
    html.motion-paused .piece, html.motion-paused .piece__count, html.motion-paused .banner__photo img, html.motion-paused .brushstroke, html.motion-paused .kicker, html.motion-paused .about-band__word, html.motion-paused .signoff__word { animation: none !important; clip-path: none; }
    html.motion-paused .scroll-progress { display: none; }
    html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { transition: none !important; }
}
@keyframes mwa-paint { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes mwa-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes mwa-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(0, -4%, 0) scale(1.05); } }

/* 4 and 5. Dark surfaces: the dark wall (every page) and the dark room (single artwork) share these. Text in gesso,
   ultramarine swapped for cadmium (ultramarine fails contrast on near-black), secondary text lightened. */
body.look-dark, body.look-room {
    --pencil: #B4B6BD;               /* 9:1 on the room; at least 4.9:1 (AA) on the lightest tinted wall */
    --rule: #3B3C41;
    --wall: #1D1D20;
    --error: #FF9C94;
    --glow: 34%;
    --hung: 0 1px 2px rgba(0, 0, 0, .6), 0 28px 48px -22px rgba(0, 0, 0, .8);
    background-color: var(--room);
    color: var(--gesso);
}
body.look-dark.has-canvas {
    background-image: linear-gradient(rgba(20, 20, 22, .55), rgba(20, 20, 22, .55)), url("../images/canvas-dark.jpg");
    background-size: auto, 480px auto;
}
:is(.look-dark, .look-room) a { color: var(--cadmium); }
:is(.look-dark, .look-room) a:hover { color: #F8C93A; }
:is(.look-dark, .look-room) :focus-visible { outline-color: var(--gesso); }
:is(.look-dark, .look-room) :is(.wordmark, .wordmark:hover, .site-nav a, .filter a, .piece__link, .medium, .site-footer__links a, .artwork__nav a, .commission .text-link, .commission h2) { color: var(--gesso); }
:is(.look-dark, .look-room) :is(.site-nav a:hover, .filter a:hover, .piece__link:hover .piece__title, .medium:hover .medium__name, .site-footer__links a:hover, .artwork__nav a:hover, .artwork__zoom:hover .artwork__zoom-hint) { color: var(--cadmium); }
:is(.look-dark, .look-room) :is(.site-nav a[aria-current="page"], .filter a[aria-current="page"]) { text-decoration-color: var(--cadmium); }
.look-dark .site-nav a::after, .look-room .site-nav a::after, .look-dark .filter a::after, .look-room .filter a::after { background: var(--cadmium); }
:is(.look-dark, .look-room) .button { background: var(--cadmium); border-color: var(--cadmium); color: var(--graphite); }
:is(.look-dark, .look-room) .button:hover { background: var(--gesso); border-color: var(--gesso); color: var(--graphite); }
:is(.look-dark, .look-room) .button--quiet { background: transparent; border-color: var(--gesso); color: var(--gesso); }
:is(.look-dark, .look-room) .button--quiet:hover { background: var(--gesso); border-color: var(--gesso); color: var(--graphite); }
:is(.look-dark, .look-room) .placeholder { color: var(--graphite); }
:is(.look-dark, .look-room) .stroke-rule { background: var(--cadmium); opacity: .9; }
:is(.look-dark, .look-room) .piece__empty { border-color: #5A5C63; }
:is(.look-dark, .look-room) :is(.headline__title a, .about-facts dd a, .prose a:not(.button)) { color: inherit; }
:is(.look-dark, .look-room) :is(.about-facts dd a:hover, .prose a:not(.button):hover) { color: var(--cadmium); }
:is(.look-dark, .look-room) .prose a:not(.button) { text-decoration-color: var(--cadmium); }
/* The contact form and its notices on the dark wall. */
:is(.look-dark, .look-room) :is(.field input, .field select, .field textarea) { background: var(--wall); color: var(--gesso); border-color: #6A6C73; color-scheme: dark; }
:is(.look-dark, .look-room) :is(.field input:focus, .field select:focus, .field textarea:focus) { border-color: var(--cadmium); outline-color: rgba(242, 183, 5, .3); }
:is(.look-dark, .look-room) .field [aria-invalid="true"] { border-color: var(--error); }
:is(.look-dark, .look-room) :is(.notice, .form__about) { background: var(--wall); border-color: var(--rule); }
:is(.look-dark, .look-room) .notice { border-left-color: var(--cadmium); }
:is(.look-dark, .look-room) .notice--error { border-left-color: var(--error); }
:is(.look-dark, .look-room) .form__about a { color: var(--cadmium); }
.look-dark .motion-toggle, .look-room .motion-toggle { border-color: var(--gesso); background: var(--room); color: var(--gesso); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.look-dark .motion-toggle:hover, .look-room .motion-toggle:hover, .look-dark .motion-toggle[aria-pressed="true"], .look-room .motion-toggle[aria-pressed="true"] { background: var(--gesso); color: var(--graphite); }
.look-dark .section--commission { background: #1F1F23; border-block: 1px solid var(--rule); }

/* The dark room itself: the wall takes a little of the painting's main colour; the painting hangs lit, with no frame
   of lighter wall around it, and stays put while the details scroll past on a wide screen. */
.look-room .artwork::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: var(--room);
    background: color-mix(in srgb, var(--piece-main) 22%, var(--room));
}
.look-room .artwork__image { position: relative; isolation: isolate; background: transparent; padding: 0; }
.look-room .artwork__image::before {
    content: ""; position: absolute; z-index: -1; inset: 8%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--piece-accent) 24%, transparent), transparent);
    filter: blur(40px);
}
.look-room .artwork__zoom img { box-shadow: 0 2px 4px rgba(0, 0, 0, .6), 0 40px 80px -30px rgba(0, 0, 0, .9); }
@media (min-width: 900px) {
    .look-room .artwork__image { position: sticky; top: clamp(16px, 4vh, 40px); }
    .look-room .artwork__info { position: static; }
    .look-room .artwork__zoom img { max-height: calc(100vh - 2 * clamp(16px, 4vh, 40px) - 2.5rem); }
}

/* 0.4.0 (24 Nov): a plain description of each piece (catalogue.php), the "ask about it" line, more work under every
   piece, and three pieces that show his range (About and Commissions). */
.piece__text { color: var(--pencil); font-size: .925rem; margin-top: .3rem; max-width: 46ch; }
.artwork__text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; margin: .75rem 0 0; max-width: 40ch; }
.artwork__ask { margin: 1.25rem 0 0; color: var(--pencil); }
.headline__text-line { margin: .25rem 0 1rem; line-height: 1.55; max-width: 38ch; }
.more, .range { display: grid; gap: clamp(20px, 3vw, 44px); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 900px) { .more { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 559px) { .range { grid-template-columns: 1fr; } }
@media (min-width: 560px) { .range { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.more .piece, .range .piece { margin: 0; width: auto; }
.more .piece__text { display: none; }
.range__item { margin: 0; }
.gallery__note { color: var(--pencil); font-size: .9rem; margin-top: .5rem; }
.range__item img { display: block; width: 100%; height: auto; box-shadow: var(--hung); }
.range__item figcaption { margin-top: .8rem; display: flex; flex-direction: column; line-height: 1.4; }
.range__label { font-family: var(--brush); font-size: 1.35rem; color: var(--cadmium); }
.range__no { color: var(--pencil); font-size: .925rem; }
.section--range { padding-top: 0; }
.section--range h2, .section--more h2 { margin-bottom: 1.25rem; }
.page-body .prose h2.h2--small { margin-top: 2rem; }

/* 0.4.2 (25 Nov, a design review with ChatGPT over screenshots): the home page stays loud, the gallery goes quiet so
   the paintings are the only brushwork on the wall, and on a wide screen a piece's own page gives the painting more
   room. */
body.look-dark.has-wallpaper.post-type-archive-mwa_artwork, body.look-dark.has-canvas.has-wallpaper.post-type-archive-mwa_artwork,
body.look-dark.has-wallpaper.tax-mwa_collection, body.look-dark.has-canvas.has-wallpaper.tax-mwa_collection { background-image: none; }
.gallery > .stroke-rule { width: min(100%, 220px); }
@media (min-width: 1400px) { .artwork.wrap { max-width: 1560px; } }

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

@media print {
    .site-header nav, .site-footer, .actions, .viewer, .scroll-progress, .motion-toggle, .artwork__keys { display: none !important; }
    body, body.look-dark, body.look-room { background: #fff; color: #000; }
}

/* 0.4.4 (27 Nov, Dillon): on a phone, keep the zoomed-out feel of the desktop: the gallery two across, tighter
   spacing and smaller headings, so the work reads as a wall rather than one piece per screen. */
@media (max-width: 559px) {
    :root { --section: 44px; }
    body { font-size: .95rem; }
    h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
    .salon { columns: 2; column-gap: 12px; }
    .salon .piece, .salon .piece:nth-child(4n+2), .salon .piece:nth-child(4n+4) { width: auto; margin: 0 0 18px; }
    .piece__caption { margin-top: .45rem; font-size: .85rem; line-height: 1.3; }
    .piece__text, .piece__count { display: none; }
    .range { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .more, .sale { gap: 12px; }
    .headline__art img { max-height: 58vh; }
    .headline__title { font-size: 1.9rem; }
    .banner__line { font-size: 1rem; margin-top: 1rem; }
    .about-band__word { font-size: 3.25rem; }
    .about-band__text, .about-story.prose { font-size: 1rem; }
    .steps__step p { font-size: .95rem; }
}

/* Price sheet (0.4.5, 27 Nov): Mikel's private page for prices and print sizes (inc/price-sheet.php) ------------ */
.sheet { padding-top: clamp(28px, 6vw, 72px); padding-bottom: var(--section); max-width: 64rem; }
.sheet__intro { max-width: 46rem; margin-bottom: 1.5rem; }
.sheet__stamp, .sheet__hint, .sheet__facts { color: var(--pencil); font-size: .95rem; }
.sheet__heading { margin: 2.75rem 0 .75rem; }
.sheet__pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.sheet__piece { display: grid; gap: 16px 24px; padding: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--rule); }
@media (min-width: 720px) { .sheet__piece { grid-template-columns: 160px minmax(0, 1fr); } }
.sheet__art img { display: block; width: 100%; max-width: 220px; height: auto; }
.sheet__fields h3 { margin: 0 0 .2rem; }
.sheet__group { border: 0; margin: 1rem 0 0; padding: 0; min-width: 0; }
.sheet__group legend { font-weight: 700; margin-bottom: .45rem; padding: 0; }
.sheet__choices { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: .6rem; }
.sheet__choices--stacked { flex-direction: column; }
.sheet__choice { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; cursor: pointer; }
.sheet__choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--ultramarine); }
.sheet__row { display: grid; gap: 10px 16px; }
@media (min-width: 560px) { .sheet__row { grid-template-columns: 1fr 1fr; } }
.sheet__row label, .sheet__wide { display: block; font-size: .95rem; margin-top: .5rem; }
.sheet input[type="text"], .sheet input[type="email"], .sheet select, .sheet textarea {
    width: 100%; padding: .6rem .7rem; font: inherit; font-size: 1rem; color: var(--graphite);
    background: var(--white); border: 1.5px solid #8A8C91; border-radius: 2px; margin-top: .3rem;
}
.sheet__sizes { width: 100%; border-collapse: collapse; }
.sheet__sizes th { text-align: left; font-size: .85rem; font-weight: 600; color: var(--pencil); padding: 0 6px 2px 0; }
.sheet__sizes td { padding: 0 6px 6px 0; vertical-align: top; }
.sheet__sizes td:last-child { width: 28%; }
.sheet__sizes input, .sheet__sizes select { margin-top: 0; }
@media (max-width: 559px) { .sheet__sizes td:last-child { width: 30%; } .sheet__sizes select { font-size: .9rem; padding-inline: .4rem; } }
.sheet h1 { font-size: clamp(2.6rem, 7vw, 4.25rem); margin-bottom: 1rem; }
.sheet__heading { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.sheet__fields h3 { font-size: 1.45rem; }

/* 0.4.6: the price sheet code box */
.sheet__code input { max-width: 14rem; font-size: 1.4rem; letter-spacing: .2em; }

/* 0.4.8 (Dillon, 27 Nov 2026: "more moody and art no color really just very chic and manly"). The colour stays in
   the paintings; the site around them goes bone, ash and black. The yellow and blue accents become bone; the
   hand-lettered brush face gives way to small, widely spaced capitals; nothing is tilted; the glow behind a piece
   is neutral instead of the piece's own colour. The coloured stroke backgrounds (bg-*.png) are gone from the theme. */
:root {
    --cadmium: #DCD6CA;          /* bone: every former yellow accent */
    --ultramarine: #DCD6CA;
    --ultramarine-deep: #F3F3F0;
    --red-dot: #9C9890;          /* sold: an ash mark, not a red one */
    --brush: var(--display);
}
.piece, .artwork, .headline__art { --piece-accent: #8C8A86 !important; }
.kicker, .piece__count, .steps__n, .about-band__word, .signoff__word, .range__label { transform: none; }
.kicker {
    font: 600 .78rem/1.4 var(--text); letter-spacing: .32em; text-transform: uppercase;
    color: var(--pencil); margin: 0 0 1.1rem;
}
.kicker--banner { color: var(--gesso); opacity: .78; }
.kicker__sep, .has-strokes .kicker__sep { width: 2.2em; height: 1px; margin: 0 .9em; vertical-align: .3em; border-radius: 0; background: currentColor; -webkit-mask: none; mask: none; opacity: .6; }
.piece__count, .range__label { font: 600 .74rem/1.4 var(--text); letter-spacing: .28em; text-transform: uppercase; color: var(--pencil); }
.steps__n { font: 300 2.6rem/1 var(--display); color: var(--pencil); }
.about-band__word, .signoff__word { font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: .04em; color: var(--gesso); }
:is(.look-dark, .look-room) .stroke-rule { opacity: .45; }
.brushstroke--photo { filter: grayscale(1) brightness(1.15) contrast(1.05); opacity: .75; }
.banner::before { background: none; }
:is(.look-dark, .look-room) .button:hover { background: var(--gesso); border-color: var(--gesso); }
@media (min-width: 560px) { .kicker--banner { white-space: nowrap; letter-spacing: .26em; } }
