/* Hallmark · shape: Work Order (a taped wall over a ruled work order sheet: five review-built line items with line 04 opening in place, crew notes and the ticket fields closing the order, a perforated call stub) · genre: editorial · theme: custom · job: hire · idea: "The page is Zach's painting work order: every line item is a real job a Google reviewer described, labelled in painter's masking tape" · vibe: "taped, ruled, plain-spoken, sure of the job"
 * paper: oklch(98.6% 0.004 218) white order paper · accent: oklch(80% 0.165 132) frog-green painter's tape · display: Smooch Sans 900 · body: Ubuntu Sans 400/700 · hero: a petrol-teal painted wall, the headline printed in ink on two strips of green painter's tape, the rating on a white label strip, a tape-tab call; one strip of tape peels off the cut line on load and the ruled order starts under it · nav: the wordmark on the wall and one call link, no menu; on phones the call is a sticky tape tab that steps aside while the form is on screen · footer: the wall again, wordmark, place, number and credits in one band · imagery: none (no photos of their own on file; type, tape and the ruled order carry the page) · signature: painter's masking tape as the page's whole labelling system on a work order built from real reviews
 * axes: light/display-condensed/chromatic-green · posture: full-palette (petrol wall carries the hero, the call stub and the footer; white paper carries the order; frog-green tape carries the headline, every section head, the line tags and the call; ink carries the rules and the text) · contrast: pass · fold: pass · data: Google listing and the review quotes in factory/cands/johnson-brothers.json · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5 · weakest: H, five quoted lines could read as a review list; set each as a ruled work-order line with a torn tape tag, the job as its heading and the customer in their own column */
/* Hallmark · display tracking 0.04em on heavy display (client style rule: no letters touching), not the craft default */
/* Hallmark · dismissed 3 · the dashed edge on .stub__call is the ticket perforation between the call stub and the form, the work order's tear line, not a card stripe */
/* Hallmark · answered F1 · the one straight apostrophe is the factory's required honeypot label, hidden from view */
/* Hallmark · hero-review: subagent (sonnet), fix · 5 findings · 2 resolved (the fold row now sits on one bottom-aligned line: lede, call tab, link, rating label at the right edge; the phone header call is gone so one call tab leads the first phone screen), 2 partial (lede set larger on phones, weight kept at 400 so it does not compete with the tape head; a soft shadow under the strips and the label lifts the torn tape off the wall, no crease drawn), 1 dismissed (headline: the suggested 'We finish what the last painter started' turns one review into a service claim the facts cannot carry; 'Painters who finish the job.' stays, backed by line 04 directly below) */
/* Hallmark · answered F4 · the phone masthead tab and the hero call are one action, the same tel: link in the same tape; the masthead copy only travels with the reader and steps aside over the form */
/* Hallmark · finish-review: folded into Impeccable critique A · fix · 6 findings · 5 resolved (gate 72 tape padding 0.14em; line 04 no longer repeated, it opens in place; work-order gap closed with ticket fields from on-page facts and an End of order rule; attributions, column heads and field labels at 17px; phone line 01 starts above 844) · 1 noted, no change (H1 gate 44c, custom run: the order starting under the cut line is intended) · H3 and H6 no finding */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- shared ---------- */
body { font-size: var(--text-md); }
.icon { flex-shrink: 0; }
.skip { position: absolute; left: var(--space-md); top: var(--space-xs); z-index: var(--z-modal); padding: var(--space-sm) var(--space-md); background: var(--color-paper); color: var(--color-ink); font-weight: 700; transform: translateY(-160%); }
.skip:focus-visible { transform: none; }
.preview { margin: 0; padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-wall-ink); font-size: var(--text-sm); text-align: center; }

/* tape: a strip of painter's tape; the torn ends are the strip's own edge */
.strip, .tag, .label-strip {
  clip-path: polygon(var(--tape-tear) 0, calc(100% - var(--space-2xs)) 0, 100% 22%, calc(100% - var(--tape-tear)) 44%, 100% 66%, calc(100% - var(--space-3xs)) 100%, var(--space-2xs) 100%, 0 78%, var(--tape-tear) 56%, 0 34%);
}

