/* ============================================================
   LabHub — Laboratory Equipment Reference
   Palette: lab-slate, borosilicate blue, flame amber, paper
   ============================================================ */

:root {
  --slate: #1e2a32;
  --slate-soft: #46565f;
  --boro: #3e7c8f;
  --boro-light: #7fb6c4;
  --amber: #e8a13d;
  --paper: #f7f9f9;
  --line: #dde6e8;
  --card: #ffffff;
  --radius: 14px;
  --maxw: 1120px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--paper);
  /* graph-paper grid, the quiet signature of the whole page */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  line-height: 1.6;
}

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

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 249, 249, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--slate);
  text-decoration: none;
}
.logo span { color: var(--boro); }

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-soft);
  text-decoration: none;
}
nav a:hover, nav a:focus-visible { color: var(--boro); }
a:focus-visible { outline: 2px solid var(--boro); outline-offset: 3px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--boro);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 15ch;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--boro);
}

.hero p {
  max-width: 56ch;
  color: var(--slate-soft);
  font-size: 1.05rem;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate-soft);
}
.hero-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--slate);
}

/* ---------- Section headings ---------- */
section { padding: 72px 0; }

.section-head { margin-bottom: 40px; }
.section-head .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.section-head p {
  color: var(--slate-soft);
  max-width: 60ch;
  margin-top: 8px;
}

/* ---------- Equipment grid (datasheet cards) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(30, 42, 50, 0.09);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #eef4f5;
}

.card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }

.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card-body .use {
  font-size: 0.92rem;
  color: var(--slate-soft);
  flex: 1;
}

.spec {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.7;
}
.spec dt {
  color: var(--boro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
}
.spec dd { color: var(--slate); margin-bottom: 8px; }
.spec dd:last-child { margin-bottom: 0; }

/* ---------- Brands strip ---------- */
.brands {
  background: var(--slate);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 48px clamp(24px, 5vw, 56px);
}
.brands h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.brands > p { color: #a9bcc4; max-width: 62ch; margin-bottom: 32px; font-size: 0.95rem; }

.brand-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.brand-cols h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.brand-cols ul { list-style: none; }
.brand-cols li {
  font-size: 0.92rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-cols li b { font-weight: 600; }
.brand-cols li span { color: #8fa4ad; font-size: 0.8rem; display: block; }

/* ---------- Tips ---------- */
.tips ol {
  counter-reset: tip;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.tips li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 0.92rem;
  color: var(--slate-soft);
}
.tips li::before {
  counter-increment: tip;
  content: counter(tip, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.tips li b { color: var(--slate); display: block; margin-bottom: 4px; font-size: 1rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 0.82rem;
  color: var(--slate-soft);
  display: block;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer code { font-family: var(--font-mono); color: var(--boro); font-size: 0.78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  nav ul { display: none; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}
