/* Hallmark · shape: Manifesto · genre: editorial · theme: Ink (deal 3/3, seed independent-auto-repair-shop-2859·0fa76d16·2026-12-03·r0) · job: book (call the shop) · draw: 8235b3
 * hero: Stage (declaration left, Kim Ricketts' quote right on a petrol field) · nav: wordmark bar with live open state and the phone · footer: colophon block · imagery: one library photograph (pegboard of tools) · signature: the brakes he did not sell, Kim Ricketts' quote beside "Only what your car needs." on the first screen · ink: petrol field (factory override)
 * axes: light/grotesk-sans/chromatic-teal · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: E (no business photos), one library photo and the reviews carry the page instead */
/* Hallmark · factory override (BUILD-RULES): Ink's white paper hero and teal-only palette replaced by a petrol colour field, amber buttons with hard offset shadows, 3px rules; Epilogue 800 caps tracked +0.04em instead of -0.04em */
/* Hallmark · waive 22 · inks carry a petrol hue, not zero chroma · the page is a petrol field, not a hueless notice */
/* Hallmark · draw swaps: job visit to book (a repair shop is called, not toured); search-led nav to wordmark + open state + phone (nothing to search); "what is coming as dated rows" dropped (no dated material) */
/* Hallmark · waive 49b · the address link wraps only at 320px · a real street address reads correctly on two lines */
/* Hallmark · waive 77 · the band holds one review set at statement size on a full petrol field · the customer's words are the section; a second element would dilute the claim */
/* Hallmark · dropped: no years in business, certifications, warranties, prices or makes (none verified) */
@import url("./tokens.css");
@import url("./base.css");

body { background: var(--color-paper); color: var(--color-ink-2); }
h1, h2, h3 { color: var(--color-ink); text-transform: uppercase; line-height: 1.04; text-wrap: balance; }

/* preview bar */
.preview { margin: 0; padding: var(--space-xs) var(--gutter); background: var(--color-field-2); color: var(--color-field-ink-2); font-size: var(--text-xs); text-align: center; }

/* nav */
.bar { background: var(--color-field); color: var(--color-field-ink); border-bottom: var(--rule-thick) solid var(--color-field-2); }
.bar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 72px; }
.wordmark { white-space: nowrap; font-weight: 800; font-size: var(--text-lg); text-decoration: none; color: var(--color-field-ink); letter-spacing: 0.01em; }
.bar a { white-space: nowrap; }
.bar ul { display: flex; align-items: center; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.bar a:not(.btn) { color: var(--color-field-ink); font-weight: 600; text-decoration: none; }
.bar a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.state { display: inline-flex; align-items: center; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; box-shadow: inset 0 0 0 1px var(--color-field-ink-2); color: var(--color-field-ink); white-space: nowrap; }
.state--open { background: var(--color-accent-soft); color: var(--color-accent-soft-ink); box-shadow: none; }
a.state { min-height: 44px; padding-inline: var(--space-md); text-decoration: none; }
.bar a.state--open { color: var(--color-accent-soft-ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-thick) solid var(--color-ink); border-radius: var(--radius-card); font-weight: 800; font-size: var(--text-md); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: var(--shadow-hard-s); transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--secondary { background: var(--color-paper); color: var(--color-ink); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--color-ink); }
:focus-visible { outline: 3px solid var(--color-field); outline-offset: 3px; }
.hero :focus-visible, .bar :focus-visible, .band :focus-visible, .colophon :focus-visible { outline-color: var(--color-accent); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* hero */
.hero { background: var(--color-field); color: var(--color-field-ink); padding-block: var(--space-2xl); min-height: calc(100svh - 110px); display: grid; align-content: center; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
.hero h1 { color: var(--color-field-ink); font-size: clamp(2.5rem, 5.6vw + 0.6rem, 6.5rem); max-width: 12ch; line-height: 1.02; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-field-ink-2); max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }
.show-m { display: none !important; }
.num-s { display: none; }
.where { margin-top: var(--space-md); }
.where a { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 0.4em; min-height: 44px; color: var(--color-field-ink); font-size: var(--text-lg); font-weight: 600; text-decoration: none; }
.where__dot { color: var(--color-field-ink-2); }
.where__go { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; text-underline-offset: 0.22em; }
.where a:hover .where__go { color: var(--color-accent); }
.rating { margin-top: var(--space-xs); font-size: var(--text-lg); font-weight: 600; color: var(--color-field-ink); }

/* quotes */
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink); max-width: 46ch; }
.quote figcaption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.quote--hero { background: var(--color-paper); border: var(--rule-thick) solid var(--color-ink); border-radius: var(--radius-card); box-shadow: 10px 10px 0 var(--color-accent); padding: var(--space-xl); }
.quote--hero p { font-size: var(--text-xl); line-height: 1.4; }

/* claims (manifesto rows) */
.claims { padding-block: var(--section-gap-s); }
.claim { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: start; padding-block: var(--space-3xl); border-top: var(--rule-thick) solid var(--color-ink); }
.claim:last-child { border-bottom: var(--rule-thick) solid var(--color-ink); }
.claim h2 { font-size: clamp(2rem, 3.4vw + 0.6rem, 4rem); }

/* band */
.band { background: var(--color-field); color: var(--color-field-ink); padding-block: var(--section-gap-s); border-block: var(--rule-thick) solid var(--color-field-2); }
.band__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
.band h2 { color: var(--color-field-ink); font-size: clamp(2rem, 3.4vw + 0.6rem, 4rem); }
.quote--band p, .quote--big p { font-size: clamp(1.375rem, 1.1vw + 1rem, 2rem); line-height: 1.38; max-width: 45ch; }
.quote--band p { color: var(--color-field-ink); }
.quote--band figcaption { color: var(--color-field-ink-2); }

