/* Knowledge Work — site styles.
   Ported from the Claude Design canvas build (knowledgework.co.uk). The canvas
   emitted inline styles per element; here the same design is expressed as
   tokens plus component classes so the block partials stay readable. */

:root {
  --paper: #FAF8F4;
  --cloud: #F2EEE7;
  --rule: #E5DFD5;
  --ink: #26272E;
  --slate: #6F685C;
  --amber: #EA8A2E;
  --amber-dark: #D97B20;
  --mist: #C9C3B8;
  --wrap: 1160px;
  --gutter: 32px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h3 { letter-spacing: -0.02em; }
p { margin: 0; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--amber); }

/* Links inside editorial copy keep an underline; chrome links do not. */
.rte a, .prose a {
  text-decoration: underline;
  text-decoration-color: rgba(38, 39, 46, .3);
  text-underline-offset: 3px;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--amber); color: var(--ink); }

img { max-width: 100%; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%);
}

/* ---------------------------------------------------------------- layout */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.section > .wrap { padding-top: 72px; padding-bottom: 72px; }
.section + .section > .wrap { border-top: 1px solid var(--rule); }

/* The block that opens a page gets more air above and no rule. */
main > .section:first-child > .wrap { padding-top: 88px; padding-bottom: 64px; }

/* Continues the block above it: no rule, no extra air. */
.section--flush > .wrap { border-top: 0; padding-top: 0; }

.section--dark { background: var(--ink); color: var(--paper); }
.section--dark > .wrap { border-top: 0; }
.section--dark + .section > .wrap { border-top: 0; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }

.split { display: grid; grid-template-columns: var(--cols, 1fr 1fr); gap: 56px; align-items: start; }
.split--centred { align-items: center; }
/* Copy beside a picture, and the contact form beside its info cards. */
.split--7-5 { --cols: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
.split--form { --cols: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }

/* ------------------------------------------------------------- typography */

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--amber);
}
.eyebrow--muted { color: var(--slate); font-size: 12px; }

.h-display { font-size: clamp(40px, 5.2vw, 64px); }
.h-page    { font-size: clamp(36px, 4.8vw, 56px); }
.h-section { font-size: clamp(30px, 3.6vw, 42px); }
.h-sub     { font-size: clamp(28px, 3.2vw, 38px); }

.standfirst { font-size: 19px; max-width: 60ch; color: var(--slate); }
.muted { color: var(--slate); }
.measure { max-width: 62ch; }

.badge {
  display: inline-block; padding: 5px 12px;
  background: var(--amber); color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; border-radius: 3px;
}

.mt-s  { margin-top: 10px; }
.mt-m  { margin-top: 16px; }
.mt-l  { margin-top: 20px; }
.mt-xl { margin-top: 36px; }

.rte > * + * { margin-top: 16px; }
.rte ul, .rte ol { padding-left: 22px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 14px 28px;
  font-family: inherit; font-size: 16px; font-weight: 700;
  border: none; border-radius: 4px; cursor: pointer;
}
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-dark); color: var(--ink); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(38, 39, 46, .24); min-height: 48px; padding: 13px 26px;
}
.btn--ghost:hover { background: var(--cloud); color: var(--ink); }
.btn--block { width: 100%; min-height: 52px; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- header */

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .nav {
  max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; position: relative;
}

.wordmark { display: block; line-height: 0.94; letter-spacing: -0.03em; }
.wordmark span { display: block; }
.wordmark__top { font-size: 14px; font-weight: 400; }
.wordmark__main { font-size: 22px; font-weight: 800; }
.wordmark .dot { color: var(--amber); display: inline; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; }
.nav-links a[aria-current="page"] {
  font-weight: 600; border-bottom: 2px solid var(--amber); padding-bottom: 2px;
}

.nav-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 11px 22px;
  background: var(--amber); color: var(--ink);
  font-size: 15px; font-weight: 700; border-radius: 4px;
}
.nav-cta:hover { background: var(--amber-dark); color: var(--ink); }

/* CSS-only mobile menu: a checkbox toggles the panel, so no JavaScript. */
.nav-toggle {
  display: none; -webkit-appearance: none; appearance: none;
  position: relative; width: 44px; height: 44px;
  border: 1px solid rgba(38, 39, 46, .18); border-radius: 4px;
  background: transparent; cursor: pointer; padding: 0; margin: 0;
}
.nav-toggle:hover { background: var(--cloud); }
.nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ink); transition: transform .16s ease;
}
.nav-toggle::before { top: 17px; }
.nav-toggle::after { top: 25px; }
.nav-toggle:checked::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle:checked::after { transform: translateY(-4px) rotate(-45deg); }

