/* The certified-managers programme: /certification/, /certification/reading/ and /careers/.
 *
 * Same palette (The Ledger) and the same band rhythm as /nonprofit-operations/ and /consultants/:
 * alternating light and dark full-width sections, mono for labels, Archivo for anything that carries
 * an argument. English only, no language switch: this is a public page in the sense CLAUDE.md means,
 * and the specialist links to it from an English message.
 *
 * Four pages share this file. /certification/ is read by a founder deciding whether to trust a person
 * who linked here. /certification/reading/ is read by a candidate waiting for the next group and
 * carries the waiting-list form. /careers/ and the vacancy pages under it (generated by
 * build/build-careers.mjs) are read by a candidate and carry the application form. Nothing here is
 * scripted.
 */

:root {
  --bg: #FFFFFF; --dim: #F4F6F3;
  --ink: #0B0F0A; --variant: #4A5247; --muted: #5A6457;
  --outline: #E2E6DF; --outline-2: #C8CEC6;
  --primary: #155138; --on-primary: #FFFFFF; --primary-c: #E8EFE4;
  --highlight: #FAC700; --on-highlight: #0B0F0A;
  --deep: #0B0F0A;
  --on-deep: #FFFFFF; --on-deep-variant: #A9BBAC;
  --error: #9A4A2F;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 30px;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 40px; }

.band { padding: 88px 0; }
.band-dim { background: var(--dim); }
.band-dark { background: var(--deep); color: var(--on-deep); }
.band-dark h2 { color: var(--on-deep); }

.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 14px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary);
  margin: 0 0 14px;
}
.band-dark .eyebrow { color: var(--highlight); }

h2 {
  font-size: 42px; font-weight: 800; line-height: 46px; letter-spacing: -0.02em;
  margin: 0 0 18px; max-width: 20ch;
}
.sub { font-size: 17px; line-height: 28px; color: var(--variant); margin: 0 0 28px; max-width: 62ch; }
.band-dark .sub { color: var(--on-deep-variant); }
/* Sits in the wide wrap, on the same left edge as every other section, and only the measure is
 * narrow. A centred narrow column in the middle of the page read as a page from somewhere else. */
.prose { max-width: 680px; }
.prose p { font-size: 19px; line-height: 31px; color: var(--ink); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.aside {
  font-size: 19px; line-height: 29px; font-weight: 700; margin: 40px 0 0; max-width: 46ch;
  border-left: 3px solid var(--highlight); padding: 2px 0 2px 18px;
}

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

.top {
  max-width: 1060px; margin: 0 auto 64px; padding: 26px 40px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  color: var(--on-deep); text-decoration: none;
}
.topnav a {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #D6DED7; text-decoration: none;
  padding: 7px 11px; border: 1px solid rgba(255,255,255,0.42);
  transition: color 120ms ease, border-color 120ms ease;
}
.topnav a:hover { color: var(--on-deep); border-color: rgba(255,255,255,0.8); }
.topnav a:focus-visible { outline: 2px solid var(--highlight); outline-offset: 2px; }

/* ------------------------------------------------------------------ hero */

.hero { padding: 0; }
.hero-in { max-width: 1060px; margin: 0 auto; padding: 0 40px 80px; }
.hero h1 {
  font-size: 88px; font-weight: 800; line-height: 86px; letter-spacing: -0.03em;
  margin: 0 0 28px; max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--highlight); }
.lede { font-size: 20px; line-height: 32px; color: var(--on-deep-variant); margin: 0 0 22px; max-width: 58ch; }
.lede:last-child { margin-bottom: 0; }
.band-dark .lede a, .band-dark .lede a:visited { color: var(--highlight); }

/* The certificate sits beside the headline on wide screens and under it on phones. The image is a
 * tilted card on its own dark ground, so it carries its own depth: no frame and no hard shadow,
 * because a rectangular shadow would outline a box the eye cannot see around a tilted card. Its
 * box is sized by the width/height attributes, so nothing moves when it loads. */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 56px; align-items: center; }
