/* Integrative Insights LLC
   Colours follow Brand/svg/README.md: navy #12294A, teal #1F7A8C,
   amber #E0A11B, graphite #3A3D42, paper #EEEDEA.
   UI type is Jost, the wordmark face. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
}

:root {
  --paper: #f5f4f1;
  --ink: #12294a;        /* brand navy */
  --ink-soft: #50545a;   /* lighter graphite, for secondary text */
  --graphite: #3a3d42;
  --accent: #1f7a8c;     /* brand teal: links, buttons, focus */
  --accent-dark: #155a69;
  --amber: #e0a11b;      /* brand amber: decoration only, never text */
  --mist: #e4e2dc;
  --land: #eeedea;       /* brand paper */
  --rule: #c9c6be;
  --white: #ffffff;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --page: 72rem;
  --measure: 38rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4rem, 9vw, 7rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

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

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

p + p {
  margin-top: var(--space-2);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.35rem + 3.8vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  max-width: 19ch;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.1rem);
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
}

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

a:hover {
  color: var(--accent-dark);
  text-decoration-thickness: 2px;
}

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--white);
  outline-color: var(--accent);
}

/* Header */

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: 1.1rem;
}

.brand {
  display: inline-block;
}

.brand {
  padding-block: 0.4rem;
}

.brand img {
  height: 30px;
  width: auto;
}

@media (min-width: 40rem) {
  .brand img {
    height: 34px;
  }
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.6rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--rule);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* Shared blocks */

main {
  display: block;
}

.section {
  padding-block: var(--space-6);
}

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

.page-head {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: var(--space-5);
}

.lead {
  max-width: var(--measure);
  margin-top: var(--space-3);
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
}

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

.prose p + h2,
.prose p + h3,
.prose ul + h3 {
  margin-top: var(--space-4);
}

.prose h2 + p,
.prose h3 + p {
  margin-top: var(--space-2);
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 1rem;
}

/* Two-column rows: a heading in the margin, content beside it */

.row {
  display: grid;
  gap: var(--space-2) var(--space-4);
}

@media (min-width: 56rem) {
  .row {
    grid-template-columns: minmax(14rem, 1fr) 2.4fr;
  }
}

.row + .row {
  margin-top: var(--space-5);
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-4);
}

.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  min-height: 44px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
}

.button:hover {
  background: var(--accent-dark);
  color: var(--white);
}

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

.text-link {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  padding-block: 0.6rem;
}

/* Home: examples */

.examples {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding: 0;
  list-style: none;
}

@media (min-width: 46rem) {
  .examples {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--space-5);
  }
}

.examples li {
  padding-top: var(--space-2);
  border-top: 3px solid var(--amber);
}

.examples h3 {
  margin-bottom: var(--space-1);
}

.examples p {
  font-size: 1.05rem;
}

/* Services */

.service h2 {
  font-size: 1.6rem;
}

.service .outputs {
  margin-top: var(--space-2);
  padding-left: var(--space-2);
  border-left: 3px solid var(--mist);
  font-size: 1rem;
  color: var(--ink-soft);
}

.service .outputs b {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
}

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

.steps li {
  position: relative;
  padding-left: 3.25rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.85rem;
  text-align: center;
}

.steps strong {
  display: block;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
}

/* About */

.timeline {
  margin: 0;
  max-width: 46rem;
}

.timeline div {
  display: grid;
  gap: 0.15rem var(--space-3);
  padding-block: var(--space-2);
  border-top: 1px solid var(--rule);
}

.timeline div:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 40rem) {
  .timeline div {
    grid-template-columns: 8.5rem 1fr;
  }
}

.timeline dt {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.timeline dd {
  margin: 0;
}

.timeline dd b {
  font-weight: 600;
}

.plain-list {
  padding-left: 1.2rem;
}

.plain-list li + li {
  margin-top: var(--space-1);
}

.pubs {
  max-width: 46rem;
  padding: 0;
  list-style: none;
}

.pubs li {
  padding-left: 1.5rem;
  text-indent: -1.5rem;
  font-size: 1.02rem;
}

.pubs li + li {
  margin-top: var(--space-2);
}

.note {
  max-width: var(--measure);
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-3);
  background: var(--mist);
  font-size: 1rem;
}

