/* ─────────────────────────────────────────────────────────────────────────
   selligence.css — the source of truth
   Built 2026-05-10 · Quiet Authority direction
   Bone-white + slate + one accent (oxblood)
   Editorial serif headlines · sans body · mono accents
   ───────────────────────────────────────────────────────────────────────── */

/* Variables */
:root {
  --paper:     #FBF8F1;   /* bone-white background */
  --paper-2:   #F1EBDB;   /* warm-grey for callouts */
  --ink:       #1A1A1A;   /* primary text */
  --ink-2:     #444444;   /* body / secondary */
  --ink-3:     #777777;   /* metadata / tertiary */
  --rule:      #D8D2C4;   /* hairline rules */
  --accent:    #8B2426;   /* oxblood — used sparingly */
  --accent-2:  #6E1C1D;   /* hover state */

  --serif:     'Charter', 'Iowan Old Style', 'Iowan', 'Lyon Text', 'Hoefler Text', Georgia, 'Times New Roman', serif;
  --sans:      -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Inter', system-ui, sans-serif;
  --mono:      ui-monospace, 'SF Mono', 'Menlo', 'Monaco', 'Cascadia Mono', monospace;

  --max:       720px;     /* content max-width */
  --max-wide:  920px;     /* wide containers (forms with two-col rows) */
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Page chrome */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 0.5px solid var(--rule);
}
.wm {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 3.6px;
  font-weight: 500;
  color: var(--ink);
}
.wm a { color: inherit; }
.nav {
  display: flex; gap: 32px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--ink-2);
}
.nav a { color: inherit; transition: color 150ms; }
.nav a:hover { color: var(--accent); }
.nav .cta-link { color: var(--accent); font-weight: 500; }

main { flex: 1; }

.foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 40px;
  border-top: 0.5px solid var(--rule);
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.2px;
}
.foot a { color: var(--ink-3); }
.foot a:hover { color: var(--accent); }

/* Sections — tightened pass 3, 2026-05-10 PM */
.section {
  padding: 40px 48px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.section.wide  { max-width: var(--max-wide); }
.section.tight { padding: 28px 48px; }
.section.bleed { padding: 40px 48px; max-width: none; background: var(--paper-2); }
.section.bleed .inner { max-width: var(--max); margin: 0 auto; }
.section.hero  { padding: 56px 48px 24px; }     /* slim hero */

.rule { height: 0.5px; background: var(--rule); border: 0; margin: 0; }
.rule.indent { margin: 0 56px; }

/* Type scale */
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 14px;
}
.eyebrow.muted { color: var(--ink-3); }

h1, .h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  max-width: 600px;
}
h2, .h2 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.3px;
  margin: 0 0 16px;
  max-width: 560px;
}
h3, .h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  margin: 0 0 10px;
}
.lead {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--ink);
  max-width: 600px;
  margin: 0 0 20px;
}
.body, p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 14px;
}
.body em, p em { font-style: italic; color: var(--ink); }
.meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.4px;
}
.num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--accent);
}

/* CTAs */
.cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 14px 0;
  border-bottom: 1px solid var(--accent);
  font-weight: 500;
  transition: color 150ms, border-color 150ms;
}
.cta:hover { color: var(--accent-2); border-color: var(--accent-2); }
.cta.solid {
  background: var(--accent);
  color: var(--paper);
  padding: 16px 28px;
  border-radius: 2px;
  border-bottom: none;
}
.cta.solid:hover { background: var(--accent-2); color: var(--paper); }

/* Callout — used for pattern teasers, founder lines, etc. */
.callout {
  display: flex; gap: 24px;
  padding: 32px 48px;
  background: var(--paper-2);
  margin: 0;
}
.callout .marker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.5px;
  min-width: 44px;
  padding-top: 6px;
}
.callout .body-block { flex: 1; }

