/* VUDA
   The shared parts of the three round-three directions (19 Uniform, 20
   Vault, 21 Composite), taken from the sandbox as built, so the final page
   is an arrangement of these blocks rather than new design. One type
   system, uppercase Inter: the system layer (header, menu, labels, tile
   lines) at 11px, weight 500 (the client's taste, 2026-11-16: back
   from 13px, but heavier); the call to action at 700, set apart by weight
   alone; form fields at 16px, because iOS Safari zooms the page on any
   field below that. Tap targets reach 44px through
   padding and min-height, never through type size.

   Each component is one block below, phone rule included, so a component
   can move without leaving anything behind. Colour comes only from the
   ground variables: a section is white by default and black with .dark,
   because the product shots were made on a white sweep and the people on
   a dark wall, and each picture should land on the ground it was shot on. */


/* ===== Ground ===== */
/* ===== The face ===== */
/* Fraunces (2026-11-17, the client's choice), self-hosted: a Latin-subset variable woff2 with the
   weight axis cut to 400 to 700, plus its optical size (opsz), softness (SOFT) and alternate-letters (WONK)
   axes. The file's address carries ?v=<hash of its bytes> (tools/versions.mjs, written by render.js) and is
   preloaded in every page's head with the same address, so the first screen is drawn in it. Inter's file
   stays in the repo, not loaded: going back is the ONE line `--face:var(--face-inter)` on body (its
   @font-face below is declared, so it is never fetched until used). */
@font-face{font-family:Fraunces;font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/fraunces-latin.woff2?v=25d9d802) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/inter-latin.woff2?v=5ee363b4) format("woff2")}
body{
  --face-fraunces:Fraunces,Georgia,"Times New Roman",serif;--face-inter:Inter,"Helvetica Neue",Helvetica,Arial,sans-serif;
  --face:var(--face-fraunces);
  /* The face's variable settings, one number each. Optical size: auto (the browser sets opsz from the
     font size, 11px and 16px here) or none. Softness 0 to 100: 0 is the sharp default. Alternate letters
     (WONK) 0 or 1: 0, the quiet forms; this file's own default is 1, which leans h, n and m. */
  --face-opsz:auto;--face-soft:0;--face-wonk:0;
  --ground:#ffffff;--ink:#111111;--strong:#111111;--mute:#6b6b6b;--rule:#e6e6e6;--well:#f2f2f2;
  /* The Commission link (see "Commission link"): how see-through its words are
     (one number to tune), how much the layer behind them is blurred before it is
     judged light or dark, and the bottom inset (the phone's home indicator). */
  --ask-opacity:.85;--ask-blur:0px;
  /* The page runs edge to edge (viewport-fit=cover): text keeps clear of the notch and the home
     indicator through these. --safe-l / --safe-r are the side padding of every block (16px, or the
     inset where it is larger: a sideways iPhone); the link sits as near the bottom left corner as
     the insets allow (its words at max(16px, inset) from the left, its box max(16px, inset) up). */
  --safe-l:max(16px,env(safe-area-inset-left,0px));--safe-r:max(16px,env(safe-area-inset-right,0px));
  /* Corners (2026-11-17). On a phone held sideways the wordmark, Collection and the Commission link
     sit near the corners as they do on a desktop, NOT the whole inset in: the notch is in the
     middle of the short edge, not in the corners. Two numbers to tune:
     --corner-x: how far those three are from the side edges where there is a side inset (the screen's
       rounded corner is about 47px, so 20 clears its curve); where there is no inset it is 16px as ever;
     --corner-bottom: how far the link's box is above the bottom edge on a sideways phone (or the
       bottom inset, the home indicator, where that is larger). Upright and desktop keep 16px.
     The grid, the viewer and the form keep the full --safe-l / --safe-r.
     The camera notch is in the middle of one short edge, and the insets are equal on both sides, so
     CSS cannot tell which: site.js puts notch-left or notch-right on <html> from the phone's
     orientation. On that side only, the header's item takes the full inset (--safe-l / --safe-r);
     the item on the other side and the Commission link (below the notch's span) stay at
     --corner-x. --corner-l / --corner-r are the 20px values, --head-l / --head-r what the header uses. */
  --corner-x:20px;--corner-bottom:12px;
  --corner-l:max(16px,min(var(--corner-x),env(safe-area-inset-left,0px)));--corner-r:max(16px,min(var(--corner-x),env(safe-area-inset-right,0px)));
  --head-l:var(--corner-l);--head-r:var(--corner-r);
  --ask-bottom:max(16px,env(safe-area-inset-bottom,0px));--ask-left:calc(var(--corner-l) - 16px);
}
@media (orientation:landscape) and (max-height:500px) and (pointer:coarse){
  body{--ask-bottom:max(var(--corner-bottom),env(safe-area-inset-bottom,0px))}
  html.notch-left body{--head-l:var(--safe-l)}
  html.notch-right body{--head-r:var(--safe-r)}
}
.dark{
  --ground:#050505;--ink:#d2d2d2;--strong:#ffffff;--mute:#8c8c8c;--rule:#2a2a2a;--well:#111111;
}
/* The variables change on .dark, but the inherited background and colour
   would not follow on their own. */
