/* Fonts are self-hosted so the site makes no third-party requests, which
   /privacy promises. Satoshi: ITF Free Font License (fonts/SATOSHI-LICENSE.txt);
   the others: SIL Open Font License (fonts/OFL.txt).
   Display type is Satoshi Bold everywhere (600–800 all map to it); Black is
   only for the rare place that asks for 900. */
@font-face {
  font-family: "Satoshi";
  src: url(/fonts/satoshi-700.woff2) format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url(/fonts/satoshi-900.woff2) format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(/fonts/instrument-sans-400.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(/fonts/instrument-sans-500.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url(/fonts/instrument-sans-600.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(/fonts/ibm-plex-mono-400.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(/fonts/ibm-plex-mono-500.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Palette */
  --paper: #f6f5f0; /* warm paper, main background */
  --paper-sunk: #eae9e2; /* soft warm gray, secondary background */
  --ink: #141414; /* near-black text and inverted sections */
  --ink-muted: #73756f; /* supporting text */
  --ink-faint: #73756f;
  --rule: #d5d6cf; /* dividers */
  --rule-strong: #141414;
  --citron: #e8f56a; /* the one accent: markers, highlights, dark-section emphasis */
  --accent: #141414; /* text-level emphasis stays ink: citron is unreadable on paper */
  --highlight: var(--citron);
  --accent-ink: #141414;

  /* Type */
  --font-display: Satoshi, "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-display: clamp(2.5rem, 6.4vw, 5rem);
  --lh-display: 0.95;
  --ls-display: -0.025em;
  --fs-h1: clamp(2.25rem, 5.2vw, 4rem);
  --lh-h1: 1;
  --ls-h1: -0.022em;
  --fs-h2: clamp(1.625rem, 3.2vw, 2.5rem);
  --lh-h2: 1.08;
  --ls-h2: -0.022em;
  --fs-h3: clamp(1.125rem, 1.6vw, 1.375rem);
  --lh-h3: 1.25;
  --ls-h3: -0.01em;
  --fs-lead: clamp(1.1875rem, 1.9vw, 1.5rem);
  --fs-body: 1.125rem;
  --lh-body: 1.6;
  --ls-body: -0.005em;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;
  --ls-label: 0.08em;
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --s-32: 8rem;
  --s-40: 10rem;
  --container: 72rem;
  --container-text: 46rem;
  --gutter: 1.5rem;
  --section-y: clamp(3rem, 8vw, 8rem);
}
@media (width<=40rem) {
  :root {
    --gutter: 1rem;
  }
}
*,
:before,
:after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  :before,
  :after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  margin: 0;
}
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  margin: 0;
  font-weight: 600;
}
/* Major headlines in Satoshi; smaller headings stay in Instrument Sans. */
h1,
h2,
.display,
.h1,
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
}
::selection {
  background: var(--citron);
  color: var(--ink);
}
p {
  text-wrap: pretty;
  margin: 0;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}
.h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
}
.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
}
.h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
}
.lead {
  font-size: var(--fs-lead);
  color: var(--ink-muted);
  line-height: 1.45;
}
.muted {
  color: var(--ink-muted);
}
.small {
  font-size: var(--fs-small);
}
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.measure {
  max-width: none;
}
.section {
  padding-block: var(--section-y);
}
.section--sunk {
  background: var(--paper-sunk);
}
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}
.btn {
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-8);
  font-size: var(--fs-small);
  letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  font-weight: 600;
  transition:
    background 0.15s,
    color 0.15s;
  display: inline-flex;
}
.btn:hover {
  color: var(--ink);
  background: 0 0;
}
.btn--sm {
  padding: var(--s-2) var(--s-6);
  font-size: 0.875rem;
}
.btn--ghost {
  color: var(--ink);
  background: 0 0;
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.prose a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration: underline 1px;
}
.prose a:hover {
  text-decoration-color: var(--highlight);
  text-decoration-thickness: 2px;
}
/* Header: black while the page sits at the top. Once you scroll, a white
   panel rises from the bottom edge; the header then hides on the way down
   and comes back white on the way up (script in includes/header.php). */
