:root {
  --bg: #fbfbfd;
  --fg: #7d7d7d;
  --heading: #6b6b6b;
  --accent: #9c4dcc;
  --measure: 78rem;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  max-width: var(--measure);
  padding: 19rem 2rem 8rem;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1 {
  margin: 0 0 1.5rem;
  color: var(--heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0 0 2rem;
  color: var(--heading);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 300;
  line-height: 1.35;
}

.lede strong {
  font-weight: 700;
}

h2 {
  margin: 4rem 0 1.25rem;
  color: var(--heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

p {
  margin: 0 0 1.25rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

.grid p {
  margin: 0;
}

.grid section.disabled {
  opacity: 0.5;
}

.tag {
  margin-left: 0.5rem;
  padding: 0.15em 0.5em;
  border: 1px solid currentColor;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.2em;
}

@media (max-width: 48rem) {
  body {
    padding: 4.5rem 1.5rem 5rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .art {
    margin-top: 4rem;
  }
}

.contact {
  margin-bottom: 0;
}

.art {
  /* 56 columns of a monospace face is about 33.6em wide. The font-size below
     keeps that under the available width at every viewport, so the block
     always fits and never needs a scrollbar. Do not add overflow here:
     setting it on one axis forces the other to auto and clips the art. */
  display: block;
  width: fit-content;
  margin: 7rem auto 0;
  color: var(--heading);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: min(0.8rem, calc(2.7vw - 0.12rem));
  line-height: 1;
  letter-spacing: 0;
  white-space: pre;
  -webkit-user-select: none;
  user-select: none;
}
