/* CausalCast — site styles.
   Colour encodes information: the five perspective hues mark whose reason a
   statement is, and are used for nothing else. */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ledger: #f1f3f6;
  --ink: #14202e;
  --ink-hover: #243650;
  --body: #2a3645;
  --muted: #5a6675;
  --rule: #d8dde4;
  --on-ink: #ffffff;
  --on-ink-muted: #c9d2dd;

  --p-customer: #1d5fa8;
  --p-seller: #a3246b;
  --p-operator: #2c7a4b;
  --p-analyst: #6a4bb0;
  --p-executive: #8a5a00;

  --sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 40rem;
  --radius: 8px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 960px) {
  body {
    font-size: 1.125rem;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 3.6vw + 1.2rem, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 760;
}

h2 {
  font-size: clamp(1.625rem, 1.4vw + 1.1rem, 2.375rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 680;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--p-customer);
  outline-offset: 3px;
  border-radius: 2px;
}

strong {
  color: var(--ink);
  font-weight: 650;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 6px;
}

.skip:focus {
  left: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: calc(46rem + 2 * var(--gutter));
}

/* Header */

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

.header-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: block;
  color: var(--ink);
  margin-right: auto;
}

.brand svg {
  height: 2.1rem;
  width: auto;
}

.nav-wide {
  display: none;
}

.nav-wide ul,
.nav-narrow ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-wide ul {
  display: flex;
  gap: 1.75rem;
}

.nav-wide li,
.nav-narrow li {
  margin: 0;
}

.nav-wide a,
.nav-narrow a {
  color: var(--body);
  font-weight: 520;
  text-decoration: none;
}

.nav-wide a:hover,
.nav-wide a[aria-current='page'] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.55em;
}

.header-cta {
  display: none;
}

.nav-narrow summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
}

.nav-narrow summary::-webkit-details-marker {
  display: none;
}

.nav-narrow[open] summary {
  border-color: var(--ink);
}

.nav-narrow nav {
  position: absolute;
  right: var(--gutter);
  top: calc(100% - 0.25rem);
  z-index: 10;
  min-width: 15rem;
  padding: 0.75rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.nav-narrow li a {
  display: block;
  padding: 0.55rem 0;
}

.nav-narrow li + li {
  border-top: 1px solid var(--rule);
}

.nav-narrow a[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 640px) {
  .header-cta {
    display: block;
  }
}

@media (min-width: 1080px) {
  .nav-wide {
    display: block;
  }

  .nav-narrow {
    display: none;
  }
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  font-weight: 620;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--ink);
  color: var(--on-ink);
}

.button-primary:hover {
  background: var(--ink-hover);
}

.header-cta .button {
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
}

.text-link {
  font-weight: 620;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 1.75rem 0 1rem;
}

/* Hero */

.hero {
  padding-block: clamp(2.75rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem);
}

.hero + .section {
  border-top: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  gap: 3rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.6vw + 1.2rem, 4.75rem);
  line-height: 1;
  letter-spacing: -0.034em;
  font-weight: 780;
  max-width: 13ch;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--body);
  max-width: 36rem;
  margin-top: 1.5rem;
}

.hero-note {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 30rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 4.5rem;
    align-items: start;
  }

  .lede {
    font-size: 1.3125rem;
  }
}

/* The decision record — the site's one signature element */

.record {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.record-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  background: var(--ledger);
  border-bottom: 1px solid var(--rule);
}

.record-fields div {
  padding: 0.7rem 1.1rem;
}

.record-fields dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.record-fields dd {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 480px) {
  .record-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.record-part {
  padding: 1rem 1.25rem;
}

.record-part + .record-part {
  border-top: 1px dashed var(--rule);
  padding-top: 0.9rem;
}

.record-heading {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted);
}

/* Each entry is a register row: whose reason (label column), then the reason. */
.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  column-gap: 0.75rem;
  margin: 0;
  padding: 0.55rem 0;
}

.entries .entry + .entry {
  border-top: 1px solid var(--rule);
}

.p-customer { --hue: var(--p-customer); }
.p-seller { --hue: var(--p-seller); }
.p-operator { --hue: var(--p-operator); }
.p-analyst { --hue: var(--p-analyst); }
.p-executive { --hue: var(--p-executive); }

.entry-label {
  margin: 0;
  padding-top: 0.15rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--hue, var(--muted));
}

.entry p:not(.entry-label) {
  margin: 0;
}

.entry-text {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 540;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.9rem;
  margin-top: 0.15rem !important;
  font-size: 0.8125rem;
  color: var(--muted);
}

.entry-inferred .entry-text {
  color: var(--muted);
  font-weight: 400;
}

.entry-conflict {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink);
}

.entry-conflict .entry-label {
  color: var(--ink);
}

