/* =============================================================================
   SILAS INGLES ART — shared stylesheet (v2, minimal)
   Direction: image-forward gallery in the spirit of grandedeluxe.com. The work
   is the interface; the chrome is a whisper. Light gallery-paper canvas, ink
   near-black, one restrained accent (riso pink). Minimal copy, minimal features.
   Blank-slate per Operations/Core/design-philosophy.md — grande is a reference
   for RESTRAINT and image-density, not a look to copy.
   Accessibility (client hard-rule): AA contrast, focus rings, reduced-motion.
   ========================================================================== */

/* ---- self-hosted fonts (latin subset, was render-blocking Google Fonts) ----
   Familjen Grotesk + Grandstander ship as variable woff2, so one file each
   covers the weight range; Space Mono is static 400. Same-origin, no cross-
   origin round-trips. woff2 files live in assets/fonts/. */
@font-face {
  font-family: "Familjen Grotesk"; font-style: normal; font-weight: 400 500;
  font-display: swap; src: url("fonts/familjen-grotesk-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Grandstander"; font-style: normal; font-weight: 600 700;
  font-display: swap; src: url("fonts/grandstander-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("fonts/space-mono-latin.woff2") format("woff2");
}

:root {
  --paper:   #F4F2EB;   /* warm gallery off-white */
  --paper-2: #ECE9DF;   /* faint panel */
  --ink:     #17140F;   /* warm near-black (never pure #000) */
  --ink-70:  #4A463E;   /* secondary text (AA on paper) */
  --muted:   #6C685F;   /* meta (AA on paper for small text) */
  --line:    #DEDACE;   /* hairlines */
  --accent:  #C4145F;   /* deep riso pink — AA-safe (~5:1) for small text on paper */
  --sold:    #A29D92;   /* sold / unavailable */

  --maxw: 1600px;
  --gutter: clamp(1rem, 3vw, 2.25rem);
  --gap: clamp(.5rem, 1vw, .85rem);   /* tight, grande-like grid gap */

  --font-sans: "Familjen Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --font-display: "Grandstander", "Familjen Grotesk", system-ui, sans-serif;  /* matched to Silas's logo: rounded, thick, steady strokes with hand-made warmth */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 104px;   /* taller header = more room to the gallery (grande-style) */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  /* sticky-footer-2026-07-17: flex column so short pages (contact) keep the
     footer at the viewport bottom, matching every taller page. Overlays
     (drawer, scrim) are position:fixed and unaffected. */
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: var(--paper); padding: .7rem 1rem; font-family: var(--font-mono); font-size: .8rem; }
.skip:focus { left: .75rem; top: .75rem; }

/* ---- type ------------------------------------------------------------- */
h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
/* logo-style display font (Modak, matched to Silas's hand-drawn logo) on
   headings, subheadings, nav titles and subtitles. Body/prices stay legible. */
h1, h2, h3, .page-title, .detail-h, .drawer-head h2 {
  font-family: var(--font-display); font-weight: 700; line-height: 1.02;
  text-transform: uppercase;     /* uniform block, "kept in the box", like the logo */
  letter-spacing: .02em;
}
.site-header .nav-mid a, .site-header .cart-btn { font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; }
.mono { font-family: var(--font-mono); }
.meta { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.muted { color: var(--ink-70); }
.hnote { color: var(--ink-70); max-width: 60ch; }
p { max-width: 66ch; }
a.link { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; transition: text-decoration-color .15s var(--ease), color .15s var(--ease); }
a.link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---- header ----------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: var(--header-h); padding-block: .4rem; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; gap: .18rem; }
.brand b { font-weight: 700; font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; }
.brand b i { color: var(--accent); font-style: normal; }
.brand span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.brand-logo { height: 56px; width: auto; display: block; }
.nav-mid { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); list-style: none; }
.nav-mid a { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-70); padding: .3rem 0; }
.nav-mid a:hover, .nav-mid a[aria-current="page"] { color: var(--ink); }
.nav-mid a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .3em; }
.nav-right { display: flex; align-items: center; gap: .9rem; }
.cart-btn { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.cart-btn:hover { color: var(--accent); }
.cart-count { font-weight: 700; color: var(--accent); }
.nav-toggle { display: none; }

/* mobile pass 2026-07-17 (deploy marker: mobile-2026-07-17) — crafted nav panel
   (scrim, staggered links, scroll lock; Escape/outside-tap close live in app.js),
   single-column gallery rhythm, squat sample placeholders,
   stacked footer legal links with real hit targets. */
@media (max-width: 720px) {
  :root { --header-h: 76px; }
  .brand-logo { height: 44px; }
  .nav-toggle, .nav-mid a, .cart-btn, .piece-link, .btn { -webkit-tap-highlight-color: transparent; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; position: relative; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: absolute; transition: transform .22s var(--ease), opacity .22s var(--ease), background-color .16s var(--ease); }
  .nav-toggle span::before { transform: translateY(-6px); } .nav-toggle span::after { transform: translateY(6px); }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }
  /* Closed menu is anchored at top:header-h, so translateY(-120%) alone leaves its
     last link peeking above the header. visibility:hidden guarantees a clean clear;
     it flips back on open (and stays visible through the close transition). */
  .nav-mid { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--gutter); transform: translateY(-120%); visibility: hidden; pointer-events: none; transition: transform .3s var(--ease), visibility 0s linear .3s; }
  .nav-mid.open { transform: translateY(0); visibility: visible; pointer-events: auto; transition: transform .3s var(--ease), visibility 0s; }
  /* links settle in one beat behind the panel — whisper-level stagger, no bounce */
  .nav-mid li { opacity: 0; transform: translateY(-10px); transition: opacity .24s var(--ease), transform .24s var(--ease); }
  .nav-mid.open li { opacity: 1; transform: none; }
  .nav-mid.open li:nth-child(1) { transition-delay: .05s; }
  .nav-mid.open li:nth-child(2) { transition-delay: .09s; }
  .nav-mid.open li:nth-child(3) { transition-delay: .13s; }
  .nav-mid.open li:nth-child(4) { transition-delay: .17s; }
  .nav-mid a { font-size: 1.1rem; padding: .9rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-mid li:last-child a { border-bottom: 0; }   /* the panel's own border closes the list */
  .nav-mid a:active { color: var(--accent); }      /* touch feedback: no hover on coarse pointers */
  /* scrim quiets the page under the open menu; sits below the sticky header (z 100)
     so the header + panel stay crisp above it. app.js injects the element. */
  .nav-scrim { position: fixed; inset: 0; z-index: 90; background: rgb(23 20 15 / .32); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s var(--ease), visibility 0s linear .3s; }
  .nav-scrim.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s var(--ease), visibility 0s; }
  html.nav-locked { overflow: hidden; }            /* page holds still behind the open menu */
  @media (prefers-reduced-motion: reduce) { .nav-mid, .nav-mid li, .nav-scrim, .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { transition: none; } }
}

