/* MB Artists — faithful reproduction of the original look & feel */
:root {
  --bg-rgb: 240 235 225;
  --bg:   rgb(var(--bg-rgb));        /* #f0ebe1, cream */
  /* Channels, not hex, because six rules need these at an alpha. Written
     once so a change to the colour reaches its shadows and scrims too —
     they used to be re-typed as rgba() literals in three spellings. */
  --ink-rgb: 64 63 52;
  --ink:  rgb(var(--ink-rgb));       /* #403f34, warm charcoal text */
  --muted:#6b6960;   /* links / secondary — 4.63:1 on the page, 5.23:1 on cards.
                        was #777, which measured 3.77:1 and failed WCAG AA. warm
                        rather than a neutral grey so it sits with the palette. */
  --accent:#f0492e;  /* signature orange-red */
  --line: #d8d1c2;
  --card: #fbf9f4;   /* the raised surface: the contact card, the form fieldset */
  --field: #fff;     /* what you type into */
  --on-dark: #fff;   /* text on accent, on ink, on the black-and-white circle */
  --bw:   #2b2b2b;   /* the Black & White circle, beside --accent and --ink */
  --sent: #4f6b3f;   /* the estimate button once the enquiry has gone. Warm
                        rather than a cold emerald, so it belongs with the
                        cream and the orange. 5.99:1 with white — the accent
                        it replaces manages 3.69:1, which is TASK-003. */
  /* A fourth grey, one step darker than --muted, for the FAQ section headings.
     It has to stay darker: the section heading outranks the questions under it,
     so --muted must stay the lighter of the two. */
  --muted-strong: #55534a;
  /* The artwork cell. An artist's own page and the page listing them agree
     about how wide a picture is, and two padding rules further down exist only
     to keep four of these fitting across --wrap. */
  --cell: 250px;
  /* Content rhythm (TASK-041). One scale for page tops, section breaks, and
     component gaps — set component by component until this pass, so the same
     kind of space was four neighbouring numbers with no shared reason.

       1  page top, tight label gaps
       2  text-block gaps (intro title, recent head)
       3  band under circles, title→body, head margin
       4  default component gap (gallery column, bio, news/faq row)
       5  section break (gallery row, catalog intro, back link)
       6  page bottom / scroller pad / home→recent / contact columns

     --circle-gap sits between 4 and 5 because 100px circles need more air than
     a gallery cell; both the listing and the artist head share it. */
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 22px;
  --space-5: 34px;
  --space-6: 40px;
  --circle-gap: 28px;
  /* The top of every page wrapper, so the six of them stay level by
     construction rather than by hand. */
  --page-top: var(--space-1);
  /* Cream above the footer contact row. Owned once by main (and by the
     framed scrollers on artist/listing pages). Page wrappers do not add a
     second bottom pad on top of this. */
  --page-bottom: var(--space-6);
  /* A Recent Projects card, and how far its arrow is inset from the top.
     The arrow's height is derived from the pair below. */
  --recent-cover: 152px;
  --recent-inset: 24px;
  /* The measure the whole site is set to: header, main and footer all cap
     here. The number is inherited from the original three-column layout,
     where it was 155 indent + 740 grid + 54 gap + 160 recent + 15 — every
     one of those terms is now retired, so treat 1124 as the width that was
     chosen rather than a sum that still adds up. The number doing real work
     on the home page is --home-grid below. */
  --wrap: 1124px;
  /* The home page's inner measure: thirteen 74px thumbnails. The Recent
     Projects strip takes the same width so the two line up exactly rather than
     approximately. */
  --home-grid: 962px;
}
* { box-sizing: border-box; }
/* Always reserve the scrollbar's width, whether or not the page needs one.
   Without it a short page has no scrollbar and a long one does, so the viewport
   changes width between them — and everything centred, the header included,
   jumps sideways by half a scrollbar as you click through. That reads as the
   pages having different margins. */
html { scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* Column layout so the footer reaches the bottom of the window on short pages
   — home, contact and questions otherwise leave a band of background beneath
   it. main takes up the slack, so on long pages nothing is pinned or overlaps.
   100dvh second: it avoids the mobile URL-bar jump, and browsers that don't
   know it keep the 100vh above. */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 19px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--accent); }

/* One focus style for everything. outline-offset matters more than it looks:
   it puts the ring just outside the element, on the cream page, so it stays
   visible on the near-black Black & White circle and the orange one alike —
   a ring drawn on the element itself would vanish into the dark one.
   :focus-visible, so it appears for keyboard users without ringing every
   mouse click. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
/* Dialogs receive initial focus so Safari does not outline their close icon
   after a tap. The container needs no ring; Tab still outlines its buttons. */
.viewer:focus, .cviewer:focus, .sendfail:focus { outline: none; }
/* Restore thumbnail focus on close without a box after touch or mouse input.
   Keyboard input restores the normal focus ring, including Tab after a tap. */
html[data-viewer-input="pointer"] .shot:focus-visible,
html[data-viewer-input="pointer"] .catalog-cell:focus-visible { outline: none; }

/* Hidden until tabbed to, then drops into view at the top left. */
.skip-link {
  position: absolute; top: -4em; left: 12px; z-index: 100;
  padding: 10px 18px; background: var(--ink); color: var(--bg);
  border-radius: 0 0 6px 6px; transition: top .15s ease;
}
.skip-link:hover { color: var(--bg); }
.skip-link:focus { top: 0; }
/* main takes focus from the skip link and is not otherwise interactive: it is
   tabindex="-1", so it can be focused but is not a stop in the tab sequence.
   It was tabindex="0" for a while and that put a focus ring around the entire
   content area, once per page — see the note in baseof.html for the
   measurements that showed the reason for it did not hold.

   It still has to show focus when the skip link sends it there, so the
   site-wide ring applies — drawn inside, since main meets the header and the
   signature band with nothing between them. Mouse clicks still get nothing. */
main:focus:not(:focus-visible) { outline: none; }
main:focus-visible { outline-offset: -3px; }

.site-header, main, .site-footer > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
/* grow to fill, never shrink below content — this is what pushes the footer down */
/* width: 100% for the same reason the header needs it: body is a flex column
   and this has auto side margins, which makes a flex item shrink-wrap its
   content rather than stretch. Left to itself main settled at its max-width
   even on a 500px screen, and the thumbnail grid's auto-fill then filled 1124px
   of it — fourteen columns on a phone, and the page scrolled sideways. */
main { padding: 0 15px var(--page-bottom); flex: 1 0 auto; width: 100%; }

