:root {
  --ink: #1d1b18;
  --ink-soft: #4d463c;
  --ink-faint: #837a6c;
  --paper: #ffffff;
  --brand: #006e59;
  --mint: #cfe9db;

  --serif: "Alegreya", "Iowan Old Style", Georgia, serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 70rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

.page {
  min-height: 100svh;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 7rem) var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(3rem, 9vh, 5.5rem);
}

/* ---------- statement and links ---------- */

.lede {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.statement {
  font-weight: 400;
  font-size: clamp(1.75rem, 3.3vw, 2.75rem);
  line-height: 1.26;
  letter-spacing: -0.005em;
  /* in em, not ch: browsers round ch to whole pixels, which moves the line breaks between sizes */
  max-width: 11em;
  text-wrap: pretty;
}

.mark {
  width: 0.74em;
  height: 0.74em;
  vertical-align: -0.04em;
  margin: 0 0.06em;
  color: var(--brand);
}

.contents {
  font-size: 1.05rem;
  padding-bottom: 0.35rem;
}

.contents ul {
  list-style: none;
}

.contents a {
  display: flex;
  align-items: baseline;
  gap: 0.6ch;
  padding: 0.2rem 0;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 200ms var(--ease-out);
}

.c-dots {
  flex: 1;
  min-width: 1.5ch;
  border-bottom: 1px dotted rgba(29, 27, 24, 0.4);
  transform: translateY(-0.28em);
}

.c-value {
  color: var(--ink-faint);
  transition: color 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .contents a:hover {
    color: var(--ink);
  }
  .contents a:hover .c-value {
    color: var(--brand);
  }
}

.contents a:focus-visible {
  outline: 1px solid var(--brand);
  outline-offset: 0.3rem;
}

/* ---------- the family ---------- */

.family canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
}

/* ---------- entrances ---------- */

.rise {
  animation: rise 900ms var(--ease-out) both;
}

.contents.rise {
  animation-delay: 160ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.9rem);
  }
}

/* ---------- narrow screens ---------- */

@media (max-width: 760px) {
  .lede {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.75rem;
  }
  .contents {
    font-size: 1rem;
    padding-bottom: 0;
  }
}

/* ---------- reduced motion: a still plate ---------- */

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }
  .family canvas {
    cursor: default;
  }
}