/* ---- masthead (one quiet line, grande-style) -------------------------- */
.masthead { padding-block: clamp(1.1rem, 3vw, 2rem) clamp(.85rem, 2vw, 1.25rem); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 1.5rem; }
.masthead h1 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.01em; }
.masthead .meta { max-width: 46ch; }

/* ---- gallery: the work is the page ------------------------------------ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.gallery { columns: 300px; column-gap: var(--gap); padding-block: clamp(2.25rem, 4.5vw, 3.5rem) clamp(2rem, 5vw, 4rem); }
@media (min-width: 1400px) { .gallery { column-count: 5; } }
/* Chrome sometimes fragments a tile across the multi-column boundary despite
   break-inside; the inline-block + explicit break guards below stop the slice. */
.piece { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; display: inline-block; width: 100%; vertical-align: top; margin-bottom: var(--gap); }
.piece-fig { margin: 0; }
.piece-img {
  position: relative; overflow: hidden; background: var(--paper-2);
  border: 1px solid var(--line);
  /* faint placeholder tone; the real artwork photo replaces and covers it */
}
.piece-img img { width: 100%; height: auto; display: block; }
/* varied heights so placeholders read as a real masonry */
.piece:nth-child(4n+1) .ph { aspect-ratio: 3 / 4; }
.piece:nth-child(4n+2) .ph { aspect-ratio: 4 / 5; }
.piece:nth-child(4n+3) .ph { aspect-ratio: 1 / 1; }
.piece:nth-child(4n)   .ph { aspect-ratio: 5 / 7; }
.ph { display: grid; place-items: center; padding: 1rem; }
.ph small { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.piece-cap { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; padding: .5rem .15rem .2rem; }
.piece-cap .t { font-size: .9rem; font-weight: 500; }
.piece-cap .p { font-family: var(--font-mono); font-size: .82rem; white-space: nowrap; color: var(--ink); }
.piece-cap .p.sold { color: var(--muted); }
/* the whole tile is a link to the piece's product page — the price/details and
   the Add to cart live there, keeping the gallery itself pure image + status. */
.piece-link { display: block; color: inherit; }
.piece-link .t { transition: color .15s var(--ease); }
.piece-link:hover .piece-img { border-color: var(--ink); }
.piece-link:hover .t { color: var(--accent); }
.piece-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* sold / reserved pieces keep their colour; a small corner tag on the image
   says so instead (client-qs-2026-07-18 — replaced the old grayscale wash,
   which Silas felt dulled the gallery). */
.sold-tag {
  position: absolute; top: .55rem; left: .55rem; z-index: 1;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  padding: .3rem .55rem; pointer-events: none;
}
/* optional type subtitle under the tile title ("Original" / "Print" / ...) */
.piece-cap .tt { display: block; min-width: 0; }
.piece-cap .k { display: block; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: .18rem; }

/* ---- product page (a piece gets its own page; buying happens here) ----- */
.product { padding-block: clamp(1.25rem, 3.5vw, 2.5rem) clamp(3rem, 8vw, 6rem); }
.breadcrumb { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; min-height: 40px; margin-bottom: clamp(1rem, 3vw, 2rem); }
.breadcrumb:hover, .breadcrumb:focus-visible { color: var(--accent); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 820px) { .product-grid { grid-template-columns: 1fr; gap: clamp(1.5rem, 5vw, 2.25rem); } }
/* Artwork ratios vary widely (a tall cassowary is 292x720, a square print is
   1:1). Never crop the art: the frame shrink-wraps the image and the whole
   piece is size-capped so it always fits on screen. Deploy marker: product-fit-2026-07-16 */
.product-media { margin: 0; position: relative; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); width: fit-content; max-width: 100%; margin-inline: auto; }
.product-media img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(74vh, 680px); }
/* no-photo placeholder keeps a stable box so the layout doesn't collapse */
.product-media:has(.ph) { width: 100%; aspect-ratio: 4 / 5; display: grid; place-items: center; }
.product-media .ph { padding: 1.5rem; }
.product-media .ph small { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
/* product page: the artwork stays in colour when sold — the status box in the
   info column carries the word (client-qs-2026-07-18) */
/* left column wraps the artwork + its thumbnail row (multiimg-2026-07-18) */
.product-left { min-width: 0; }
.product-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: .75rem; }
.thumbbtn { padding: 0; border: 1px solid var(--line); background: var(--paper-2); cursor: pointer; line-height: 0; }
.thumbbtn img { width: 56px; height: 56px; object-fit: cover; display: block; }
.thumbbtn[aria-pressed="true"] { border-color: var(--ink); }
.thumbbtn:hover { border-color: var(--ink); }
.thumbbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* quiet stock count for tracked pieces (prints, stickers) */
.product-stock { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.product-info { display: grid; gap: 1.1rem; align-content: start; }
.product-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.5rem, 3.4vw, 2.35rem); line-height: 1.04; }
.product-medium { font-family: var(--font-mono); font-size: .84rem; letter-spacing: .02em; color: var(--ink-70); }
.product-price { font-family: var(--font-mono); font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--ink); }
.product-price.is-sold { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.product-status { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: .6rem .9rem; justify-self: start; }
.product-add.btn { justify-self: start; min-width: 190px; margin-top: .2rem; }
.product-desc { color: var(--ink-70); line-height: 1.6; max-width: 48ch; display: grid; gap: .55rem; margin-top: .4rem; }
.product-desc p { max-width: none; }
.product-ship { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: .5rem; }
/* links inside mono meta rows must read as links, not as more meta text */
.product-ship a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; }
.product-ship a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* continued gallery under the piece: no heading by design, separated by a
   hairline rule and air; reuses the front gallery's masonry with its own
   padding so the base .gallery padding-block doesn't double up here. */