/* The frame: header and footer hold their place, the content scrolls between
   them. The page itself does not scroll — main does — so the scrollbar belongs
   to the content and never appears beside the header or the signature band.

   That is the whole reason for doing it this way rather than with sticky
   positioning. With the document scrolling, the scrollbar runs the full height
   past both bands, and the reserved gutter cuts a cream strip out of a
   signature band meant to run edge to edge. Nothing inside the page can paint
   that strip: a fixed element's containing block excludes the scrollbar too,
   and painting it from the canvas fills it with the background's base colour
   rather than a gradient's value at that point. Both were tried. Giving the
   scrollbar to the content instead removes the question entirely.

   This has to sit after the rule above: same specificity, so source order is
   what lets `flex: 1 1 auto` beat the `1 0 auto` that stops main shrinking.

   Only above a minimum height. Header and footer take about 290px between them,
   which is a frame on a tall window and most of a short one — so below that the
   page goes back to scrolling normally and the bands scroll away with it.

   Worth knowing when adding anything height-scoped near this: an iPad in
   portrait is 768x1024, which is under 980 wide AND over 760 tall, so it is
   inside the frame while looking like a small screen. A rule once written for
   the narrow case put 50px of cream inside the frame and stranded a band above
   the footer. Landscape had been tested; portrait had not. */
@media (min-height: 760px) {
  /* no document scrollbar to reserve room for; main has its own */
  html { scrollbar-gutter: auto; }
  body { height: 100vh; height: 100dvh; overflow: hidden; }
  main { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
}

/* ---- header: logo + image-button nav ---- */
/* width: 100% is load-bearing. body is a flex column and this has auto side
   margins, which in flex layout makes an item shrink-wrap its content rather
   than stretch — so the header was 1021px wide against main's 1124, and its
   edges were wherever the nav happened to end. Stretching it means the logo
   starts and the nav ends on the same column as everything below.

   That also retires a 229px right padding, which existed to pull the nav in to
   x895 to meet the old three-column grid's right edge, with the Recent Projects
   column extending past it. Both of those are gone. */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 20px 15px 16px; gap: 20px; flex-wrap: wrap;
}
.site-header .logo img { display: block; height: auto; }
/* the "MB artists" wordmark sits in the lower third of the logo, so drop the
   nav down to share its baseline rather than centering on the whole circle.
   11px, not 9: measured off a render, the wordmark's baseline sat at y=102 and
   the menu's at y=100. Neither has descenders, so those bottoms are the
   baselines. */
.mainnav { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; position: relative; top: 11px; }
.mainnav a {
  display: inline-block; background-repeat: no-repeat; background-position: center bottom;
  background-size: contain; text-indent: -9999px; overflow: hidden;
}
.mainnav a:hover { opacity: .7; }
.nav-artists   { width: 73px;  height: 14px; background-image: url(/images/buttons2/artists_off.png); }
/* Drawn rather than inherited: the other five came from the original site, and
   there was never a catalogs pair. Set in Bliss Bold, the family the originals
   use — fitted against artists_off.png at 41px with minimal tracking, which
   reproduced it to within a pixel. The font itself stays off the repo; see
   docs/DECISIONS.md. */
.nav-catalogs  { width: 98px;  height: 14px; background-image: url(/images/buttons2/catalogs_off.png); }
.nav-news      { width: 54px;  height: 14px; background-image: url(/images/buttons2/news_off.png); }
.nav-estimates { width: 99px;  height: 14px; background-image: url(/images/buttons2/estimates_off.png); }
.nav-contact   { width: 93px;  height: 14px; background-image: url(/images/buttons2/contact_off.png); }
/* QUESTIONS is a touch taller and its "Q" descender sits at the image bottom,
   so its text baseline lands high when bottom-aligned — nudge it down to match */
.nav-questions { width: 109px; height: 18px; background-image: url(/images/buttons2/questions_off.png); position: relative; top: 3px; }
/* ---- the menu on a phone ---- */
/* Above the breakpoint the details wrapper is invisible: no summary, always
   open, so this is the row of buttons it has always been. */
.nav-drop > summary { display: none; }

/* 930px, not a phone width. Measured, the row sits beside the logo down to
   935 and then passes through two states nobody chose: 930 to 690 it drops
   below the logo and the header grows to 180px, and 685 to 625 it wraps onto
   two ragged lines at 220px. Switching here means the menu is either a full row
   or a button, with nothing in between. An iPad in landscape keeps the row; in
   portrait it gets the button. */
@media (max-width: 930px) {
  .site-header { flex-wrap: nowrap; align-items: center; padding: 14px 15px; position: relative; }
  .site-header .logo img { width: 150px; height: auto; }

  /* 44px square, which is the size a finger needs. The three bars are drawn
     rather than an image so they scale with nothing to load. */
  .nav-drop > summary {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 44px; height: 44px; padding: 11px 8px; cursor: pointer;
    list-style: none;   /* Firefox draws a marker without this */
  }
  .nav-drop > summary::-webkit-details-marker { display: none; }
  .nav-drop > summary span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

  /* Closing the menu has to hide it here as well as in the element, and it
     must not do it with display.

     A closed <details> hides its contents through the browser's own
     stylesheet, and .mainnav sets display: flex in ours, which in Safari
     outranks it — so the panel needed hiding explicitly. But display: none on
     an absolutely positioned box with a shadow left iOS with the layout
     updated and the pixels still on screen: the element measured closed, zero
     height, display none, and you could still see it. Scrolling made it
     vanish, which is what a stale paint looks like.

     visibility and opacity are composited rather than repainted, and the
     translateZ puts the panel on its own layer so showing and hiding it is
     work the compositor does. No repaint to miss.

     Found by instrumenting the page. Three fixes aimed at the open/closed
     state did nothing, because the state had been right the whole time. */
  .nav-drop .mainnav { transform: translateZ(0); }
  .nav-drop:not([open]) .mainnav {
    visibility: hidden; opacity: 0; pointer-events: none;
  }

  /* The panel hangs off the header rather than pushing the page down, so
     opening the menu does not move the artwork underneath it. */
  .nav-drop[open] .mainnav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: block; background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 10px 20px rgb(var(--ink-rgb) / .12);
    padding: 4px 15px 12px; z-index: 40;
  }
  /* 48px rows: the links themselves are 14px tall images, far under the 24x24
     WCAG 2.5.8 asks for and further under what a thumb actually needs. */
  .mainnav a {
    display: flex; align-items: center; width: auto; height: 48px;
    background-position: left center; background-size: auto 14px;
    border-bottom: 1px solid var(--line);
  }
  .mainnav a:last-child { border-bottom: 0; }
  /* The baseline nudge is for the desktop row. The size has to be its own:
     questions_off.png is 218x35 where the other five are 28 tall, so scaling
     every image to one height renders its lettering at 40 percent against
     their 50 and it looked a fifth smaller. 18px keeps the ratio — and it is
     the height the desktop row already gives it, for the same reason.

     Written as .mainnav .nav-questions, not .nav-questions, because .mainnav a
     names an element as well as a class and outranks a bare class whatever the
     order. That is the second time this file has caught someone out that way;
     the first was six opacity declarations on the nav hover that never once
     took effect. */
  .mainnav .nav-questions { top: 0; background-size: auto 18px; }
}

