/* weirdlab homepage - dark theme, one accent color, system fonts only */

:root {
  --bg: #0b0f0d;
  --bg-card: #121815;
  --border: #1f2a24;
  --text: #e6ece8;
  --text-dim: #8a9a90;
  --accent: #5dff9d;
  --accent-dim: rgba(93, 255, 157, 0.12);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Consolas", "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background-color: var(--bg);
  /* faint lab-notebook grid */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- hero ---------- */

.hero { margin-bottom: 56px; }

.flask { width: 56px; height: 56px; margin-bottom: 20px; }
.flask svg { width: 100%; height: 100%; overflow: visible; }
.flask-glass {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flask-liquid { fill: var(--accent); opacity: 0.9; }
.bubble { fill: var(--accent); opacity: 0; animation: rise 3s ease-in infinite; }
.bubble-2 { animation-delay: 1s; }
.bubble-3 { animation-delay: 2s; }

@keyframes rise {
  0%   { transform: translateY(0);     opacity: 0; }
  20%  {                               opacity: 1; }
  100% { transform: translateY(-14px); opacity: 0; }
}

.logo {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 9vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.accent { color: var(--accent); }

.tagline {
  margin: 12px 0 0;
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  color: var(--text);
}

.intro {
  margin: 12px 0 0;
  max-width: 34em;
  color: var(--text-dim);
}

/* ---------- experiments ---------- */

.section-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.prompt { color: var(--accent); }

.experiment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.experiment > a,
.experiment.empty {
  display: block;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}

.experiment > a { transition: border-color 0.15s, background 0.15s; }
.experiment > a:hover,
.experiment > a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-dim);
  outline: none;
}

.experiment.empty { border-style: dashed; }

.experiment-name {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
}
.experiment > a .experiment-name { color: var(--accent); }

.experiment-text {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- footer ---------- */

.footer {
  margin-top: auto;
  padding-top: 56px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* ---------- 404 page ---------- */

.page-center { justify-content: center; }

.error-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 18vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.error-title {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.button {
  align-self: flex-start;
  margin-top: 28px;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: background 0.15s;
}
.button:hover,
.button:focus-visible { background: var(--accent-dim); outline: none; }

/* ---------- small screens ---------- */

@media (max-width: 480px) {
  .page { padding-top: 48px; }
  .hero { margin-bottom: 40px; }
}

/* ---------- people who turned animations off ---------- */

@media (prefers-reduced-motion: reduce) {
  .bubble, .status-dot { animation: none; }
  .bubble-1 { opacity: 1; transform: translateY(-4px); }
}