.product-more { border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 7vw, 5rem); padding-top: clamp(1.75rem, 4vw, 2.75rem); }
.gallery--more { padding-block: 0 clamp(1rem, 3vw, 2rem); }

/* minimal filter row (functional for a shop; kept quiet) */
.filters { display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; list-style: none; padding-bottom: clamp(1rem, 2.5vw, 1.75rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.filter { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); min-height: 40px; }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .3em; }

/* ---- generic page (about / contact / blog) ---------------------------- */
.page { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem); }
/* journal-heading-2026-07-21: sized to match .about-h/.contact-h exactly, so
   every inner page opens at the same quiet scale; the lede drops to the About
   lede's body character to keep the hierarchy the right way up. */
.page-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .05em; margin-bottom: .8rem; line-height: 1.1; }
.lede { font-family: var(--font-sans); font-weight: 400; font-size: .98rem; color: var(--ink-70); line-height: 1.6; max-width: 52ch; }
.rule { border: 0; border-top: 1px solid var(--line); margin-block: clamp(2rem, 5vw, 3.5rem); }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 780px) { .two { grid-template-columns: 1fr; } }
.portrait { aspect-ratio: 4 / 5; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; }
.portrait small { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.owncopy { display: grid; gap: .65rem; background: var(--paper-2); padding: clamp(1rem, 2.4vw, 1.5rem); color: var(--ink-70); }
.owncopy p { max-width: 60ch; margin: 0; }
.factlist { list-style: none; display: grid; gap: .55rem; }
.factlist li { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-70); line-height: 1.5; }
.factlist b { color: var(--ink); }