/* Hovering swaps to the orange button and .mainnav a:hover fades it to 70%,
   so the page you are ON is solid orange and the one you are POINTING AT is
   faded. That reads well and is what the site has always done.

   It was not designed that way. Each of these once carried opacity: 1 to stop
   the fade, and none of them ever worked — .mainnav a:hover names an element
   as well as a class, which outranks a class and a pseudo-class. Removed
   rather than made to work: the distinction they would have destroyed is worth
   more than the intention behind them (David, 2026-08-06). */
.nav-artists:hover,
.nav-artists.is-here   { background-image: url(/images/buttons2/artists_on.png); }
.nav-catalogs:hover,
.nav-catalogs.is-here  { background-image: url(/images/buttons2/catalogs_on.png); }
.nav-news:hover,
.nav-news.is-here      { background-image: url(/images/buttons2/news_on.png); }
.nav-estimates:hover,
.nav-estimates.is-here { background-image: url(/images/buttons2/estimates_on.png); }
.nav-contact:hover,
.nav-contact.is-here   { background-image: url(/images/buttons2/contact_on.png); }
.nav-questions:hover,
.nav-questions.is-here { background-image: url(/images/buttons2/questions_on.png); }

/* ---- home ---- */
/* One column. The Recent Projects gutter is gone — the strip runs across the
   foot of the page — so the welcome and the grid have the width to themselves.

   No side pad of its own — main already pads 15px, and a further 30px was a
   no-op at the design widths (children centre on --home-grid) while costing a
   thumbnail column below about 1140. Bottom cream is main's --page-bottom. */
.home { max-width: var(--wrap); margin: 0 auto; padding: var(--page-top) 0 0; }
/* Full width, so the welcome, the grid and the Recent Projects strip below all
   share one left edge. It was 740px — ten columns of 74 — which with the Recent
   Projects gutter gone left 350px of nothing beside it. */
.home-main { max-width: none; }
/* Indented further than the artwork below it, and narrower. Ranged level with
   the grid it read as one undifferentiated left edge; set in a little, the
   welcome is clearly an introduction to the work rather than part of it. */
/* The same column as the thumbnail grid, so the catalog button's right edge
   lands on the grid's, then padded in on the left so the words start inside the
   artwork rather than level with it. Ranged level it read as one
   undifferentiated left edge; set in, the welcome is clearly an introduction to
   the work rather than part of it. */
.home-intro { overflow: hidden; max-width: var(--home-grid); margin: 0 auto 30px; padding-left: 34px; }
/* Smaller and closer than the 150px it was — at that size it competed with
   the welcome rather than sitting beside it.

   The circle in this PNG fills only 82% of its canvas, about 9% of transparent
   padding a side — measured again on the 240px file that ships today: 82.1%
   ignoring the soft edge the resampling left behind. It does not matter here,
   because this button stands on its own and the padding is just space around
   it. It matters the moment anyone sets it beside other circles: at 120px it
   would draw a 98px circle next to 120px ones. The fix is to make the link
   itself the circle and let the canvas overflow it, which also keeps the focus
   ring round and stops the click target reaching into transparent corners.
   That is what the retired .catalog-top rule did, and this is the finding it
   existed to record. */
.home-intro .catalog-btn { float: right; margin: 4px 0 8px 18px; }
.home-intro .catalog-btn img { width: 120px; height: 120px; }
/* the page's h1 — styled small on purpose; the original had no visible title
   here and a heading does not have to be large to be the top of the outline */
.home-intro h1 { margin: 0 0 var(--space-2); font-weight: normal; font-size: 14px; color: var(--ink); }
/* No cap of its own: .home-intro sets the measure, and the floated catalog
   button takes the rest, so the lines run right up to it instead of stopping
   short and leaving a gap between the words and the picture. */
.home-intro p { margin: 0 0 14px; }

/* As many 74px columns as the width allows. How many rows is the script's
   business, not this file's: it keeps three, measured, so no window is ever
   left with a part-filled row. The original packed ten across and four down
   beside a Recent Projects gutter; without the gutter, and indented to sit on
   the same column as the galleries, thirteen fit at the reference width. One
   row shorter and one artist fewer per visit — signed off, see DECISIONS.md.
   auto-fill rather than a fixed count, so a narrower
   window loses columns instead of overflowing. */
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, 74px); justify-content: center;
  max-width: var(--home-grid); margin: 0 auto; }
.thumb-grid a { display: block; width: 74px; height: 74px; overflow: hidden; }
.thumb-grid img { width: 74px; height: 74px; object-fit: cover; display: block; transition: opacity .15s; }
.thumb-grid a:hover img { opacity: .72; }

/* ---- recent projects: a strip across the foot of the home page ---- */
/* the original pulls this column up so its header aligns near the nav, above
   the welcome text (originally position:absolute; top:-129px) */
/* ---- Recent Projects: a horizontal strip of cards ---- */
/* Same width as the thumbnail grid and centred with it, so the strip is a band
   of the same column rather than a wider one underneath. Narrower windows
   shrink both together. */
.recent { max-width: var(--home-grid); margin: var(--space-6) auto 0; }
.recent-head { margin: 0 0 var(--space-2); }
.recent-head img { display: block; }

/* The arrows sit over the ends of the strip rather than beside it, so the
   cards keep the full width and the controls appear on top of what they move. */
.recent-strip { position: relative; }
.recent-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.recent-viewport::-webkit-scrollbar { display: none; }
.recent-list { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: var(--space-4); }

/* The covers are 150x150 at most — median 120x150 — so the box is sized to
   the artwork rather than the artwork stretched to the box. Upscaling a 150px
   jacket to fill a larger tile would only make it soft, and this is a site
   about pictures. The card is what grew: it carries the artist's name and the
   month, which the old bare cover never did. */
