:root {
  color-scheme: dark;

  --bg: #0a0a0a;
  --fg: #e8e8ea;
  --muted: #6c6c70;

  --type: 12px;
  --type-small: 11px;
  --leading: 1.65;
  --measure: 52ch;

  --gutter: 40px;
  --label-col: 260px;
  --row-gap: 100px;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  padding: 40px var(--gutter) 72px;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: var(--type);
  line-height: var(--leading);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.row {
  display: grid;
  grid-template-columns: var(--label-col) minmax(0, 1fr);
  margin-bottom: var(--row-gap);
}

.row--last {
  margin-bottom: 0;
}

.label {
  margin: 0;
  color: var(--muted);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.content {
  max-width: none;
}

.content p {
  max-width: var(--measure);
  margin: 0 0 calc(var(--type) * var(--leading)) 0;
}

.content p:last-child {
  margin-bottom: 0;
}

.epigraph {
  margin: 0 0 calc(var(--type) * var(--leading)) 0;
}

.epigraph p {
  max-width: 64ch;
  margin: 0;
}

.epigraph cite {
  color: var(--muted);
  font-style: normal;
}

.supporters {
  font-size: var(--type-small);
  line-height: 1.45;
}

.content .signature {
  margin-top: 80px;
}

.sig {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.sig-logo {
  display: block;
  width: 52px;
  height: auto;
}

.sig-logo,
.sig-heart {
  transition: opacity 180ms ease;
}

.sig-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%) rotate(-8deg);
  opacity: 0;
  fill: var(--fg);
}

.sig:hover .sig-logo {
  opacity: 0;
}

.sig:hover .sig-heart {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .sig-logo,
  .sig-heart {
    transition: none;
  }
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: from-font;
}

a:hover {
  color: #ffffff;
}

a:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

.links {
  font-size: var(--type-small);
  color: var(--muted);
}

.links a {
  color: var(--muted);
}

.links a:hover {
  color: var(--fg);
}

.sep {
  padding: 0 0.3em;
}

/* [E] [L] [W] markers: the letter swaps for a small icon on hover. */
.lk {
  margin-left: 0.6ch;
  color: var(--muted);
  text-decoration: none;
}

.lk:hover,
.lk:focus-visible {
  color: var(--fg);
}

.lk-slot {
  position: relative;
  display: inline-block;
  width: 1ch;
  text-align: center;
}

.lk-ch,
.lk-ic {
  transition: opacity 120ms ease;
}

.lk-ic {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1em;
  height: 1em;
  transform: translate(-50%, -50%);
  opacity: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lk:hover .lk-ch,
.lk:focus-visible .lk-ch {
  opacity: 0;
}

.lk:hover .lk-ic,
.lk:focus-visible .lk-ic {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .lk-ch,
  .lk-ic {
    transition: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* The gray header sits above each section on narrow screens. */
@media (max-width: 900px) {
  :root {
    --type-small: 11px;
    --gutter: 24px;
    --row-gap: 68px;
  }

  body {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .row {
    grid-template-columns: minmax(0, 1fr);
  }

  .label {
    margin-bottom: calc(var(--type) * var(--leading));
  }

  .content .signature {
    margin-top: 60px;
  }

  /* Desktop line-setting; let the prose reflow at phone width. */
  br.t {
    display: none;
  }

  /* No hover on touch, so enlarge the hit area instead. */
  .lk {
    padding: 0.4em 0.15em;
  }
}