/* Forms */
.form { max-width: 560px; }
.field-group { padding: 24px 0 8px; }
.field-group + .field-group { border-top: 0.5px solid var(--rule); }
.field-label {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 8px;
}
.field-sublabel {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 14px;
  max-width: 480px;
}
.field-row { display: flex; gap: 14px; margin-bottom: 12px; max-width: 480px; }
.field-row > * { flex: 1; }
input[type=text], input[type=email], select, textarea {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: #FFF;
  border: 0.5px solid #C8C2B2;
  border-radius: 2px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color 150ms;
}
input[type=text]:focus, input[type=email]:focus, select:focus, textarea:focus {
  border-color: var(--accent);
}
textarea { min-height: 120px; resize: vertical; font-family: var(--sans); }
.radio-set { display: flex; flex-direction: column; gap: 12px; max-width: 480px; margin-bottom: 8px; }
.radio-set label {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  padding: 10px 0 10px 28px;
  position: relative;
  cursor: pointer;
}
.radio-set input[type=radio] { position: absolute; left: 4px; top: 13px; accent-color: var(--accent); }
.radio-set .label-strong { color: var(--ink); font-weight: 500; }
.checkbox-set { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; max-width: 520px; }
.checkbox-set label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer;
}
.checkbox-set input[type=checkbox] { margin-top: 4px; accent-color: var(--accent); }
.consent {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 480px;
  margin: 24px 0 28px;
}
.submit-row { padding: 28px 0 0; }
button.submit, input.submit {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--accent);
  padding: 16px 28px;
  border: 0; border-radius: 2px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms;
}
button.submit:hover, input.submit:hover { background: var(--accent-2); }
button.submit:disabled { background: var(--ink-3); cursor: not-allowed; }
.status { margin-top: 22px; padding: 16px; font-size: 14px; line-height: 1.55; border-radius: 2px; max-width: 480px; }
.status.ok { background: #EBE5D2; color: var(--ink); border-left: 2px solid var(--accent); }
.status.err { background: #F6E3D9; color: var(--accent-2); border-left: 2px solid var(--accent-2); }

/* Pattern library + teardown index — list treatments */
.idx-list { list-style: none; padding: 0; margin: 0; }
.idx-list > li {
  padding: 20px 0;
  border-bottom: 0.5px solid var(--rule);
}
.idx-list > li:last-child { border-bottom: 0; }
.idx-list .idx-num { font-family: var(--mono); font-size: 10.5px; color: var(--accent); letter-spacing: 0.5px; }
.idx-list .idx-h {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  margin: 4px 0 6px;
}
.idx-list .idx-l {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 10px;
  max-width: 560px;
}
.idx-list .idx-read { font-family: var(--sans); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; font-weight: 500; }

/* Closer (final CTA block on long pages) */
.closer { padding: 48px 48px 48px; max-width: var(--max); margin: 0 auto; }
.closer h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.2px; margin: 0 0 16px; }

/* ─────────────────────────────────────────────────────────────────────────
   Hero composition — bespoke editorial marginalia mark
   The signature visual that anchors the home page. Hand-crafted SVG +
   HTML, no external asset. Visualizes "we read carefully, mark what's
   wrong, draft the move."
   ───────────────────────────────────────────────────────────────────────── */
.hero-figure {
  position: relative;
  margin: 0 auto 24px;
  padding: 0 32px;
  max-width: 960px;
}
.hero-figure .stage {
  position: relative;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #F4ECDA 0%, #E8DEC4 100%);
  border: 0.5px solid var(--rule);
  box-shadow: 0 2px 0 rgba(170, 150, 110, 0.06), 0 12px 32px -8px rgba(110, 80, 30, 0.08);
  overflow: hidden;
}
.hero-figure .page {
  position: absolute;
  top: 8%; left: 10%; right: 12%; bottom: 6%;
  background: #FCFAF3;
  box-shadow: 0 1px 0 rgba(170, 150, 110, 0.18), 0 8px 24px -4px rgba(110, 80, 30, 0.18), 0 22px 44px -10px rgba(80, 60, 20, 0.12);
  padding: 28px 36px 28px 32px;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.52);
  transform: rotate(-1.2deg);
  transform-origin: center;
}
.hero-figure .page-head {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.4);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
.hero-figure .page-h {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 400;
  color: rgba(26, 26, 26, 0.7);
  margin: 0 0 12px;
}
.hero-figure .page p {
  font-size: 10.5px;
  margin: 0 0 9px;
  color: rgba(26, 26, 26, 0.5);
  max-width: none;
}
.hero-figure .underline-mark {
  position: absolute;
  height: 6px;
  pointer-events: none;
}
.hero-figure .underline-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-figure .annotation {
  position: absolute;
  font-family: 'Caveat', 'Snell Roundhand', 'Apple Chancery', 'Lucida Handwriting', cursive;
  color: var(--accent);
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.3px;
  white-space: nowrap;
  pointer-events: none;
  transform: rotate(-4deg);
}
.hero-figure .annotation.small { font-size: 16px; }
.hero-figure .annotation.tilt-right { transform: rotate(3deg); }
.hero-figure .arrow {
  position: absolute;
  pointer-events: none;
}
.hero-figure .arrow svg { display: block; overflow: visible; }
.hero-figure .circle-mark {
  position: absolute;
  pointer-events: none;
}
.hero-figure .circle-mark svg { display: block; overflow: visible; }
.hero-figure figcaption {
  text-align: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--ink-3);
  margin-top: 14px;
  font-style: italic;
}

/* Compact eyebrow→h2 rhythm — used in tightened sections */
.compact h2 { margin-bottom: 14px; }
.compact .eyebrow { margin-bottom: 14px; }
.compact .body { margin-bottom: 14px; }

/* Numbered horizontal strip — replaces the bulky "Five steps" vertical list */
.steps-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.steps-strip .step { padding: 0; }
.steps-strip .step .num { margin-bottom: 10px; }
.steps-strip .step h3 { font-size: 16px; line-height: 1.3; margin: 0 0 8px; font-weight: 400; }
.steps-strip .step p {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: none;
}

/* Utility */
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Mobile */
@media (max-width: 720px) {
  .head, .foot { padding: 18px 22px; }
  .nav { gap: 18px; font-size: 11px; }
  .nav a:not(.cta-link) { display: none; }   /* on mobile only show the CTA in the nav */
  .section { padding: 40px 22px; }
  .section.hero { padding: 40px 22px 24px; }
  .section.tight { padding: 28px 22px; }
  .section.bleed { padding: 40px 22px; }
  .callout { padding: 32px 22px; gap: 14px; }
  .callout .marker { min-width: 36px; }
  .closer { padding: 56px 22px 48px; }
  h1, .h1 { font-size: 32px; letter-spacing: -0.3px; }
  h2, .h2 { font-size: 26px; }
  .lead { font-size: 17px; }
  .field-row { flex-direction: column; gap: 10px; }
  .checkbox-set { grid-template-columns: 1fr; }
  .steps-strip { grid-template-columns: 1fr; gap: 18px; }
  .hero-figure { padding: 0 16px; }
  .hero-figure .page { padding: 18px 22px; font-size: 10px; }
  .hero-figure .page-h { font-size: 13px; }
  .hero-figure .annotation { font-size: 18px; }
}

@media (max-width: 480px) {
  h1, .h1 { font-size: 32px; }
  h2, .h2 { font-size: 24px; }
}

/* Print — Clarity Review export, etc. */
@media print {
  .head, .foot, .closer { display: none; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; }
  a { color: #000; text-decoration: none; }
}
