/* FORM base styles: paper, typography, sheet, focus, placeholders. Needs tokens.css. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
/* anchors and the skip link land below the sticky header. --head-h is the docked header's height
   (components/chrome.css); a page without the chrome has no header to clear. */
html{scroll-padding-top:calc(var(--head-h, 0px) + 16px)}
body{margin:0; color:var(--ink); background:var(--paper) var(--grain); font:400 var(--step-0)/1.55 var(--font-body)}
img{display:block; max-width:100%; height:auto}
a{color:inherit; text-underline-offset:.18em; text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid currentColor; outline-offset:4px}
h1,h2,h3,p,ol,ul,dl,dd,figure,blockquote{margin:0}
ul,ol{padding:0; list-style:none}
h1,h2,h3{font-family:var(--font-display); font-weight:500; line-height:.96; letter-spacing:-.005em; text-wrap:balance}
h1{font-size:var(--step-5); line-height:.92}
h2{font-size:var(--step-4)}
h3{font-size:var(--step-2)}
p{max-width:34em}
p + p{margin-top:.9em}
.lead{font-size:var(--step-1); line-height:1.4}
.small,figcaption{font-size:var(--step--1); line-height:1.45; color:var(--soft)}
.skip{position:absolute; left:-999px}
.skip:focus{left:16px; top:16px; background:#000; color:#fff; padding:10px 14px; z-index:50}

/* hand lettering: annotations only */
.hand,.note{font-family:var(--font-hand); line-height:1; letter-spacing:var(--note-track); text-transform:uppercase; color:var(--graphite)}
.note{font-size:var(--note-size); width:fit-content; max-width:16em; transform:rotate(var(--note-tilt))}

/* the sheet: ruled frame, content in a 12 column grid */
.sheet{position:relative; margin:0 var(--frame); border:var(--lw-line) solid var(--graphite)}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 var(--pad) 0 var(--margin-col)}
.grid{position:relative}
@media (min-width:900px){
  .wrap{padding:0 var(--pad)}
  .grid{display:grid; grid-template-columns:repeat(var(--grid-cols),minmax(0,1fr)); column-gap:var(--gutter)}
}
/* grid shown as tick marks where a section starts */
/* the column ticks read as stray dots between sections (Joel 2026-11-21): not drawn */
.ticks{display:none !important; height:7px; opacity:.55; background:linear-gradient(90deg,var(--graphite) var(--lw-line),transparent 0) 0 0/calc((100% + var(--gutter))/var(--grid-cols)) 100% repeat-x}
.rule{border:0; border-top:var(--lw-line) solid var(--graphite); margin:0}

/* path channels: the lanes the path line runs down (pathline.js). On a phone the lane is the
   sheet's margin column, the full height of its grid. From 900px it is grid column --c. */
.grid > [data-path-channel]{position:absolute; left:calc(var(--margin-col) * -1); top:0; bottom:0; width:44px}
@media (min-width:900px){
  .grid > [data-path-channel]{position:static; width:auto; grid-column:var(--c,7); grid-row:1}
}
.hair{border:0; border-top:1px solid var(--hair); margin:0}
/* words in an h1 that the path line underlines: room under them for the pencil */

/* the black band: pencil turns to chalk. The two pencil tokens are re-pointed, so everything drawn
   inside a band (doodles, frames, leaders, rules) is chalk without knowing where it is. The path
   line lives outside the band's subtree and switches by itself (pathline.js). */
.band{background:var(--ink); color:var(--chalk); --graphite:var(--chalk); --graphite-2:var(--chalk-2); --pencil:var(--chalk)}
.band .hand,.band .note{color:var(--chalk-soft)}
.band figcaption,.band .small{color:var(--chalk-soft)}

/* an inner page's sheet: the header above and the footer below close the frame, so only the sides are ruled */
.sheet.page{border-top:0; border-bottom:0; overflow:clip}

/* how an inner page opens (h1, then the lead) and how every page closes (a heading, then .act: the
   one button and the phone number) */