/* the primary control: a tab of tape (fill on a layer so the focus ring is never clipped) */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: var(--control-h); padding: 0 var(--space-lg); border: 0; background: none; color: var(--color-tape-ink); font-family: var(--font-display); font-weight: 900; font-size: var(--text-xl); letter-spacing: var(--tracking-control); text-transform: uppercase; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform var(--dur-micro) var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-tape); clip-path: polygon(0 0, calc(100% - var(--space-sm)) 0, 100% 20%, calc(100% - var(--space-xs)) 40%, 100% 60%, calc(100% - var(--space-xs)) 80%, calc(100% - var(--space-2xs)) 100%, 0 100%); transition: background-color var(--dur-short) var(--ease-out); }
.btn:hover::before { background: var(--color-tape-hi); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }

/* section heads: the head is the strip of tape, cut straight at each line end */
.tape-wrap { font-size: var(--text-section); line-height: 1.42; max-width: 14em; }
h2.tape-head { display: inline; font-size: 1em; font-weight: 900; line-height: inherit; letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--color-tape-ink); background: var(--color-tape); padding: var(--tape-pad-y) var(--tape-pad-x); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- the masthead and the wall ---------- */
.mast { background: var(--color-wall); color: var(--color-wall-ink); }
.mast__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-md); }
.mast :focus-visible, .wall :focus-visible, .stub__call :focus-visible, .foot :focus-visible { outline-color: var(--color-focus-wall); }
.wordmark { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 0.3em; min-height: var(--control-h-s); color: var(--color-wall-ink); font-family: var(--font-display); font-weight: 900; font-size: var(--text-wordmark); letter-spacing: var(--tracking-display); text-transform: uppercase; line-height: 1; text-decoration: none; }
.wordmark:hover { color: var(--color-tape); }
.mast__cta { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: var(--control-h-s); padding: 0 var(--space-2xs); color: var(--color-wall-ink); font-weight: 700; font-size: var(--text-lg); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; text-decoration-color: var(--color-tape); white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.mast__cta:hover { color: var(--color-tape); }
.mast__cta-word { display: none; }
.wall { position: relative; background: var(--color-wall); color: var(--color-wall-ink); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "foot"; row-gap: var(--space-xl); padding-top: var(--space-sm); padding-bottom: var(--space-xl); }
h1.hero__head { grid-area: head; filter: drop-shadow(0 6px 8px var(--color-tape-shadow)); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); font-size: var(--text-h1); font-weight: 900; line-height: 1; letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--color-tape-ink); }
.strip { display: block; max-width: 100%; background: var(--color-tape); padding: var(--tape-pad-y) var(--tape-pad-x); }
.strip--1 { transform: rotate(-1.2deg); }
.strip--2 { margin-left: 1.4em; transform: rotate(0.7deg); }
.hero__foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-lg) var(--space-xl); }
.hero__lede { max-width: 17em; font-size: var(--text-lead); line-height: 1.45; color: var(--color-wall-ink); }
.hero__acts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-md) var(--space-xl); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-lg); }
.link-wall { display: inline-flex; align-items: center; min-height: var(--control-h-s); color: var(--color-wall-ink); font-weight: 700; font-size: var(--text-lg); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; text-decoration-color: var(--color-tape); transition: color var(--dur-short) var(--ease-out); }
.link-wall:hover { color: var(--color-tape); }
/* wide screens: the lede sits under the first strip, the call starts on the second strip's left edge */
@media (min-width: 75rem) {
  .strip--2 { margin-left: 3.4em; }
  .hero__foot { display: grid; grid-template-columns: calc(3.4 * var(--text-h1)) minmax(0, 1fr); gap: 0; align-items: end; }
  .hero__lede { max-width: 16em; }
  .hero .label-strip { font-size: var(--text-md); }
}
.label-hold { filter: drop-shadow(0 4px 6px var(--color-tape-shadow)); }
.label-strip { display: block; width: fit-content; background: var(--color-label); color: var(--color-ink); padding: var(--space-sm) var(--space-lg); font-weight: 700; font-size: var(--text-lg); line-height: 1.3; text-wrap: balance; transform: rotate(1.6deg); }

