/* Kitchenhound site. Tokens are the brand board's (23 Nov 2026); contrast pairs checked there.
   Van livery (wide heavy type, ink panels) sells; job-sheet tickets (mono, ruled) show lead data. */
@font-face { font-family: "Archivo"; src: url("/static/fonts/Archivo-100-900.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500; font-display: swap; }

:root {
  --ink: #17253A;    /* primary: text, headings, dark panels */
  --blue: #245E8F;   /* links, buttons, focus */
  --amber: #F2A33A;  /* the lead marker only; never text on white (2.1:1) */
  --white: #FFFFFF;
  --mist: #E7ECF1;   /* rules, panels, inputs */
  --steel: #56657A;  /* secondary text (5.9:1 on white, 5.0:1 on mist) */
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --s-1: .8rem; --s0: 1rem; --s1: 1.25rem; --s2: 1.563rem; --s3: 1.953rem; --s4: 2.441rem; --s5: 3.052rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--s0)/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--amber); }
h1, h2, h3 { font-family: var(--display); font-stretch: 125%; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2rem, 5.2vw, var(--s5)); letter-spacing: -.01em; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 3.4vw, var(--s3)); }
h3 { font-weight: 700; font-size: var(--s1); }
p { margin: 0; max-width: 62ch; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: grid; gap: 1rem; align-content: start; }
.label { font: 500 var(--s-1)/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.muted { color: var(--steel); }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

/* wordmark: the amber full stop is the lead */
.wm { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -.02em; line-height: 1;
  color: inherit; text-decoration: none; white-space: nowrap; font-size: 1.3rem; }
.wm .dot { display: inline-block; width: .22em; height: .22em; border-radius: 50%; background: var(--amber); margin-left: .05em; }

/* header */
.site-head { background: var(--ink); color: var(--white); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  min-height: 64px; padding-block: .5rem; }
.site-head nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-head nav a { color: var(--white); text-decoration: none; font-weight: 600; padding: .6rem 0; }
.site-head nav a:hover { text-decoration: underline; }

/* sections */
section { padding-block: clamp(3rem, 7vw, 5rem); }
section + section { border-top: 1px solid var(--mist); }
.band { background: var(--ink); color: var(--white); border: 0; }
.band p { color: var(--mist); }
.band .label { color: var(--mist); }
.section-head { display: grid; gap: .6rem; margin-bottom: 2rem; }

/* hero */
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.hero .lede { font-size: var(--s1); }
.hero .lede strong { color: var(--white); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* postcode form */
.check { display: grid; gap: .5rem; max-width: 32rem; }
.check label { font-weight: 700; }
.band .check label { color: var(--white); }
.check .row { display: flex; gap: .5rem; flex-wrap: wrap; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--ink);
  border-radius: 4px; padding: .7rem .8rem; min-height: 48px; }
.check input { flex: 1 1 11rem; min-width: 0; text-transform: uppercase; }
.check input::placeholder { text-transform: none; color: var(--steel); }
.btn { font: 700 var(--s0)/1 var(--body); display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.3rem; border-radius: 4px; border: 2px solid var(--blue);
  background: var(--blue); color: var(--white); cursor: pointer; text-decoration: none; }
.btn:hover { background: #1C4C75; border-color: #1C4C75; }
.band .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); } /* ink on amber 7.4:1 */
.band .btn:hover { background: #F5B65E; border-color: #F5B65E; }
.hint { font-size: var(--s-1); color: var(--steel); }
.band .hint { color: var(--mist); }

/* lead ticket (job sheet) */
.ticket { background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; font-variant-numeric: tabular-nums; }
.band .ticket { border-color: var(--white); box-shadow: 8px 8px 0 rgba(242, 163, 58, .9); }
.ticket .top { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; align-items: center;
  padding: .7rem .9rem; border-bottom: 2px dashed var(--ink); }
.ticket .body { display: grid; gap: .65rem; padding: .9rem; }
.ticket h3 { font-stretch: 100%; }
.ticket .mono { font: 400 .85rem/1.5 var(--mono); overflow-wrap: anywhere; color: var(--ink); }
.ticket p { color: var(--ink); font-size: .95rem; }
.scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.score { background: var(--mist); padding: .45rem .55rem; border-radius: 3px; }
.score b { display: block; font: 500 1.05rem/1.3 var(--mono); }
.score.poor { background: var(--ink); color: var(--white); }
.score.poor .label { color: var(--mist); }
.ticket .foot { padding: .55rem .9rem; border-top: 1px solid var(--mist); font-size: .75rem; color: var(--steel); }
.chip { display: inline-block; font: 500 var(--s-1)/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  background: var(--amber); color: var(--ink); padding: .15rem .5rem; border-radius: 3px; }
.chip.example { background: var(--mist); }

/* what's in a lead */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid > * { min-width: 0; }
.item { display: grid; gap: .4rem; padding-top: 1rem; border-top: 3px solid var(--ink); }

/* steps: a real sequence, so numbered */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; gap: .5rem; align-content: start; padding: 1.25rem; background: var(--mist); border-radius: 4px; }
.steps li::before { content: counter(step); font: 800 var(--s3)/1 var(--display); font-stretch: 125%; }

/* price */
.price { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 760px) { .price { grid-template-columns: minmax(0, 1fr); } }
.price-card { border: 2px solid var(--ink); border-radius: 4px; padding: 1.5rem; display: grid; gap: 1rem; }
.amount { font: 800 var(--s5)/1 var(--display); font-stretch: 125%; }
.amount small { font: 400 var(--s0)/1 var(--body); color: var(--steel); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ticks li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .4rem; }
.ticks li::before { content: ""; width: .6rem; height: .6rem; margin-top: .55rem; border-radius: 50%; background: var(--amber); }

/* faq */
.faq { display: grid; gap: .75rem; max-width: 760px; }
details { border: 1px solid var(--mist); border-radius: 4px; padding: 0 1rem; }
summary { cursor: pointer; font-weight: 700; padding: .9rem 0; min-height: 48px; }
details p { padding-bottom: 1rem; }

/* patch result */
.result { display: grid; gap: 1.5rem; max-width: 760px; }
.figures { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.figure { background: var(--mist); border-radius: 4px; padding: 1rem; }
.figure strong { display: block; font: 800 var(--s4)/1.1 var(--display); font-stretch: 125%; font-variant-numeric: tabular-nums; }
.form { display: grid; gap: 1rem; max-width: 32rem; }
.form label { font-weight: 700; display: grid; gap: .35rem; }
.form input, .form select { width: 100%; }

/* plain pages (opt-out, objection, privacy) */
.page { padding-block: clamp(2rem, 6vw, 4rem); }
.page .wrap > * + * { margin-top: 1rem; }
.prose { max-width: 70ch; display: grid; gap: 1rem; }
.prose h2 { font-size: var(--s2); margin-top: 1.5rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }

/* footer */
.site-foot { background: var(--ink); color: var(--mist); padding-block: 2.5rem; font-size: .92rem; }
.site-foot .wrap { display: grid; gap: 1.25rem; }
.site-foot .wm { color: var(--white); }
.site-foot a { color: var(--white); }
.site-foot nav { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; }
.site-foot nav a { padding: .5rem 0; display: inline-block; }
.site-foot p { color: var(--mist); max-width: 80ch; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.form .agree { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-weight: 400; }
.form .agree input { width: 22px; min-height: 22px; height: 22px; margin-top: .15rem; accent-color: var(--blue); }