.mobile-panel {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  z-index: 50; flex-direction: column; padding: 8px var(--gutter) 24px;
}
.mobile-panel a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.mobile-panel a[aria-current="page"] { font-weight: 700; }
.mobile-panel .btn { margin-top: 20px; border-bottom: 0; }

/* ----------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--rule); }
.site-footer > .wrap {
  padding-top: 48px; padding-bottom: 48px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 24px; align-items: flex-end;
}
.site-footer .wordmark__top { font-size: 13px; }
.site-footer .wordmark__main { font-size: 20px; }
.site-footer p { margin-top: 14px; font-size: 14px; color: var(--slate); }
.site-footer p + p { margin-top: 4px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 15px; }

/* ------------------------------------------------------------ media boxes */

.frame {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--cloud);
}
.frame--4x3 { aspect-ratio: 4 / 3; }
.frame--16x10 { aspect-ratio: 16 / 10; background: var(--rule); }

.img-fill { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Stand-in for an image the editor has not picked yet. */
.img-ph {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 180px;
  background: repeating-linear-gradient(45deg, #EFEAE1, #EFEAE1 10px, #E9E3D8 10px, #E9E3D8 20px);
  color: #8A8272; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-align: center; padding: 16px;
}

/* ------------------------------------------------------------------ cards */

.card {
  background: var(--cloud); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 28px;
}
.card--plain { background: transparent; }
/* Info cards beside the contact form sit on the page, not on a panel. */
.split--form .stack .card { background: transparent; }
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card__body { padding: 24px; }
.card h3 { font-size: 21px; }
.card__text { font-size: 16px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--wide { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--tight { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stack { display: grid; gap: 20px; }

/* ------------------------------------------------------------- step lists */

.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px;
}
.steps li { border-top: 2px solid var(--rule); padding-top: 18px; }
.steps li:first-child { border-top-color: var(--amber); }
.step__no { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; color: var(--slate); }
.steps li:first-child .step__no { color: var(--amber); }
.steps h3 { font-size: 20px; margin-top: 8px; }
.steps p { margin-top: 8px; font-size: 16px; color: var(--slate); }

/* ------------------------------------------------------------ bullet list */

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tick-list li {
  background: var(--cloud); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 18px 22px; font-size: 16px;
}

/* ------------------------------------------------------------------ quote */

.pull-quote { margin: 0; max-width: 62ch; }
.pull-quote blockquote {
  font-size: clamp(24px, 3vw, 34px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.28; margin: 0;
}
.pull-quote figcaption { margin-top: 20px; font-size: 16px; color: var(--slate); }

/* ------------------------------------------------------------- cta banner */

.cta-banner > .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.cta-banner h2 { max-width: 24ch; font-size: clamp(28px, 3.4vw, 40px); }
.cta-banner p { color: var(--mist); margin-top: 14px; max-width: 52ch; font-size: 17px; }

/* ------------------------------------------------------------------- form */

.form-panel {
  background: var(--cloud); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 32px;
}
.form-panel h2 { font-size: 26px; }

.form { display: grid; gap: 20px; margin-top: 24px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }

input, textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid rgba(38, 39, 46, .22);
  border-radius: 4px; padding: 12px 14px; width: 100%; min-height: 48px;
}
textarea { min-height: 132px; resize: vertical; }
input:hover, textarea:hover { border-color: rgba(38, 39, 46, .4); }

.field-note { font-size: 14px; color: var(--slate); }
.field-error { display: block; font-size: 14px; font-weight: 600; color: #B3431A; margin-top: 6px; }
.form-summary {
  border: 1px solid #B3431A; border-radius: 4px;
  padding: 14px 16px; color: #B3431A; font-size: 15px;
}
.form-summary ul { margin: 0; padding-left: 20px; }

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-toggle:checked ~ .mobile-panel { display: flex; }
}

/* ------------------------------------------------------------ style guide */

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.hv-amber:hover { background: var(--amber-dark) !important; }
.hv-ink:hover { background: #3A3B44 !important; }
.hv-cloud:hover { background: var(--cloud) !important; }

/* Submit result for the contact form, announced in place by contact-form.js. */
.form-status {
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 15px;
}
.form-status--success { border: 1px solid #6F8F5C; color: #3F5B31; }
.form-status--error { border: 1px solid #B3431A; color: #B3431A; }
