/* Hallmark · shape: Sticky diptych over a ruled shelf · genre: editorial · theme: Ink (deal 2/3, seed local-plumbing-heating-company-cbd2·33cb68b7·2026-10-26·r0) · job: hire · draw: manual
 * hero: split, the van on the right · nav: edge-aligned, the logo plate and one call action · footer: contact mast over the company line · imagery: photographs (the client's own, from Facebook) · signature: the black van with the yellow stripe, and the phone number set like it is on the van · ink: paper, accent swapped to SMK yellow
 * axes: light/grotesk-sans/chromatic-yellow · posture: restrained · contrast: pass · fold: pass · brand: SMK Plumbing & Heating (spec 2026-10-26, sampled from logo pixels) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V3 · weakest: V, one deal so far; varied by moving the photographs into a pinned scroll instead of a grid */
/* Hallmark · waive 22 · ink, plate and greys at zero chroma · the SMK van and logo are printed in plain black and white with one yellow stripe */
/* Hallmark · dismissed F4 · the yellow fill only appears in the phone call bar, which replaces the header button below 40rem */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --color-accent: #fdf100;
  --color-accent-ink: oklch(16% 0 0);
  --color-accent-soft: #fdf100;
  --color-accent-soft-ink: oklch(16% 0 0);
  --color-focus: oklch(16% 0 0);
  --color-plate: oklch(13% 0 0);
  --color-plate-ink: oklch(99.5% 0.003 100);
  --color-plate-rule: oklch(35% 0 0);
  --color-plate-muted: oklch(75% 0 0);
  --gap-split: var(--space-2xl);
  --color-backdrop: oklch(13% 0 0 / 0.82);
  --header-h: 72px;
  --container: 1240px;
}

h1, h2, h3 { font-weight: var(--display-weight); line-height: 1.02; }
a { font-weight: 600; }
a:hover { text-decoration-color: var(--color-ink); text-decoration-thickness: 3px; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }

/* controls */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: 48px; padding: var(--space-sm) var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule); border-radius: 10px;
  background: var(--color-paper-2); color: var(--color-ink);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { background: var(--color-paper-3); border-color: var(--color-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn--yellow { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--yellow:hover { background: var(--color-paper); border-color: var(--color-paper); }
.tag { 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; background: var(--color-paper-3); color: var(--color-ink); white-space: nowrap; }
.tag--yellow { background: var(--color-accent); color: var(--color-accent-ink); }

/* header */
.site-head { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.site-head .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: var(--header-h); }
.plate { display: block; background: var(--color-plate); border-radius: 6px; padding: var(--space-xs) var(--space-sm); }
.plate img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--space-lg); }
.site-nav a:not(.btn) { font-weight: 400; color: var(--color-ink-2); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--color-ink); text-decoration: underline; }
@media (max-width: 60rem) { .site-nav a:not(.btn) { display: none; } }
@media (max-width: 40rem) { .site-head .btn span.long { display: none; } .plate img { height: 30px; } }

/* hero */
.hero { padding-block: var(--space-2xl) var(--section-gap-s); }
.hero .container { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap-split); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.creds { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: var(--space-xl) 0 0; padding: var(--space-md) 0 0; border-top: var(--rule-hair) solid var(--color-ink); list-style: none; }
.hero figure { margin: 0; }
.photo { border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; overflow: hidden; background: var(--color-paper-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.hero .van { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100svh - var(--header-h) - var(--space-3xl)); margin-inline: auto 0; -webkit-mask-image: linear-gradient(to right, transparent, black 18%); mask-image: linear-gradient(to right, transparent, black 18%); }
.hero figcaption { text-align: right; }
figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 60rem) {
  .hero { padding-block: var(--space-xl) var(--section-gap-s); }
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero .van { max-height: 56svh; }
}

/* sections */
.section { padding-block: var(--section-gap-s); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-split); align-items: end; margin-bottom: var(--space-xl); }
.section-head p { color: var(--color-ink-2); }
@media (max-width: 60rem) { .section-head { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); } }

/* the shelf: services as a ruled list */
.shelf { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.shelf li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: var(--space-lg); align-items: baseline; padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.shelf h3 { font-size: var(--text-xl); letter-spacing: -0.02em; }
.shelf p { color: var(--color-ink-2); }
@media (max-width: 40rem) { .shelf li { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs) var(--space-md); } .shelf p { grid-column: 1 / -1; grid-row: 2; } }

