/* The docs hub (docs.codonic.dev). Codonic tokens, dark only; mirrors codonic.dev and site/src/styles/codonic.css. */
:root {
  --bg: #08090b;
  --bg-raise: #0e1013;
  --surface: #14171c;
  --surface-2: #1b1f26;
  --line: #23282f;
  --line-soft: #191d23;
  --text: #eceef1;
  --text-dim: #a5adb8;
  --text-faint: #8993a0;
  --accent: #3f9fbd;
  --accent-high: #9ad3e3;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-raise);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.wordmark svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

header nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
}

header nav a:hover,
footer a:hover {
  color: var(--text);
}

main {
  flex: 1;
  padding: 3.5rem 0 4rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 2.5rem;
  color: var(--text-dim);
}

.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.product {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
}

.product img {
  width: 48px;
  height: 48px;
  border-radius: 0.6rem;
  flex-shrink: 0;
}

.product h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.product h2 a {
  color: var(--text);
  text-decoration: none;
}

.product h2 a:hover {
  color: var(--accent-high);
}

.product p {
  margin: 0.25rem 0 0.75rem;
  color: var(--text-dim);
}

.product .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  font-size: 0.9375rem;
}

footer {
  border-top: 1px solid var(--line-soft);
  padding: 1.25rem 0 1.5rem;
  font-size: 0.875rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
}

footer .copy {
  margin-left: auto;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.75rem;
}
