/* ---- Design tokens ---------------------------------------------------- */
:root {
  --bg: #f4f3f1;
  --text: #1a1a1a;
  --muted: #8a8a85;
  --rule: #dcdbd6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 40rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16150f;
    --text: #ecebe4;
    --muted: #86857c;
    --rule: #2c2b24;
  }
}

/* ---- Reset-ish -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Layout ----------------------------------------------------------- */
.page {
  max-width: var(--measure);
  margin: 0;
  padding: clamp(4rem, 14vh, 11rem) 1.5rem 6rem clamp(1.5rem, 8vw, 7rem);
}

section + section { margin-top: clamp(4rem, 12vh, 9rem); }

/* ---- Intro ------------------------------------------------------------ */
.intro p {
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.05rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
  margin: 0 0 1.4em;
}
.intro p:last-child { margin-bottom: 0; }

/* ---- Links ------------------------------------------------------------ */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color 120ms ease;
}
a:hover { text-decoration-color: currentColor; }

.connect-link { text-decoration-color: currentColor; }

/* ---- Section labels --------------------------------------------------- */
.label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

/* ---- Clients ---------------------------------------------------------- */
.clients-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 0.55rem;
  font-size: 1.3rem;
  max-width: 34rem;
}
.clients-list li.muted { color: var(--muted); }
.clients-list li.muted,
.connect-list li { line-height: 1.4; }

/* ---- Connect ---------------------------------------------------------- */
.connect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 1.3rem;
}

/* ---- Small screens ---------------------------------------------------- */
@media (max-width: 540px) {
  .clients-list { grid-template-columns: 1fr; }
}
