/* ============================================================
   Whinstone Studio — site.css
   The quieter look's shared parts, born 15 Nov 2026 (Andy's brief of
   13 Nov): the header and nav, buttons, labels, panels and cards, the
   proof strip, steps, folds, the ink band, the footer and the phone call
   bar. Each page keeps only its own layout in its <style>.
   Rules this file holds to: every value is a token from tokens.css with a
   literal fallback, so a page still reads if tokens.css fails to load;
   nothing moves except colour on hover and focus; 44px targets; folds are
   details/summary, so they work with JS off and read with CSS off.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-base, #FFFFFF);
  color: var(--fg-primary, #16171A);
  font-family: var(--font-body, "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif);
  font-size: var(--text-body, 1rem);
  line-height: var(--leading-body, 1.6);
}
h1, h2, h3, p, ul, ol, li, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
p, li, dd { max-width: var(--measure, 62ch); }
img, svg { display: block; }
b, strong { font-weight: var(--weight-strong, 600); }

a {
  color: var(--link, #4E6538);
  text-decoration: underline;
  text-underline-offset: var(--link-underline-offset, .18em);
  text-decoration-thickness: var(--border-hairline, 1px);
  transition: color var(--motion-hover-duration, 160ms) var(--motion-hover-ease, ease-out);
}
a:hover { color: var(--link-hover, #3E5129); text-decoration-thickness: var(--border-strong, 2px); }
:focus-visible { outline: var(--border-strong, 2px) solid var(--focus-ring, #16171A); outline-offset: 2px; }

.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link: the first tab stop, parked above the viewport until focused. */
.skip {
  position: absolute;
  left: var(--gutter, 2rem);
  top: calc(-1 * var(--space-24, 6rem));
  z-index: 3;
  background: var(--fg-primary, #16171A);
  color: var(--fg-on-ink, #FFFFFF);
  padding: var(--space-2, .5rem) var(--space-4, 1rem);
  border-radius: var(--radius-button, 6px);
  text-decoration: none;
  min-height: var(--target-min, 44px);
  display: inline-flex;
  align-items: center;
}
.skip:focus { top: var(--space-2, .5rem); color: var(--fg-on-ink, #FFFFFF); }

.container {
  width: 100%;
  max-width: var(--container, 73.75rem);
  margin-inline: auto;
  padding-inline: var(--gutter, 2rem);
}
@media (max-width: 599.98px) { .container { padding-inline: var(--gutter, 1.25rem); } }
.section { margin-top: var(--section-gap, 6rem); }
@media (max-width: 599.98px) { .section { margin-top: var(--section-gap, 3.5rem); } }

/* ---- Type ---- */
h1, .h1 {
  font-family: var(--font-display, "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif);
  font-weight: var(--weight-display, 500);
  font-size: var(--text-h1, 3.5rem);
  line-height: var(--leading-h1, 1.05);
  letter-spacing: var(--tracking-h1, -.025em);
  max-width: var(--measure-h1, 14ch);
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-display, "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif);
  font-weight: var(--weight-display, 500);
  font-size: var(--text-h2, 2.125rem);
  line-height: var(--leading-h2, 1.15);
  letter-spacing: var(--tracking-h2, -.02em);
  text-wrap: balance;
}
.h2-small { font-size: var(--text-h2-small, 1.75rem); }
.h2-contact { font-size: var(--text-h2-contact, 2.5rem); }
h3, .h3 {
  font-family: var(--font-body, "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif);
  font-weight: var(--weight-strong, 600);
  font-size: var(--text-body, 1rem);
  line-height: var(--leading-h2, 1.35);
}
.lead {
  font-size: var(--text-lead, 1.125rem);
  line-height: var(--leading-lead, 1.5);
  color: var(--fg-secondary, #4F5157);
  max-width: var(--measure-lead, 44ch);
}
.secondary { color: var(--fg-secondary, #4F5157); }
.small { font-size: var(--text-sm, .875rem); line-height: var(--leading-sm, 1.5); color: var(--fg-secondary, #4F5157); }
/* Small labels: Fragment Mono, uppercase, in the label colour. Never below
   11px, and never below 12px on a panel. */
.label {
  font-family: var(--font-label, "Fragment Mono", ui-monospace, Menlo, Consolas, monospace);
  font-weight: 400;
  font-size: var(--text-label, .75rem);
  line-height: 1.45;
  letter-spacing: var(--tracking-label, .06em);
  text-transform: uppercase;
  color: var(--fg-muted, #6B6D73);
}
.panel .label { font-size: var(--text-xs, .75rem); }
/* A two-part label, "this · that". On phones the second part drops to
   its own line and the dot goes, so a dot never hangs at the end of a
   line (15 Nov 2026, as Andy's fix 8 did for the footer). The dot is real
   text, so with CSS off the label still reads "this · that". */
@media (max-width: 599.98px) {
  .two-part .sep { display: none; }
  .two-part .part { display: block; }
}
/* A link standing on its own is a target: 44px tall. A link inside a
   sentence can be smaller. */
.solo { display: inline-flex; align-items: center; min-height: var(--target-min, 44px); }
.ico { width: 20px; height: 20px; flex: none; }

/* Stacks: the gap between a section's own blocks. */
.stack > * + * { margin-top: var(--space-4, 1rem); }
.stack-tight > * + * { margin-top: var(--space-2, .5rem); }
.stack-loose > * + * { margin-top: var(--space-6, 1.5rem); }

/* ---- The header and nav (every page) ---- */
.site-header { border-bottom: var(--border-hairline, 1px) solid var(--rule, #E7E4DD); }
/* One row from 960px: the wordmark, the pages, the button. Below that the
   button sits on the wordmark's row, on the right, and the pages wrap
   underneath: three rows at 360px (15 Nov 2026, Andy's fix 5). */
.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand cta" "nav nav";
  align-items: center;
  gap: 0 var(--space-4, 1rem);
  padding-block: var(--space-3, .75rem);
}
.site-header-inner > .brand { grid-area: brand; justify-self: start; }
.site-header-inner > .site-nav { grid-area: nav; }
.site-header-inner > .header-cta { grid-area: cta; }
@media (min-width: 960px) {
  .site-header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav cta";
    column-gap: var(--space-6, 1.5rem);
  }
  .site-header-inner > .site-nav { justify-self: end; }
}
/* The wordmark: "Whinstone Studio" in Bricolage 600, 20px (18px on
   phones), still. No big lockup anywhere. */
.brand {
  font-family: var(--font-display, "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif);
  font-weight: var(--weight-brand, 600);
  font-size: var(--text-brand, 1.25rem);
  letter-spacing: -.01em;
  color: var(--fg-primary, #16171A);
  text-decoration: none;
  min-height: var(--target-min, 44px);
  display: inline-flex;
  align-items: center;
}
a.brand:hover { color: var(--fg-primary, #16171A); }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-6, 1.5rem);
}
.site-nav li { max-width: none; }
.site-nav ul a {
  color: var(--fg-primary, #16171A);
  text-decoration: none;
  font-size: var(--text-sm, .875rem);
  font-weight: 500;
  min-height: var(--target-min, 44px);
  display: inline-flex;
  align-items: center;
  border-bottom: var(--border-hairline, 1px) solid transparent;
  transition: border-color var(--motion-hover-duration, 160ms) var(--motion-hover-ease, ease-out);
}
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--fg-primary, #16171A); }

/* ---- Buttons: 48px, 22px sides, 6px corners, Schibsted 600 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, .5rem);
  min-height: var(--button-height, 3rem);
  padding: 0 var(--button-padding-x, 1.375rem);
  border: var(--border-hairline, 1px) solid transparent;
  border-radius: var(--button-radius, 6px);
  font-family: var(--font-body, "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif);
  font-weight: var(--weight-strong, 600);
  font-size: var(--text-body, 1rem);
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--motion-hover-duration, 160ms) var(--motion-hover-ease, ease-out),
              color var(--motion-hover-duration, 160ms) var(--motion-hover-ease, ease-out),
              border-color var(--motion-hover-duration, 160ms) var(--motion-hover-ease, ease-out);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--button-bg, #16171A); color: var(--button-fg, #FFFFFF); }
.btn-primary:hover { background: var(--button-bg-hover, #4F5157); color: var(--button-fg, #FFFFFF); }
.btn-primary:active { background: var(--button-bg-active, #000000); }
.btn-secondary {
  background: var(--bg-base, #FFFFFF);
  color: var(--fg-primary, #16171A);
  border-color: var(--button-outline, #16171A);
}
.btn-secondary:hover { background: var(--bg-raised, #F6F5F1); color: var(--fg-primary, #16171A); }
/* On ink: a white fill with ink text, or a 1px outline with white text. */
.btn-on-ink { background: var(--fg-on-ink, #FFFFFF); color: var(--fg-primary, #16171A); }
.btn-on-ink:hover { background: var(--fg-on-ink-secondary, #C9C7C1); color: var(--fg-primary, #16171A); }
.btn-outline-on-ink {
  background: transparent;
  color: var(--fg-on-ink, #FFFFFF);
  border-color: var(--fg-on-ink-muted, #A9A7A1);
}
.btn-outline-on-ink:hover { border-color: var(--fg-on-ink, #FFFFFF); color: var(--fg-on-ink, #FFFFFF); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3, .75rem); }

/* ---- Panels and cards: 10px corners, no shadow ---- */
.panel {
  background: var(--bg-raised, #F6F5F1);
  border-radius: var(--radius-card, 10px);
  padding: var(--space-12, 3rem);
}
.card {
  background: var(--bg-base, #FFFFFF);
  border: var(--border-hairline, 1px) solid var(--rule, #E7E4DD);
  border-radius: var(--radius-card, 10px);
  padding: var(--space-6, 1.5rem);
}
.card-outline {
  border: var(--border-hairline, 1px) solid var(--line-strong, #16171A);
  border-radius: var(--radius-card, 10px);
  padding: var(--space-6, 1.5rem);
}
.card-ink {
  background: var(--fg-primary, #16171A);
  color: var(--fg-on-ink, #FFFFFF);
  border-radius: var(--radius-card, 10px);
  padding: var(--space-8, 2rem);
}
.card-ink .label { color: var(--fg-on-ink-muted, #A9A7A1); }
.card-ink .secondary, .card-ink p { color: var(--fg-on-ink-secondary, #C9C7C1); }
.card-ink .price, .card-ink .strong { color: var(--fg-on-ink, #FFFFFF); }
/* Links on ink take the on-ink green; a button keeps its own colours. */
.card-ink a:not(.btn) { color: var(--accent-on-ink, #B7C79C); }
.card-ink .rule { border-top-color: var(--fg-on-ink-muted, #A9A7A1); }
.card-ink > hr.rule { margin-block: var(--space-4, 1rem); }
@media (max-width: 599.98px) {
  .panel { padding: var(--space-6, 1.5rem); }
  .card-ink { padding: var(--space-6, 1.5rem); }
}
.rule {
  border: 0;
  border-top: var(--border-hairline, 1px) solid var(--rule, #E7E4DD);
  margin: var(--space-6, 1.5rem) 0;
}
/* A price figure: Bricolage 500. */
.price {
  font-family: var(--font-display, "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif);
  font-weight: var(--weight-display, 500);
  font-size: var(--text-price, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  max-width: none;
}
.price-small { font-size: var(--text-price-small, 1.875rem); }
.price-strip { font-size: var(--text-price-strip, 1.625rem); }

/* A row between two hairlines, not a panel. */
.rule-row {
  border-top: var(--border-hairline, 1px) solid var(--rule, #E7E4DD);
  border-bottom: var(--border-hairline, 1px) solid var(--rule, #E7E4DD);
  padding-block: var(--space-12, 3rem);
}
@media (max-width: 599.98px) { .rule-row { padding-block: var(--space-8, 2rem); } }

/* Two columns from 900px: the label and heading left, the words right. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6, 1.5rem) var(--space-16, 4rem);
}
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ---- The proof line: four short items between two hairlines ---- */
.proof {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3, .75rem) var(--space-6, 1.5rem);
  border-top: var(--border-hairline, 1px) solid var(--rule, #E7E4DD);
  border-bottom: var(--border-hairline, 1px) solid var(--rule, #E7E4DD);
  padding-block: var(--space-4, 1rem);
}
.proof li { max-width: none; }
@media (max-width: 767.98px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Steps: the number in Fragment Mono, a heading, a line ---- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8, 2rem) var(--space-8, 2rem);
}
@media (min-width: 768px) { .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li {
  max-width: none;
  border-top: var(--border-hairline, 1px) solid var(--rule, #E7E4DD);
  padding-top: var(--space-4, 1rem);
}
.steps li > * + * { margin-top: var(--space-2, .5rem); }
.steps .secondary { color: var(--fg-secondary, #4F5157); }

/* ---- Folds: details/summary, a plus that becomes a minus, no motion ---- */
.faq details { border-top: var(--border-hairline, 1px) solid var(--rule, #E7E4DD); }
.faq details:last-of-type { border-bottom: var(--border-hairline, 1px) solid var(--rule, #E7E4DD); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4, 1rem);
  min-height: var(--space-16, 4rem);
  padding-block: var(--space-3, .75rem);
  font-weight: var(--weight-strong, 600);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  font-family: var(--font-label, "Fragment Mono", ui-monospace, Menlo, Consolas, monospace);
  font-size: var(--text-lead, 1.125rem);
  font-weight: 400;
  color: var(--fg-secondary, #4F5157);
}
.faq details[open] > summary::after { content: "\2212"; content: "\2212" / ""; }
.faq details > :not(summary) { padding-bottom: var(--space-6, 1.5rem); }
.faq > details + details { margin-top: 0; }
.faq > .actions { margin-top: var(--space-8, 2rem); }

/* ---- Inner pages (15 Nov 2026) ----
   /calls, /knowledge-catalogue, /citable-standard, /facts and /privacy keep
   their own layouts and take these shared parts: the page head, the
   two-column section shell, hairline rows, icon rows, chips and the small
   panel card. */
.page { padding-block: var(--space-16, 4rem) var(--section-gap, 6rem); }
@media (max-width: 599.98px) { .page { padding-block: var(--space-12, 3rem) var(--section-gap, 3.5rem); } }
.page-head > * + * { margin-top: var(--space-6, 1.5rem); }
.page-head > .label + h1 { margin-top: var(--space-4, 1rem); }
.page-head > .actions { margin-top: var(--space-8, 2rem); }
/* The section shell: a hairline across the top, the heading left, the
   content right; stacked below 768px. The section gap is split either
   side of the hairline: 96px between sections on desktop, 56px on phones. */
.shell {
  border-top: var(--border-hairline, 1px) solid var(--rule, #E7E4DD);
  margin-top: calc(var(--section-gap, 6rem) / 2);
  padding-top: calc(var(--section-gap, 6rem) / 2);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr);
  column-gap: var(--space-16, 4rem);
}
@media (max-width: 767.98px) {
  .shell { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-6, 1.5rem); }
}
.shell .content > * + * { margin-top: var(--space-4, 1rem); }
.shell .faq > details + details { margin-top: 0; }
.shell .faq > .actions { margin-top: var(--space-8, 2rem); }
.side > * + * { margin-top: var(--space-4, 1rem); }
/* Rows with a hairline between; .irows puts a 20px icon in place of the
   bullet. */
.rows { list-style: none; }
.rows li { padding-block: var(--space-4, 1rem); max-width: none; }
.rows li + li { border-top: var(--border-hairline, 1px) solid var(--rule, #E7E4DD); }
.rows li:first-child { padding-top: 0; }
.rows li:last-child { padding-bottom: 0; }
.irows li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: var(--space-3, .75rem);
  align-items: start;
}
.irows .ico { margin-top: var(--space-1, .25rem); color: var(--accent, #4E6538); }
.card-ink .rows li + li { border-top-color: var(--fg-on-ink-muted, #A9A7A1); }
.card-ink .rows li { color: var(--fg-on-ink, #FFFFFF); }
.card-ink .irows .ico { color: var(--accent-on-ink, #B7C79C); }
.card-ink :focus-visible { outline-color: var(--fg-on-ink, #FFFFFF); }
.lead-in { font-weight: var(--weight-strong, 600); }
/* A chip: a small label in a 1px ink border, the button's 6px corners. */
.chip {
  display: inline-block;
  padding: var(--space-1, .25rem) var(--space-3, .75rem);
  border: var(--border-hairline, 1px) solid var(--line-strong, #16171A);
  border-radius: var(--radius-button, 6px);
  color: var(--fg-primary, #16171A);
}
/* A small card in the panel colour: 10px corners, no border, no shadow. */
.card-panel {
  background: var(--bg-raised, #F6F5F1);
  border-radius: var(--radius-card, 10px);
  padding: var(--space-6, 1.5rem);
}
.card-panel .label { font-size: var(--text-xs, .75rem); }
/* A label and its price figure on one line, wrapping when narrow. */
.price-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1, .25rem) var(--space-3, .75rem); max-width: none; }

/* ---- The ink band: get in touch ---- */
.ink-band {
  background: var(--fg-primary, #16171A);
  color: var(--fg-on-ink, #FFFFFF);
  margin-top: var(--section-gap, 6rem);
  padding-block: var(--section-gap, 6rem);
}
.ink-band .label { color: var(--fg-on-ink-muted, #A9A7A1); }
.ink-band p { color: var(--fg-on-ink-secondary, #C9C7C1); }
.ink-band h2 { color: var(--fg-on-ink, #FFFFFF); }
.ink-band a:not(.btn) { color: var(--accent-on-ink, #B7C79C); }
.ink-band :focus-visible { outline-color: var(--fg-on-ink, #FFFFFF); }

/* ---- The footer: one row ---- */
.site-footer {
  border-top: var(--border-hairline, 1px) solid var(--rule, #E7E4DD);
  padding-block: var(--space-6, 1.5rem);
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2, .5rem) var(--space-8, 2rem);
  font-size: var(--text-sm, .875rem);
  color: var(--fg-secondary, #4F5157);
}
.site-footer p { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2, .5rem); }
/* No dot left hanging at the end of a line (15 Nov 2026, Andy's fix 8):
   the separators are real text, so with CSS off the line still reads
   "Dundee, Scotland · 01382 236842 · hello@…", but on phones the contact
   items stack and their dots go. "The facts · Privacy" is short enough
   to stay one line at any width. */
@media (max-width: 599.98px) {
  .site-footer-inner { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-footer .footer-contact { flex-direction: column; align-items: flex-start; }
  .site-footer .footer-contact .sep { display: none; }
  .site-footer .footer-contact > span:first-child { min-height: var(--target-min, 44px); display: inline-flex; align-items: center; }
}
.site-footer a { display: inline-flex; align-items: center; min-height: var(--target-min, 44px); }
/* The footer wordmark is text size; as a link it keeps the 44px target. */
.site-footer .brand { font-size: var(--text-body, 1rem); }
/* The areas line, kept on the pages that had one (15 Nov 2026): the same
   four as the data's areaServed, label voice, on its own row under the
   footer's one row — at the far corner on desktop, as it was. */
.site-footer .footer-areas { flex-basis: 100%; justify-content: flex-end; }
@media (max-width: 599.98px) {
  .site-footer .footer-areas { flex-basis: auto; justify-content: flex-start; margin-top: var(--space-2, .5rem); }
}

/* ---- The call bar: phones, home only ---- */
.callbar { display: none; }
@media (max-width: 599.98px) {
  .callbar {
    display: grid;
    /* Each button on one line at 360px (15 Nov 2026, Andy's fix 6): the
       type is a step smaller, and "Ring" keeps three fifths but never less
       than its own one line, so the whole number always shows. */
    grid-template-columns: minmax(max-content, 3fr) minmax(0, 2fr);
    gap: var(--space-2, .5rem);
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    background: var(--fg-primary, #16171A);
    padding: var(--space-2, .5rem) var(--gutter, 1.25rem) calc(var(--space-2, .5rem) + env(safe-area-inset-bottom, 0px));
  }
  .callbar .btn { min-height: var(--target-min, 44px); padding-inline: var(--space-3, .75rem); font-size: var(--text-sm, .875rem); }
  .callbar .btn:first-child { white-space: nowrap; }
  .callbar :focus-visible { outline-color: var(--fg-on-ink, #FFFFFF); }
  body.has-callbar { padding-bottom: calc(var(--target-min, 44px) + 2 * var(--space-2, .5rem) + env(safe-area-inset-bottom, 0px)); }
}
@media print {
  .callbar { display: none; }
  body.has-callbar { padding-bottom: 0; }
}