.open{padding:var(--sp-5) 0 var(--sp-6)}
.open .lead{margin-top:var(--sp-4)}
.open .up{margin-bottom:var(--sp-3)}   /* the way back up, above the h1 (a project to the gallery, a place to the areas) */
.end{padding:0 0 calc(var(--sp-6) + 24px)}
.end .ticks{margin-bottom:var(--sp-5)}
.act{margin-top:var(--sp-5)}
.act p{margin-top:44px}

/* a page of words (privacy, terms): headings at h3 size, plain bulleted lists, room between sections */
.legal{padding-bottom:var(--sp-6)}
.legal .ticks{margin-bottom:var(--sp-5)}
.legal h2{font-size:var(--step-2); margin:var(--sp-5) 0 var(--sp-2)}
.legal h2:first-child{margin-top:0}
.legal ul{list-style:disc; padding-left:1.2em; margin-top:.9em}
.legal li + li{margin-top:.3em}
.legal ul + p{margin-top:.9em}

/* the enquiry walkthrough (system/walkthrough.js): on Contact, and under the hero on the homepage.
   .walk holds the intro, the no-JavaScript fallback (.walk-nojs) and the mount point. */
.walk > p{margin-bottom:var(--sp-3)}
html.js .walk-nojs{display:none}
.walk-nojs{border-top:var(--lw-line) solid var(--graphite); padding-top:var(--sp-3)}
.walk-nojs p{margin-top:var(--sp-2)}
.walk-nojs a{font-family:var(--font-display); font-weight:500; font-size:var(--step-1)}
/* compact (Joel 2026-11-21): the answers are tags that wrap, not a tall list. The radio or tick box
   stays real and focusable; it is hidden, and the tag shows its state. */
.walk-progress{margin-bottom:6px; font-size:var(--step--1); line-height:1.4; color:var(--soft)}
.walk fieldset{border:0; padding:0; margin:0; min-width:0}
.walk legend:focus{outline:none}   /* focused by script on each step, for screen readers; it is not a control */
.walk legend{padding:0; margin-bottom:6px; font-family:var(--font-display); font-weight:500; font-size:clamp(26px,2.2vw,32px); line-height:1.05; text-wrap:balance}
.walk-help{margin-bottom:4px}
.walk-options{margin-top:12px; display:flex; flex-wrap:wrap; gap:8px}
.walk-opt{position:relative; display:flex; flex-direction:column; justify-content:center; min-height:44px; padding:9px 15px; cursor:pointer;
  border:var(--lw-line) solid var(--graphite); border-radius:3px; font-size:var(--step-0); line-height:1.25}