/* ---- about page ------------------------------------------------------- */
/* Minimal: all copy on one side, photo on the other. One uniform small heading size. */
.about { max-width: 1200px; }
.about-grid {
  display: grid;
  /* two columns again (silas-updates-2026-07-21): Silas supplied his photos
     and marked up where they go — copy left, photo stack right */
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(4rem, 12vw, 8rem);
}
.about-copy {
  display: grid; gap: clamp(1.9rem, 3.5vw, 2.75rem);
  max-width: 50ch;   /* left-anchored */
}
.about-h {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .05em; margin-bottom: .8rem; line-height: 1.1;
}
.about-lede, .about-note {
  font-family: var(--font-sans); font-weight: 400; text-transform: none;
  color: var(--ink-70); line-height: 1.6; max-width: none; font-size: .98rem;
  text-align: justify; text-justify: inter-word; hyphens: auto;
}
.about-note { margin-top: .9rem; }
.about-list { list-style: none; display: grid; gap: .6rem; padding: 0; margin: 0; }
.about-list li { font-size: .92rem; line-height: 1.5; color: var(--ink-70); }
.about-list b { color: var(--ink); }
.about-figure {
  margin: 0; align-self: start; justify-self: center; width: 100%; max-width: 560px;
  aspect-ratio: 4 / 5; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  border: 1px dashed var(--line);       /* faint slot, not a heavy grey box */
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; line-height: 1.9; color: var(--muted); padding: 1rem;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-figure.has-img { border: 0; padding: 0; aspect-ratio: auto; display: block; }
.about-figure.has-img img { border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.portrait-cap { padding-top: .5rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* Photo stack + CAC logo (silas-updates-2026-07-21): two portraits stacked per
   Silas's own layout mockup (square self-portrait above the easel shot). Natural
   ratios here — the 4:5 crop is for the old single-portrait slot, not these. The
   collective's logo sits under his CAC statement at a quiet size (transparent
   PNG, edge-cut, so it rests straight on the paper). */
.about-photos { display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); align-self: start; justify-self: center; width: 100%; max-width: 560px; }
.about-photos .about-figure.has-img img { aspect-ratio: auto; }
.cac-logo { display: block; width: min(150px, 42%); height: auto; margin-top: 1.2rem; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: clamp(2rem, 6vw, 3rem); padding-block: clamp(2rem, 6vw, 3.5rem) clamp(3rem, 10vw, 5rem); }
  .about-copy { max-width: 52ch; transform: none; margin-inline: 0; }
  /* justify belongs to the wide desktop column; at ~45ch it opens rivers between
     words, which fights the client's readability hard-rule. Ragged right on mobile. */
  .about-lede, .about-note { max-width: none; text-align: left; hyphens: none; }
}