.entry-conflict .entry-text {
  font-size: 0.9375rem;
}

.status-confirmed {
  color: var(--ink);
  font-weight: 650;
}

.status-inferred {
  color: var(--muted);
  text-decoration: underline dotted;
  text-underline-offset: 0.2em;
}

.entry-eval {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--rule);
}

.entry-eval .entry-label {
  color: var(--ink);
}

.entry-eval .entry-text {
  font-size: 0.9375rem;
}

.name {
  color: var(--hue);
  font-weight: 700;
}

.record figcaption {
  padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .entries .entry {
    animation: arrive 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .entries .entry:nth-child(1) { animation-delay: 0.3s; }
  .entries .entry:nth-child(2) { animation-delay: 0.5s; }
  .entries .entry:nth-child(3) { animation-delay: 0.7s; }

  .entry-conflict {
    animation: arrive 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1s both;
  }

  .entry-eval {
    animation: arrive 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1.25s both;
  }
}

@keyframes arrive {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

/* Sections with margin headings */

.section {
  padding-block: clamp(3.25rem, 7vw, 6rem);
}

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

.section-grid {
  display: grid;
  gap: 0.75rem;
}

.section-label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--muted);
}

.section-body > p,
.section-body > ul,
.section-body > ol,
.section-body > .definition,
.section-body > .faq,
.section-body > h2 {
  max-width: var(--measure);
}

@media (min-width: 960px) {
  .section-grid {
    grid-template-columns: 11.5rem minmax(0, 1fr);
    column-gap: 3.5rem;
  }

  .section-label {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    padding-top: 0.55rem;
  }
}

.page-intro {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
}

.page-intro h1 {
  max-width: 20ch;
}

.page-intro + .section:not(.section-ledger) {
  border-top: 1px solid var(--rule);
}

/* Content patterns */

.stat {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--ink);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.5;
}

.source {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.definition {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.definition p:last-child {
  margin-bottom: 0;
}

dfn {
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.phases {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1.75rem;
}

.phase {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.phase h3,
.phase-detail h3 {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.phase p {
  margin: 0;
}

.phase-step {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.1rem);
}

@media (min-width: 760px) {
  .phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.75rem;
  }
}

.modules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 52rem;
}

.modules li {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.modules h3 {
  margin-bottom: 0.4rem;
}

.modules h3 a {
  text-decoration: none;
}

.modules h3 a:hover {
  text-decoration: underline;
}

.modules p {
  margin: 0;
}

@media (min-width: 760px) {
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.75rem;
  }
}

.module-detail {
  padding-top: 1.5rem;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}

.module-detail:last-child {
  margin-bottom: 0;
}

.module-detail h3 {
  margin-bottom: 0.4rem;
}

.module-promise {
  color: var(--ink);
  font-weight: 560;
}

.outputs {
  font-size: 0.9375rem;
  color: var(--muted);
}

.outputs-label {
  color: var(--ink);
  font-weight: 650;
}

.status-note {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--muted);
}

.rule-line {
  color: var(--ink);
  font-weight: 620;
}

.checks {
  list-style: none;
  padding: 0;
}

.checks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.5em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  max-width: var(--measure);
}

.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 2.75rem;
  margin-bottom: 1.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.terms {
  display: grid;
  gap: 0;
  margin: 1.25rem 0 1.5rem;
  max-width: 48rem;
}

.terms div {
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule);
}

.terms dt {
  color: var(--ink);
  font-weight: 650;
}

.terms dd {
  margin: 0.15rem 0 0;
}

@media (min-width: 760px) {
  .terms div {
    display: grid;
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 1.5rem;
  }

  .terms dd {
    margin: 0;
  }
}

.list-heading {
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
  font-weight: 700;
}

.fit {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 1.25rem;
}

.caveat {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 560;
}

/* Tables: rows become stacked records on narrow screens */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 1.25rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}

.data-table thead th {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--muted);
  border-bottom-color: var(--ink);
}

.data-table tbody th {
  color: var(--ink);
  font-weight: 650;
  width: 30%;
}