.walk-opt input{position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer}
.walk-opt{transition:background-color .18s, color .18s, border-color .18s, transform .14s cubic-bezier(.2,.75,.2,1)}
.walk-opt:hover{border-color:var(--ink); transform:translateY(-1px)}
.walk-opt:active{transform:scale(.96)}
/* moving between steps (walkthrough.js swap): the new step slides in, clipped to the walkthrough */
[data-walkthrough]{overflow-x:clip; overflow-clip-margin:8px}
/* how far through: a pencil line that lengthens with each step */
.walk-bar{display:block; height:2px; margin:0 0 14px; background:color-mix(in srgb, currentColor 18%, transparent); border-radius:1px; overflow:hidden}
.walk-bar > span{display:block; height:100%; width:0; background:currentColor; transition:width .6s cubic-bezier(.2,.75,.2,1)}
.walk-thanks-tick{display:block; width:48px; height:40px; margin-bottom:10px; fill:none; stroke:currentColor; stroke-width:3; stroke-linecap:round; stroke-linejoin:round}
.walk-thanks-tick path{stroke-dasharray:1; stroke-dashoffset:1; animation:walk-tick .7s .35s cubic-bezier(.4,0,.2,1) forwards}
@keyframes walk-tick{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){
  .walk-opt,.walk-bar > span{transition:none}
  .walk-opt:hover,.walk-opt:active{transform:none}
  .walk-thanks-tick path{animation:none; stroke-dashoffset:0}
}
.walk-opt:has(input:checked){background:var(--ink); border-color:var(--ink); color:var(--paper)}
.walk-opt:has(input:focus-visible){outline:2px solid var(--ink); outline-offset:3px}
.walk-hint{display:block; margin-top:2px; opacity:.8}
.walk-field{margin-top:12px}
.walk-field label{display:block; margin-bottom:4px; font-weight:600}
.walk-field input,.walk-field textarea{display:block; width:100%; font:inherit; color:inherit; background:transparent; border:var(--lw-line) solid var(--graphite); border-radius:2px; padding:10px 12px}
.walk-field [aria-invalid]{border:3px solid currentColor}
.walk-error,.message-error{margin-top:8px; font-weight:600; max-width:30em}
.walk-error:empty,.message-error:empty{display:none}
.walk-nav{display:flex; flex-wrap:wrap; align-items:center; gap:var(--sp-2); margin-top:var(--sp-3)}
.walk-nav button{font:inherit; cursor:pointer}
button.start{border:0; font-family:var(--font-display); font-weight:500; font-size:var(--size-action); line-height:1}
.walk-nav .start{padding:13px 22px 15px; font-size:clamp(22px,1.8vw,26px)}
.walk-back{background:none; border:0; color:inherit; font-size:var(--step-0); text-decoration:underline; text-underline-offset:.18em; min-height:44px; padding:0 8px}
.walk-hp,.message-hp{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden}
.walk-thanks{padding-top:var(--sp-3); border-top:var(--lw-line) solid var(--graphite)}
.walk-thanks h2{margin-bottom:var(--sp-3)}
.walk-thanks .note{margin-top:var(--sp-4)}

/* contents: what is on this sheet, or the sheets beside it, as a short list of links (set at the size of the closing button: both are things to press) */
.contents li{font-family:var(--font-display); font-weight:500; font-size:var(--size-action); line-height:1.05}
.contents li + li{margin-top:14px}

/* a detail: one thing Craig designs. Its name, a few words and a doodle of it (.detail-text), and its
   photographs (.detail-media). On <article class="grid detail">, one after another: the composition
   rotates through three, so no two neighbours are laid out alike and the markup never says which.
   A photograph is never scaled past its file: --nat on a .detail-media child is its natural width. */
.detail{padding-bottom:var(--sp-6)}
.detail h2{font-size:var(--step-3)}
.detail-text > * + *{margin-top:var(--sp-3)}
.detail-text > [data-doodle]{--ddw:380px; margin-top:var(--sp-4)}
.detail-media{margin-top:var(--sp-5)}
.detail-media > *{max-width:var(--nat,none)}
.detail-media > :not(:first-child){margin-top:var(--sp-5)}
@media (min-width:900px){
  .open{padding-top:var(--sp-6)}
  .end .grid > *{grid-row:1}
  .end .text{grid-column:1 / 7}
  .end .act{grid-column:8 / 13; align-self:end; margin-top:0}

  .detail > *{grid-row:1}
  .detail-media{margin-top:0}
  .detail:nth-of-type(3n+1) > .detail-text{grid-column:1 / 6}
  .detail:nth-of-type(3n+1) > .detail-media{grid-column:7 / 13}
  .detail:nth-of-type(3n+2) > .detail-text{grid-column:9 / 13; align-self:end}
  .detail:nth-of-type(3n+2) > .detail-media{grid-column:1 / 8}
  .detail:nth-of-type(3n) > .detail-text{grid-column:1 / 5; align-self:center}
  .detail:nth-of-type(3n) > .detail-media{grid-column:6 / 12}
  /* a second photograph is the smaller one, set off to the far side */
  .detail-media > :not(:first-child){width:62%; margin-left:auto}
  /* photographs on the left: a narrow one sits against the words, the second one out at the sheet edge */
  .detail:nth-of-type(3n+2) > .detail-media > :first-child{margin-left:auto}
  .detail:nth-of-type(3n+2) > .detail-media > :not(:first-child){margin-left:0}
}

