/* Barista Rage (baristarage.com). © 2026 Jonathan Landa (@yonicrisis). All rights reserved. See LICENSE. */
/* All styling for the Lab pages (/lab/ and its "Coming soon" pages). Fonts come from /css/fonts.css.
   Colours copied from the design tokens in css/style.css (not imported: that file locks scrolling for the game). */
:root {
  --lab-bg: #000000;
  --cta: #e01919;
  --link: #ffd000;
  --text: #c2c2c2;
  --heading: #ffffff;
  --date: #8a8a8a;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 10vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lab-bg);
  color: var(--text);
  font: 15px/1.4 var(--mono);
  overflow-wrap: anywhere; /* long words never push the page sideways */
}
a { color: var(--link); text-underline-offset: .2em; }

.top, .page { max-width: 640px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: calc(env(safe-area-inset-top) + 24px);
}
.brand {
  font-family: "Jersey 10", monospace; font-size: 22px; line-height: 1; letter-spacing: .01em;
  color: var(--link); text-decoration: none;
}
/* small red pill; the tap area is 44px tall even though the pill looks smaller */
.play {
  position: relative; flex: none; display: inline-block; padding: 7px 22px; border-radius: 99px;
  background: var(--cta); color: #fff; text-decoration: none;
  font: 800 11px/14px var(--sans); letter-spacing: .18em;
}
.play::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
.play:active { opacity: .8; }

.page { padding-bottom: calc(env(safe-area-inset-bottom) + 48px); }
.title {
  margin: 36px 0 30px; font: 900 32px/1 var(--sans); letter-spacing: .01em; color: var(--link);
}
.title.small { font-size: 28px; line-height: 1.15; }
h2 { margin: 0 0 10px; font-weight: 400; font-size: 21px; line-height: 1.3; letter-spacing: .03em; color: var(--heading); }
section + section { margin-top: 40px; }
p { margin: 0 0 1.2em; }
section p:last-child { margin-bottom: 0; }

.third-party { margin: 0; padding-left: 1.2em; }
.third-party li + li { margin-top: 6px; }
.versions { list-style: none; margin: 0; padding: 14px 0 0; }
.version + .version { margin-top: 28px; }
.version a { position: relative; display: inline-block; }
.version a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; } /* 44px to tap */
.version .date { margin: 4px 0 6px; font-size: 12px; color: var(--date); }
.version p { margin: 0; }
.back { display: inline-block; padding: 10px 0; }