/* ---- contact (one quiet column; email is the door) --------------------- */
.contact-min {
  max-width: 620px;
  display: grid;
  gap: clamp(1.9rem, 3.5vw, 2.75rem);
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(4rem, 12vw, 8rem);
}
.contact-h {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.05rem; letter-spacing: .05em; margin-bottom: .8rem; line-height: 1.1;
}
.contact-note { color: var(--ink-70); line-height: 1.6; max-width: 46ch; font-size: .98rem; }
.contact .inline-mail { margin-top: 1.1rem; font-size: clamp(1.05rem, 2.4vw, 1.6rem); }
.contact .form-note { margin-top: .55rem; }
.contact .meta { margin-top: .9rem; max-width: none; }

/* ---- policy page (quiet column, same pattern as contact) --------------- */
.policy-sub { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); margin: 1.4rem 0 .45rem; }
.policy-list { padding-left: 1.1rem; margin-top: .5rem; display: grid; gap: .35rem; color: var(--ink-70); font-size: .95rem; line-height: 1.6; max-width: 46ch; }

/* ---- journal feed (journal-2026-07-18) --------------------------------
   Gallery-flow, NOT a formal grid: the client asked the journal to feel less
   uniform, like the front gallery's natural tetris flow. Mirrors the gallery's
   CSS multi-column masonry and the same inline-block + break-avoid anti-slice
   hardening (see .piece). Each card is a real button that opens an in-page
   overlay with the full post. */
.feed { columns: 300px; column-gap: clamp(1.25rem, 2.5vw, 2rem); padding-block: clamp(.25rem, 1.5vw, 1rem); }
@media (min-width: 1500px) { .feed { column-count: 4; } }

/* Journal empty state (journal-empty-2026-07-21): the only static content in the
   feed; cms.js overwrites the whole feed once published posts exist. The :has()
   rule switches the multicol off while the feed is empty so the line centres in
   the full feed width; column-span is the fallback for any :has()-less engine.
   min-height centres it in the page's middle. */
