/* Pixel Sherpa Labs — landing page.
   Styling blends www.pixelsherpa.com (black, #6affaa, Inter, glass header,
   particle field) with the labs (Newsreader + IBM Plex Mono, instrument panels).

   ── BRAND TOKENS ──────────────────────────────────────────────────────────
   To match www.pixelsherpa.com, change the values in this block only:
   --accent (main brand colour), --brand-font / --body-font, and the
   Google Fonts <link> in index.html if the fonts change.                    */
:root {
  --accent: #6affaa;          /* brand accent: buttons, links, highlights */
  --accent-ink: #0a0a0a;      /* text on the accent colour */
  --brand-font: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono-font: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
/* ─────────────────────────────────────────────────────────────────────── */

  color-scheme: dark;
  --void: #0a0a0a;
  --violet: #8c5cf5;
  --blue: #5cc8ff;
  --panel: #0c111c;
  --panel-2: #111827;
  --line: #1f2a3d;
  --text: #dce3ee;
  --text-2: #c3cbd8;
  --muted: #8a96ab;
  --observed: #3fd0c9;
  --theory: #ffcc4d;
  --speculative: #b9a4ff;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.6 var(--body-font);
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(136,148,176,0.6), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(136,148,176,0.5), transparent 60%),
    radial-gradient(1px 1px at 88% 44%, rgba(136,148,176,0.5), transparent 60%),
    radial-gradient(1px 1px at 34% 62%, rgba(136,148,176,0.4), transparent 60%),
    radial-gradient(1px 1px at 58% 84%, rgba(136,148,176,0.4), transparent 60%),
    radial-gradient(1px 1px at 6% 90%, rgba(136,148,176,0.5), transparent 60%),
    var(--void);
  background-attachment: fixed;
  overflow-x: clip;
}
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-block: 20px;
  /* full-bleed glass bar, as on pixelsherpa.com */
  margin-inline: calc(50% - 50vw);
  padding-inline: max(16px, calc(50vw - 504px));
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.wordmark { font: 600 17px/1 var(--body-font); text-decoration: none; letter-spacing: -0.02em; }
.wordmark em { font: italic 500 21px/1 var(--brand-font); color: var(--accent); }
.back { font: 12px/1 var(--mono-font); color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }

/* Intro */
.intro { padding-block: 72px 48px; max-width: 40rem; display: flex; flex-direction: column; gap: 14px; }
.eyebrow { margin: 0; font: 500 11px/1 var(--mono-font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.intro .eyebrow { color: var(--accent); }
.intro h1 { margin: 0; font: italic 400 clamp(42px, 7vw, 72px)/1.04 var(--brand-font); text-wrap: balance; }
.intro h1 em {
  font-style: italic;
  background: linear-gradient(90deg, var(--accent), var(--blue) 55%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0; font-size: 17px; color: var(--text-2); max-width: 36rem; }

/* Lab cards */
.labs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.lab {
  display: flex; flex-direction: column;
  background: rgba(12, 17, 28, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  text-decoration: none;
  transition: border-color 0.35s ease, transform 0.35s cubic-bezier(.4,0,.2,1), box-shadow 0.35s ease;
}
.lab:hover {
  border-color: rgba(106, 255, 170, 0.45); transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(106,255,170,.12);
}
@media (prefers-reduced-motion: reduce) { .lab, .lab:hover { transition: none; transform: none; } }
.lab-media { aspect-ratio: 16 / 9; max-width: 100%; background: var(--void); border-bottom: 1px solid var(--line); }
.lab-media img { width: 100%; height: 100%; object-fit: cover; }
.lab-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lab h3 { margin: 0; font: italic 400 26px/1.15 var(--brand-font); }
.lab p { margin: 0; color: var(--text-2); font-size: 15px; }
.evs { display: flex; flex-wrap: wrap; gap: 6px; }
.ev { font: 500 10px/1 var(--mono-font); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 6px; border-radius: 3px; border: 1px solid currentColor; }
.ev-observed { color: var(--observed); }
.ev-theory { color: var(--theory); }
.ev-speculative { color: var(--speculative); }
.open { margin-top: auto; padding-top: 6px; font: 500 12px/1 var(--mono-font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lab:hover .open { text-decoration: underline; text-underline-offset: 4px; }

/* Coming next */
.next { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.next-list { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.next-list li { color: var(--text-2); font-size: 15px; }
.next-list li::before { content: "○ "; color: var(--muted); }

/* About the labs */
.about { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; max-width: 46rem; }
.about p { margin: 0; color: var(--text-2); font-size: 15px; }
.ev-key { margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 22px; }
.ev-key div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ev-key dt { margin: 0; }
.ev-key dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Footer */
.foot {
  margin-top: 56px; padding-block: 22px 30px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font: 12px/1.4 var(--mono-font); color: var(--muted);
}