/* services */
.fix { padding-block: var(--section-gap); }
.fix__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: start; }
.fix h2 { font-size: var(--text-section); margin-bottom: var(--space-xl); }
.ruled { list-style: none; margin: 0; padding: 0; border-top: var(--rule-thick) solid var(--color-ink); }
.ruled li { padding-block: var(--space-md); border-bottom: 2px solid var(--color-rule-2); font-size: var(--text-lg); font-weight: 600; color: var(--color-ink); }
.fix__pic { margin: 0; }
.frame { aspect-ratio: 4 / 3; border: var(--rule-thick) solid var(--color-ink); border-radius: var(--radius-card); box-shadow: var(--shadow-hard); }
.quote-s { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }

/* garland */
.garland { background: var(--color-paper-3); padding-block: var(--section-gap-s); border-block: var(--rule-thick) solid var(--color-ink); }
.garland__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.garland h2 { font-size: clamp(2rem, 3.4vw + 0.6rem, 4rem); }

/* visit + form */
.visit { padding-block: var(--section-gap); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start; }
.visit h2 { font-size: var(--text-section); margin-bottom: var(--space-xl); }
.hours, .facts { margin: 0; border-top: var(--rule-thick) solid var(--color-ink); }
.hours > div, .facts > div { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-sm); border-bottom: 2px solid var(--color-rule-2); }
.hours dt, .facts dt { font-weight: 600; color: var(--color-ink); }
.hours dd, .facts dd { margin: 0; text-align: right; }
.hours .is-today { background: var(--color-accent-soft); }
.facts { margin-top: var(--space-xl); }
.facts a { font-weight: 600; color: var(--color-ink); }
.facts a:hover { text-decoration-color: var(--color-accent); text-decoration-thickness: 3px; }
.tel { font-size: var(--text-lg); }
.estimate { display: grid; gap: var(--space-lg); padding: var(--space-xl); background: var(--color-paper-2); border: var(--rule-thick) solid var(--color-ink); border-radius: var(--radius-card); box-shadow: 10px 10px 0 var(--color-field); }
.estimate h3 { font-size: var(--text-xl); }
.estimate .btn { justify-self: start; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-md); }
.field { display: grid; gap: var(--space-xs); font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); }
.field input, .field textarea { transition: border-color var(--dur-micro) var(--ease-out); width: 100%; min-height: 48px; padding: var(--space-sm); border: 2px solid var(--color-ink); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); font-weight: 400; font-size: var(--text-md); }
.field input:hover, .field textarea:hover { border-color: var(--color-field); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--color-field); box-shadow: 0 0 0 3px var(--color-accent); }
.field input:user-invalid { border-color: var(--color-error); }
.field input[disabled], .field textarea[disabled] { opacity: 0.5; cursor: not-allowed; }
.form-note { font-weight: 600; color: var(--color-ink); }

/* footer */
.colophon { background: var(--color-field-2); color: var(--color-field-ink-2); padding-block: var(--space-2xl); }
.colophon__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: end; }
.colophon__name { font-weight: 800; font-size: var(--text-xl); color: var(--color-field-ink); }
.colophon__tel { font-size: var(--text-2xl); font-weight: 800; color: var(--color-accent); text-decoration: none; }
.colophon__tel:hover { text-decoration: underline; }
.colophon__small { font-size: var(--text-xs); max-width: 60ch; }
.colophon a:not(.colophon__tel) { color: var(--color-field-ink); }

/* phone call bar: shown only once the hero has scrolled away (hidden by default, so it never covers the first screen) */
.callbar { display: none; }

/* responsive */
/* below 72rem the nav cannot hold the open/closed pill, so it moves under the rating in the hero */
@media (max-width: 72rem) {
  .hide-m { display: none; }
  .show-m:not([hidden]) { display: flex !important; width: fit-content; }
  .rating .state { margin: var(--space-xs) 0 0; }
}
@media (max-width: 60rem) {
  .hide-s { display: none; }
  .hero { padding-block: var(--space-xl) var(--space-2xl); }
  .hero__grid, .claim, .band__grid, .fix__grid, .garland__grid, .visit__grid, .colophon__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .claim { padding-block: var(--space-xl); }
}
@media (max-width: 40rem) {
  .num-l { display: none; } .num-s { display: inline; }
  .hero { min-height: 0; }
  .bar__in { min-height: 60px; }
  .wordmark { font-size: var(--text-md); }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 3rem); text-wrap: wrap; }
  .hero .lead { margin-top: var(--space-md); }
  .actions { margin-top: var(--space-lg); flex-direction: column; align-items: stretch; }
  .quote--hero { padding: var(--space-lg); box-shadow: 6px 6px 0 var(--color-accent); }
  .quote--hero p { font-size: var(--text-lg); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .estimate { padding: var(--space-lg); box-shadow: 6px 6px 0 var(--color-field); }
  .estimate .btn { justify-self: stretch; }
  .hours > div, .facts > div { flex-direction: column; gap: var(--space-2xs); }
  .hours dd, .facts dd { text-align: left; }
  .callbar { display: block; position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky); padding: var(--space-sm) var(--gutter) calc(var(--space-sm) + env(safe-area-inset-bottom, 0px)); background: var(--color-paper); border-top: var(--rule-thick) solid var(--color-ink); transition: transform var(--dur-short) var(--ease-out); }
  .callbar:not(.is-on) { transform: translateY(110%); visibility: hidden; transition: transform var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
  .callbar .btn { width: 100%; }
  .colophon { padding-bottom: calc(var(--space-2xl) + 88px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 22rem) {
  .where a { font-size: var(--text-md); }
}
