:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --text: #15212c;
  --muted: #5a6b7a;
  --border: #e4eaf0;
  --accent: #0891b2;
  --accent-dark: #0e7490;
  --accent-2: #06b6d4;
  --code-bg: #0f1b2a;
  --code-text: #e6edf3;
  --inline-code-bg: #eef3f7;
  --shadow: 0 10px 30px rgba(14, 116, 144, 0.12);
  --shadow-sm: 0 2px 8px rgba(20, 40, 60, 0.06);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand .logo { display: block; filter: drop-shadow(0 4px 8px rgba(8, 145, 178, 0.2)); }
.brand-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: 0.3px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--accent); }

/* Content */
.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.content h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.02em; }
.content h2 {
  font-size: 1.5rem;
  margin: 2.4rem 0 0.8rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.01em;
}
.content h3 { font-size: 1.18rem; margin: 1.7rem 0 0.5rem; }
.content a { color: var(--accent-dark); text-decoration: none; border-bottom: 1px solid rgba(8,145,178,0.3); }
.content a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.content p { margin: 0.85rem 0; }
.content ul, .content ol { padding-left: 1.4rem; }
.content li { margin: 0.3rem 0; }
.content strong { color: #0c1a26; }
.content hr { border: 0; border-top: 1px solid var(--border); margin: 2.2rem 0; }
.content blockquote {
  margin: 1.2rem 0;
  padding: 0.7rem 1.1rem;
  border-left: 4px solid var(--accent-2);
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 0 8px 8px 0;
}

/* Code */
.content code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--inline-code-bg);
  color: #0b4f5e;
  padding: 0.13em 0.42em;
  border-radius: 5px;
}
.content pre {
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.content pre code { background: none; color: inherit; padding: 0; font-size: 0.88rem; }

/* Tables */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.94rem;
  box-shadow: var(--shadow-sm);
  border-radius: 10px;
  overflow: hidden;
}
.content th, .content td {
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.content th { background: var(--bg-soft); font-weight: 600; }
.content tr:last-child td { border-bottom: 0; }

/* Hero (landing) */
.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 0 2rem;
  padding: 2.2rem 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 45%, #22d3ee 100%);
  color: #ffffff;
  box-shadow: var(--shadow);
}
.hero img { height: 150px; width: auto; flex: 0 0 auto; filter: drop-shadow(0 12px 22px rgba(0,0,0,0.28)); }
.hero .tagline { font-size: 1.3rem; margin: 0 0 0.5rem; font-weight: 600; }
.hero p { margin: 0.4rem 0; color: rgba(255,255,255,0.94); }
.hero strong { color: #ffffff; }

/* Make the H1 on the landing page sit nicely above the hero */
.home .content > h1:first-child {
  text-align: center;
  font-size: 2.8rem;
  background: linear-gradient(135deg, #0e7490, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Docs index list */
.doc-index { list-style: none; padding: 0; columns: 2; column-gap: 2rem; }
.doc-index li {
  margin: 0.4rem 0;
  break-inside: avoid;
  padding: 0.55rem 0.8rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, transform 0.1s;
}
.doc-index li:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.doc-index a { border: 0; font-weight: 500; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.6rem 1rem;
}
.site-footer p { margin: 0.2rem 0; }
.site-footer .vibe {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .doc-index { columns: 1; }
  .content h1 { font-size: 2rem; }
  .content > h1:first-child { font-size: 2.1rem; }
  .hero { padding: 1.6rem 1.3rem; }
  .hero img { width: 84px; }
}