.nav {
  --nav-fg: var(--paper);
  z-index: 50;
  background: var(--ink);
  color: var(--nav-fg);
  transition:
    transform 0.3s,
    color 0.35s;
  position: sticky;
  top: 0;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav.is-scrolled {
  --nav-fg: var(--ink);
}
.nav.is-scrolled::before {
  transform: scaleY(1);
}
.nav.is-hidden {
  transform: translateY(-100%);
}
/* Text and button colours follow the background. */
.nav .nav__link,
.nav .nav__mark {
  color: var(--nav-fg);
  transition: color 0.35s, border-color 0.15s;
}
.nav .nav__link:hover,
.nav .nav__link.is-current {
  color: var(--nav-fg);
  border-bottom-color: var(--nav-fg);
}
.nav:not(.is-scrolled) .nav__cta {
  background: var(--citron);
  border-color: var(--citron);
  color: var(--ink);
}
.nav:not(.is-scrolled) .nav__cta:hover {
  background: transparent;
  color: var(--citron);
}
.nav:not(.is-scrolled) a:focus-visible,
.nav:not(.is-scrolled) button:focus-visible {
  outline-color: var(--citron);
}
.nav .nav__panel {
  color: var(--paper);
}
/* Services opens a menu: the arrow says so, no underline needed. */
.nav .nav__menu-btn,
.nav .nav__menu-btn:hover,
.nav .nav__menu-btn.is-current {
  border-bottom-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .nav::before,
  .nav__panel,
  .nav__menu.is-open .nav__panel {
    transition: none;
  }
}
.nav__inner {
  align-items: center;
  gap: var(--s-8);
  padding-block: var(--s-3);
  min-height: 3.5rem;
  display: flex;
}
.nav__mark {
  letter-spacing: -0.045em;
  margin-right: auto;
  font-size: 1.28rem;
  font-weight: 600;
}
.nav__dot {
  color: var(--highlight);
}
.nav__links {
  gap: var(--s-8);
  flex-wrap: wrap;
  display: flex;
}
.nav__link {
  font-size: var(--fs-small);
  color: var(--ink);
  padding-block: var(--s-1);
  border-bottom: 1px solid #0000;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.nav__link:hover {
  border-bottom-color: var(--ink);
}
.nav__link.is-current {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
/* Services menu */
.nav__menu {
  position: relative;
}
.nav__menu-btn {
  font: inherit;
  font-size: var(--fs-small);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: var(--s-1) 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.nav__caret {
  width: 0.4em;
  height: 0.4em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform 0.2s;
}
.nav__menu.is-open .nav__caret {
  transform: translateY(0.1em) rotate(-135deg);
}
/* The menu hangs from the header's bottom edge: the script in header.php
   measures the distance from the button to that edge into --menu-gap. */
.nav__panel {
  position: absolute;
  top: calc(100% + var(--menu-gap, 0.75rem));
  left: -1.25rem;
  z-index: 60;
  width: 18rem;
  margin: 0;
  padding: var(--s-1) 0;
  list-style: none;
  background: var(--ink);
  box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.6);
  /* Rolls down from the top, like the header. Hidden from keyboard and
     screen readers while closed. */
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition:
    clip-path 0.35s cubic-bezier(0.65, 0, 0.35, 1),
    visibility 0s 0.35s;
}
/* An invisible bridge over the header so the menu stays open while the
   pointer moves from the button down to it. */
.nav__panel::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--menu-gap, 0.75rem)) 0 100% 0;
}
.nav__menu.is-open .nav__panel {
  clip-path: inset(-6rem -2rem -2rem -2rem);
  visibility: visible;
  transition:
    clip-path 0.35s cubic-bezier(0.65, 0, 0.35, 1),
    visibility 0s;
}
/* Lines between items only. */
.nav__panel li + li a {
  border-top: 1px solid #2c2c29;
}
/* Same type as the menu above. On hover a citron highlighter sweeps across
   the item from the left (the marker from the homepage headline), and the
   text turns black with the arrow riding in at the end. */
