/* Deployed Intelligence — public website */

:root {
  --paper: #f5f1e8;
  --surface: #fcfaf5;
  --tinted: #ece7dc;
  --ink: #242724;
  --muted: #596058;
  --line: #d5d6cd;
  --accent: #97432f;
  --accent-dark: #773323;
  --dark: #252c27;
  --light-text: #f5f1e8;
  --light-muted: #d1d7cc;

  --font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --page-width: 1120px;
  --focus-color: var(--accent);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] {
  display: none !important;
}

::selection {
  background: #e1c3b7;
  color: var(--ink);
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 4px;
}

section[id],
main[id] {
  scroll-margin-top: 24px;
}

.container {
  width: min(var(--page-width), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - 32px));
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-symbol {
  display: block;
  width: 27px;
  height: 27px;
  flex: none;
}

.brand-symbol rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}

.brand-symbol .filled {
  fill: var(--accent);
  stroke: var(--accent);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
}

.primary-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* Shared copy and actions */

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.lead {
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--light-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: var(--light-text);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.text-link {
  display: inline-block;
  padding-block: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration-color: var(--accent);
}

/* Homepage layout */

.hero {
  padding-block: clamp(60px, 8vw, 100px) clamp(56px, 7vw, 84px);
}

.hero h1 {
  max-width: 21ch;
}

.hero .lead {
  margin-top: 26px;
}

.section {
  padding-block: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

.section-intro > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
}

.section-intro > .text-link {
  margin-top: 16px;
}

.description-list > div {
  padding-block: 22px;
  border-top: 1px solid var(--line);
}

.description-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.description-list > div:last-child {
  padding-bottom: 0;
}

.description-list dt {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.description-list dd {
  margin-top: 8px;
  color: var(--muted);
}

.section-tinted {
  background: var(--tinted);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
}

/* Qualitative workflow illustration */

.workflow-example {
  border: 1px solid #c7cbbf;
  background: var(--surface);
}

.example-caption {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow > li {
  min-width: 0;
  padding: 26px;
}

.workflow > li:nth-child(even) {
  border-left: 1px solid var(--line);
}

.workflow > li:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.workflow-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 13px;
}

.step-number {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.workflow > li > p {
  color: var(--muted);
  font-size: 16px;
}

.workflow > li > .workflow-question {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.section-endnote {
  max-width: 76ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

/* Method and research summaries */

.process-list {
  margin: 0;
  padding-left: 24px;
}

.process-list li {
  padding-left: 8px;
}

.process-list li + li {
  margin-top: 25px;
}

.process-list li::marker {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.process-list p {
  margin-top: 8px;
  color: var(--muted);
}

.prose p {
  color: var(--muted);
}

.prose p + p {
  margin-top: 18px;
}

/* Founder */

.founder-band {
  --focus-color: #e0b6a7;
  background: var(--dark);
  color: var(--light-text);
}

.founder-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: clamp(30px, 6vw, 76px);
  padding-block: 42px;
}

.founder-inner h2 {
  font-size: 23px;
}

.founder-inner p {
  color: var(--light-muted);
  font-size: 16px;
  line-height: 1.8;
}

/* Contact form */

.contact-section {
  border-top: 0;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  padding-block: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration-color: var(--accent);
  overflow-wrap: anywhere;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 19px;
}

.form-instruction,
.form-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.form-note a {
  text-decoration-color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field label {
  font-size: 15px;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #aeb5a9;
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.contact-form > .button {
  justify-self: start;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-feedback {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.form-feedback p + p,
.form-feedback h3 + p {
  margin-top: 10px;
}

.form-error {
  border-color: var(--accent);
}

.form-success {
  border-color: #7e927d;
}

/* Methodology page */

.article-header {
  padding-block: 40px 46px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}

.article-header h1 {
  max-width: 23ch;
  font-size: clamp(34px, 4.6vw, 53px);
}

.article-header .lead {
  margin-top: 24px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 14px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
  padding-top: 34px;
  padding-bottom: 64px;
  border-top: 1px solid var(--line);
}

.contents h2 {
  font-size: 16px;
  letter-spacing: 0;
}

.contents ol {
  margin: 15px 0 0;
  padding-left: 20px;
  font-size: 14px;
}

.contents li {
  padding-left: 3px;
}

.contents li + li {
  margin-top: 8px;
}

.contents a {
  display: inline-block;
  padding-block: 4px;
  color: var(--muted);
  text-decoration-color: #a6aea0;
}

.article-body {
  min-width: 0;
  max-width: 74ch;
}

.article-body > section + section {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.article-body h2 {
  margin-bottom: 20px;
  font-size: clamp(24px, 2.6vw, 30px);
}

.article-body p {
  color: var(--muted);
}

.article-body p + p {
  margin-top: 17px;
}

.article-body ul {
  padding-left: 23px;
  color: var(--muted);
}

.article-body li + li {
  margin-top: 8px;
}

.article-definitions {
  margin-block: 23px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.article-definitions > div + div {
  margin-top: 19px;
}

.article-definitions dt {
  font-weight: 600;
}

.article-definitions dd {
  margin-top: 6px;
  color: var(--muted);
}

.research-list > section + section {
  margin-top: 26px;
}

.research-list h3 {
  margin-bottom: 10px;
}

.note,
.article-cta {
  margin-top: 27px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.note h3,
.article-cta h3 {
  margin-bottom: 10px;
}

.article-cta .button {
  margin-top: 20px;
}

/* Retired page */

.notice-page {
  min-height: 60vh;
  padding-block: 64px;
}

.notice-page h1 {
  max-width: 22ch;
  font-size: clamp(32px, 4vw, 46px);
}

.notice-copy {
  max-width: 70ch;
  margin-top: 25px;
}

.notice-copy p {
  color: var(--muted);
}

.notice-copy p + p {
  margin-top: 17px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 22px 36px;
  padding-block: 28px;
  color: var(--muted);
  font-size: 14px;
}

.footer-name {
  color: var(--ink);
  font-weight: 600;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-inner nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration-color: #a6aea0;
}

/* Responsive behaviour */

@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px 24px;
  }

  .section-grid,
  .founder-inner,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .section-grid {
    gap: 30px;
  }

  .founder-inner {
    gap: 20px;
  }

  .contents {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
  }

  .contents ol {
    columns: 2;
    column-gap: 30px;
  }

  .contents li {
    break-inside: avoid;
  }

  .article-body {
    max-width: none;
  }
}

@media (max-width: 540px) {
  .container {
    width: calc(100% - 40px);
  }

  .header-inner {
    padding-block: 15px;
  }

  .brand {
    font-size: 18px;
  }

  .primary-nav {
    width: 100%;
    gap: 6px 24px;
  }

  .hero {
    padding-block: 48px;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .workflow,
  .form-row {
    grid-template-columns: 1fr;
  }

  .workflow > li {
    padding: 22px;
  }

  .workflow > li:nth-child(even) {
    border-left: 0;
  }

  .workflow > li + li {
    border-top: 1px solid var(--line);
  }

  .example-caption {
    padding: 17px 22px;
  }

  .contents ol {
    columns: 1;
  }

  .article-header {
    padding-top: 28px;
  }

  .article-meta {
    flex-direction: column;
  }

  .note,
  .article-cta,
  .form-feedback {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a,
  .button {
    transition: none;
  }
}