/* plates: a project's photographs, one after another down the sheet (<div class="grid plates">, written
   by system/project.js). A .plate is one photograph (figure[data-frame]) and its caption (.small), never
   wider than its file (--nat). Consecutive plates rotate through three positions on the grid, the way
   drawings are placed on a sheet, so the data never names a layout. A .plate also works alone. */
.plate{width:100%; max-width:var(--nat,none)}
.plate > .small{margin-top:var(--sp-3)}
.plates > .plate + .plate{margin-top:var(--sp-6)}

/* register: the index of projects (<div class="grid register">), one <article class="entry"> each: a
   photograph, the project's name as an h2 link (the link covers the whole entry) and where it is.
   Under a heading of its own (an area on the hub, a location page) the name is an h3 and nothing else changes.
   Entries rotate through four sizes and positions, so the index is never rows of equal boxes. */
.entry{position:relative; width:100%; max-width:var(--nat,none)}
.entry :is(h2,h3){font-size:var(--step-2); margin-top:var(--sp-3)}
.entry :is(h2,h3) a::after{content:""; position:absolute; inset:0; z-index:4}
.entry :is(h2,h3) + .small{margin-top:var(--sp-1)}
.register > .entry + .entry{margin-top:var(--sp-6)}
@media (min-width:900px){
  .plates,.register{row-gap:var(--sp-6)}
  .plates > .plate + .plate,.register > .entry + .entry{margin-top:0}
  .plates > .plate:nth-child(3n+1){grid-column:1 / 10}
  .plates > .plate:nth-child(3n+2){grid-column:5 / 13; justify-self:end}
  .plates > .plate:nth-child(3n){grid-column:2 / 10}
  .register > .entry:nth-child(4n+1){grid-column:1 / 9}
  .register > .entry:nth-child(4n+2){grid-column:9 / 13; align-self:end}
  .register > .entry:nth-child(4n+3){grid-column:2 / 8}
  .register > .entry:nth-child(4n){grid-column:8 / 13; margin-top:var(--sp-6)}
}

/* the Gallery (system/gallery.js). A category (<section class="cat">): its heading and Craig's words
   (.cat-head), then its board of photographs. A .tile is one photograph (figure[data-frame], the photo a link
   for the lightbox), never wider than its file (--nat). Tiles rotate through nine positions on the grid, the
   first the big one, so a section is never rows of equal boxes and the data never names a layout.
   Phone: two columns, the big one across both, then a pair, then one across, and so on. */
.cat{padding-bottom:var(--sp-6)}
.cat.band{padding-top:var(--sp-5)}
.cat .ticks{margin-bottom:var(--sp-4)}
.cat-head{margin-bottom:var(--sp-5)}
.cat-words{margin-top:var(--sp-3)}
.cat-words > * + *{margin-top:var(--sp-2)}
.board{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--sp-4) 16px; align-items:start}
.tile{width:100%; max-width:var(--nat,none); min-width:0}
.board > .tile:nth-child(3n+1){grid-column:1 / -1}
@media (min-width:900px){
  .cat-head > *{grid-row:1}
  .cat-head h2{grid-column:1 / 7}
  .cat-words{grid-column:8 / 13; margin-top:0; align-self:end}
  .board{grid-template-columns:repeat(var(--grid-cols),minmax(0,1fr)); gap:var(--sp-5) var(--gutter)}
  .board > .tile:nth-child(9n+1){grid-column:1 / 8}
  /* offsets are margins, not alignment, so two tiles side by side never share a top whatever their shapes */
  .board > .tile:nth-child(9n+2){grid-column:9 / 13; margin-top:var(--sp-5)}
  .board > .tile:nth-child(9n+3){grid-column:1 / 5}
  .board > .tile:nth-child(9n+4){grid-column:5 / 10; margin-top:var(--sp-5)}
  .board > .tile:nth-child(9n+5){grid-column:10 / 13; margin-top:var(--sp-4)}
  .board > .tile:nth-child(9n+6){grid-column:2 / 7}
  .board > .tile:nth-child(9n+7){grid-column:8 / 13; margin-top:var(--sp-6); justify-self:end}
  .board > .tile:nth-child(9n+8){grid-column:3 / 7; margin-top:var(--sp-4)}
  .board > .tile:nth-child(9n){grid-column:8 / 12}
}