.nav__panel a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: 0.8rem 1.25rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--paper);
  background: linear-gradient(var(--citron), var(--citron)) no-repeat left center / 0% 100%;
  transition:
    background-size 0.32s cubic-bezier(0.65, 0, 0.35, 1),
    color 0.2s ease 0.05s;
}
.nav__panel a::after {
  content: "→";
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity 0.2s ease 0.1s,
    transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__panel a:hover,
.nav__panel a:focus-visible {
  background-size: 100% 100%;
  color: var(--ink);
}
.nav__panel a:hover::after,
.nav__panel a:focus-visible::after {
  opacity: 1;
  transform: none;
}
/* The page you are on shows in citron. */
.nav__panel a[aria-current]:not(:hover) {
  color: var(--citron);
}
.nav__panel a:focus-visible {
  outline: none;
}
@media (width<=62rem) {
  .nav__panel {
    left: 0;
    width: min(18rem, calc(100vw - 2 * var(--gutter)));
  }
  .nav__inner {
    gap: var(--s-4);
    padding-block: var(--s-3);
    flex-wrap: wrap;
  }
  .nav__mark {
    flex: auto;
    margin-right: 0;
  }
  .nav__links {
    gap: var(--s-4);
    order: 3;
    width: 100%;
  }
  /* Comfortable tap targets on touch screens. */
  .nav__link,
  .nav__menu-btn {
    padding-block: var(--s-2);
  }
  .nav__cta {
    order: 2;
  }
}
/* =====================================================================
   FOOTER (includes/footer.php): the same on every page.
   Statement → navigation beside the form → wordmark → legal strip.
   ===================================================================== */
.foot {
  --foot-muted: #a8aaa2;
  --foot-rule: #34342f;
  /* Every page's last section brings its own bottom padding. */
  margin-top: 0;
  padding-top: clamp(4rem, 8vw, 7rem);
  background: var(--ink);
  color: var(--paper);
}
.foot a:focus-visible,
.foot .btn:focus-visible {
  outline: 2px solid var(--citron);
  outline-offset: 3px;
}

/* 1. The closing statement */
.foot__head {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.125rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 12ch;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.foot__mark-word {
  background: linear-gradient(var(--citron), var(--citron)) no-repeat 0 90% / 100% 0.12em;
}
.foot__cta {
  margin-top: var(--s-8);
  padding: var(--s-4) var(--s-8);
  font-size: 1rem;
  background: var(--citron);
  border-color: var(--citron);
  color: var(--ink);
}
.foot__cta:hover {
  background: 0 0;
  color: var(--citron);
}

/* 2. Statement and form side by side; navigation below */
.foot__top {
  display: grid;
  gap: var(--s-12) var(--s-16);
}
@media (width>=60rem) {
  .foot__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
  .foot__top--cta {
    grid-template-columns: minmax(0, 1fr);
  }
}
.foot__form {
  scroll-margin-top: var(--s-8);
}
/* Below the form: three link columns (~38%) and the wordmark filling the
   rest, then a rule and the copyright line, centred. */
.foot__bottom {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  gap: var(--s-12) var(--s-12);
  align-items: center;
}
@media (width>=60rem) {
  .foot__bottom {
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  }
}
.foot__nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: var(--s-8) clamp(1.5rem, 3vw, 2.5rem);
}
.foot__col-head {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--paper);
}
.foot__list {
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}
.foot__list a {
  display: inline-block;
  padding-block: 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--foot-muted);
  white-space: nowrap;
  text-decoration: underline 1px transparent;
  text-underline-offset: 4px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.foot__list a:hover {
  color: var(--paper);
  text-decoration-color: var(--citron);
}
@media (width<=30rem) {
  .foot__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot__list a {
    white-space: normal;
  }
}
.foot .form {
  margin-top: 0;
  max-width: none;
}
.foot .field:first-of-type {
  margin-top: 0;
}
.foot .field label {
  color: var(--paper);
}
.foot .field input,
.foot .field textarea {
  background: #1d1d1b;
  border-color: var(--foot-rule);
}
.foot .field input::placeholder,
.foot .field textarea::placeholder {
  color: #6e6f69;
}
.foot .field input:focus-visible,
.foot .field textarea:focus-visible {
  outline-color: var(--citron);
}
.foot .form__submit {
  background: var(--citron);
  color: var(--ink);
  border-color: var(--citron);
}
.foot .form__submit:hover {
  background: 0 0;
  color: var(--citron);
}
.foot .form__privacy {
  color: #6b6c66;
}
.foot .form__privacy a {
  color: inherit;
}
.foot .field [aria-invalid] {
  border-color: #ff8a80;
}
.foot .field__err {
  color: #ff8a80;
}

