/* ============================================================
   whatarewecapableof — System Minimalism site system (2026-06-03).
   All-system type, near-black on white, gray as information,
   real editorial hierarchy, structural whitespace. No accent
   color yet (reserved). Craft: kerning, ligatures, text-wrap.
   Scope: the public pages (home, /how-we-work, /question).
   The old /css system stays for the proposal pages (phase 2).
   ============================================================ */

:root {
  --ink: #1a1a1a;
  --ink-2: #44474a;
  --ink-3: #686d71; /* darkened from #80858a for WCAG AA on small apparatus text (~5.3:1) */
  --rule: #e6e6e3;
  --bg: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
@media (max-width: 600px) { body { font-size: 17px; } }

em { font-style: italic; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 1px; }
a { color: var(--ink); }

/* Skip link — off-screen until keyboard focus; targets <main id="main"> (impl-01; WCAG 2.4.1). */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none; }
.skip-link:focus { left: 8px; top: 8px; }

/* Honor reduced motion globally for this system (impl-01 "respected globally"; WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.page { max-width: 720px; margin: 0 auto; padding: 28px 24px 96px; }

/* header / footer */
.site-header {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(48px, 9vh, 96px); font-size: 14px;
}
.site-header a { color: var(--ink); text-decoration: none; }
.site-header .mark { font-weight: 500; }
.site-header .mail { color: var(--ink-3); }
.site-header .mail:hover { color: var(--ink); }