.recent-card { flex: 0 0 168px; }
.recent-card a { display: block; text-align: center; color: var(--muted); }
/* Not redundant, though it looks it. a:hover is (0,1,1) and so is the rule
   above, so the later one wins and this would never change colour. On the
   anchor rather than on .recent-artist, so the name inherits it and the
   date, which keeps a colour of its own, does not follow. */
.recent-card a:hover { color: var(--accent); }
.recent-cover { display: flex; align-items: center; justify-content: center; height: var(--recent-cover); }
/* contain, never crop — the cover is the artwork, and cropping it is the one
   thing this site must not do. The single exception is .thumb-grid img above,
   which crops to a 74px square: those are thumb.*, cropped and signed off by
   the artist for exactly that cell, so the crop happened before the file got
   here rather than in the browser. Anywhere the file is the artwork itself,
   contain. */
/* A box of its own size, not one derived from the picture.

   This was `width: auto; max-width: 100%; max-height: …`, which asks the
   browser to size a flex item from the image's own aspect ratio and then clamp
   it. Safari gets that wrong perhaps one load in three: the image is fetched
   and decoded, and laid out at no width — indistinguishable from one that
   never arrived. Hovering fixed it, because the opacity rule below forces a
   repaint of that exact element and it lays out correctly the second time.
   Chrome never did it once.

   width and height here, with contain doing the letterboxing, means the box
   exists before the picture does and nothing about it depends on the file. */
.recent-cover img { width: 100%; height: calc(var(--recent-cover) - 2px); object-fit: contain; transition: opacity .15s ease; }
.recent-card a:hover .recent-cover img { opacity: .82; }
.recent-artist { display: block; margin-top: 10px; text-transform: uppercase; font-weight: bold; font-size: 13px; }
.recent-date { display: block; font-size: 11px; color: var(--muted); }

/* Translucent, narrow, and about two thirds the height of the cards, so they
   read as a hint rather than as furniture. */
/* Inset from the top, not flush with it: a card is a cover with the artist and
   the month beneath, so an arrow starting at 0 sat against the top edge of the
   pictures rather than across them. Centred on the cover, which means the
   height is the cover less the inset twice — 152 - 24 - 24 = 104. That was
   three literals and a sentence asking you to trust the arithmetic; now the
   arithmetic is the code and cannot drift. */
.recent-arrow {
  position: absolute; z-index: 2; width: 46px;
  top: var(--recent-inset);
  height: calc(var(--recent-cover) - 2 * var(--recent-inset));
  border: 0; padding: 0; cursor: pointer;
  background: rgb(var(--bg-rgb) / .72); color: var(--ink);
  transition: background .15s ease, opacity .15s ease;
}
.recent-arrow:hover { background: rgb(var(--bg-rgb) / .92); }
.recent-arrow[hidden] { display: none; }
.recent-prev { left: 0; }
.recent-next { right: 0; }
/* drawn rather than an image, so it scales with the button and needs no asset */
.recent-arrow::before {
  content: ""; display: block; width: 14px; height: 14px; margin: 0 auto;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
}
.recent-prev::before { transform: rotate(-135deg); }
.recent-next::before { transform: rotate(45deg); }

/* ---- footer ---- */
.site-footer { margin-top: 30px; }
.foot-contact {
  max-width: var(--wrap); margin: 0 auto; padding: 8px 15px 12px;
  /* Spread across the full column rather than indented 155px into fixed 280
     and 330 columns. That indent came from the original and used to roughly
     match a header that shrink-wrapped to its own contents; now the header
     spans the column, so the phone lines up under the logo and the copyright
     under the last menu item. It also retires a 140px jump: a breakpoint at
     1140 dropped the indent from 155 to 15 all at once, which threw the whole
     row sideways as the window crossed it. */
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: end;
  font-size: 16px; color: var(--ink);
}
.foot-contact .foot-email { color: var(--ink); }
/* Not redundant: the rule above is (0,2,0) and outranks a:hover at (0,1,1),
   so without this the address never lifts. */
.foot-contact .foot-email:hover { color: var(--accent); }
.foot-contact .foot-copy { font-size: 11px; line-height: 13px; }
/* full-width dark signature band (edge to edge), signature aligned to content */
.foot-signature { max-width: none; margin: 0; width: 100%; background: var(--ink); }
.foot-signature-inner { max-width: var(--wrap); margin: 0 auto; }
.foot-signature img { display: block; height: 74px; width: auto; margin-left: 130px; }

/* Below this a phone number, an email address and a copyright line cannot sit
   side by side without one of them breaking mid-word, so they stack. */