body,.dark{background:var(--ground);color:var(--ink)}


/* ===== Base ===== */
body{margin:0;font-family:var(--face);font-optical-sizing:var(--face-opsz);font-variation-settings:"SOFT" var(--face-soft),"WONK" var(--face-wonk);font-variant-numeric:lining-nums;font-size:11px;font-weight:500;line-height:1.6;letter-spacing:.08em;text-transform:uppercase}
a{color:inherit;text-decoration:none}
/* No box on touch either: the translucent rectangle a phone draws behind a tapped
   link or button is a box around words. */
*{-webkit-tap-highlight-color:transparent}
a:hover{opacity:.55}
.mute{color:var(--mute)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}


/* ===== Call to action ===== */
/* "Commission a piece": plain text, no fill, border or box, set apart from
   the 500 around it by weight 700 alone. It takes the colour of where it
   sits (white over the film). 44px tall through min-height. Hover and
   keyboard focus show a 1px underline at a 4px offset. The form's Send is
   the same control. */
.ask{display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;font-weight:700;letter-spacing:inherit;text-transform:uppercase;white-space:nowrap;cursor:pointer}
/* The header's right corner link ("Collection"). It is set by the same rule
   as the call to action, so its size, weight, tracking and 44px height are
   that link's exactly; keep the two rules together. A 44px minimum width
   keeps it a full target whatever the word, text kept in the corner. */
.top-link{display:inline-flex;align-items:center;justify-content:flex-end;min-width:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;font-weight:700;letter-spacing:inherit;text-transform:uppercase;white-space:nowrap}
.ask:hover,.ask:focus-visible,.top-link:hover,.top-link:focus-visible{opacity:1;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;outline:none}
/* In flight (the commission form's Send): not disabled, since a disabled
   button can lose its name mid announcement; it stops answering instead. */
.ask[aria-busy="true"]{pointer-events:none;opacity:.55}
/* Under the grid, and floating (see .ask-float below). */


/* ===== Header: wordmark and one link ===== */
/* One row at every width, and nothing else in it: VUDA in the left corner,
   one link in the right. Its height is a variable because the film is sized
   from it: the film is exactly the rest of the first screen. The filter menu
   is not here; it sits under the film (see the Catalogue grid). */
:root{--head:56px}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:24px;height:var(--head);padding:0 var(--head-r) 0 var(--head-l)}
/* The wordmark links home on every page. It looks as it did as plain text
   (no underline, same size, weight and tracking); only the box changed, to a
   44px tap target the width of the word, not of the grid column. It does not
   dim on hover, so nothing about it changes by sight; keyboard focus keeps
   the browser's own ring. */
.wordmark{display:inline-flex;align-items:center;min-height:44px;font-size:16px;font-weight:500;letter-spacing:.34em}
.wordmark:hover{opacity:1}


/* ===== Film: the photograph slideshow ===== */
/* assets/js/slides.js, from the data render.js writes (docs/slideshow.md). Two sets, chosen by the
   screen's shape: an upright screen fills the first screen under the header (100svh, so nothing
   moves when Safari's bar collapses); any screen wider than tall, a phone held sideways included,
   gets the full width at 16:9, running below the fold where that is taller than the screen. Nothing
   is cut to fit the screen; each photograph is placed so that no head and no piece is ever cropped
   (filled when its heads and pieces stay inside, otherwise shown whole on its own edge colours, set
   by slides.js through the CSSOM). The next photograph fades in over the current one (--fade, from
   site.json). No gradient over the photographs: the link takes a colour per photograph instead, and
   .film-shade darkens under it only for the photographs whose data asks (at most 0.38).
   touch-action: pan-y keeps vertical scrolling with the browser; a sideways swipe goes to slides.js. */
