:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --accent: #5eb3f6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Dark app shell for routes that use views/partials (e.g. errors). Landing uses body.landing-page; product uses body.product-page + product-details.css. */
body:not(.landing-page):not(.product-page) {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--surface);
  background: var(--surface);
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer code {
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

main code {
  background: var(--surface);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

body:not(.landing-page):not(.product-page) a {
  color: var(--accent);
}