/* the work: a sticky diptych */
.work { background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }
.diptych { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-split); }
.pane-sticky { position: sticky; top: calc(var(--header-h) + var(--space-xl)); align-self: start; z-index: var(--z-sticky); }
.pane-sticky > p { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 36ch; }
.index { list-style: none; margin: var(--space-xl) 0 0; padding: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.index li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); transition: color var(--dur-short) var(--ease-out); }
.index li .n { font-variant-numeric: tabular-nums; }
.index li.is-on { color: var(--color-ink); font-weight: 600; }
.index li .mark { width: 14px; height: 14px; border-radius: 3px; background: var(--color-accent); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); }
.index li.is-on .mark { opacity: 1; box-shadow: inset 0 0 0 1px var(--color-ink); }
.pane-scroll { display: grid; gap: var(--space-3xl); }
.album__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-sm); margin-bottom: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-ink); }
.album__head p { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.tiles--one { grid-template-columns: minmax(0, 1fr); max-width: 66%; }
.tiles a { display: block; border-radius: var(--radius-card); overflow: hidden; outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; background: var(--color-paper-3); }
.tiles a { transition: box-shadow var(--dur-micro) var(--ease-out); }
.tiles img { width: 100%; height: auto; }
.tiles a:hover { box-shadow: 0 0 0 4px var(--color-accent); }
.tiles a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.index a { font-weight: inherit; color: inherit; text-decoration: none; }
.index a:hover { text-decoration: underline; }
@media (max-width: 60rem) {
  .diptych { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .pane-sticky { position: static; }
  .index { display: none; }
  .pane-scroll { gap: var(--space-2xl); }
}
@media (max-width: 40rem) { .tiles { gap: var(--space-xs); } .tiles--one { max-width: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 40rem) {
    .tiles li { animation: tile-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes tile-in { from { opacity: 0.3; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}

/* lightbox */
.lightbox { width: min(92vw, 900px); max-height: 94vh; padding: var(--space-md); border: 0; border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-card); }
.lightbox::backdrop { background: var(--color-backdrop); }
.lightbox img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: 8px; background: var(--color-paper-3); }
.lightbox__caption { margin-top: var(--space-sm); color: var(--color-ink-2); }
.lightbox__nav { display: flex; justify-content: space-between; gap: var(--space-xs); margin-top: var(--space-md); }
.lightbox__nav .btn { flex: 1; justify-content: center; }

/* proof */
.proof .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-split); align-items: start; }
.proof blockquote { margin: 0; }
.proof blockquote p { font-size: var(--text-2xl); line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; max-width: 28ch; }
.proof blockquote footer { margin-top: var(--space-md); color: var(--color-muted); }
.facts { display: grid; gap: 0; margin: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-md); align-items: baseline; padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { color: var(--color-ink-2); }
.facts dd { margin: 0; font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; text-align: right; }
@media (max-width: 60rem) { .proof .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* close: the call, set like the van */
.close { background: var(--color-plate); color: var(--color-plate-ink); padding-block: var(--section-gap-s); }
.close .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-split); align-items: end; }
.close h2 { max-width: 16ch; }
.stripe { display: inline-block; margin-top: var(--space-lg); padding: var(--space-xs) var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-display-s); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; text-decoration: none; font-variant-numeric: tabular-nums; border-radius: 4px; transition: background-color var(--dur-micro) var(--ease-out); }
.stripe:hover { background: var(--color-plate-ink); text-decoration: none; }
.stripe:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
.contact { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-plate-ink); }
.contact li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--space-md); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-plate-rule); }
.contact li span { color: var(--color-plate-muted); }
.contact a { overflow-wrap: anywhere; }
.contact a:focus-visible { outline-color: var(--color-accent); }
@media (max-width: 60rem) { .close .container { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* footer */
.site-foot { padding-block: var(--space-xl) calc(var(--space-xl) + 72px); font-size: var(--text-sm); color: var(--color-muted); }
.site-foot .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); }
@media (min-width: 40.01rem) { .site-foot { padding-bottom: var(--space-xl); } }

/* phone call bar */
.callbar { position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky-nav); display: none; gap: var(--space-xs); padding: var(--space-xs) var(--space-md) calc(var(--space-xs) + env(safe-area-inset-bottom)); background: var(--color-plate); }
.callbar .btn { flex: 1; justify-content: center; }
@media (max-width: 40rem) { .callbar { display: flex; } }
