/* The documentation site's one stylesheet, along Cayman lines: a gradient hero header
 * shared by every page, a centred content column, green headings - with a dark variant
 * Cayman never had. */

:root {
  color-scheme: light dark;
  --body-fg: #606c71;
  --heading-fg: #159957;
  --link: #1e6bb8;
  --code-fg: #567482;
  --code-bg: #f3f6fa;
  --border: #dce6f0;
  --bg: #ffffff;
  --muted: #819198;
}

@media (prefers-color-scheme: dark) {
  :root {
    --body-fg: #b6c2c8;
    --heading-fg: #3fcb8e;
    --link: #74b3f7;
    --code-fg: #a8bac6;
    --code-bg: #1c2329;
    --border: #39434b;
    --bg: #14181d;
    --muted: #7d8a91;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body-fg);
}

/* ---- the hero header (constant across the site) ---- */

.site-header {
  padding: 2.6rem 1rem 2.2rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, #155799, #159957);
}

.project-name {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.2;
}

.project-name a {
  color: #fff;
  text-decoration: none;
}

.project-tagline {
  margin: 0.4rem 0 1.4rem;
  font-size: 1.15rem;
  font-weight: 400;
  opacity: 0.75;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.3rem;
  transition: background 0.15s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---- the content column ---- */

.main-content {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4 {
  color: var(--heading-fg);
  line-height: 1.25;
  margin-top: 1.8em;
  font-weight: 600;
}

.main-content h1 {
  font-size: 1.9em;
  margin-top: 1em;
}

.main-content h2 {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25em;
}

a {
  color: var(--link);
}

code, pre {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
}

code {
  color: var(--code-fg);
  background: var(--code-bg);
  padding: 0.15em 0.35em;
  border-radius: 4px;
}

pre {
  color: var(--code-fg);
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9em 1.1em;
  overflow-x: auto;
  line-height: 1.45;
}

pre code {
  color: inherit;
  background: none;
  padding: 0;
}

table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  margin: 1em 0;
}

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

th {
  background: var(--code-bg);
}

blockquote {
  margin: 1em 0;
  padding: 0.1em 1em;
  border-left: 4px solid var(--border);
  color: var(--muted);
}

/* ---- the footer ---- */

.site-footer {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