/* a project's post in the Gallery (project.js, postHtml): its hero across the sheet, cropped to a wide frame,
   then where it is, its name and one line. The name's link covers the whole post. */
.posted{padding-bottom:var(--sp-6)}
.post{position:relative}
.post-photo{aspect-ratio:4 / 3; overflow:hidden; background:var(--hair)}
.post-photo img{width:100%; height:100%; object-fit:cover}
.post-text{margin-top:var(--sp-3)}
.post h2{font-size:var(--step-3)}
.post h2 a{text-decoration:none}
.post h2 a::after{content:""; position:absolute; inset:0; z-index:4}
.post:hover h2 a{text-decoration:underline; text-decoration-thickness:2px}
.post-where{margin-bottom:var(--sp-1)}
.post-teaser{margin-top:var(--sp-2); font-size:var(--step-1); line-height:1.4}
@media (min-width:700px){.post-photo{aspect-ratio:2 / 1}}
@media (min-width:900px){
  .post-photo{aspect-ratio:21 / 9}
  .post-text{display:grid; grid-template-columns:repeat(var(--grid-cols),minmax(0,1fr)); column-gap:var(--gutter)}
  .post-text > *{grid-column:1 / 8}
  .post-text > .post-teaser{grid-column:8 / 13}
  .post-text > .post-teaser{grid-row:1 / 3; align-self:end; margin-top:0}
}

/* the lightbox (system/lightbox.js): the photograph large on black, the only colour in it the photograph's.
   The link round a thumbnail is the opener; without script it opens the file itself. */
