:root {
  --ink: #1c1b1a;
  --ink-soft: #57534e;
  --paper: #faf9f7;
  --rule: #e3e0da;
  /* The mark's magenta is too light to pass AA as body-text color on paper,
     so links take a darkened version of it and the mark keeps the original. */
  --accent: #c1006f;
  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece9e4;
    --ink-soft: #a8a29a;
    --paper: #161514;
    --rule: #2e2c29;
    --accent: #ff63b4;
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mark img {
  width: 34px;
  height: 34px;
  display: block;
}

.masthead nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.94rem;
}

.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--ink);
}

/* Type */

main {
  padding: 3rem 0 4rem;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.75rem;
}

p,
li {
  max-width: var(--measure);
  color: var(--ink-soft);
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink);
}

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

/* Service list */

.services {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: var(--measure);
}

.services li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  max-width: none;
}

.services strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* Footer */

footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

footer p {
  font-size: inherit;
  margin: 0.35rem 0;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

footer a {
  color: var(--ink-soft);
}
