/* r00kery Labs — plain text layout for the homepage, imprint and privacy pages. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --link: #1a1a1a;
  --rule: #e2e2e2;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111111;
    --text: #e8e8e8;
    --muted: #9a9a9a;
    --link: #e8e8e8;
    --rule: #2c2c2c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.page {
  width: min(640px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 40px;
}
/*
 * "First join", from the r00ms states lab (r00ms-prototype src/app/lab/states). Played once on load, and again on
 * click: the newcomer walks in on six held strides, takes the hand at the end of the line, and everyone hops. Every
 * change is a held pose swapped on the beat, never an eased tween; the outlines "boil" between three hand-drawn
 * variants while it moves.
 */
.join { margin: 0 0 36px -4px; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.join-scene { display: block; width: 260px; max-width: 100%; height: auto; overflow: visible; filter: url(#join-boil-0); }
.join-stride-a, .join-stride-b, .join-waiting { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .join[data-motion="on"] .join-scene { animation: join-boil .375s step-end 7; }
  .join[data-motion="on"] .join-walk { animation: join-walk 1.8s steps(6) both; }
  .join[data-motion="on"] .join-stride-a { animation: join-stride-a 1.8s step-end both; }
  .join[data-motion="on"] .join-stride-b { animation: join-stride-b 1.8s step-end both; }
  .join[data-motion="on"] :is(.join-arrived, .join-holding) { animation: join-arrive 1.8s step-end both; }
  .join[data-motion="on"] .join-waiting { animation: join-leave 1.8s step-end both; }
  .join[data-motion="on"] .join-hop { animation: join-hop .5s step-end 2.1s forwards; }
}
@keyframes join-boil {
  0% { filter: url(#join-boil-0); }
  33.333% { filter: url(#join-boil-1); }
  66.666% { filter: url(#join-boil-2); }
}
@keyframes join-walk { from { transform: translateX(-66px); } to { transform: none; } }
@keyframes join-stride-a {
  0% { opacity: 1; } 16.667% { opacity: 0; } 33.333% { opacity: 1; }
  50% { opacity: 0; } 66.667% { opacity: 1; } 83.333%, 100% { opacity: 0; }
}
@keyframes join-stride-b {
  0% { opacity: 0; } 16.667% { opacity: 1; } 33.333% { opacity: 0; }
  50% { opacity: 1; } 66.667% { opacity: 0; } 83.333% { opacity: 1; } 100% { opacity: 0; }
}
@keyframes join-arrive { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes join-leave { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes join-hop { 0% { transform: translateY(-4px); } 40% { transform: translateY(-1px); } 70%, 100% { transform: none; } }
.back { display: inline-block; margin-bottom: 40px; color: var(--muted); font-size: 15px; }

h1 { margin: 0 0 20px; font-size: 28px; font-weight: 600; line-height: 1.25; }
h2 { margin: 48px 0 12px; font-size: 18px; font-weight: 600; line-height: 1.35; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 1.2em; }
li + li { margin-top: 4px; }
.muted { color: var(--muted); }

/* Label / value rows */
.info { display: grid; grid-template-columns: 170px 1fr; gap: 6px 20px; margin: 0 0 14px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; overflow-wrap: anywhere; }

footer {
  width: min(640px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 0; }
footer a { color: var(--muted); }
footer a { margin-left: 16px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .page { padding-top: 48px; }
  .join-scene { width: 220px; }
  h1 { font-size: 24px; }
  .info { grid-template-columns: 1fr; gap: 0; }
  .info dd + dt { margin-top: 10px; }
}