.hero-split h1 { font-size: 64px; line-height: 64px; max-width: none; }
.hero-cert { margin: 0; }
.hero-cert img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------ what a manager has */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--dim); padding: 28px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; }
.card-h { font-size: 21px; font-weight: 800; line-height: 27px; letter-spacing: -0.01em; margin: 0 0 12px; }
.card-t { font-size: 16px; line-height: 26px; color: var(--variant); margin: 0; flex: 1 1 auto; }
.card-l { margin: 18px 0 0; font-size: 15px; line-height: 22px; }
.card-l a { color: var(--primary); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--primary); }
.card-l a:hover { border-bottom-width: 2px; }

/* ------------------------------------------------------------------ does / never does */

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two h2 { font-size: 32px; line-height: 37px; }
.crossed, .kept { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.crossed li, .kept li {
  position: relative; padding-left: 28px; font-size: 16px; line-height: 26px; color: var(--variant);
}
.crossed li b { color: var(--ink); }
.crossed li::before {
  content: ''; position: absolute; left: 0; top: 12px; width: 13px; height: 2px;
  background: var(--error); transform: rotate(-20deg);
}
.kept li::before {
  content: ''; position: absolute; left: 1px; top: 8px; width: 8px; height: 8px;
  border: 2px solid var(--primary);
}

/* ------------------------------------------------------------------ close */

.close { padding-bottom: 0; }
.close h2 { max-width: 18ch; }
.mail { color: var(--highlight); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--highlight); }
.mail:hover { color: var(--on-deep); border-bottom-color: var(--on-deep); }
.fine { font-family: var(--mono); font-size: 11px; line-height: 18px; letter-spacing: 0.06em; color: var(--on-deep-variant); margin: 30px 0 0; }
.foot {
  max-width: 1060px; margin: 64px auto 0; padding: 22px 40px 30px;
  border-top: 1px solid rgba(255,255,255,0.14); display: flex; gap: 24px; flex-wrap: wrap;
}
.foot a {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--on-deep-variant); text-decoration: none;
}
.foot a:hover { color: var(--highlight); }

/* ------------------------------------------------------------------ reading list (reading/) */

.reading { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--outline-2); }
.reading li { border-bottom: 1px solid var(--outline-2); padding: 26px 4px; display: grid; gap: 6px; }
.reading-n { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); }
.reading a.reading-t {
  font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 30px;
  color: var(--ink); text-decoration: none;
}
.reading a.reading-t:hover { color: var(--primary); }
.reading-w { font-size: 16px; line-height: 26px; color: var(--variant); margin: 0; max-width: 64ch; }

/* ------------------------------------------------------------------ the form (reading/)
 *
 * A plain HTML form that posts and follows a redirect, the same shape as the lead-capture block on
 * the state guides: it works with scripting blocked and it never has to fetch(). Inputs are large
 * because most of the people filling it in are on a phone.
 */

.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-deep-variant);
}
.field input, .field select {
  font-family: var(--sans); font-size: 17px; line-height: 24px; color: var(--ink);
  background: var(--bg); border: 2px solid var(--bg); border-radius: 2px; padding: 13px 14px; width: 100%;
}
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--highlight); outline-offset: 1px; }
.field-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-block; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 16px 28px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--sans);
  box-shadow: 0 3px 0 #000; transition: box-shadow 120ms ease, transform 120ms ease;
}
.btn-hi { background: var(--highlight); color: var(--on-highlight); }
.btn:hover { box-shadow: 0 5px 0 #000; transform: translateY(-2px); }
.form .btn { justify-self: start; margin-top: 6px; }
.form-note { font-size: 15px; line-height: 24px; color: var(--on-deep-variant); margin: 0; max-width: 56ch; }
/* Shown only when the endpoint sent the visitor back with ?incomplete=1#notify. Pure CSS, keyed on
 * the fragment the redirect carries, so it needs no script to appear. */
.form-warn { display: none; font-size: 15px; line-height: 24px; color: var(--highlight); margin: 0; font-weight: 600; }
#notify:target .form-warn[data-when="incomplete"] { display: block; }

/* ------------------------------------------------------------------ the vacancy (careers/) */

.meta { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-deep-variant); margin: 0 0 30px; line-height: 20px; }
.meta span { color: var(--highlight); margin: 0 6px; }
.hero .cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn-quiet { font-size: 15px; font-weight: 600; color: var(--on-deep); text-decoration: none; border-bottom: 1px solid var(--on-deep-variant); line-height: 1.3; }
.btn-quiet:hover { border-bottom-color: var(--highlight); color: var(--highlight); }