@media (max-width: 500px) {
  .foot-contact { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---- interior pages (artist / content) ---- */
.page { max-width: 760px; margin: 0 auto; padding: var(--page-top) 15px 0; }
.page h1 { font-size: 25px; text-transform: uppercase; font-weight: normal; margin: 0 0 var(--space-3); letter-spacing: .01em; }
/* Estimates and Contact carry their heading for screen readers only (.sr-only
   in the template). That takes it out of flow, so the gap it held is put back
   here rather than letting the content climb up to meet the header — 19px of
   line box, since body's line-height is a flat 19px that the 25px heading
   inherits, plus the heading's own bottom margin. Written as a value rather
   than derived from .page h1 on purpose: this is now simply the top spacing of
   two pages that have no visible heading, and it should not move if the
   heading style changes for the pages that still show one. */
.page.is-untitled { padding-top: calc(var(--page-top) + 19px + var(--space-3)); }
.page h3 { font-size: 15px; margin: 26px 0 4px; color: var(--ink); }
/* Underlined because colour alone cannot carry them: the accent measures
   2.88:1 against the body text it sits in, under the 3:1 that would let colour
   be the only signal. True whatever Mela decides about the accent itself. */
.page a { color: var(--accent); text-decoration: underline; }

/* artist detail */
/* No horizontal padding of its own — main already caps at --wrap and pads by
   15px, and repeating it here left 1064px where four 250px cells need 1066.
   The same two pixels cost the listing its fourth column. */
.artist { max-width: var(--wrap); margin: 0 auto; padding: var(--page-top) 0 0; }
/* name on the left, circles on the right — as the original lays it out */
/* padding-right pulls the circles off the outer edge and onto the artwork's.
   They sat at 1267, flush with the nav, while the gallery's last column ends at
   1253 — so they hung past the pictures they belong to.

   32px rather than the 14 that would meet the cell edge exactly, because the
   artwork rarely reaches it: object-fit contains each picture in a 250px box,
   so a tall one stops about 22px short. Measured across two of one artist's
   portfolios the last picture ended at 1253 and 1231. This aims between them,
   at the art rather than at the box it sits in. */
.artist-head { display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; margin-bottom: var(--space-3); flex-wrap: wrap; padding-right: 32px; }
.artist-head h1 { font-size: 25px; text-transform: uppercase; font-weight: normal; margin: 0; }
/* the original sets the first letter larger; a small thing people notice */
.artist-head h1::first-letter { font-size: 32px; }
/* The biography's single circle back into the work. Same size and behaviour as
   the category circles it replaces — it is the same control, doing one job. */
.artist-head .portfolio-return { margin: 0; display: flex; }

/* "meet the artist" sits between the name and the circles, as on the original */
/* Matches the original's .meettheartist: 18px verdana, uppercase, no tracking.
   Colour is --muted rather than its #777, which failed contrast (see TASK-002),
   and hover goes to the accent like every other link here instead of the
   original's lighter #999. margin-left:auto reproduces the width:100% name cell
   that pushed this and the circles to the right. */
.meet-the-artist {
  padding: 4px 0; font-size: 18px; text-transform: uppercase;
  text-decoration: underline; margin-left: auto;
}

.artist-bio { display: flex; gap: var(--space-4); align-items: flex-start; flex-wrap: wrap; margin: 0 0 26px; }

/* Once the circles wrap to their own line, margin-left:auto strands the link at
   the far right. Centre the whole head instead. */
@media (max-width: 980px) {
  .artist-head { justify-content: center; }
  .meet-the-artist { margin-left: 0; }
}
.artist-bio .bio-photo { width: 150px; height: 150px; object-fit: cover; flex: none; }
.artist-bio .bio { max-width: 620px; }
.artist-bio .bio a { color: var(--accent); text-decoration: underline; }

/* Four across, on the same --cell as the artists listing — an artist's own
   page and the page listing them should agree about how wide a picture is. The
   300px squares this replaced fitted three at the reference width.

   One rule for both galleries, because they are the same box and were written
   out twice with the reasoning on only one of them.

   Flex rather than grid, because grid columns exist whether or not anything
   sits in them, so a short last row can only range left. And a fixed cell
   width rather than a fraction, because the artwork is constrained by height
   and not by the cell — with fractional columns every drop in column count
   widened the cells and opened a gutter, 137px a side at two columns. A
   constant width keeps the artwork the same distance apart at every size, and
   the row simply fits as many as it can: four at 1124, three by about 1040,
   two by 620, one on a phone. That is the whole responsive behaviour, with no
   breakpoints to keep in step. */
.gallery, .art-gallery { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-4); justify-content: center; }
.gallery .shot { display: block; width: var(--cell); height: var(--cell); }
.gallery .shot img { width: var(--cell); height: var(--cell); object-fit: contain; background: transparent; }
.gallery .shot:hover img { opacity: .8; }
.back { margin-top: var(--space-5); }
.back a { color: var(--accent); }

/* The frame on these two pages: the name, the meet-the-artist link and the
   circles hold still, everything below them scrolls. Same reasoning as the
   listing — the scrolling box is the content, so the scrollbar never runs
   beside the header. .artist-body is the wrapper both templates put around
   everything the header does not own. */
/* One of the three min-height: 760px blocks, and they are one idea: on a
   window tall enough to hold the frame, the header and the signature band stay
   put and only the artwork scrolls. The block up at the top makes main the
   scrolling box; this one and the artists-page one below give the two gallery
   shapes the same treatment. They are written per section rather than merged,
   because each belongs with the layout it is reshaping. */
@media (min-height: 760px) {
  main:has(.artist) { overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; }
  .artist { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .artist-head { flex: 0 0 auto; }
  /* min-height: 0, or a flex item refuses to shrink under its content and
     pushes the footer off instead of scrolling */
  .artist-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: var(--page-bottom); }
}

/* ---- the larger view ---- */
/* A native <dialog>: showModal gives the focus trap and ESC without hand-rolled
   key handling. Sized as a card rather than a full-viewport takeover, so the
   logo and the menus stay visible behind it the way they do on the original,
   where the larger view is simply another page of the site. */
.viewer {
  width: fit-content; max-width: min(920px, 94vw); margin: auto;
  border: 0; border-radius: 2px; padding: 26px 26px 22px;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 18px 50px rgb(var(--ink-rgb) / .45);
}
.viewer::backdrop { background: rgb(var(--ink-rgb) / .62); }
/* display lives on [open] only. Setting it on .viewer outranks the browser's
   closed-dialog rule, and the thing renders down the page while shut. */
.viewer[open] { display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* Never past the file's own size — these are 800px on the long edge, and
   stretching one beyond that just makes it soft. */
.viewer-image { max-width: min(800px, 86vw); max-height: min(800px, 62vh); object-fit: contain; }
.viewer-close {
  align-self: flex-end; margin: -10px -8px 0 0;
  background: none; border: 0; padding: 9px; font: inherit; cursor: pointer;
  line-height: 0; color: var(--accent);
}
.viewer-close:hover { color: var(--ink); }
.viewer-nav { display: flex; align-items: center; gap: 26px; }
/* Reuses .pcircle, so these match the portfolio buttons and the original's own
   60px PREVIOUS/NEXT circles — drawn rather than the GIFs, so they stay sharp.
   Qualified by .viewer-nav because .pcircle sets its own width further down the
   sheet, and the colour is here because .pcircle carries none: it comes from
   the .pc-* classes, which are per-category and do not apply. */
.viewer-nav .pcircle {
  width: 60px; height: 60px; font-size: 10px; padding: 0;
  border: 0; font-family: inherit; cursor: pointer;
  background: var(--ink); color: var(--on-dark);
}
.viewer-count { color: var(--muted); font-size: 14px; margin: 0; min-width: 70px; text-align: center; }
/* The viewer's own only breakpoint: below this the frame takes more of the
   screen than the picture inside it, so the padding comes in. Nothing else on
   the site changes here — it is 20px away from the catalog grid's 600, and the
   two are unrelated. */
@media (max-width: 620px) {
  .viewer { padding: 18px 14px 16px; }
  .viewer-image { max-height: 52vh; }
  .viewer-nav { gap: 16px; }
}

/* the page nobody means to land on */
.not-found { max-width: 620px; }
.not-found h1 { margin-bottom: var(--space-3); }
.not-found p { margin: 0 0 14px; }
.not-found a { text-decoration: underline; }
.not-found-ways { margin: 22px 0 26px; }
.not-found-ways a.btn { text-decoration: none; }

/* contact card + forms reuse accent */
/* minmax on the card, so it keeps a usable width instead of shrinking with the
   window: 240px is its floor — the photograph is capped at 180 and the longest
   line in it is the email address. minmax(0, …) on the text column because a
   grid track will not shrink below its content otherwise. */
.contact-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: var(--space-6); align-items: start; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.contact-card .mela-photo { display: block; width: 100%; max-width: 180px; height: auto; border-radius: 8px; margin: 0 auto 16px; }
.contact-card h2 { margin: 0 0 2px; font-size: 18px; }
.contact-card .card-role { margin: 0 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contact-card address { font-style: normal; color: var(--muted); margin-bottom: 14px; }
/* playful character spots, echoing the original's margin illustrations */
.contact-spots { display: flex; gap: 26px; align-items: flex-end; margin-top: 36px; }
.contact-spots img { width: 90px; height: auto; opacity: .9; }
/* Named as the anchor it always is, and its hover stated, which is the same
   move the portfolio circles make further down and for the same reason: a
   bare .btn is outranked by .page a and by a:hover, so the label went
   accent-on-accent. That was the one !important in the file. */
a.btn, a.btn:hover {
  display: inline-block; background: var(--accent); color: var(--on-dark);
  padding: 8px 14px; border-radius: 6px; margin-top: 6px;
}
.form-page { max-width: 640px; margin: 0 auto; padding: var(--page-top) 15px 0; }
.estimate-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px 20px; margin: 0 0 20px; background: var(--card); }
.estimate-form legend { text-transform: uppercase; letter-spacing: .05em; font-size: 12px; color: var(--muted); font-weight: bold; padding: 0 6px; }
.estimate-form label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 12px; }
.estimate-form .hint { font-weight: normal; color: var(--muted); }
/* textarea alongside input: the usage box is a textarea now, and without it
   here it fell back to inline and sat beside its label rather than under it. */
.estimate-form input,
.estimate-form textarea { display: block; width: 100%; margin-top: 4px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 4px; font: inherit; background: var(--field); }
/* overflow hidden because the script sets the height to fit the content, so a
   scrollbar would only ever flash; resize stays vertical so it is still
   draggable, and works on its own if the script never runs. */
.estimate-form textarea { resize: vertical; overflow: hidden; line-height: 1.45; }
.estimate-form input:focus,
.estimate-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.estimate-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.estimate-form .hp { position: absolute; left: -9999px; }
.estimate-form button[type="submit"] { background: var(--accent); color: var(--on-dark); border: 0; padding: 10px 20px; border-radius: 6px; font: inherit; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: background-color .25s ease, opacity .25s ease; }

/* The button is the thing being watched when the form is submitted, so it is
   the thing that reports. Three states: sending, sent, and a failure that
   invites another go rather than leaving a dead control on the page.

   Sent is deliberately permanent. The form has emptied itself and the request
   is gone; an enabled button there invites sending the same enquiry twice. */
.estimate-form button[type="submit"]:disabled { cursor: default; }
.estimate-form button[type="submit"].is-sending { opacity: .65; }
.estimate-form button[type="submit"].is-sent { background: var(--sent); opacity: 1; }

/* Once it has sent, the form is left filled in and switched off. Seeing what
   you sent is more reassuring than watching it blank itself, and a form that
   is visibly inert needs no sentence explaining that it is.

   Browsers grey disabled fields hard, which works against the whole point, so
   the text is put back. -webkit-text-fill-color is the one that matters:
   Safari ignores `color` on a disabled control and renders it grey anyway. */
.estimate-form fieldset:disabled {
  border-color: var(--line);
  opacity: 1;
}
.estimate-form fieldset:disabled input,
.estimate-form fieldset:disabled textarea {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  background: var(--bg);
  opacity: 1;
  cursor: default;
}
.estimate-form fieldset:disabled legend,
.estimate-form fieldset:disabled label {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

/* The message that goes with the green button. Not a lone grey line under a
   control — it sits with it and is sized for the moment. */
.form-status.is-sent { color: var(--sent); font-weight: bold; font-size: 14px; }

/* The one thing on this site that interrupts, and only because a lost enquiry
   is the only thing here worth interrupting for. Same shape as .viewer, since
   the site already has one dialog and two should not look like two designs.
   display on [open] only, for the reason given there. */
.sendfail {
  width: fit-content; max-width: min(520px, 90vw); margin: auto;
  border: 0; border-radius: 2px; padding: 26px 28px 22px;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 18px 50px rgb(var(--ink-rgb) / .45);
}
.sendfail::backdrop { background: rgb(var(--ink-rgb) / .62); }
.sendfail[open] { display: block; }
.sendfail p { margin: 0 0 12px; }
.sendfail-head { margin: 0 0 12px; padding-right: 28px; font-size: 18px; color: var(--accent); }
.sendfail-close {
  position: absolute; top: 8px; right: 12px; margin: 0;
}
.estimate-form .form-note { margin: -4px 0 0; font-size: 12px; color: var(--muted); }
.form-status { margin-top: 12px; font-size: 13px; }

/* ---- responsive ---- */
/* This does not drop the left indent, which is what it used to say — it
   halves it, leaving 15px one side and 30px the other. A centred child then
   sits 7.5px left of centre: measured x82 here against x89 with the padding
   even. The nav pull-in it also mentioned was retired further up. Kept because
   it is what the page has always looked like, not because 7.5px was chosen. */
@media (max-width: 1140px) {
  .home { padding-left: 15px; }
}
/* narrower: let the grid reflow instead of forcing 10 fixed columns */
@media (max-width: 980px) {
  .home-main { max-width: 100%; }
  /* no hover on a touch screen, so the arrows matter more here, not less */
  .recent-card { flex-basis: 140px; }
  .recent-arrow { height: 110px; }
  .foot-signature img { margin-left: 20px; height: 60px; }
}

/* The contact card stays beside the text far longer than the home grid does.
   It stacked at 980 along with everything else, which put an iPad — 768 wide
   in portrait — in with the phones: the prose ran the full 735px, too long a
   line to read comfortably, and the card sprawled across the bottom with the
   photograph marooned in the middle of it.

   Below about 700 the text column drops under 380px and the two columns are
   worse than the stack. */
@media (max-width: 700px) {
  .contact-cols { grid-template-columns: 1fr; }
}
/* Two fields side by side stop fitting a label and a value, so the row
   becomes one column. 20px from the footer's 500, and unrelated to it. */
@media (max-width: 520px) {
  .estimate-form .row { grid-template-columns: 1fr; }
}

/* ---- Artists page: portfolio galleries + type circles ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* No side column: the catalogs moved in beside the circles and Recent Projects
   moved to the home page, so the gallery has the full width.

   No horizontal padding of its own — main already caps at --wrap and pads by
   15px, and repeating it here cost 30px. That was enough to fit only three
   250px cells where four belong, by two pixels. */
.artists-page { max-width: var(--wrap); margin: 0 auto; padding: var(--page-top) 0 0; }

/* The row of round buttons: the three portfolio types, then the catalogs. Two
   elements rather than one nav, because the catalogs are not a portfolio type
   — same gap on both so they read as one row regardless. */
/* 6px above and 18px below, copied from the artist's own page, where the same
   circles sit under the same header — measured there as 6 and 18 against 26 and
   26 here. Two pages showing the same control should breathe the same way, and
   the tighter pair gives the artwork 28px more room. */
.circle-row { display: flex; gap: var(--circle-gap); justify-content: center; align-items: center; flex-wrap: wrap; margin: 0 0 var(--space-3); }
.circle-row .portfolio-circles { margin: 0; }

/* The circles belong to the frame, not the artwork — they are how you get
   between the galleries, so scrolling them away puts navigation out of reach in
   the middle of a long page.

   Making them sticky inside main was not enough: main was still the scrolling
   box, so its scrollbar ran the full height and passed beside the circles. The
   scrolling box has to be the gallery itself. Then the bar starts below the
   circles and sits beside the artwork, which is the only thing that moves.

   :has() rather than a class on the body — this is the one page shape that
   needs it, and the templates stay as they are. */
/* The artists page half of the frame — see the note on the artist page's
   block above. Same idea, same condition, different layout. */
@media (min-height: 760px) {
  main:has(.artists-page) { overflow: hidden; display: flex; flex-direction: column; padding-bottom: 0; }
  .artists-page { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding: var(--page-top) 0 0; }
  .circle-row { flex: 0 0 auto; }
  /* min-height: 0 so it can shrink below its content — without it a flex item
     refuses to, and the gallery would push the footer off instead of scrolling */
  .art-gallery { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-bottom: var(--page-bottom); }
}

/* Portfolio-type circles. 100px is what an artist's own page always used;
   the listings matched it so the same control is the same size everywhere. */
.portfolio-circles { display: flex; gap: var(--circle-gap); justify-content: center; flex-wrap: wrap; }
.pcircle { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 11px; line-height: 1.35; padding: 8px; transition: transform .15s ease, box-shadow .15s ease; }
/* Two signals, kept separate: the lift means "you can go here", the shadow on
   .is-active means "you are here". The selected circle deliberately does not
   lift — it links to the page you are already on. No colour or opacity change;
   dimming the circle dimmed its label with it. */
.pcircle:hover { transform: translateY(-2px); }
/* Each states its hover explicitly. These are <a> elements, so the site-wide
   a:hover rule outranks a bare .pc-* class and would repaint the label in the
   accent colour — orange text on the orange circle. */
.pc-color, .pc-color:hover { background: var(--accent); color: var(--on-dark); }
.pc-bw, .pc-bw:hover { background: var(--bw); color: var(--on-dark); }
.pc-ya, .pc-ya:hover { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.pcircle.is-active { box-shadow: 0 5px 16px rgb(var(--ink-rgb) / .35); transform: translateY(-1px); }

/* On a phone the three are one control, not three things that happen to be
   adjacent. Left to wrap they break two-and-one — storybook and black-and-white
   in a line, young adult orphaned underneath — which reads as the third being
   a different kind of thing.

   Three circles want 356px: 100 each and two 28px gaps. A portfolio page gives
   them less than an artist's gallery page does, because its header also holds
   the name and "meet the artist", and carries 32px of padding on the right.
   That padding is a desktop measurement — it pulls the circles off the outer
   edge and onto the artwork's, which at the reference width ends around 1253.
   There is no such edge on a phone, so it is simply 32px the row has not got:
   343 available against 356 needed, and the third circle drops.

   So the padding goes, and the group is told not to break. It shrinks instead —
   flex items shrink by default, and wrapping was the only thing preventing it.
   aspect-ratio keeps them round while they do, and min-width lets them go below
   the width of their own label. Above about 390px there is room for the full
   100px and nothing here changes anything. */
@media (max-width: 560px) {
  .artist-head { padding-right: 0; }
  .portfolio-circles { flex-wrap: nowrap; }
  .pcircle { height: auto; aspect-ratio: 1; min-width: 0; }
}

/* Artwork gallery: four across at the reference width, and a last row that
   does not fill centres its cells.

   The container itself is declared with .gallery in the artist-detail section
   above — same box, same reasoning, written once. */
.art-cell { width: var(--cell); display: block; text-align: center; }
/* always occupies one line (empty when not NEW) so all gallery images align */
.new-tag { display: block; color: var(--accent); font-weight: bold; text-transform: uppercase; font-size: 14px; line-height: 20px; min-height: 20px; margin-bottom: 4px; }
.art-img { display: flex; align-items: center; justify-content: center; height: 300px; }
.art-img img { max-width: 100%; max-height: 300px; width: auto; object-fit: contain; transition: opacity .15s ease; }
.art-cell:hover .art-img img { opacity: .82; }
.art-name { display: block; margin-top: 8px; text-transform: uppercase; font-weight: bold; font-size: 14px; }

/* ---- News page (book-release feed) ---- */
/* Same --page-top as every other wrapper (was 8px with no recorded reason). */
.news-page { max-width: 800px; padding-top: var(--page-top); }
.news-item { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 30px; }
.news-item:last-child { border-bottom: 0; }
.news-date { text-transform: uppercase; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
/* date sits at the far left; the cover (centered in a wide column) and the
   blurb are indented from it, as on the original */
.news-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.news-cover { flex: 0 0 300px; display: flex; justify-content: center; }
.news-cover img { width: 150px; height: auto; max-height: 200px; object-fit: contain; }
.news-info { flex: 1 1 auto; min-width: 0; }
.news-artist { display: block; color: var(--accent); text-transform: uppercase; font-size: 18px; margin-bottom: 9px; }
.news-artist:hover { color: var(--ink); }
.news-blurb { font-weight: bold; line-height: 1.45; margin-bottom: 10px; }
.news-blurb p { margin: 0; }
a.news-link { text-transform: uppercase; font-size: 13px; color: var(--muted); }
/* Not redundant, though it looks it. a:hover is (0,1,1) and so is the
   rule above, so the later one wins and the link would never change
   colour. Measured by forcing :hover and reading the computed value. */
a.news-link:hover { color: var(--accent); }
/* A 300px cover beside a paragraph stops working here, so the cover goes
   above the words. Shared with the questions page, which reaches the same
   point for the same reason — a picture beside text. */
/* Stacked on a phone. The cover's flex basis has to be released with the
   direction, because a basis measures along whichever axis the container runs:
   `flex: 0 0 300px` is a 300px-wide column in a row, and a 300px-TALL box in a
   column. The picture inside is capped at 200px, so the other 100px became
   empty space between the picture and the artist's name — a gap nothing in the
   stylesheet appeared to ask for. */
@media (max-width: 560px) {
  .news-row { flex-direction: column; gap: 14px; }
  .news-cover { flex: 0 0 auto; }
}

/* ---- Questions (FAQ) page ---- */
/* 800, where plain prose pages are 760. Not an oversight and not a no-op —
   .page and .faq-page sit on the same element, so this is equal specificity
   and the later rule wins. Measured: the page renders at 800.

   Two measures, and the difference is a reason rather than an accident. 760 is
   text alone: contact, the estimate form, the page nobody means to land on.
   800 is text with a picture beside it — this page and the news feed, both of
   which give up a column to an image and need the words to keep their measure
   next to it. Change one of the pair and change the other. */
.faq-page { max-width: 800px; }
/* Normal weight is deliberate — bold was tried and looked wrong. The original
   sets these headings as GIF images (faq_headline2_*.gif) in a light,
   letterspaced face, so bold reads heavier than the site ever did. What
   differs from the original is the typeface, not the weight. */
.faq-section { text-transform: uppercase; font-weight: normal; font-size: 17px; color: var(--muted-strong); letter-spacing: .03em; margin: 8px 0 22px; }
.faq-list { margin-bottom: 44px; }
/* that 44px separates one section from the next; after the last one it has
   nothing to separate and just pushes the footer away */
.faq-list:last-child { margin-bottom: 0; }
.faq-item { display: flex; gap: var(--space-4); align-items: flex-start; margin-bottom: 26px; }
.faq-spot { flex: 0 0 90px; display: flex; justify-content: center; padding-top: 2px; }
.faq-spot img { max-width: 90px; height: auto; }
.faq-qa { flex: 1 1 auto; min-width: 0; }
/* --muted, not the #999 this used to be: that measured 2.40:1 and failed WCAG
   AA. Deliberately lighter than the .faq-section header above it, so the
   question still reads as subordinate — see --muted-strong at the top. */
.faq-q { color: var(--muted); font-weight: bold; font-size: 14px; margin: 0 0 3px; }
.faq-a { margin: 0; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--muted); text-decoration: underline; }
/* Not redundant, though it looks it. a:hover is (0,1,1) and so is the
   rule above, so the later one wins and the link would never change
   colour. Measured by forcing :hover and reading the computed value. */
.faq-a a:hover { color: var(--accent); }
/* The same 560 as the news rows, and the same reason: a picture beside
   text. Here the spot shrinks rather than moving, because an answer reads
   as one block with its illustration. */
@media (max-width: 560px) { .faq-item { gap: 14px; } .faq-spot { flex-basis: 60px; } .faq-spot img { max-width: 60px; } }

/* ---- Catalogs page ---- */
/* Same column as everything else. It was capped at 1000px with its own 15px
   padding, so the grid sat at 220..1220 against a header running 158..1282 —
   inset by sixty-odd pixels and lining up with nothing. main already caps at
   --wrap and pads, so this adds neither. 6px on top matches the artist pages. */
.catalog-page { max-width: var(--wrap); margin: 0 auto; padding: var(--page-top) 0 0; }
/* Two lines saying what a catalog is. Narrower than the grid on purpose — a
   line of body text this wide is hard to read, and the measure keeps it
   reading as an introduction rather than as a paragraph of page. */
.catalog-intro { max-width: 700px; margin: 0 auto var(--space-5); color: var(--ink); text-align: center; }
.catalog-intro p { margin: 0; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5) var(--space-4); }
.catalog-cell { display: block; text-align: center; color: var(--muted); }
.catalog-cover { display: flex; align-items: center; justify-content: center; height: 267px; }
.catalog-cover img { max-width: 100%; max-height: 267px; width: 267px; object-fit: contain; transition: opacity .15s ease; }
.catalog-cell:hover .catalog-cover img { opacity: .85; }
.catalog-title { display: block; margin-top: 14px; text-transform: uppercase; font-size: 13px; }

/* The catalog opened in place. Wider and taller than .viewer because a
   flipbook is a two-page spread rather than one picture, and it borrows that
   viewer's close button rather than growing a second kind. */
.cviewer {
  width: min(1180px, 96vw); max-width: none;
  height: min(880px, 92vh); height: min(880px, 92dvh); max-height: none;
  margin: auto; border: 0; border-radius: 2px; padding: 8px 12px 12px;
  background: var(--bg); color: var(--ink);
  box-shadow: 0 18px 50px rgb(var(--ink-rgb) / .45);
}
.cviewer::backdrop { background: rgb(var(--ink-rgb) / .62); }
/* display on [open] only — same trap as .viewer: setting it on the element
   outranks the browser's closed-dialog rule and it renders down the page. */
.cviewer[open] { display: flex; flex-direction: column; }
.cviewer .viewer-close { margin: 0 0 0 auto; }
/* min-height: 0 because a flex child will not shrink below its content, and
   without it the frame pushes the panel taller than the screen. */
.cviewer-stage { position: relative; flex: 1 1 auto; min-height: 0; }
/* An iframe has no intrinsic size to be laid out against, so it is given the
   stage's whole box explicitly rather than left to guess. */
.cviewer-book { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cviewer-wait {
  position: absolute; inset: 0; display: none; margin: 0;
  align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
}
.cviewer.is-waiting .cviewer-wait { display: flex; }
/* Full-bleed on a phone: a spread inside a margin inside a small screen leaves
   the catalog too small to read, and the backdrop is not worth the room. */
@media (max-width: 620px) {
  .cviewer { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; padding: 4px 8px 8px; }
}
/* The one grid on the site that counts its own columns instead of letting
   them fit — see the argument against that beside .gallery above. It is here
   because a catalog cover is a fixed-ratio card rather than artwork of unknown
   shape, so a part-filled last row would read as a gap in a set rather than as
   a gallery that ran out.

   At 900 the covers return to their old size so three narrow columns do not
   leave tall empty rows. At 600 the grid itself drops to two columns. Those
   numbers sit 30px and 20px from the nav's 930 and the viewer's 620, but they
   are separate layout decisions rather than shared breakpoints. */
@media (max-width: 900px) {
  .catalog-cover { height: 230px; }
  .catalog-cover img { max-height: 230px; width: auto; }
}
@media (max-width: 600px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; } }
