/* r00ms.ai waiting room: the same plain layout as r00kery.com, with one scene from the r00ms states lab. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --scene: #8a8a8a;
  --link: #1a1a1a;
  --rule: #e2e2e2;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111111;
    --text: #e8e8e8;
    --muted: #9a9a9a;
    --scene: #8c8c8c;
    --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;
}

/*
 * "Empty room", from the r00ms states lab: two held poses swapped half and half every 1.2s, and the outlines boil
 * between three hand-drawn variants at 8 fps. Drawn in a quiet grey: a waiting room should sit back.
 */
.wait { margin: 0 0 32px -6px; color: var(--scene); }
.wait-scene { display: block; width: 300px; max-width: 100%; height: auto; overflow: visible; filter: url(#boil-0); }
.wait-legs-swing { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .wait-scene { animation: wait-boil .375s step-end infinite; }
  .wait-legs-still { animation: wait-swap-a 1.2s step-end infinite; }
  .wait-legs-swing { animation: wait-swap-b 1.2s step-end infinite; }
}
@keyframes wait-boil {
  0% { filter: url(#boil-0); }
  33.333% { filter: url(#boil-1); }
  66.666% { filter: url(#boil-2); }
}
@keyframes wait-swap-a { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
@keyframes wait-swap-b { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

/* The wordmark is the brand file, coloured with the text colour so it follows light and dark. */
.wordmark {
  display: block;
  width: 120px;
  height: 32px;
  background: currentColor;
  -webkit-mask: url(/assets/r00ms-logo.svg) no-repeat left center / contain;
  mask: url(/assets/r00ms-logo.svg) no-repeat left center / contain;
}

.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; }
.lead { font-size: 20px; line-height: 1.45; }
.by { margin-top: 48px; color: var(--muted); }
.by a { color: var(--muted); }
.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); margin-left: 16px; }

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