.h3 { font-size: 24px; font-weight: 800; line-height: 30px; letter-spacing: -0.02em; margin: 40px 0 14px; max-width: 30ch; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--primary); }
.prose a:hover { border-bottom-width: 2px; }
.fits { margin: 0 0 22px; max-width: 680px; }
.fits li b { color: var(--ink); }

/* The arithmetic. Mono for the numbers, a hard rule under the head, no zebra: three rows are read,
 * not scanned. The first column head is visually empty and spoken to a screen reader. */
.ramp { border-collapse: collapse; margin: 22px 0 26px; min-width: 360px; }
.ramp th, .ramp td { text-align: left; padding: 12px 40px 12px 0; border-bottom: 1px solid var(--outline-2); font-size: 16px; line-height: 24px; }
.ramp thead th { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.ramp tbody th { font-weight: 700; color: var(--ink); }
.ramp td { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.ramp td:last-child { color: var(--primary); }
.sr { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.process { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 0; max-width: 680px; border-top: 1px solid var(--outline-2); }
.process li { display: flex; gap: 20px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--outline-2); font-size: 17px; line-height: 27px; color: var(--variant); }
.process li b { color: var(--ink); }
.process li a { color: var(--primary); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--primary); }
.process-n { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--primary); flex: none; }

.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.versions a { display: inline-block; font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--highlight); line-height: 1.4; }
.versions a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.field textarea {
  font-family: var(--sans); font-size: 17px; line-height: 26px; color: var(--ink);
  background: var(--bg); border: 2px solid var(--bg); border-radius: 2px; padding: 13px 14px; width: 100%; resize: vertical; min-height: 200px;
}
.field textarea:focus-visible { outline: 3px solid var(--highlight); outline-offset: 1px; }
.field label small { font-weight: 600; letter-spacing: 0.06em; text-transform: none; opacity: 0.8; }
#apply:target .form-warn[data-when="incomplete"] { display: block; }

/* ------------------------------------------------------------------ the list of roles (careers/) */

.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.role { display: grid; gap: 8px; background: var(--dim); padding: 28px; box-shadow: 6px 6px 0 var(--ink); text-decoration: none; color: var(--ink); transition: box-shadow 120ms ease, transform 120ms ease; }
.role:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(2px, 2px); }
.role-t { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 32px; }
.role-m { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }
.role-d { font-size: 16px; line-height: 26px; color: var(--variant); max-width: 64ch; }

/* ------------------------------------------------------------------ narrow screens */

@media (max-width: 900px) {
  .two, .cards { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-split h1 { font-size: 56px; line-height: 58px; }
  .hero-cert { max-width: 560px; }
  .hero h1 { font-size: 56px; line-height: 58px; }
  h2 { font-size: 34px; line-height: 38px; }
}

@media (max-width: 640px) {
  body { font-size: 17px; line-height: 28px; }
  .wrap, .wrap-narrow, .hero-in, .top, .foot { padding-left: 16px; padding-right: 16px; }
  .top { margin-bottom: 48px; }
  .band { padding: 56px 0; }
  .hero-in { padding-bottom: 56px; }
  .hero h1, .hero-split h1 { font-size: 40px; line-height: 43px; }
  .lede { font-size: 18px; line-height: 29px; }
  h2 { font-size: 27px; line-height: 32px; }
  .two h2 { font-size: 27px; line-height: 32px; }
  .card { box-shadow: 4px 4px 0 var(--ink); padding: 22px; }
  .aside { padding-left: 14px; }
  .reading a.reading-t { font-size: 20px; line-height: 26px; }
  .ramp { min-width: 0; width: 100%; }
  .ramp th, .ramp td { padding-right: 16px; }
  .h3 { font-size: 21px; line-height: 27px; }
  .role { box-shadow: 4px 4px 0 var(--ink); padding: 22px; }
  .role-t { font-size: 22px; line-height: 27px; }
  .process li { font-size: 16px; line-height: 25px; }
}