.feed:has(> .feed-empty) { columns: auto; }
.feed-empty { column-span: all; max-width: none; min-height: clamp(220px, 40vh, 420px); display: grid; place-items: center; text-align: center; padding-inline: var(--gutter); font-size: .95rem; color: var(--ink-70); }
/* same slice guard the gallery uses: a card must never fragment across columns */
.post {
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  display: inline-block; width: 100%; vertical-align: top;
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
  text-align: left; background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.post-media { aspect-ratio: 3 / 2; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; margin-bottom: .9rem; transition: border-color .15s var(--ease); }
.post-media small { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* a real photo shows at its natural ratio (like the gallery), never cropped */
.post-media.has-img { aspect-ratio: auto; }
.post-media.has-img img { width: 100%; height: auto; display: block; }
.post-meta { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.post-title { display: block; font-size: 1.2rem; font-weight: 500; line-height: 1.25; margin-bottom: .4rem; transition: color .15s var(--ease); }
.post-snippet { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-70); overflow-wrap: break-word; }
.post:hover .post-media { border-color: var(--ink); }
.post:hover .post-title { color: var(--accent); }
.post:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---- journal post overlay (journal-2026-07-18) ------------------------
   In-page dialog, not a new page. Quiet chrome to match the site: paper panel,
   hairline frame, mono meta, generous air. Animates opacity/transform only and
   collapses under reduced motion. Native <dialog> gives the focus trap, focus
   return and Esc; the JS adds backdrop-close and the open/close transition. */
.post-dialog { border: 0; padding: 0; background: transparent; width: min(720px, 94vw); max-width: 94vw; max-height: 92vh; color: var(--ink); }
.post-dialog::backdrop { background: rgb(23 20 15 / .45); }
.post-dialog-inner { display: flex; flex-direction: column; gap: .9rem; background: var(--paper); border: 1px solid var(--ink); max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.4rem, 3.5vw, 2.5rem); opacity: 0; transform: translateY(8px); transition: opacity .22s var(--ease), transform .22s var(--ease); }
.post-dialog.is-open .post-dialog-inner { opacity: 1; transform: none; }
.post-dialog-close { align-self: flex-end; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-70); text-decoration: underline; text-underline-offset: .2em; min-height: 44px; padding: .3rem .25rem; cursor: pointer; background: none; border: 0; }
.post-dialog-close:hover, .post-dialog-close:focus-visible { color: var(--accent); }
.post-dialog-media { margin: 0; }
.post-dialog-media img { display: block; width: auto; max-width: 100%; height: auto; max-height: 58vh; margin-inline: auto; border: 1px solid var(--line); background: var(--paper-2); }
.post-dialog-meta { margin: 0; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.post-dialog-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.05; margin: 0; }
.post-dialog-body { display: grid; gap: .8rem; max-width: 62ch; color: var(--ink-70); line-height: 1.7; }
.post-dialog-body p { margin: 0; }
body.post-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .post-dialog-inner { transition: none; } }