.film{position:relative;z-index:2;clip-path:inset(0);height:calc(100vh - var(--head));height:calc(100svh - var(--head));overflow:hidden;background:#000000;touch-action:pan-y}
.slide-first{position:absolute;top:0;left:0;width:100%;height:100%}
.slide{position:absolute;top:0;left:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;opacity:0;transition:opacity var(--fade,1s) linear;-webkit-user-drag:none;user-select:none}
.slide.is-on{opacity:1}
.film.is-cut .slide{transition:none}
@media (prefers-reduced-motion:reduce){
  .slide{transition:none}
}
/* The darkening under the link: fixed to the bottom of the screen and clipped to the film (its
   clip-path), black under the words and fading out above them; its strength is its opacity. */
.film-shade{position:fixed;left:0;right:0;bottom:0;height:128px;z-index:1;pointer-events:none;opacity:0;background:linear-gradient(to top,#000000 0,#000000 64px,rgba(0,0,0,0) 128px);transition:opacity var(--fade,1s) linear}


/* ===== Work tile ===== */
/* Not a link: nothing is sold here. The second frame still comes in on
   hover, and the Reference toggle (added by site.js, absent without it)
   sits under the tile's line. */
.tile{display:flex;flex-direction:column;gap:10px}
.tile:hover{opacity:1}
/* Filtered out by the menu (site.js); never in the markup. */
.tile.is-hidden{display:none}
/* The photograph becomes a button when viewer.js runs (keyboard reachable; Enter
   and Space open the viewer). Without the script it is as it was: a plain span. */
.tile-open{display:block;width:100%;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;text-align:left;cursor:zoom-in}
.tile-open:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.swap{position:relative;display:block;aspect-ratio:4 / 5;overflow:hidden;background:var(--well)}
.swap img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:var(--ox,50%) var(--oy,50%)}
/* Where the piece sits in a tile whose shape (4:5) is not the picture's: the landscape eco frames
   are cropped to the width of the tile, so each carries the position that keeps its whole piece in
   what is kept (render.js writes px<n> py<n>, percent in steps of 5; no style attributes). */
.px0{--ox:0%}.px5{--ox:5%}.px10{--ox:10%}.px15{--ox:15%}.px20{--ox:20%}.px25{--ox:25%}.px30{--ox:30%}.px35{--ox:35%}.px40{--ox:40%}.px45{--ox:45%}.px50{--ox:50%}.px55{--ox:55%}.px60{--ox:60%}.px65{--ox:65%}.px70{--ox:70%}.px75{--ox:75%}.px80{--ox:80%}.px85{--ox:85%}.px90{--ox:90%}.px95{--ox:95%}.px100{--ox:100%}
.py0{--oy:0%}.py5{--oy:5%}.py10{--oy:10%}.py15{--oy:15%}.py20{--oy:20%}.py25{--oy:25%}.py30{--oy:30%}.py35{--oy:35%}.py40{--oy:40%}.py45{--oy:45%}.py50{--oy:50%}.py55{--oy:55%}.py60{--oy:60%}.py65{--oy:65%}.py70{--oy:70%}.py75{--oy:75%}.py80{--oy:80%}.py85{--oy:85%}.py90{--oy:90%}.py95{--oy:95%}.py100{--oy:100%}
.swap-alt{opacity:0;transition:opacity 300ms ease}
/* Keyboard focus on the tile's controls gets the same second look a
   pointer gets on hover. */
.tile:hover .swap-alt,.tile:focus-within .swap-alt{opacity:1}
/* No hover on touch: the first frame is the tile, and the second is not
   rendered; being lazy, it is not fetched either. */
@media (hover:none){.swap-alt{display:none}}
/* One line, code and name, left aligned; it clips with an ellipsis rather
   than wrap. Nothing else sits under the tile but the Reference control. */
.tile-name{display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* "Available" (a ready piece): the plain word after the code, in the grey of the Reference toggle. No box. */
.tile-status,.viewer-status,.ref-status{margin-left:1.2em;color:var(--mute);font-weight:500}
/* A small square that fills when the work is marked: the state is on the
   page, not only in aria-pressed. 44px tall, pulled up so the tile's line
   and the toggle read as one block. */
.ref-toggle{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;min-height:44px;margin-top:-10px;padding:0;border:0;border-radius:0;background:transparent;color:var(--mute);font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
.ref-toggle::before{content:"";width:7px;height:7px;border:1px solid currentColor}
.ref-toggle:hover{color:var(--ink)}
.ref-toggle[aria-pressed="true"]{color:var(--strong)}
.ref-toggle[aria-pressed="true"]::before{background:currentColor}
.ref-toggle:focus-visible{outline:1px solid var(--ink);outline-offset:2px}


/* ===== Catalogue grid ===== */
.catalogue{padding:48px var(--safe-r) 0 var(--safe-l)}
/* The box that holds the film, the collection and the link; the link rests 48px above its end. */
.front{padding-bottom:48px}
.section-head{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--rule)}
.section-head > span{display:inline-flex;align-items:center;min-height:44px}
/* The filter menu: under the grid's heading, directly above the grid, left
   aligned with the grid's edge; each word is a 44px-tall target. */
.menu{display:flex;flex-wrap:wrap;gap:0 24px;margin:0 0 16px}
.menu a{display:inline-flex;align-items:center;min-height:44px}
/* The active filter word. */
.menu a[aria-current="true"]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
@media (max-width:720px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ===== Commission link ===== */
/* ONE link for the whole front page (2026-11-18). It is the last child of .front,
   the box that holds the film and the collection, and it is sticky: from the first
   screen it is held 16px (or the safe-area inset where larger, --ask-bottom) above the bottom
   of the viewport, over the film and then over the collection, and when the page
   scrolls to where it belongs, under the last row, it simply is there: one element,
   so no jump at either end. No script moves it. Its tap area is 44px tall through
   min-height and padding: 16px each side, so the WORDS start on the grid's left
   edge (the wordmark's, 16px) while the area reaches the screen's edge.
   NO BOX (see Rules). No wash, no border, no ground.
   Colour: the words are white where what is behind them is dark and the text
   colour (rgb(17,17,17)) where it is light, never a tint or a grey, each letter
   by what is behind it. That is the .ask-ink layer: an element the shape of the
   words (clip-path: url(#ask-clip), an inline SVG clipPath written by render.js)
   whose backdrop-filter blurs what is behind it by --ask-blur (0: any blur
   averages the thin strokes of a caption into the page ground, so the words stayed
   dark over the letters; at 0 a part of a letter over a caption's dark stroke turns
   white), takes it to grey, pushes the
   contrast so far that every pixel is pure black or pure white, then inverts and
   lifts it so black becomes 17,17,17 and white 255,255,255. It is slightly
   see-through (--ask-opacity), the same everywhere. The real text in the link is
   transparent: it is there for the tap area, the keyboard and screen readers.
   The layer is NOT inside anything with opacity, filter, mask or clip-path (a
   "backdrop root" would hide the page from it): the opacity is on the layer itself.
   Hover and keyboard focus keep the site's 1px underline at a 4px offset, drawn by
   the same layer (.ask-ul); focus also draws the 2px outline, only on
   :focus-visible, so a tap or a click never shows it. The outline is the text
   colour and fully solid.
   Without support for backdrop-filter the layer is not drawn and the text itself is
   shown: white, and (site.js, only in such a browser) the text colour once the film
   is no longer behind it; the same opacity. */
.ask-defs{position:absolute;width:0;height:0;overflow:hidden}
.ask-defs text{font-family:inherit;font-weight:700;letter-spacing:.08em}
.ask-defs .ask-t11{font-size:11px}
.ask-defs .ask-t10{display:none;font-size:10px}
.ask-float,.ask-fx{position:sticky;bottom:var(--ask-bottom);display:flex;align-items:center;width:max-content;box-sizing:border-box;min-height:44px;margin:32px 0 0;padding:0 16px;border:0;background:none;color:#ffffff;font-size:11px;opacity:var(--ask-opacity)}
.ask-float{z-index:3;color:var(--slide-ink,#ffffff)}
.ask-float,.ask-fx{margin-left:var(--ask-left)}
.ask-float.on-page{color:var(--ink)}
.ask-float:hover{opacity:var(--ask-opacity)}
.ask-fx,.ask-film,.ask-ink,.ask-ul{display:none}
.ask-float:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  /* .ask-fx is a second, identical box (drawn under the film, z-index 1, taken out of the flow by the
     negative margin so the link lies on it) that carries the black-or-white layer; the film, above it,
     hides it, so the effect begins exactly where the film ends. Over the film the words are .ask-film,
     the same shapes in plain white, fixed at the same place and clipped to the film (clip-path), so a word straddling the
     film's bottom edge is white above it and black-or-white below it, with nothing to keep in step. */
  .ask-float,.ask-float:hover{opacity:1;margin:0 0 0 var(--ask-left)}
  .ask-fx{display:flex;z-index:1;margin:32px 0 -44px var(--ask-left);opacity:1;pointer-events:none}
  .ask-float .ask-text,.ask-fx .ask-text{color:transparent}
  .ask-film{display:flex;position:fixed;left:var(--ask-left);bottom:var(--ask-bottom);z-index:2;align-items:center;box-sizing:border-box;min-height:44px;padding:0 16px;font-size:11px;pointer-events:none}
  .ask-film .ask-text{color:transparent}
  .ask-ink,.ask-ul{display:block;position:absolute;left:16px;right:16px;pointer-events:none;opacity:var(--ask-opacity);-webkit-backdrop-filter:blur(var(--ask-blur)) grayscale(1) contrast(1000) invert(.9375) brightness(1.0667);backdrop-filter:blur(var(--ask-blur)) grayscale(1) contrast(1000) invert(.9375) brightness(1.0667)}
  .ask-ink{top:0;bottom:0;-webkit-clip-path:url(#ask-clip);clip-path:url(#ask-clip)}
  /* The underline: a strip 1px tall, 4px under the baseline, cut from a taller box so the blur has something to look at. */
  .ask-ul{display:none;top:24px;height:9px;-webkit-clip-path:inset(4px 0);clip-path:inset(4px 0)}
  .front:has(.ask-float:hover,.ask-float:focus-visible) .ask-ul{display:block}
  /* Over the film the same shapes in one plain colour per photograph (no filter): white or the text
     colour, --slide-ink, set by slides.js from the photograph's data and changing with the fade; the
     two meet exactly at the film's edge. */
  .ask-film .ask-ink,.ask-film .ask-ul{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--slide-ink,#ffffff);transition:background-color var(--fade,1s) linear}
}
@media (max-width:719.98px){
  .ask-float,.ask-fx,.ask-film{font-size:10px}
  .ask-defs .ask-t11{display:none}
  .ask-defs .ask-t10{display:inline}
  .ask-ul{top:25.6px}
}


/* ===== Photograph viewer ===== */
/* A native <dialog> made by viewer.js and opened with showModal(), so it lives
   in the top layer: the floating Commission button and everything else is
   behind it, and inert. Full screen, in the page's own ground. Three rows: the
   name and Close; the photograph, contained and never cropped; Previous / Next
   and then Reference / Commission. Every control is a 44px target. While it is
   open the page behind is locked from scrolling (html.viewer-open). */
html.viewer-open{overflow:hidden}
.viewer{box-sizing:border-box;position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--ground);color:var(--ink);overflow:hidden;overscroll-behavior:contain}
.viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100vh;height:100dvh}
.viewer::backdrop{background:var(--ground)}
/* The dialog itself takes focus when it opens (viewer.js), so no control carries a
   focus ring until someone presses Tab; the container is not a control. */
.viewer:focus{outline:none}
.viewer-top{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:0 var(--safe-r) 0 var(--safe-l);min-height:56px}
.viewer-name{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.viewer-close,.viewer-prev,.viewer-next{display:inline-flex;align-items:center;min-width:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
.viewer-close,.viewer-next{justify-content:flex-end}
.viewer-prev:disabled,.viewer-next:disabled{color:var(--mute);cursor:default}
.viewer-close:hover,.viewer-prev:hover:not(:disabled),.viewer-next:hover:not(:disabled){text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.viewer-close:focus-visible,.viewer-prev:focus-visible,.viewer-next:focus-visible,.viewer .ref-toggle:focus-visible,.viewer-ask:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.viewer-stage{min-height:0;display:flex;align-items:stretch;justify-content:center;padding:0 var(--safe-r) 0 var(--safe-l);touch-action:pan-y pinch-zoom}
.viewer-img{display:block;width:100%;height:100%;object-fit:contain;-webkit-user-drag:none}
.viewer-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:0 16px;padding:4px var(--safe-r) 12px var(--safe-l);padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
/* Each control is only as wide as its words: grid items stretch to their column,
   which would make the whole half of the row a tap target for Previous and for
   Reference this. The first row is Previous, the numbers 1 and 2, Next; the second
   is Reference and Commission. */
/* 1 and 2: two plain numbers between Previous and Next, only for a piece that has a
   second view (viewer.js un-hides them). The current one in the text colour, the other
   grey; each a 44px target; no box (see Rules). */
.viewer-prev{grid-column:1;grid-row:1;justify-self:start}
.viewer-views{grid-column:2;grid-row:1;display:flex;justify-content:center;gap:0}
.viewer-views[hidden]{display:none}
.viewer-next{grid-column:3;grid-row:1;justify-self:end}
.viewer-view{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:var(--mute);font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}
.viewer-view[aria-pressed="true"]{color:var(--ink)}
.viewer-view:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.viewer-view:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.viewer-ref{grid-column:1 / 3;grid-row:2;justify-self:start}
.viewer-ask{grid-column:2 / 4;grid-row:2;justify-self:end}
/* A press in the viewer never selects, calls out or highlights anything, and a
   double tap never zooms (touch-action: manipulation; the stage keeps pan-y and
   pinch-zoom, so a sideways swipe reaches the script and a pinch still zooms). */
.viewer,.viewer *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.viewer .viewer-stage,.viewer .viewer-img{touch-action:pan-y pinch-zoom}
.viewer ::selection{background:transparent;color:inherit}
/* The Reference button here is the tile's own (same class, same saved list); only
   the tile's pull-up margin goes. */
.viewer .ref-toggle{margin:0}


/* ===== Commission form (commission.html) ===== */
/* Ported from kurushjerar.com's /contact. A field row is a ruled row: the
   same hairline as the section heads, and that rule is the field's
   underline. There are no borders on inputs anywhere here; adding one
   would undo the point. The label carries the focus state, because there
   is no box to highlight. Each row is at least 44px: the field and the
   label each pad a 20px line by 12px above and below. */
.commission{padding:48px var(--safe-r) 48px var(--safe-l)}
.commission-title{display:flex;align-items:center;min-height:44px;margin:0;font-size:11px;font-weight:500;color:var(--strong)}
.formlist{list-style:none;margin:0;padding:0}
.formlist li{border-top:1px solid var(--rule)}
/* The send row and the direct row are two lists so the direct one can
   stand alone when the form is hidden (no JavaScript); only the last list
   closes with a rule, so where they meet there is one line, not two. */
.formlist-direct li:last-child{border-bottom:1px solid var(--rule)}
.formrow{display:grid;grid-template-columns:minmax(120px,220px) minmax(0,1fr);align-items:start;gap:0 24px}
.formrow > .row-label,.formrow > .row-desc{padding:12px 0;line-height:20px}
.formrow > .row-label{color:var(--mute);transition:color 240ms ease}
.formrow:focus-within > .row-label{color:var(--strong)}
.formrow > .row-desc{color:var(--mute)}
/* Form text is 16px, on every screen: it is read and typed as text, and
   iOS zooms the page when a field under 16px takes focus and never zooms
   back. Short answers keep the page's capitals; the prompts stay in the
   11px system layer (Safari decides the zoom from the field's size, not
   the prompt's; confirmed on an iPhone for kurushjerar.com, 2026-09-08). */
.f{box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:10px 0;border:0;border-radius:0;background:transparent;color:var(--strong);font:inherit;font-size:16px;font-weight:400;line-height:24px;letter-spacing:inherit;text-transform:inherit}
.f:focus{outline:none}
.f::placeholder{color:var(--mute);opacity:1;font-size:11px;font-weight:500}
/* An address is read character by character: no capitals. The prompt
   stays with the others. */
.f-email{text-transform:none;letter-spacing:.04em}
.f-email::placeholder{text-transform:uppercase;letter-spacing:.08em}
/* The one field that is written rather than answered takes the
   newsletter line's sentence setting. Grows as it is typed into. */
.f-detail{display:block;resize:none;overflow:hidden;text-transform:none;letter-spacing:.02em}
.f-detail::placeholder{text-transform:uppercase;letter-spacing:.08em}
/* Reference: directly under the heading, above the form, no label row: a thumbnail
   (a button that opens the viewer), the work's code, and a remove control per marked
   work. The box is hidden when none is marked. */
.refs{display:flex;flex-wrap:wrap;gap:4px 24px;padding:12px 0}
.refs[hidden]{display:none}
.refs:focus{outline:none}
.ref{display:flex;align-items:center;gap:12px}
.ref-open{display:block;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit;cursor:zoom-in}
.ref-open:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.ref-img{display:block;width:44px;aspect-ratio:4 / 5;object-fit:cover;object-position:var(--ox,50%) var(--oy,50%);background:var(--well)}
.ref-x{min-height:44px;padding:0;border:0;border-radius:0;background:transparent;color:var(--mute);font:inherit;letter-spacing:inherit;text-transform:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.ref-x:hover{color:var(--strong)}
/* Send is the call to action's text, with the response promise beside it. */
.send{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;padding:16px 0}
.send .row-desc{color:var(--mute)}
/* Empty until the form has something to say beside Send ("Sending", or what
   is missing); then it shows, and gives the gap back when it clears. */
.send .row-desc:empty{display:none}
/* The direct row: the address and, beside it, Instagram; two links in the
   field column, each a 44px target, wrapping under each other on a phone.
   The label takes the strong ink the acting rows do. */
.formrow-direct > .row-label{color:var(--strong)}
.direct{display:flex;flex-wrap:wrap;gap:0 24px}
.direct a{display:inline-flex;align-items:center;min-height:44px;color:var(--mute)}
.direct a:hover,.direct a:focus-visible{opacity:1;color:var(--strong)}
/* The prefilled mail row after a failure is a ruled row that acts. */
.formrow.act{cursor:pointer}
.formrow.act > .row-label{color:var(--strong)}
.formrow.act:hover{opacity:.55}
.formrow.act:focus-visible{outline:1px solid var(--ink);outline-offset:2px}
/* The confirmation replaces the form. */
.sent > .row-label{color:var(--strong);font-weight:700}
/* The sent state: a single plain line across the row. The address in it is
   written as typed, not set in capitals. */
.sent-line{grid-column:1 / -1;margin:0;padding:12px 0;line-height:20px;font-weight:700;color:var(--strong)}
.sent-line .addr{text-transform:none;letter-spacing:.02em}
/* The honeypot: off-screen rather than display:none, because some bots
   skip display:none fields to dodge exactly this. */
.trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* One column. */
@media (max-width:720px){
  .formrow{grid-template-columns:minmax(0,1fr)}
  .formrow > .row-label{padding-bottom:0}
}


/* ===== Not found (404.html) ===== */
/* Enough height that the line does not sit hard under the header. */
.notfound{min-height:50svh;display:flex;align-items:center;justify-content:center;padding:96px var(--safe-r) 96px var(--safe-l);text-align:center}
.notfound-line{margin:0}
.notfound-line a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:4px}

/* ===== Debug readout (?debug=1, assets/js/debug.js) ===== */
/* Temporary (docs/task-slideshow-fit.md): the phone reports its own boxes. Plain text at the top of
   the screen, white with a dark edge so it reads on any ground without a box behind it; it takes no
   taps. The probes are invisible elements the browser sizes from svh, lvh, dvh and the safe-area insets. */
.debug{position:fixed;z-index:2147483647;top:env(safe-area-inset-top,0px);left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px);margin:0;padding:2px 4px;pointer-events:none;font:9px/1.3 ui-monospace,Menlo,Consolas,monospace;letter-spacing:0;text-transform:none;white-space:pre-wrap;overflow-wrap:anywhere;color:#ffffff;text-shadow:0 0 2px #000000,0 0 2px #000000,0 0 3px #000000,0 0 4px #000000}
.debug-probe{position:fixed;top:0;left:0;width:0;visibility:hidden;pointer-events:none}
.debug-svh{height:100svh}
.debug-lvh{height:100lvh}
.debug-dvh{height:100dvh}
.debug-safe{height:0;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