/* The wordmark: the header's mark, sized to fill its column exactly. */
.foot__wordmark {
  display: block;
  container-type: inline-size;
  color: var(--paper);
}
.foot__wordmark > span {
  display: block;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.78;
  white-space: nowrap;
  /* About 85% of its column, right-aligned, so it keeps clear of the menus. */
  font-size: 15.5cqw;
  text-align: right;
  padding-block: 0.08em 0.14em;
}
.foot__dot {
  color: var(--citron);
}

/* Copyright line */
.foot__legal {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-block: var(--s-6) var(--s-8);
  border-top: 1px solid var(--foot-rule);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--foot-muted);
}
/* Article tables scroll sideways on very narrow phones instead of
   widening the page. */
@media (width<=30rem) {
  .prose table {
    display: block;
    overflow-x: auto;
  }
}

/* Article header with an image: the image sits beside the title on wide
   screens, and sits small under it on phones. Use
   <header class="art__head art__head--fig"><div class="art__headtext">…</div><figure class="art__fig">…</figure></header> */
.art__fig {
  margin: var(--s-6) 0 0;
  max-width: 20rem;
}
.art__fig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}
@media (width>=56rem) {
  .art__head--fig {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26rem;
    column-gap: var(--s-12);
    align-items: end;
  }
  .art__head--fig .art__fig {
    margin: 0;
    max-width: none;
  }
}

/* Contact form (includes/contact-form.php), used in the footer and on /contact. */
#contact {
  scroll-margin-top: var(--s-4);
}
.form {
  margin-top: var(--s-8);
  max-width: 34rem;
}
.field {
  gap: var(--s-2);
  margin-top: var(--s-6);
  display: grid;
}
.field label {
  font-size: var(--fs-small);
  font-weight: 600;
}
.field input,
.field textarea {
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: var(--s-3) var(--s-4);
  border-radius: 2px;
  width: 100%;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  min-height: 8rem;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: #0000;
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: var(--s-6) var(--s-4);
}
.form__row .field {
  margin-top: var(--s-6);
}
.form__row:first-of-type .field,
.form > .hp + .form__row .field {
  margin-top: 0;
}
.field input,
.field textarea {
  min-height: 3rem;
}
.field textarea::placeholder,
.field input::placeholder {
  color: #8a8c85;
}
.field [aria-invalid] {
  border-color: #b3261e;
}
.field__err {
  font-size: 0.875rem;
  color: #b3261e;
}
.field__err:empty {
  display: none;
}
.form__submit:disabled {
  opacity: 0.7;
  cursor: progress;
}
.form__end {
  margin-top: var(--s-8);
  gap: var(--s-3) var(--s-6);
  flex-wrap: wrap;
  align-items: center;
  display: flex;
}
.form__submit {
  flex: none;
}
/* Side information: small and quiet, beside the button. */
.form__privacy {
  flex: 1 1 14rem;
  max-width: 34ch;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #8a8c85;
}
.form__privacy a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration: underline 1px;
}
.hp {
  width: 1px;
  height: 1px;
  position: absolute;
  left: -9999px;
  overflow: hidden;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-3) var(--s-4);
  z-index: 10;
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--s-4);
  top: var(--s-4);
}