a[data-lightbox]{display:block; cursor:zoom-in}
a[data-lightbox]:focus-visible{outline-offset:6px}
.lightbox{position:fixed; inset:0; width:100%; height:100%; max-width:none; max-height:none; margin:0; padding:0; border:0; background:#000; color:var(--chalk)}
.lightbox::backdrop{background:#000}
.lightbox[open]{display:grid; grid-template-rows:auto minmax(0,1fr) auto}
html:has(.lightbox[open]){overflow:hidden}
.lb-bar,.lb-nav{display:flex; justify-content:space-between; align-items:center; gap:16px; padding:12px 16px}
.lb-count{margin:0; color:var(--chalk-soft); font-size:var(--step--1)}
.lb-fig{display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:0; padding:0 16px}
.lb-img{width:auto; height:auto; max-width:100%; max-height:calc(100% - 4.5em); object-fit:contain}
.lb-cap{margin-top:12px; max-width:40em; text-align:center; color:var(--chalk-soft)}
.lb-btn{min-width:44px; min-height:44px; padding:8px 16px; background:none; border:var(--lw-line) solid var(--chalk); border-radius:2px; color:var(--chalk); font:500 var(--step-1)/1 var(--font-display); cursor:pointer}
.lb-btn:hover{background:var(--chalk); color:#000}
.lb-btn[hidden]{display:none}
.lb-btn:focus-visible{outline:3px solid var(--chalk); outline-offset:3px}

/* placeholders: data-placeholder marks content Craig has still to confirm. It is not drawn on the page
   (Joel 2026-11-21: no DRAFT notes on the live site); the list of what is open is docs/draft-todos.md. */
.placeholder{display:flex; align-items:center; justify-content:center; min-height:160px; background:repeating-linear-gradient(135deg,transparent 0 10px,rgba(75,77,81,.12) 10px 11px); color:var(--soft)}

/* doodles mounted in an HTML element (doodles.js, mountDoodle): the drawing, and Craig's lettering
   laid over it as real text. The lettering scales with the drawing (cqw). */
.doodle-box{position:relative; container-type:inline-size}
.doodle-box > svg{display:block; width:100%; height:auto; overflow:visible}
.doodle-label{position:absolute; transform:translateY(-82%); font-family:var(--font-hand); line-height:1; letter-spacing:.06em; white-space:nowrap; color:var(--graphite)}
.band .doodle-label{color:var(--chalk-soft)}

/* a doodle's box in the flow ([data-doodle], mounted with mountDoodle): as wide as its column up
   to --ddw. Without script it is an empty box, so it is not shown. */
[data-doodle]{width:100%; max-width:var(--ddw,320px)}
html:not(.js) [data-doodle]{display:none}

/* facts: a short list of what a thing takes and costs (time, fee, what you leave with) */
.facts dt{font-size:var(--step--1); color:var(--soft)}
.facts dd{font-family:var(--font-display); font-weight:500; font-size:var(--size-fact); line-height:1.05; margin-bottom:26px}
.facts dd small{display:block; font:400 var(--step--1)/1.45 var(--font-body); color:var(--soft); margin-top:22px; max-width:20em}
.fee{display:inline-block; margin-top:8px}   /* room for the ring the path line draws round it */

/* the one solid button a page ends on */
.start{display:inline-block; background:var(--ink); color:var(--paper); text-decoration:none; border-radius:2px;
  font-family:var(--font-display); font-weight:500; font-size:var(--size-action); line-height:1; padding:20px 26px 22px}
.start:hover{background:var(--ink-soft)}

/* Craig's sign-off: his own sentence (blockquote.signoff), and his name under it (.by) */
.signoff p{font-size:var(--step-1); line-height:1.4; max-width:24em}
.by{margin-top:14px; color:var(--soft)}

/* a credential badge: greyscaled and laid into the paper, because colour only comes from garden photos */
.badge{filter:grayscale(1) contrast(1.3); mix-blend-mode:multiply}

/* annotated photographs: figure[data-frame] owns its frame, its notes and its leaders (annotate.js) */
figure[data-frame]{position:relative; margin:0}
figure[data-frame] > img,figure[data-frame] > a > img{display:block; width:100%; height:auto}
figure[data-frame] > a{display:block}
/* phones: one row of notes (up to three) so a leader never rises through another note's text */
figure[data-frame] > figcaption{margin-top:22px; display:flex; flex-wrap:nowrap; gap:10px 16px; min-width:0}
figure[data-frame] > figcaption > [data-note]{flex:1 1 0; min-width:0; max-width:none; overflow-wrap:anywhere; hyphens:auto; font-size:min(var(--note-size), 5.6vw)}
figure[data-frame] [data-note][hidden]{display:none}
figure[data-frame] [data-note]{font-family:var(--font-hand); font-size:var(--note-size); line-height:1; letter-spacing:var(--note-track); text-transform:uppercase; color:var(--graphite); width:fit-content; max-width:12em; transform:rotate(var(--note-tilt))}
.band figure[data-frame] [data-note]{color:var(--chalk-soft)}
figure[data-frame] > svg{position:absolute; left:0; top:0; overflow:visible; pointer-events:none}
/* round 2: a photo annotate.js does not mount shows its notes as a plain caption, no pencil and no lettering */
figure[data-frame]:not([data-annotated]) > figcaption{margin-top:10px; flex-wrap:wrap; gap:2px 16px}
figure[data-frame]:not([data-annotated]) > figcaption > [data-note]{flex:none; font:400 var(--step--1)/1.45 var(--font-body); letter-spacing:0; text-transform:none; transform:none; color:var(--soft); max-width:none}
.band figure[data-frame]:not([data-annotated]) [data-note]{color:var(--chalk-soft)}
.frm path{fill:none; stroke:var(--graphite); stroke-width:var(--lw-line); stroke-linecap:round; stroke-linejoin:round}
.frm path.p2{stroke:var(--graphite-2); stroke-width:calc(var(--lw-line) * .55)}
.frm.dk path{stroke:var(--chalk)}
.frm.dk path.p2{stroke:var(--chalk-soft)}
svg.leaders{z-index:3}
svg.leaders path{fill:none; stroke-linecap:round; stroke-linejoin:round}
svg.leaders .ln,svg.leaders .ah{stroke:var(--graphite); stroke-width:var(--lw-fine)}
svg.leaders .edge{stroke:#000; stroke-opacity:.5; stroke-width:4.6px}
svg.leaders .chalk{stroke:#fff; stroke-width:1.9px}
.band svg.leaders .ln,.band svg.leaders .ah{stroke:var(--chalk)}
@media (min-width:768px){
  figure[data-frame][data-notes]:not([data-fold]){display:grid; grid-template-columns:minmax(0,1fr) 12rem; column-gap:32px; align-items:start}
  figure[data-frame][data-notes]:not([data-fold])[data-side="left"]{grid-template-columns:12rem minmax(0,1fr)}
  figure[data-frame][data-notes]:not([data-fold]) > img{grid-row:1; grid-column:1}
  figure[data-frame][data-notes]:not([data-fold])[data-side="left"] > img{grid-column:2}
  figure[data-frame][data-notes]:not([data-fold]) > figcaption{grid-row:1; grid-column:2; position:relative; margin-top:0; display:block; align-self:stretch}
  figure[data-frame][data-notes]:not([data-fold])[data-side="left"] > figcaption{grid-column:1}
  figure[data-frame][data-notes]:not([data-fold]) [data-note]{position:absolute; left:0; flex:none; width:fit-content; max-width:12em; font-size:var(--note-size)}
  figure[data-frame][data-side="left"]:not([data-fold]) [data-note]{left:auto; right:0; text-align:right}
}

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

/* review and testimonial cards (system/testimonials.js): pencil stars, the words, the name in Craig's hand.
   One column on a phone, two from 700px, three from 1100px. Each card keeps its own height, so opening one
   with "Read more" grows that card and its row, nothing else. Without script nothing is clamped. */
.cards{display:grid; grid-template-columns:1fr; gap:var(--sp-4) var(--gutter); align-items:start; list-style:none; padding:0; margin:0}
@media (min-width:700px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
.card{padding:var(--sp-3) 0 0; border-top:var(--lw-line) solid var(--graphite)}
.card .stars{display:block; width:118px; height:22px; margin:var(--sp-2) 0; overflow:visible}
.card .stars path{fill:none; stroke:var(--graphite); stroke-linecap:round; stroke-linejoin:round}
.card .stars .edge{stroke-width:var(--lw-line)}
.card .stars .shade{stroke-width:1.6px}
.card-text p{margin:0 0 .7em; max-width:none}
.card-text p:last-child{margin-bottom:0}
.cards-live .card:not([data-open]) .card-text{display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:6; line-clamp:6; overflow:hidden}
.card-more{margin-top:var(--sp-2); padding:.35em 0; background:none; border:0; border-bottom:var(--lw-fine) solid currentColor; color:var(--ink); font:inherit; font-weight:600; cursor:pointer}
.card-more[hidden]{display:none}
/* a card with a photo (testimonials.js, cardPhotoHtml): a square thumbnail to the right of the name and the
   stars, cropped to 1:1, a link that opens it in the lightbox. An example photo is marked DRAFT and says so. */
.card.has-photo{display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:16px; align-items:start}
.card.has-photo > *{grid-column:1 / -1}
.card.has-photo > .card-by{grid-column:1; grid-row:1}
.card.has-photo > .stars{grid-column:1; grid-row:2}
.card.has-photo > .card-photo{grid-column:2; grid-row:1 / 3; width:clamp(88px,24vw,112px)}
.card.has-photo > .card-more{justify-self:start}
.card-photo img{width:100%; height:auto; aspect-ratio:1; object-fit:cover}
.card-by{margin:0}
.card-by .name{display:block; padding-bottom:.34em; font-size:var(--step-2); color:var(--ink); text-transform:none; letter-spacing:.02em}
.card-meta{display:block; margin-top:.25em; color:var(--soft)}
.see a{font-family:var(--font-display); font-weight:500; font-size:var(--step-1)}
/* "Google" in Google's four colours, in our own type (Joel 2026-11-21: the one exception to colour-from-photos) */
.g-word .g-b{color:#4285F4} .g-word .g-r{color:#EA4335} .g-word .g-y{color:#FBBC05} .g-word .g-g{color:#34A853}
