/* Shared by the public site and the admin.
   Sidebar direction: black and white, one type family, hairlines.
   Light is the default. Dark only when the visitor switches it on. */

:root {
  --paper: #fafafa;
  --card: #ffffff;
  --ink: #141414;
  --muted: #5e5e5e;
  --rule: #dddddd;
  --wash: #ececec;
  --ok: #17703f;
  --new: #1c3fc4;
  --bad: #b3261e;
  --font: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-mode='dark'] {
  --paper: #0f0f10;
  --card: #161617;
  --ink: #ededed;
  --muted: #a1a1a1;
  --rule: #2c2c2e;
  --wash: #1b1b1d;
  --ok: #62d196;
  --new: #94a9ff;
  --bad: #ff8a80;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
fieldset {
  margin: 0;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
:focus-visible {
  outline: 2px solid var(--new);
  outline-offset: 2px;
  border-radius: 3px;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 13.5px;
}
.strong {
  font-weight: 600;
}
.block {
  display: block;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- pills */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  font: 600 14.5px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.pill:hover {
  text-decoration: none;
}
.pill.solid {
  color: var(--paper);
  background: var(--ink);
}
.pill.outline {
  color: var(--ink);
  background: var(--card);
  border-color: var(--rule);
}
.pill.outline:hover {
  border-color: var(--ink);
}
.pill.small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.pill.big {
  min-height: 46px;
  padding: 0 20px;
  font-size: 15.5px;
}
.pill.square {
  width: 32px;
  padding: 0;
}
.pill.danger {
  color: var(--bad);
}
.pill.danger-solid {
  color: #ffffff;
  background: var(--bad);
  border-color: var(--bad);
}
.pill[disabled] {
  opacity: 0.38;
  cursor: default;
}
.pill.outline[disabled]:hover {
  border-color: var(--rule);
}

/* ----------------------------------------------------------- site shell */
.wrap {
  max-width: 1160px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'logo nav mode';
  align-items: center;
  gap: 0 26px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 14.5px;
}
.topbar nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}
.topbar nav a {
  position: relative;
  padding: 6px 0;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.topbar nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.topbar nav a:hover {
  color: var(--ink);
  text-decoration: none;
}
.topbar nav a:hover::after,
.topbar nav a[aria-current='page']::after {
  transform: scaleX(1);
}
.topbar nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
}
.topbar .mode {
  grid-area: mode;
}
/* Light and dark switch: a moon while light, a sun while dark. */
.mode {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.mode.small {
  width: 32px;
  height: 32px;
}
.mode svg {
  position: absolute;
  width: 17px;
  height: 17px;
  transition:
    transform 0.5s cubic-bezier(0.3, 1.4, 0.4, 1),
    opacity 0.25s;
}
.mode .mode-sun,
:root[data-mode='dark'] .mode .mode-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}
:root[data-mode='dark'] .mode .mode-sun {
  opacity: 1;
  transform: none;
}
.mode:hover svg {
  transform: rotate(18deg);
}
:root[data-mode='dark'] .mode:hover .mode-moon {
  transform: rotate(-90deg) scale(0.4);
}

/* The mark: initials in a pill that spell the name out when pointed at. */
.logo {
  grid-area: logo;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14.5px;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.logo:hover {
  text-decoration: none;
}
.logo b {
  display: inline-block;
  font-weight: 800;
}
.logo-word {
  display: inline-flex;
  align-items: baseline;
  transition: margin 0.4s cubic-bezier(0.3, 0.9, 0.3, 1);
}
.logo-rest {
  display: inline-flex;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  overflow: clip visible;
  transition:
    max-width 0.5s cubic-bezier(0.3, 0.9, 0.3, 1),
    opacity 0.3s;
}
.logo-rest i {
  display: inline-block;
  font-style: normal;
  font-weight: 500;
  opacity: 0;
  transform: translateY(0.75em);
  transition:
    transform 0.45s cubic-bezier(0.2, 1.5, 0.4, 1),
    opacity 0.25s,
    font-weight 0.15s;
  transition-delay: calc(var(--n, 0) * 22ms);
}
.logo:hover .logo-rest,
.logo:focus-visible .logo-rest {
  max-width: 9em;
  opacity: 1;
}
.logo:hover .logo-rest i,
.logo:focus-visible .logo-rest i {
  opacity: 1;
  transform: none;
}
.logo:hover .logo-word + .logo-word,
.logo:focus-visible .logo-word + .logo-word {
  margin-left: 0.32em;
}
/* While the pointer moves over it, each letter answers at once. */
.logo.lean b,
.logo.lean i {
  transition-delay: 0s;
  transition-duration: 0.12s;
}
/* First page of a visit: the name spells itself out once, then folds away. */
@keyframes logo-rest {
  0%,
  100% {
    max-width: 0;
    opacity: 0;
  }
  22%,
  82% {
    max-width: 9em;
    opacity: 1;
  }
}
@keyframes logo-letter {
  0% {
    opacity: 0;
    transform: translateY(0.75em);
  }
  22%,
  82% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: none;
  }
}
@keyframes logo-gap {
  0%,
  100% {
    margin-left: 0;
  }
  22%,
  82% {
    margin-left: 0.32em;
  }
}
:root.intro[data-motion] .logo-rest {
  animation: logo-rest 2.6s cubic-bezier(0.3, 0.9, 0.3, 1) 0.5s;
}
:root.intro[data-motion] .logo-rest i {
  animation: logo-letter 2.6s cubic-bezier(0.2, 1.2, 0.4, 1) calc(0.5s + var(--n, 0) * 22ms);
}
:root.intro[data-motion] .logo-word + .logo-word {
  animation: logo-gap 2.6s cubic-bezier(0.3, 0.9, 0.3, 1) 0.5s;
}

.frame {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  align-items: start;
  align-content: start;
  gap: 72px;
  padding: 48px 0 64px;
}
.me {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 1024px) and (min-height: 760px) {
  .me {
    position: sticky;
    top: 96px;
  }
}
.me-photo {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--wash);
}
.me-name {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.me-bio {
  font-size: 15px;
  color: var(--muted);
}
.me-actions {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.me-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.25s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.icon-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}
main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.wrap > main {
  flex: 1 0 auto;
  padding: 56px 0;
  gap: 16px;
  align-items: flex-start;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------------------------------------------------------- page pieces */
.headline {
  max-width: 20ch;
  font-size: clamp(32px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.page-title {
  font-size: clamp(28px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.lead {
  max-width: 60ch;
  font-size: 18px;
  color: var(--muted);
}
.page-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.page-head .pill {
  margin-top: 8px;
}
.back {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  align-self: flex-start;
}
article {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 20px;
  margin-bottom: 14px;
}
.section-title h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.section-title a {
  font-weight: 600;
}
.empty {
  padding: 28px 20px;
  border: 1px solid var(--rule);
  color: var(--muted);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.tiles.one {
  grid-template-columns: minmax(0, 1fr);
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--paper);
}
a.tile {
  transition: background 0.15s;
}
a.tile:hover {
  text-decoration: none;
  background: var(--card);
}
.tile-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 12px;
}
.tile-head b {
  font-size: 18px;
  font-weight: 700;
}
.tile-text {
  font-size: 15px;
  color: var(--muted);
}
.tile-stack {
  font-size: 13.5px;
  color: var(--muted);
}
.status {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.status.live {
  color: var(--ink);
}

.rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.row-link,
.row-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.row-link b {
  font-size: 17px;
  font-weight: 700;
}
.row-line b {
  font-weight: 600;
}
.row-line.top {
  align-items: flex-start;
}
a.row-link:hover {
  text-decoration: none;
}
a.row-link:hover b {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.glance {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 20px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.glance dt {
  color: var(--muted);
}
.glance a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-weight: 600;
}

/* Markdown output */
.prose {
  max-width: 66ch;
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2 {
  margin-top: 1.9em;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 16px;
  font-weight: 700;
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.prose code {
  font: 0.9em var(--mono);
  background: var(--wash);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
.prose pre {
  overflow-x: auto;
  padding: 14px 16px;
  background: var(--wash);
  border-radius: 8px;
}
.prose pre code {
  background: none;
  padding: 0;
}
.prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 16px;
  border-left: 3px solid var(--rule);
  color: var(--muted);
}
.fig {
  max-width: 240px;
}
.fig svg {
  display: block;
  width: 100%;
  height: auto;
}
.fig figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.fig rect {
  stroke: var(--paper);
  stroke-width: 4;
}
.fig .a {
  fill: color-mix(in srgb, var(--ink) 12%, var(--paper));
}
.fig .b {
  fill: color-mix(in srgb, var(--ink) 26%, var(--paper));
}
.fig .c {
  fill: color-mix(in srgb, var(--ink) 42%, var(--paper));
}
.fig text {
  font: 800 22px var(--font);
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
}

/* ------------------------------------------------- contribution panel */
.gh-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.gh-figures b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.gh-figures span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}
.gh-scroll {
  overflow-x: auto;
}
.gh-map {
  min-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gh-months,
.gh-weeks {
  display: flex;
  gap: 3px;
}
.gh-months {
  height: 14px;
  font-size: 11.5px;
  line-height: 1;
  color: var(--muted);
}
.gh-months span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}
.gh-weeks > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.gh-weeks i {
  display: block;
  aspect-ratio: 1;
  border-radius: 3px;
}
.gh-weeks .x {
  visibility: hidden;
}
.l0 {
  background: var(--wash);
}
.l1 {
  background: color-mix(in srgb, var(--ink) 22%, var(--paper));
}
.l2 {
  background: color-mix(in srgb, var(--ink) 45%, var(--paper));
}
.l3 {
  background: color-mix(in srgb, var(--ink) 70%, var(--paper));
}
.l4 {
  background: var(--ink);
}
.note {
  margin-top: 14px;
}

/* ---------------------------------------------------------------- forms */
.form {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
}
.form .pill {
  align-self: flex-start;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
input[type='text'],
input[type='email'],
input[type='url'],
input[type='search'],
input[type='file'],
select,
textarea {
  width: 100%;
  font: 400 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
}
textarea {
  resize: vertical;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}
[aria-invalid='true'] {
  border-color: var(--bad) !important;
}
.error {
  color: var(--bad);
  font-weight: 600;
  font-size: 14.5px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.notice {
  max-width: 560px;
  padding: 18px 20px;
  border: 1px solid var(--ink);
  border-radius: 12px;
}
.notice p {
  margin-top: 4px;
  color: var(--muted);
}

/* ------------------------------------------------------ smaller screens */
/* Tablet: identity becomes a band across the top, content takes the full width. */
@media (max-width: 1023px) {
  .frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 32px 0 48px;
  }
  .me {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'photo id actions'
      'photo bio actions';
    align-items: start;
    gap: 10px 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule);
  }
  .me-photo {
    grid-area: photo;
    width: 104px;
    height: 104px;
  }
  .me-id {
    grid-area: id;
  }
  .me-bio {
    grid-area: bio;
    max-width: 54ch;
  }
  .me-actions {
    grid-area: actions;
    align-self: start;
    align-items: flex-end;
    max-width: 196px;
    padding-top: 0;
    border-top: 0;
  }
  .me-links {
    justify-content: flex-end;
  }
  .me.inner {
    grid-template-areas: 'photo id actions';
    align-items: center;
    padding-bottom: 24px;
  }
  .me.inner .me-photo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
  .me.inner .me-name {
    font-size: 19px;
    margin-bottom: 2px;
  }
  .me.inner .me-bio,
  .me.inner .me-actions .pill {
    display: none;
  }
  /* No column beside it here, so the headline runs the full width. */
  .headline {
    max-width: none;
    font-size: clamp(34px, 6.6vw, 60px);
    text-wrap: wrap;
  }
}

/* Phone: the menu becomes a row of tabs under the mark. */
@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      'logo . mode'
      'nav nav nav';
    gap: 10px 0;
    padding: 10px 0 0;
  }
  .topbar nav {
    justify-content: stretch;
    gap: 0;
    border-top: 1px solid var(--rule);
  }
  .topbar nav a {
    flex: 1 1 0;
    padding: 11px 0;
    text-align: center;
  }
  .frame {
    gap: 30px;
    padding: 24px 0 40px;
  }
  .me {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      'photo id'
      'bio bio'
      'actions actions';
    gap: 14px 16px;
    padding-bottom: 26px;
  }
  .me-photo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }
  .me-id {
    align-self: center;
  }
  .me-name {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .me-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    gap: 14px;
  }
  .me-links {
    justify-content: flex-start;
  }
  .me.inner {
    grid-template-areas: 'photo id';
    padding-bottom: 20px;
  }
  .me.inner .me-photo {
    width: 48px;
    height: 48px;
  }
  .me.inner .me-name {
    font-size: 18px;
  }
  .me.inner .me-actions {
    display: none;
  }
  main {
    gap: 36px;
  }
  .headline {
    font-size: clamp(30px, 9vw, 44px);
  }
  .lead {
    font-size: 17px;
  }
  .tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .glance {
    grid-template-columns: 90px minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------- motion */
/* How pages arrive. The admin's Motion settings put these attributes on the
   html element: data-motion (fade, rise or pop; absent when motion is off),
   data-motion-speed and data-motion-stagger. Parts of a page are counted with
   --i and arrive one step apart. site.js holds back whatever starts below the
   fold until it scrolls into view. */
:root {
  --m-dur: 560ms;
  --m-step: 70ms;
  --m-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
:root[data-motion-speed='slow'] {
  --m-dur: 950ms;
  --m-step: 120ms;
}
:root[data-motion-speed='fast'] {
  --m-dur: 300ms;
  --m-step: 40ms;
}
:root[data-motion-stagger='off'] {
  --m-step: 0ms;
}
@keyframes m-fade {
  from {
    opacity: 0;
  }
}
@keyframes m-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes m-pop {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}
:root[data-motion='fade'] {
  --m-name: m-fade;
}
:root[data-motion='rise'] {
  --m-name: m-rise;
}
:root[data-motion='pop'] {
  --m-name: m-pop;
}
:root[data-motion] :is(.topbar, .me > *, main > *, .foot, .side > *) {
  animation: var(--m-name) var(--m-dur) var(--m-ease) backwards;
  animation-delay: calc(var(--i, 0) * var(--m-step));
}
:is(.me, .side) > :nth-child(1) {
  --i: 1;
}
:is(.me, .side) > :nth-child(2),
main > :nth-child(1) {
  --i: 2;
}
:is(.me, .side) > :nth-child(3),
main > :nth-child(2) {
  --i: 3;
}
:is(.me, .side) > :nth-child(4),
main > :nth-child(3) {
  --i: 4;
}
main > :nth-child(4) {
  --i: 5;
}
main > :nth-child(5) {
  --i: 6;
}
main > :nth-child(6) {
  --i: 7;
}
main > :nth-child(n + 7),
.foot {
  --i: 8;
}
/* A visitor who asked their device for less motion still gets the fade, without the movement. */
@media (prefers-reduced-motion: reduce) {
  :root[data-motion] {
    --m-name: m-fade;
  }
  :root.intro[data-motion] .logo * {
    animation: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