/* ---- forms ------------------------------------------------------------ */
.form { display: grid; gap: 1.15rem; max-width: 560px; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.field .req { color: var(--accent); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field input, .field textarea { font-family: var(--font-sans); font-size: 1rem; background: var(--paper); color: var(--ink); border: 1px solid var(--ink-70); border-radius: 0; padding: .8rem .9rem; width: 100%; min-height: 50px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: var(--accent); }
.field .error { font-family: var(--font-mono); font-size: .76rem; color: var(--accent); }
.filedrop { border: 1px dashed var(--ink-70); padding: 1.1rem; text-align: center; color: var(--ink-70); font-family: var(--font-mono); font-size: .8rem; cursor: pointer; }
.filedrop:hover { border-color: var(--ink); }
fieldset { border: 1px solid var(--line); padding: 1rem 1.15rem 1.2rem; }
legend { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; padding-inline: .35rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-row label { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--ink-70); padding: .45rem .8rem; min-height: 44px; cursor: pointer; font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; }
.radio-row input { accent-color: var(--accent); width: 17px; height: 17px; }
.radio-row label:has(input:checked) { border-color: var(--accent); color: var(--accent); }
.form-note { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.form-status { font-family: var(--font-mono); font-size: .84rem; padding: .8rem .9rem; border: 1px solid var(--accent); color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; padding: .85rem 1.4rem; min-height: 48px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); transition: background-color .15s var(--ease), color .15s var(--ease); touch-action: manipulation; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

.inline-mail { display: inline-flex; align-items: baseline; gap: .5rem; font-family: var(--font-mono); font-size: clamp(1rem, 2vw, 1.35rem); }
.inline-mail a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .25em; }
.inline-mail a:hover { color: var(--accent); }

.signup { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; max-width: 480px; }
.signup .form-status { flex-basis: 100%; }
.signup-block .meta { margin-bottom: .75rem; }
.signup input { flex: 1 1 220px; font-family: var(--font-sans); font-size: 1rem; background: var(--paper); color: var(--ink); border: 1px solid var(--ink-70); padding: .75rem .9rem; min-height: 48px; }
.signup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---- cart drawer (minimal) -------------------------------------------- */
/* ---- mailing-list invite (nl-invite-2026-07-21) ------------------------
   Gallery-only quiet card, bottom-right. Enters on opacity + translate
   (compositor props only) with the site ease; sits BELOW the cart scrim and
   drawer (z 140 < 150/160) so the cart always outranks it. [hidden] keeps it
   display:none; .is-in drives the slide; reduced motion gets a plain fade.
   The soft shadow is functional, not decorative: card and page share the same
   paper, so the border needs a lift to separate them. */
.nl-invite { position: fixed; right: clamp(.75rem, 2vw, 1.5rem); bottom: calc(clamp(.75rem, 2vw, 1.5rem) + env(safe-area-inset-bottom, 0px)); z-index: 140; width: min(340px, calc(100vw - 1.5rem)); background: var(--paper); border: 1px solid var(--ink); padding: 1.05rem 1.1rem 1.1rem; box-shadow: 0 1px 2px rgb(23 20 15 / .06), 0 12px 32px rgb(23 20 15 / .12); opacity: 0; transform: translateY(14px); }
.nl-invite:not([hidden]) { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.nl-invite.is-in { opacity: 1; transform: none; }
.nl-invite .meta { max-width: none; margin: 0 0 .7rem; padding-right: 2.6rem; line-height: 1.5; }
.nl-invite .signup { max-width: none; }
.nl-invite .signup .btn { flex: 1 1 auto; }
.nl-close { position: absolute; top: 0; right: 0; min-width: 44px; min-height: 44px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: none; border: 0; cursor: pointer; }
.nl-close:hover, .nl-close:focus-visible { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .nl-invite { transform: none; }
  .nl-invite:not([hidden]) { transition: opacity .3s ease; }
}

.drawer-scrim { position: fixed; inset: 0; z-index: 150; background: rgb(23 20 15 / .35); opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), visibility .22s var(--ease); }
.drawer-scrim.open { opacity: 1; visibility: visible; }
/* visibility rides the transition so the closed drawer is unreachable by Tab
   and assistive tech (offscreen alone leaves its buttons in the tab order) */
.drawer { position: fixed; top: 0; right: 0; z-index: 160; height: 100dvh; width: min(400px, 92vw); background: var(--paper); border-left: 1px solid var(--ink); transform: translateX(100%); visibility: hidden; transition: transform .28s var(--ease), visibility 0s linear .28s; display: flex; flex-direction: column; overscroll-behavior: contain; }
.drawer.open { transform: translateX(0); visibility: visible; transition: transform .28s var(--ease), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim { transition: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.drawer-close { width: 44px; height: 44px; font-family: var(--font-mono); }
.drawer-close:hover { color: var(--accent); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.25rem; }
.cart-line { display: flex; gap: .9rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 54px; height: 68px; flex: 0 0 auto; background: var(--paper-2); border: 1px solid var(--line); }
/* the line's artwork photo fills the frame (cart-thumbs-2026-07-22) */
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-line .info { flex: 1; font-size: .9rem; }
.cart-line .info b { font-weight: 500; }
.cart-line .rm { color: var(--muted); font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; text-decoration: underline; padding: .5rem 0; }
.cart-line .rm:hover { color: var(--accent); }
/* qty stepper, only on tracked-stock lines (stock-2026-07-18) */
.cart-line .qtyrow { display: inline-flex; align-items: center; gap: .15rem; margin-right: .9rem; }
.cart-line .qbtn { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--paper); font-family: var(--font-mono); font-size: .8rem; cursor: pointer; }
.cart-line .qbtn:hover:not(:disabled) { border-color: var(--ink); }
.cart-line .qbtn:disabled { color: var(--muted); cursor: default; }
.cart-line .qbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cart-line .qn { font-family: var(--font-mono); font-size: .8rem; min-width: 1.6rem; text-align: center; }
.cart-empty { color: var(--muted); font-family: var(--font-mono); font-size: .84rem; text-align: center; padding: 2.5rem 1rem; }
.drawer-foot { padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .84rem; text-transform: uppercase; margin-bottom: .9rem; }
.drawer-foot .btn { width: 100%; }
.drawer-note { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); text-align: center; margin-top: .7rem; line-height: 1.5; }

/* checkout return strip (stripe-scaffold-2026-07-18): one quiet line at the
   top of main after Stripe sends the buyer back; hairline-framed, no chrome. */
.checkout-return { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-70); border-block: 1px solid var(--line); padding: .8rem var(--gutter); margin: 0 0 clamp(1.2rem, 3vw, 2rem); line-height: 1.55; }

/* ---- footer (one thin strip) ------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 6vw, 5rem); }
.footer-inner { display: grid; gap: .85rem; padding-block: clamp(1.1rem, 2vw, 1.6rem); }
.acknowledgement { margin: 0; font-size: .78rem; color: var(--muted); max-width: 92ch; line-height: 1.55; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; }
.footer-legal p, .footer-legal a { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.footer-legal a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .2em; }
.footer-legal a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---- mobile formatting (mobile-2026-07-17) ----------------------------
   Lives at the END of the sheet on purpose: these override base rules that
   appear later in the file than the header's mobile block (same specificity,
   source order decides). Nav-panel mobile rules stay in the header block. */
@media (max-width: 720px) {
  /* single-column gallery: keep the grande-tight image edge, but give each
     work-plus-caption group its own beat of air before the next piece */
  .piece { margin-bottom: 1.35rem; }
  .piece-cap { padding: .55rem .1rem .2rem; }
  /* empty sample slots read as squares of intent, not three screens of void
     (desktop keeps the varied masonry ratios) */
  .piece:nth-child(n) .ph { aspect-ratio: 3 / 2; }

  /* footer legal: stacked list with readable size + real touch targets
     (was an 11px wrap-row with ~17px-tall links) */
  .footer-legal { flex-direction: column; align-items: flex-start; gap: .1rem; }
  .footer-legal p, .footer-legal a { font-size: .75rem; }
  .footer-legal a { display: inline-block; padding-block: .7rem; }
}

/* ---- CMS no-flash gate (cms-noflash-2026-07-17) -----------------------
   The public pages ship static fallback tiles/posts; cms.js then swaps in the
   published rows, which used to flash the placeholders before "adjusting".
   The head script adds html.cms-wait before first paint to hold the swappable
   regions at opacity 0; cms.js removes it (settled()) once each covered fetch
   resolves — on success AND failure — so the swap lands while hidden and then
   fades in. A 1400ms head-script timeout is the ceiling: if the fetch is slow,
   fails, or JS never runs, the class is dropped (or never added) and the static
   fallback stays fully visible. Opacity only — no display/visibility — so layout
   is reserved and there's no CLS. Viewport-independent, hence top level. */
html.cms-wait [data-gallery],
html.cms-wait [data-feed],
html.cms-wait .product-grid,
html.cms-wait .product-more { opacity: 0; }
[data-gallery], [data-feed], .product-grid, .product-more { transition: opacity .25s var(--ease); }
@media (prefers-reduced-motion: reduce) { [data-gallery], [data-feed], .product-grid, .product-more { transition: none; } }