/* the cut line: one last strip of tape over the edge of the paint, pulled off once on load */
.cutline { position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--space-sm)); height: var(--space-lg); z-index: var(--z-raised); background: var(--color-tape); transform-origin: 100% 50%; animation: peel 0.7s var(--ease-in) 0.35s both; pointer-events: none; }
@keyframes peel {
  from { clip-path: inset(0 0 0 0); transform: none; opacity: 1; }
  to { clip-path: inset(0 0 0 100%); transform: translateY(calc(-1 * var(--space-xs))) rotate(-0.6deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .cutline { animation: none; opacity: 0; } }

/* ---------- the order: one ticket, header fields, five lines, crew notes, end of order ---------- */
.order { padding-block: var(--space-3xl) var(--section-gap-s); }
.order__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.order__side { grid-column: 1 / span 3; grid-row: 1; align-self: start; display: grid; gap: var(--space-lg); }
.order__note { max-width: 22em; color: var(--color-muted); font-size: var(--text-lg); line-height: 1.45; }
.ticket { grid-column: 1 / span 3; grid-row: 2; align-self: start; margin: var(--space-3xl) 0 0; border-top: 3px solid var(--color-rule); }
.ticket__row { display: grid; gap: var(--space-3xs); padding-block: var(--space-md); border-bottom: 1px solid var(--color-rule-soft); }
.ticket dt { font-weight: 700; font-size: var(--text-md); color: var(--color-muted); }
.ticket dd { margin: 0; font-size: var(--text-md); line-height: 1.4; color: var(--color-ink); }
.lines { grid-column: 4 / -1; grid-row: 1; width: 100%; border-collapse: collapse; }
.lines thead, .lines tbody { display: block; }
.lines tr { display: grid; grid-template-columns: 6rem minmax(0, 1fr); grid-template-areas: "tag job" "tag note"; column-gap: var(--space-lg); border-bottom: 3px solid var(--color-rule); }
.lines thead tr { grid-template-columns: 6rem auto minmax(0, 1fr); grid-template-areas: "tag job note"; column-gap: var(--space-lg); }
.lines thead th { padding-bottom: var(--space-sm); font-size: var(--text-md); font-weight: 700; color: var(--color-muted); text-align: left; white-space: nowrap; }
.lines__c-tag { grid-area: tag; } .lines__c-job { grid-area: job; }
.lines__c-note { grid-area: note; }
.lines__c-note::before { content: "/" / ""; margin-right: var(--space-lg); color: var(--color-muted); }
:where(.lines) td, :where(.lines) tbody th { padding: 0; text-align: left; font-weight: 400; vertical-align: top; }
.lines__tag { grid-area: tag; padding-top: var(--space-xl); }
.lines__job { grid-area: job; padding-top: var(--space-xl); }
.lines__note { grid-area: note; padding-top: var(--space-sm); padding-bottom: var(--space-xl); display: grid; justify-items: start; gap: var(--space-sm); }
.lines h3 { font-size: var(--text-title); font-weight: 900; line-height: 1.08; letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--color-ink); max-width: 18em; }
.lines__note p { max-width: 18em; font-size: var(--text-big-quote); line-height: 1.25; color: var(--color-ink-2); }
.lines__note .lines__other { font-size: var(--text-md); line-height: 1.5; color: var(--color-muted); }
.lines__other-who { font-weight: 700; color: var(--color-ink); }
.lines__note .lines__who { font-size: var(--text-md); font-weight: 700; line-height: 1.35; color: var(--color-ink); }
.tag { display: inline-block; background: var(--color-tape); color: var(--color-tape-ink); padding: var(--space-2xs) var(--space-sm); font-family: var(--font-display); font-weight: 900; font-size: 3rem; letter-spacing: var(--tracking-display); line-height: 1; transform: rotate(-3deg); font-variant-numeric: tabular-nums; }
/* line 04 opens in place */
.more { width: 100%; }
.more summary { display: inline-flex; align-items: center; min-height: var(--control-h-s); font-weight: 700; font-size: var(--text-md); color: var(--color-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; text-decoration-color: var(--color-tape); cursor: pointer; list-style: none; transition: color var(--dur-short) var(--ease-out); }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { color: var(--color-ink-2); text-decoration-color: var(--color-ink); }
.more summary:active { transform: translateY(1px); }
.more summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.more__body { display: grid; gap: var(--space-sm); padding-top: var(--space-sm); }
.more:not([open]) .more__body { display: none; }
.lines__note .more__body p { font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink-2); }
/* crew notes close the order */
.crew { grid-column: 4 / -1; grid-row: 2; padding-top: var(--space-3xl); }
h3.crew__head { display: inline; font-size: var(--text-title); font-weight: 900; line-height: 1.4; letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--color-tape-ink); background: var(--color-tape); padding: var(--tape-pad-y) var(--tape-pad-x); }
.crew__list { list-style: none; margin: var(--space-xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.crew__item { display: grid; align-content: start; gap: var(--space-sm); padding-top: var(--space-md); border-top: 3px solid var(--color-rule); }
.crew__quote { max-width: 15em; font-size: var(--text-quote); line-height: 1.3; color: var(--color-ink-2); }
.crew__who { font-weight: 700; font-size: var(--text-md); color: var(--color-ink); }
.order__end { grid-column: 1 / -1; grid-row: 3; margin-top: var(--space-2xl); padding-top: var(--space-sm); border-top: 7px double var(--color-rule); font-weight: 700; font-size: var(--text-md); color: var(--color-ink); }

/* ---------- the stub ---------- */
.stub { background: var(--color-paper-2); padding-block: var(--section-gap-s); }
.stub__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 3px solid var(--color-rule); background: var(--color-paper); }
.stub__call { display: grid; align-content: start; justify-items: start; gap: var(--space-lg); padding: var(--space-2xl) var(--space-xl); background: var(--color-wall); color: var(--color-wall-ink); border-right: 4px dashed var(--color-rule); }
h2.stub__head { font-size: var(--text-section); font-weight: 900; line-height: 1.05; letter-spacing: var(--tracking-display); text-transform: uppercase; color: var(--color-wall-ink); max-width: 9em; }
.stub__line { max-width: 22em; font-size: var(--text-lg); line-height: 1.45; color: var(--color-wall-ink); }
.stub__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); align-content: start; padding: var(--space-2xl) var(--space-xl); }
.field { display: grid; gap: var(--space-xs); min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: var(--text-md); color: var(--color-ink); }
.field input, .field textarea { width: 100%; min-height: var(--control-h); padding: var(--space-sm) var(--space-md); line-height: 1.5; border: 2px solid var(--color-ink); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); outline: 3px solid transparent; outline-offset: -5px; }
.field input { height: var(--control-h); padding-block: 0; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-color: var(--color-focus); }
.field input[aria-invalid], .field textarea[aria-invalid] { border-color: var(--color-error); }
.field input:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--submit { justify-self: start; grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; justify-self: start; padding: var(--space-xs) var(--space-md); background: var(--color-tape); font-size: var(--text-md); line-height: 1.5; color: var(--color-tape-ink); }
.form-note a { display: inline-flex; align-items: center; min-height: var(--control-h-s); font-weight: 700; color: var(--color-tape-ink); text-decoration-color: var(--color-tape-ink); text-decoration-thickness: 2px; }