/* Contact */

.email-big {
  display: inline-block;
  margin-top: var(--space-3);
  padding-block: 0.3rem;
  font-size: clamp(1.05rem, 0.55rem + 2.7vw, 2.4rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Closing band */

.closing {
  background: var(--ink);
  color: var(--paper);
}

.closing .section,
.section.closing {
  border-top: 0;
}

.closing h2 {
  max-width: 24ch;
}

.closing p {
  max-width: var(--measure);
  margin-top: var(--space-2);
}

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

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

.closing .button:hover {
  background: var(--white);
  color: var(--ink);
}

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

/* Footer */

.site-footer {
  padding-block: var(--space-4);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.closing + .site-footer {
  border-top: 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--ink-soft);
}

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

@media print {
  .site-nav,
  .skip-link,
  .actions {
    display: none;
  }
  body {
    background: #fff;
  }
}

.space-top {
  margin-top: var(--space-3);
}

.space-top-sm {
  margin-top: var(--space-2);
}

/* Tighten the space where a section follows the page heading */
.page-head + .section {
  padding-top: var(--space-4);
}


.page-head + .section {
  border-top: 0;
}

/* Photographs */

.principal {
  display: grid;
  gap: var(--space-3);
  align-items: start;
}

@media (min-width: 36rem) {
  .principal {
    grid-template-columns: 120px 1fr;
  }
}

.portrait-sm {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.portrait {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-top: var(--space-3);
  border-radius: 2px;
}

/* Home banner: Landsat image behind a navy panel */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 50%;
}

.hero-inner {
  position: relative;
  padding-top: clamp(2.5rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 11vw, 8.5rem);
}

.hero-panel {
  max-width: 44rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: rgba(18, 41, 74, 0.9);
  border-left: 4px solid var(--amber);
  color: var(--paper);
}

.hero-panel h1 {
  color: var(--white);
}

.hero-panel .lead {
  color: var(--paper);
}

.hero-panel .text-link,
.hero-panel .text-link:hover {
  color: var(--white);
}

.hero-panel :focus-visible {
  outline-color: var(--white);
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover {
  background: var(--white);
  color: var(--ink);
}

.hero-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.35rem 0.75rem;
  max-width: 100%;
  background: rgba(18, 41, 74, 0.9);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.8rem;
}

/* Logo mark placements */

.closing-inner {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 56rem) {
  .closing-inner {
    grid-template-columns: 1fr auto;
  }
}

.closing-mark {
  display: none;
  width: 220px;
  height: auto;
}

@media (min-width: 56rem) {
  .closing-mark {
    display: block;
  }
}

.footer-id img {
  width: auto;
  height: 26px;
}

.footer-id p {
  margin-top: 0.6rem;
}

.role {
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Contact card */

.contact-card {
  display: grid;
  gap: var(--space-3) var(--space-4);
  align-items: center;
  max-width: 46rem;
  margin-bottom: var(--space-4);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
}

@media (min-width: 40rem) {
  .contact-card {
    grid-template-columns: auto 1fr;
  }
}

.contact-mark {
  width: 110px;
  height: auto;
}

.contact-card h2 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.contact-address {
  margin-top: 0.25rem;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.5rem);
  overflow-wrap: anywhere;
}

.contact-card .actions {
  margin-top: var(--space-3);
}

.contact-card + .section {
  border-top: 0;
  padding-top: var(--space-4);
}

/* On wide screens the panel sits right, leaving the heart-shaped lake visible on the left */
@media (min-width: 56rem) {
  .hero-inner {
    display: flex;
    justify-content: flex-end;
  }
  .hero-panel {
    max-width: 40rem;
    border-left: 0;
    border-right: 4px solid var(--amber);
  }
  .hero-img {
    object-position: 0% 55%;
  }
}
