/* ==========================================================================
   JMNI Labs — site stylesheet
   Static, dependency-free. Dark "lab" theme, single amber accent.
   ========================================================================== */

:root {
  --bg: #0a0c10;
  --bg-soft: #0e1117;
  --panel: #11151d;
  --panel-2: #151a24;
  --border: #232a37;
  --border-soft: #1a2029;
  --text: #e9edf4;
  --muted: #9aa6b8;
  --faint: #6b7788;
  --accent: #f0b429;
  --accent-soft: rgba(240, 180, 41, 0.1);
  --accent-ink: #14100a;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1060px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 650; letter-spacing: -0.015em; }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 1.02rem;
}

.brand-mark { color: var(--muted); }

.brand-name em { font-style: normal; color: var(--muted); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(240, 180, 41, 0.18); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--faint); box-shadow: none; }

.btn-sm { padding: 8px 16px; font-size: 0.92rem; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 64px;
  background:
    radial-gradient(1100px 460px at 50% -12%, rgba(240, 180, 41, 0.08), transparent 62%),
    var(--bg);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.lede {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.13rem;
  margin-top: 20px;
}

.cta-row { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.more { color: var(--muted); font-size: 0.94rem; }
.more:hover { color: var(--accent); }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.card:hover { border-color: var(--border); background: var(--panel-2); transform: translateY(-2px); }

.card-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 3px 9px;
  margin-bottom: 16px;
}

.card p { color: var(--muted); margin-bottom: 18px; }

.card-link { color: var(--accent); font-weight: 600; font-size: 0.95rem; }

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--panel);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num { font-family: var(--mono); font-size: 1.35rem; color: var(--accent); }

.stat-label { color: var(--muted); font-size: 0.88rem; }

/* ---------- Notes list ---------- */

.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.note {
  display: block;
  padding: 24px 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.note:hover { border-color: var(--border); transform: translateY(-2px); }

.note-date { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

.note h3 { margin-top: 10px; }

.note p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Prose (field notes articles) ---------- */

.prose { max-width: 720px; margin: 0 auto; }

.prose .meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.prose p, .prose li { color: #cdd6e4; }

.prose h2 { margin-top: 2em; }

.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.6em 0;
  padding: 2px 0 2px 20px;
  color: var(--muted);
  font-style: italic;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 2px 6px;
}

.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: 72px 0 8px; }

.page-hero .lede { margin-top: 12px; }

/* ---------- Feature blocks (products/lab) ---------- */

.feature {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 32px;
  margin-bottom: 20px;
}

.feature h3 { margin-top: 0; margin-bottom: 4px; }

.feature .sub { color: var(--faint); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; margin-bottom: 14px; }

.feature p { color: var(--muted); margin-bottom: 12px; }

.feature p:last-child { margin-bottom: 0; }

.feature a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
}

.bullets { list-style: none; padding: 0; margin: 0; }

.bullets li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: #cdd6e4;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

.bullets strong { color: var(--text); }

/* ---------- Status pill ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(240, 180, 41, 0.35);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border-soft); margin-top: 48px; padding: 40px 0 48px; }

.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.footer-brand { font-weight: 650; margin: 0; }

.footer-line { color: var(--faint); font-size: 0.9rem; margin: 4px 0 0; }

.footer-nav { display: flex; gap: 18px; }

.footer-nav a { color: var(--muted); font-size: 0.94rem; }

.footer-nav a:hover { color: var(--text); }

.footer-legal { color: var(--faint); font-size: 0.85rem; margin: 0; width: 100%; }

.footer-note { color: var(--faint); font-size: 0.85rem; margin: 8px 0 0; }

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

.center-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .cards, .notes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 48px; }
}

@media (max-width: 520px) {
  .header-inner { justify-content: center; }
  .stats { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