/* ---------- footer ---------- */
.foot { background: var(--color-wall-deep); color: var(--color-wall-ink); padding-block: var(--space-2xl); }
.foot__grid { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-xl); }
.foot__line { color: var(--color-wall-ink); font-size: var(--text-md); }
.foot__tel { display: inline-flex; align-items: center; min-height: var(--control-h-s); color: var(--color-wall-ink); font-weight: 700; font-size: var(--text-lg); text-decoration-color: var(--color-tape); text-decoration-thickness: 2px; text-underline-offset: 0.22em; white-space: nowrap; }
.foot__tel:hover { color: var(--color-tape); }
.foot__small { flex-basis: 100%; color: var(--color-wall-muted); font-size: var(--text-sm); }

/* ---------- narrower ---------- */
@media (max-width: 64rem) {
  .order__grid { grid-template-columns: minmax(0, 1fr); }
  .order__side, .lines, .crew, .ticket, .order__end { grid-column: 1; grid-row: auto; }
  .order__side { margin-bottom: var(--space-xl); }
  .ticket { max-width: 30rem; }
  .stub__grid { grid-template-columns: minmax(0, 1fr); }
  .stub__call { border-right: 0; border-bottom: 4px dashed var(--color-rule); }
}
@media (max-width: 40rem) {
  /* the masthead sticks with a call tab, and steps aside while the form is on screen */
  .mast { position: sticky; top: 0; z-index: var(--z-sticky-nav); transition: transform var(--dur-short) var(--ease-out); }
  .mast.is-away { transform: translateY(-100%); }
  .mast__in { padding-block: var(--space-xs); }
  .wordmark { flex-direction: column; align-items: flex-start; justify-content: center; font-size: clamp(1.25rem, 6vw, 1.5rem); line-height: 1.05; }
  .mast__cta { padding: 0 var(--space-md); color: var(--color-tape-ink); text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: var(--text-xl); letter-spacing: var(--tracking-control); text-transform: uppercase; }
  .mast__cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-tape); clip-path: polygon(0 0, calc(100% - var(--space-xs)) 0, 100% 25%, calc(100% - var(--space-2xs)) 50%, 100% 75%, calc(100% - var(--space-xs)) 100%, 0 100%); }
  .mast__cta:hover { color: var(--color-tape-ink); }
  .mast__cta:hover::before { background: var(--color-tape-hi); }
  .mast__cta:active { transform: translateY(1px); }
  .mast__cta-word { display: inline; }
  .mast__cta-num { display: none; }
  .hero { row-gap: var(--space-lg); }
  .hero__head { gap: var(--space-xs); }
  .strip--2 { margin-left: 0.5em; }
  .hero .label-strip { font-size: var(--text-md); padding: var(--space-xs) var(--space-md); }
  .hero__lede { font-size: var(--text-lg); }
  .hero__foot, .hero__acts { gap: var(--space-md); }
  .hero__acts, .hero__actions { width: 100%; }
  .hero__actions { gap: var(--space-xs) var(--space-lg); }
  .hero__actions .btn { width: 100%; }
  .order { padding-top: var(--space-xl); }
  .order__side { display: contents; }
  .order__side .tape-wrap { order: 1; font-size: 2.25rem; }
  .order__note { order: 2; margin-top: var(--space-sm); font-size: var(--text-md); }
  .lines { order: 3; margin-top: var(--space-sm); }
  .crew { order: 4; }
  .ticket { order: 5; margin-top: var(--space-2xl); }
  .order__end { order: 6; }
  .lines thead { display: none; }
  .lines tr { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tag job" "note note"; column-gap: var(--space-md); }
  .lines__tag, .lines__job { padding-top: var(--space-lg); }
  .lines__note { padding-bottom: var(--space-lg); }
  .tag { font-size: 2rem; }
  .crew__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .crew__quote { font-size: var(--text-lg); }
  .stub__call, .stub__form { padding: var(--space-xl) var(--space-md); }
  .stub__form { grid-template-columns: minmax(0, 1fr); }
  .btn--submit { width: 100%; }
  .btn { padding: 0 var(--space-md); }
  .stub__call .btn { width: 100%; }
}