.data-table tr.is-ours th,
.data-table tr.is-ours td {
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 719px) {
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .data-table tr {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .data-table th,
  .data-table td {
    display: block;
    width: auto !important;
    padding: 0.1rem 0;
    border: 0;
  }

  .data-table td::before {
    content: attr(data-label) ': ';
    color: var(--muted);
  }
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-child {
  border-top: 1px solid var(--rule);
}

.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1rem 2.25rem 1rem 0;
  color: var(--ink);
  font-weight: 620;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 0.85rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
}

.faq details[open] summary::after {
  content: '\2013';
}

.faq details p {
  padding-bottom: 0.5rem;
}

/* Engagements */

.engagement {
  margin: 0 0 3.25rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
  max-width: 48rem;
}

.engagement:last-child {
  margin-bottom: 0;
}

.engagement-head h3 {
  font-size: 1.625rem;
}

.buyer-question {
  margin: 0.3rem 0 1.25rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.engagement-facts {
  display: grid;
  gap: 1px;
  margin: 0 0 1.25rem;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.engagement-facts div {
  padding: 0.7rem 1rem;
  background: var(--ledger);
}

.engagement-facts dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.engagement-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 620;
}

@media (min-width: 640px) {
  .engagement-facts {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }
}

.leads-to {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Method page */

.phase-detail {
  padding-top: 1.5rem;
  margin-bottom: 3rem;
  border-top: 1px solid var(--rule);
  max-width: 48rem;
}

.phase-detail:last-child {
  margin-bottom: 0;
}

.phase-detail > p {
  max-width: var(--measure);
}

.phase-io {
  display: grid;
  gap: 1px;
  margin: 1.25rem 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.phase-io div {
  padding: 0.7rem 1rem;
  background: var(--paper);
}

.phase-io dt {
  font-size: 0.8125rem;
  color: var(--muted);
}

.phase-io dd {
  margin: 0;
  color: var(--ink);
}

@media (min-width: 760px) {
  .phase-io {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Essay */

.essay-head {
  padding-block: clamp(3rem, 7vw, 5.5rem) 1.5rem;
}

.essay-head h1 {
  font-size: clamp(2.5rem, 4vw + 1.2rem, 4.25rem);
}

.dek {
  margin-top: 1.25rem;
  font-size: 1.3125rem;
  line-height: 1.5;
  max-width: 36rem;
}

.byline {
  font-size: 0.9375rem;
  color: var(--muted);
}

.prose {
  padding-bottom: clamp(3rem, 7vw, 5rem);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  color: #1f2a37;
}

.prose p,
.prose h2 {
  max-width: 38rem;
}

.prose h2 {
  font-family: var(--sans);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
}

.prose-plain h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 0.6rem;
}

.prose-plain p {
  max-width: var(--measure);
}

.updated {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Closing call to action */

.closing {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.closing h2 {
  color: var(--on-ink);
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.closing-grid {
  display: grid;
  gap: 0.5rem;
}

.closing p {
  max-width: 34rem;
}

.closing a {
  color: var(--on-ink);
}

.closing .button-primary {
  background: var(--on-ink);
  color: var(--ink);
}

.closing .button-primary:hover {
  background: #e3e8ee;
}

.closing :focus-visible {
  outline-color: var(--on-ink);
}

.or {
  font-size: 0.9375rem;
}

@media (min-width: 960px) {
  .closing-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }

  .closing .actions {
    margin-top: 1.5rem;
  }
}

/* Footer */

.site-footer {
  padding-top: 3.5rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-about {
  grid-column: 1 / -1;
}

.footer-name {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
}

.footer-name img {
  width: 1.5rem;
  height: auto;
}

.footer-heading {
  margin-bottom: 0.5rem;
  color: var(--ink);
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-base {
  margin-top: 2rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-base p {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: auto;
  }
}

/* Page intros and single-column sections share the content column of the
   margin-heading sections, so left edges line up down the page. */
@media (min-width: 960px) {
  .page-intro > .narrow,
  .section > .narrow {
    max-width: 76rem;
    padding-left: calc(var(--gutter) + 15rem);
  }

  .page-intro > .narrow > *,
  .section > .narrow > * {
    max-width: 46rem;
  }
}

/* Coming-soon site: logo, one statement, one action. */

.bare {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.bare main {
  flex: 1;
  display: flex;
  align-items: center;
}

.bare-header {
  padding-block: 1.75rem;
}

.bare-header .brand {
  display: inline-block;
}

.soon {
  width: 100%;
  padding-block: clamp(2rem, 6vw, 5rem);
}

.soon h1 {
  font-size: clamp(2.5rem, 5.4vw + 1rem, 5.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 780;
  max-width: 13ch;
}

.soon .lede {
  max-width: 38rem;
}

.soon-note {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* The five perspective colours, side by side: every point of view. */
.perspective-bar {
  display: flex;
  gap: 6px;
  margin-top: 2.5rem;
}

.perspective-bar span {
  width: 2.75rem;
  height: 6px;
  border-radius: 3px;
  background: var(--hue);
}

.bare-footer {
  font-size: 0.875rem;
  color: var(--muted);
}

.bare-footer-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem 2rem;
}

/* The rule spans the content column only, not the side gutters. */
.bare-footer-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--rule);
}

.bare-footer p {
  margin: 0;
}

.bare-footer a {
  color: var(--muted);
}

.bare .page-intro {
  width: 100%;
}
