:root {
  color-scheme: light dark;
  --paper: #fff;
  --ink: #3a3a3a;
  --muted: #777;
  --underline: #c9c9c9;
  --hover: #111;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1.125rem; line-height: 1.7; }
main { width: min(760px, calc(100% - 48px)); margin: 112px auto 80px; }
h1 { margin: 0 0 32px; font-size: 1.25rem; line-height: 1.5; font-weight: 500; }
p { margin: 0 0 8px; }
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--underline);
  text-underline-offset: 3px;
  transition: color 160ms, text-decoration-color 160ms;
}
a:hover { color: var(--hover); text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; border-radius: 1px; }
.announcement { white-space: nowrap; }
.project-start { margin-top: 1rem; margin-bottom: 4px; }
.project-link { display: flex; width: fit-content; align-items: center; gap: .75rem; max-width: 100%; min-height: 2.75rem; text-decoration: none; }
.project-label { min-width: 0; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--underline); text-underline-offset: 3px; }
.project-link:hover .project-label { text-decoration-color: currentColor; }
.project-icon { display: inline-block; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; transform-origin: 50% 85%; }
.project-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-link:hover .project-icon,
.project-link:focus-visible .project-icon { animation: project-hop 700ms ease-in-out infinite; }
@keyframes project-hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}
.arrow { display: inline-block; margin-left: 4px; fill: none; stroke: currentColor; stroke-width: 1; opacity: .65; }
.connect { margin-top: 48px; }
ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
li a { display: inline-block; }

@media (max-width: 600px) {
  main { margin-top: 72px; }
  .connect ul { gap: 10px 24px; }
  .connect li:last-child { flex-basis: 100%; }
}

@media (prefers-color-scheme: dark) {
  :root { --paper: #171717; --ink: #d4d4d4; --muted: #929292; --underline: #555; --hover: #fff; }
  ::selection { background: #515b4d; color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