.site-footer {
  margin-top: clamp(64px, 10vh, 104px); padding-top: 20px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3);
}
.site-footer a { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* shared prose */
p { margin: 0 0 1em; max-width: 60ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
/* Links inside running prose are underlined so they never rely on color alone
   (WCAG 1.4.1; impl-09 §4). Apparatus links keep their own treatment via higher
   specificity (.post-eyebrow a) or by not living inside <p> (action links). */
p a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
section { margin-top: clamp(56px, 9vh, 92px); }
h2 { font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 20px; }

/* ===== writing / blog ===== */
.post-eyebrow { font-size: 14px; color: var(--ink-3); margin: 0 0 16px; }
.post-eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.post-eyebrow a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.blog-intro { font-size: 19px; color: var(--ink-2); max-width: 54ch; margin: 22px 0 0; text-wrap: pretty; }
.post-list { list-style: none; margin: clamp(40px, 7vh, 72px) 0 0; padding: 0; display: grid; gap: clamp(36px, 6vh, 60px); }
.post-item .post-eyebrow { margin: 0 0 8px; }
.post-item__title { font-size: clamp(22px, 2.8vw, 28px); line-height: 1.18; letter-spacing: -0.012em; font-weight: 500; margin: 0; max-width: 28ch; text-wrap: balance; }
.post-item__title a { color: var(--ink); text-decoration: none; }
.post-item__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-item__dek { color: var(--ink-2); margin: 10px 0 0; max-width: 52ch; text-wrap: pretty; }

/* ===== home ===== */
.page-home .page {
  min-height: 100vh; display: flex; flex-direction: column;
  padding-top: clamp(64px, 12vh, 132px); max-width: 760px;
}
.home-lede { flex: 1; }
.home-q {
  font-size: clamp(40px, 7.5vw, 68px); line-height: 1.04; letter-spacing: -0.022em;
  font-weight: 600; margin: 0; max-width: 14ch; text-wrap: balance;
}
.home-offer {
  font-size: clamp(20px, 2.4vw, 24px); line-height: 1.32; letter-spacing: -0.01em; font-weight: 400;
  max-width: 46ch; margin: clamp(28px, 4vh, 44px) 0 0; text-wrap: pretty;
}
.home-support { font-size: 18px; color: var(--ink-2); max-width: 54ch; margin: 24px 0 0; text-wrap: pretty; }
.home-actions { margin-top: clamp(36px, 6vh, 64px); display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; }
/* Shared inline action links — used by home (.home-actions) and where-we-help (.actions).
   On hover the underline thickens via box-shadow (paint-only: no Layout reflow, so siblings
   like the homepage image strip do not shift) — impl-08 rendering pipeline, impl-09 §9. */
.home-actions a, .actions a { color: var(--ink); text-decoration: none; font-size: 18px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.home-actions a:hover, .actions a:hover { box-shadow: 0 1px 0 var(--ink); }
/* ===== mobile reflow — DEFAULT POSTURE for the site.css template (home / how-we-work / question) =====
   Narrow viewports: compress hierarchy contrast, tighten leading on the short measure, keep a
   consistent vertical rhythm, let content flow (no forced-bottom footer), and give real tap targets. */
@media (max-width: 600px) {
  /* frame */
  .page { padding-bottom: 48px; }
  .page-home .page { padding-top: 44px; min-height: auto; }
  .page-home .home-lede { flex: none; }
  /* apparatus rhythm + no awkward header wrap */
  .site-header { font-size: 13px; margin-bottom: 36px; flex-wrap: wrap; row-gap: 4px; }
  .site-header .mark { white-space: nowrap; }
  .site-footer { margin-top: 48px; }
  section { margin-top: 48px; }
  /* leading on the short measure */
  .sub, .home-support, .q-lead, .stack > p { line-height: 1.5; }
  /* home hierarchy */
  .home-q { letter-spacing: -0.015em; }
  .home-offer { font-size: 19px; line-height: 1.3; margin-top: 22px; }
  .home-support { font-size: 16px; margin-top: 14px; }
  .home-actions { margin-top: 32px; gap: 6px 24px; }
  .home-actions a, .actions a { font-size: 17px; padding: 14px 0 6px; } /* ~44px tap target — WCAG 2.5.5 */
  .post-list { gap: 40px; margin-top: 36px; }
  .post-item__title { font-size: 22px; line-height: 1.2; }
  .post-item__title a { display: inline-block; padding: 2px 0; }
}

/* ===== offer (/how-we-work) ===== */
.lead { font-size: clamp(26px, 3.8vw, 40px); line-height: 1.16; letter-spacing: -0.015em; font-weight: 500; margin: 0; max-width: 22ch; text-wrap: balance; }
.lead + p { margin-top: clamp(20px, 3vh, 30px); }
.sub { font-size: 19px; color: var(--ink-2); max-width: 54ch; margin: 22px 0 0; text-wrap: pretty; }
.section-lead { margin-bottom: 28px; }
.steps { display: grid; gap: clamp(28px, 4vh, 40px); list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; align-items: start; }
.step .n { font-size: 18px; font-weight: 500; color: var(--ink-3); padding-top: 2px; }
.step h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.step p { margin: 0 0 0.9em; max-width: 52ch; }
.step ul.guarantees { margin: 0 0 0.9em; }
.step > div > :last-child { margin-bottom: 0; }
.guarantees { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.guarantees li { max-width: 60ch; padding-left: 18px; position: relative; }
.guarantees li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 1px; background: var(--ink); }
.refuse { margin-top: 24px; color: var(--ink-2); }
.faq { display: grid; gap: 26px; }
.faq h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.faq p { color: var(--ink-2); margin: 0; }
.faq p + p { margin-top: 0.9em; }
.faq ul.guarantees { margin-top: 0.9em; }
.leave { font-size: 21px; line-height: 1.4; max-width: 40ch; font-weight: 500; text-wrap: balance; }
@media (max-width: 600px) { .step { grid-template-columns: 32px 1fr; } }

/* ===== question ===== */
.q-h1 { font-size: clamp(38px, 6.5vw, 60px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 clamp(28px, 4vh, 44px); max-width: 14ch; text-wrap: balance; }
.q-lead { font-size: 21px; line-height: 1.5; max-width: 56ch; margin: 0 0 1em; text-wrap: pretty; }
.stack > p { color: var(--ink-2); }
.stack > p:first-child { color: var(--ink); }

/* ===== where we help (operating-capability map) ===== */
.cluster-note { font-size: 16px; color: var(--ink-3); max-width: 48ch; margin: -8px 0 0; text-wrap: pretty; }
.areas { display: grid; gap: clamp(30px, 5vh, 46px); margin-top: 30px; }
.area h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.area p { margin: 0 0 0.7em; max-width: 56ch; }
.area .meta { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.area .meta .label { color: var(--ink-3); }
.area .meta.start { color: var(--ink); }
.area > :last-child { margin-bottom: 0; }
.actions { margin-top: clamp(28px, 4vh, 40px); display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; }
/* .actions link styling is shared with .home-actions a above (see "Shared inline action links"). */
@media (max-width: 600px) {
  .areas { gap: 30px; }
  .actions { gap: 6px 24px; }
}
