/* ============================================================================
   Bionic Docs — theme
   Tokens, base elements and layout. Components live in lens.css, the brand
   (fonts, mark, hero art) in identity.css. Every class the page uses is
   defined in one of the three; scripts/check-site.mjs enforces it.
   ========================================================================== */

:root {
  --bg: #f5f7f6;
  --bg-2: #edf1ef;
  --card: #ffffff;
  --sheet: #ffffff;
  --ink: #0c1514;
  --body: #384543;
  --mute: #66736f;
  --faint: #93a09c;
  --line: #dde4e1;
  --line-2: #c9d3cf;
  --accent: #0e6e63;
  --accent-ink: #0a5449;
  --accent-bright: #14b8a6;
  --accent-soft: rgba(14, 110, 99, 0.09);
  --accent-line: rgba(14, 110, 99, 0.28);
  --on-accent: #ffffff;
  --band: #0b2723;
  --band-2: #0f332e;
  --band-ink: #e9f6f2;
  --band-mute: #9fc1b9;
  --band-line: rgba(233, 246, 242, 0.14);
  --danger: #b4231b;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Iowan Old Style", "Charter", Georgia, "Times New Roman", serif;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --r-xl: 24px;

  --shadow-1: 0 1px 2px rgba(12, 21, 20, 0.05);
  --shadow-2: 0 1px 2px rgba(12, 21, 20, 0.04), 0 8px 24px rgba(12, 21, 20, 0.06);
  --shadow-3: 0 2px 6px rgba(12, 21, 20, 0.05), 0 24px 60px rgba(12, 21, 20, 0.12);

  --head-weight: 700;
  --tail-weight: 400;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --masthead-h: 64px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #090d0c;
  --bg-2: #0d1312;
  --card: #111817;
  --sheet: #151d1c;
  --ink: #edf5f3;
  --body: #b6c4c0;
  --mute: #84938f;
  --faint: #5e6c68;
  --line: #1d2826;
  --line-2: #2a3735;
  --accent: #35cfba;
  --accent-ink: #6fe3d2;
  --accent-bright: #35cfba;
  --accent-soft: rgba(53, 207, 186, 0.11);
  --accent-line: rgba(53, 207, 186, 0.3);
  --on-accent: #04140f;
  --band: #0d1d1b;
  --band-2: #112624;
  --band-ink: #e9f6f2;
  --band-mute: #8fb3ab;
  --band-line: rgba(233, 246, 242, 0.1);
  --danger: #f2857c;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-3: 0 2px 8px rgba(0, 0, 0, 0.4), 0 28px 70px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--masthead-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 640;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

img, svg { display: block; max-width: 100%; }

code, kbd, samp { font-family: var(--mono); font-size: 0.86em; }

code {
  padding: 0.12em 0.38em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--ink);
}

::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

button { font: inherit; color: inherit; }

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section--tint { background: var(--bg-2); }

.section__head {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 52px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-items: center;
}

.section__title {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.section__lede {
  max-width: 62ch;
  color: var(--body);
  font-size: 1.08rem;
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.mute { color: var(--mute); }
.mono { font-family: var(--mono); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-s);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }
.icon--sm { width: 15px; height: 15px; }

/* ------------------------------------------------------------ the effect */
.bionic b.bp-head,
b.bp-head {
  color: var(--ink);
  font-weight: var(--head-weight);
}
.bionic { font-weight: var(--tail-weight); }
.bp-tail { opacity: 0.55; }
.is-plain b.bp-head { font-weight: inherit; color: inherit; }

@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
