/* CoreAxis — site stylesheet
   Black and warm white only. Typography and spacing carry the hierarchy. */

:root {
  --paper: #f6f3ec;
  --ink: #141414;
  --ink-2: #5b5b58;
  --rule: #d9d4c8;
  --black: #111111;
  --on-black: #f6f3ec;
  --on-black-2: rgba(246, 243, 236, 0.62);
  --on-black-rule: rgba(246, 243, 236, 0.16);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 56px;
  --section: 120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.1; letter-spacing: -0.015em; }
ul { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: 24px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 40px;
}
.dark .label { color: var(--on-black-2); }
.meta { font-family: var(--sans); font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; }

.dark { background: var(--black); color: var(--on-black); }

/* Header — CoreAxis wordmark */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 30px;
}
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1;
  font-variation-settings: "opsz" 24;
}
.brand-desc {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink-2);
  padding-left: 18px;
  border-left: 1px solid var(--rule);
}
.dark .brand-desc { color: var(--on-black-2); border-left-color: var(--on-black-rule); }
.site-nav { display: flex; gap: 32px; }
.site-nav a { font-family: var(--sans); font-size: 0.9375rem; text-decoration: none; color: var(--ink-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.dark .site-nav a { color: var(--on-black-2); }
.dark .site-nav a:hover { color: var(--on-black); }

/* Actions */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
.button {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  padding: 17px 30px;
  border-radius: 1px;
}
.button:hover { background: #000; }
.dark .button { background: var(--on-black); color: var(--black); }
.dark .button:hover { background: #fff; }
.textlink { font-family: var(--sans); font-size: 1rem; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); }
.textlink:hover { text-decoration-color: currentColor; }
.dark .textlink { text-decoration-color: var(--on-black-2); }

/* 1. Hero — black. Masthead, headline, statement and CTA share one left axis. */
.hero { padding: 40px 0 96px; }
.hero .headline {
  font-size: clamp(3rem, 8.4vw, 8.25rem);
  line-height: 0.94;
  letter-spacing: -0.042em;
  font-variation-settings: "opsz" 60;
  max-width: 20ch;
  margin: 0 0 0 -0.05em;
  text-wrap: balance;
}
.hero .headline em { font-style: italic; letter-spacing: -0.03em; }
.hero-lower { max-width: 820px; margin-top: 48px; }
.hero .statement {
  font-size: clamp(1.125rem, 1.45vw, 1.3125rem);
  line-height: 1.5;
  color: var(--on-black-2);
  margin: 0;
  text-wrap: pretty;
}
.statement-lead { display: block; color: var(--on-black); font-size: 1.2em; line-height: 1.4; margin-bottom: 6px; }
.hero .actions { margin-top: 36px; }

/* 2. Led by, proof and operating record — warm white */
.record { padding: var(--section) 0; }
.led-by {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "name text";
  gap: 24px 64px;
  align-items: start;
}
.led-by-name { grid-area: name; }
.led-by-text { grid-area: text; }
.led-by-photo { grid-area: photo; margin: 0; }
.led-by-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(100%); }
/* With a portrait: photo left, name and line stacked beside it, meeting at its midpoint */
.led-by:has(.led-by-photo) {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  grid-template-areas: "photo name" "photo text";
  row-gap: 28px;
  align-items: end;
}
.led-by:has(.led-by-photo) .led-by-text { align-self: start; }
.led-by .label { margin-bottom: 14px; }
.led-by h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; font-variation-settings: "opsz" 60; }
.led-by-line { font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); line-height: 1.45; margin: 0; max-width: 40ch; text-wrap: pretty; }
.led-by-link { margin: 16px 0 0; }
.proof {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-top: 72px;
  padding-top: 44px;
  border-top: 2px solid var(--ink);
}
.proof .fig {
  display: block;
  font-size: clamp(2.5rem, 4.4vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variation-settings: "opsz" 60;
}
.proof .what { display: block; margin-top: 18px; font-size: 1.1875rem; line-height: 1.35; }
/* The range figure reads as one unit, so its label centres beneath the whole sequence */
.proof .is-range { justify-self: start; text-align: center; }
.moments { margin-top: 112px; }
.moments li {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px 64px;
  align-items: baseline;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.moments li:last-child { border-bottom: 1px solid var(--rule); }
.moments h3 {
  font-size: clamp(1.75rem, 3.2vw, 2.875rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 48;
  text-wrap: balance;
}
.moments p { margin: 0; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; color: #3a3a38; text-wrap: pretty; }

/* 4. When the business needs an operator */
.situations { padding: var(--section) 0; }
.situations .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: 48px 72px; }
.situations h2 {
  font-size: clamp(2.25rem, 3.9vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.032em;
  font-variation-settings: "opsz" 60;
  text-wrap: balance;
}
.situations ul { border-bottom: 1px solid var(--on-black-rule); }
.situations ul li {
  font-size: clamp(1.3125rem, 2vw, 1.75rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  padding: 22px 0;
  border-top: 1px solid var(--on-black-rule);
  text-wrap: pretty;
}
.situations .note { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.6; color: var(--on-black-2); margin: 32px 0 0; max-width: 26ch; }

/* 5a. Field Notes — quieter */
.field-notes { padding: var(--section) 0; }
.field-notes .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 64px; }
.field-notes blockquote { margin: 0; }
.field-notes blockquote p {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin: 0;
  max-width: 30ch;
}
.field-notes blockquote footer { margin-top: 20px; }
.note-links li { padding: 0 0 24px; }
.note-links a { text-decoration: none; display: block; }
.note-links h3 { font-size: 1.25rem; line-height: 1.3; }
.note-links a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.note-links .meta { margin: 6px 0 0; }

/* 5b. Contact — the close */
.closing { padding: var(--section) 0 104px; }
.closing h2 {
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  line-height: 1.03;
  letter-spacing: -0.032em;
  font-variation-settings: "opsz" 60;
  max-width: 21ch;
  text-wrap: balance;
}
.closing ul { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 56px; }
.closing a { font-family: var(--sans); font-size: 1.125rem; font-weight: 500; text-decoration-color: var(--on-black-2); }
.closing a:hover { text-decoration-color: currentColor; }

/* Footer — continues the close */
.site-footer { background: var(--black); color: var(--on-black-2); }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px 48px;
  flex-wrap: wrap;
  align-items: baseline;
  padding-top: 28px;
  padding-bottom: 48px;
}
.site-footer p { margin: 0; font-family: var(--sans); font-size: 0.875rem; }
.site-footer nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.site-footer nav a { font-family: var(--sans); font-size: 0.875rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--on-black); }

/* Field Notes index and 404 */
.page-head { padding: 72px 0 64px; }
.page-head h1 { font-size: clamp(2.75rem, 6vw, 5rem); letter-spacing: -0.03em; line-height: 1.04; max-width: 18ch; text-wrap: balance; }
.page-head .lead { font-size: clamp(1.1875rem, 1.8vw, 1.375rem); line-height: 1.55; color: var(--ink-2); max-width: 48ch; margin: 32px 0 0; }
.notes { border-bottom: 1px solid var(--rule); margin-bottom: var(--section); }
.notes li { border-top: 1px solid var(--rule); padding: 32px 0; }
.notes a { text-decoration: none; display: block; }
.notes h3 { font-size: 1.625rem; line-height: 1.25; max-width: 32ch; }
.notes a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.notes .meta { margin-top: 10px; }
.notes .summary { margin: 12px 0 0; max-width: 60ch; color: var(--ink-2); }

/* Article */
.article { padding: 72px 0 var(--section); }
.article .label { margin-bottom: 24px; }
.article-head { max-width: 800px; }
.article-head h1 { font-size: clamp(2.25rem, 4.8vw, 3.75rem); letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.article-head .meta { margin-top: 24px; }
.article-body { max-width: 660px; margin-top: 56px; font-size: 1.1875rem; line-height: 1.7; }
.article-body p { margin: 0 0 1.15em; }
.article-body .lede { font-size: 1.375rem; line-height: 1.55; }
.article-body .standalone { font-style: italic; }
.article-body .pull-quote {
  font-size: 1.625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  border-top: 1px solid var(--ink);
  padding: 24px 0 0;
  margin: 40px 0;
}
.article-foot { max-width: 660px; border-top: 1px solid var(--rule); margin-top: 64px; padding-top: 32px; }
.article-foot .who { font-size: 1.125rem; margin: 0 0 4px; }
.article-foot .meta { max-width: 52ch; }
.article-foot .actions { margin-top: 28px; }

@media (max-width: 1080px) {
  .proof { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: 56px 96px; }
}

@media (max-width: 860px) {
  :root { --gutter: 32px; --section: 88px; }
  .led-by, .moments li, .field-notes .wrap, .situations .wrap { grid-template-columns: 1fr; }
  .led-by, .led-by:has(.led-by-photo) { grid-template-columns: 1fr; grid-template-areas: "photo" "name" "text"; }
  .led-by-photo { max-width: 300px; margin-bottom: 8px; }
  .situations h2 { max-width: 16ch; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --section: 72px; }
  body { font-size: 1.0625rem; }
  .site-header .wrap { padding-top: 24px; padding-bottom: 20px; align-items: flex-start; }
  .brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .brand-name { font-size: 1.125rem; letter-spacing: 0.2em; }
  .brand-desc { font-size: 0.625rem; letter-spacing: 0.2em; padding-left: 0; border-left: 0; }
  .site-nav { gap: 18px; padding-top: 2px; }
  .site-nav a { font-size: 0.875rem; }
  .hero { padding: 40px 0 80px; }
  .hero-lower { margin-top: 36px; }
  .proof { grid-template-columns: 1fr; gap: 30px; margin-top: 56px; padding-top: 36px; }
  .proof .fig { font-size: 2.375rem; }
  .proof .what { margin-top: 10px; }
  .proof .is-range { text-align: left; }
  .moments { margin-top: 72px; }
  .moments li { padding: 32px 0; gap: 12px; }
  .situations ul li { padding: 10px 0; }
  .closing { padding-bottom: 72px; }
  .closing ul { flex-direction: column; gap: 18px; margin-top: 40px; }
  .notes { margin-bottom: 72px; }
  .article { padding-top: 48px; }
  .article-body { font-size: 1.125rem; margin-top: 40px; }
}
