/* hve-squad-mcp docs — dark terminal theme.
   Palette is shared with hve-squad; see BRAND.md before changing a token. */

:root {
  --accent: #3ddc97;
  --accent-2: #5aa9ff;
  --bg: #0b0f14;
  --bg-soft: #11171f;
  --panel: #151c26;
  --panel-2: #1b2430;
  --border: #243140;
  --text: #d7e0ea;
  --muted: #8a98a8;
  --warn: #ffc857;
  --danger: #ff6b6b;
  --code-bg: #0e141b;

  --radius: 10px;
  --maxw: 980px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ---------- header / nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

nav.site {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand .dot,
.wordmark .dot {
  color: var(--accent);
}

.tag {
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--accent-2);
  border-radius: 5px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 0.7em;
  font-weight: 600;
  text-transform: lowercase;
  vertical-align: middle;
}

nav.site .links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-wrap: wrap;
}

nav.site a.nav {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

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

nav.site a.nav[aria-current="page"] {
  color: var(--accent);
}

/* ---------- layout ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

section {
  margin-bottom: 3rem;
}

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ---------- hero ---------- */

.hero {
  padding: 3rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.hero-logo img {
  width: 64px;
  height: 64px;
}

.hero-logo .wordmark {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

h3 {
  font-size: 1.08rem;
  margin-top: 1.75rem;
  color: var(--accent);
}

p {
  max-width: 76ch;
}

a {
  color: var(--accent-2);
}

a:hover {
  color: var(--accent);
}

strong {
  color: #eef4fa;
}

ul,
ol {
  max-width: 76ch;
  padding-left: 1.25rem;
}

li {
  margin: 0.3rem 0;
}

/* ---------- code ---------- */

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  line-height: 1.55;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.85rem;
}

/* ---------- buttons ---------- */

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06281c;
}

.btn-primary:hover {
  background: #52e6a7;
  color: #06281c;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

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

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.card a {
  text-decoration: none;
}

/* ---------- callouts ---------- */

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 1.5rem 0;
}

.callout p:first-child {
  margin-top: 0;
}

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

.callout.warn {
  border-left-color: var(--warn);
}

.callout.danger {
  border-left-color: var(--danger);
}

/* ---------- tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 600;
}

td code {
  white-space: nowrap;
}

/* ---------- status pills ---------- */

.pill {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.pill.ok {
  border-color: var(--accent);
  color: var(--accent);
}

.pill.optin {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.pill.soon {
  border-color: var(--warn);
  color: var(--warn);
}

/* ---------- steps ---------- */

ol.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

ol.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin: 1.4rem 0;
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

@media (max-width: 760px) {
  .hero-logo .wordmark {
    font-size: 1.45rem;
  }

  nav.site .links {
    gap: 0.75rem;
  }

  /* Keep a wide table inside its own scroller instead of widening the page. */
  table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  td code {
    white-space: normal;
  }
}
