:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-strong: #fbfcfd;
  --ink: #172027;
  --muted: #5c6b77;
  --line: #bac8d5;
  --accent: #008c8c;
  --accent-strong: #006c69;
  --accent-soft: #dcefed;
  --plum: #5b5874;
  --coral: #c7664a;
  --gold: #b8892e;
  --shadow: 0 18px 45px rgba(23, 32, 39, 0.09);
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg: #111719;
  --surface: #192225;
  --surface-strong: #202b2f;
  --ink: #eef5f4;
  --muted: #a7b5b8;
  --line: #3a484d;
  --accent: #24b8b0;
  --accent-strong: #8ce5de;
  --accent-soft: #163d40;
  --plum: #b9b3d2;
  --coral: #e49379;
  --gold: #e0bb69;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.topnav {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a,
.button,
.ghost-button,
.theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.topnav a:hover,
.button:hover,
.ghost-button:hover,
.theme-button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.theme-button {
  width: 38px;
  padding: 0;
  font-size: 1.08rem;
}

.lab-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.lab-search input {
  width: min(30vw, 320px);
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.lab-search-results {
  position: fixed;
  top: 58px;
  right: 44px;
  z-index: 30;
  width: min(520px, calc(100vw - 32px));
  max-height: 62vh;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lab-search-results a {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.lab-search-results a:hover {
  background: var(--accent-soft);
}

.lab-search-results small {
  color: var(--muted);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: end;
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--line);
}

.hero-simple {
  grid-template-columns: 1fr;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow-with-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}

.cat-pawn {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent-strong);
  flex: 0 0 auto;
}

.cat-pawn svg {
  display: block;
  width: 100%;
  height: 100%;
}
