/* Design plan
   Subject: a developer/IT-admin-facing API that converts proprietary dental
   x-ray formats (Dexis, Eaglesoft) into JPEG for dental practices.
   Color: cool clinical off-white ground, near-black cool ink, deep teal
   accent (trust/medical, distinct from generic SaaS blue), dark "film
   negative" panels for code -- literalizing the subject (x-ray film) rather
   than decorating it.
   Type: Archivo (display, structural/confident) + Source Sans 3 (body,
   quiet and readable) + IBM Plex Mono (code -- the API itself is the
   content here, not an afterthought).
   Layout: slim persistent header (wordmark + Docs/Sign up), generous
   single-column content, sticky in-page nav on the docs page only. */

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --ink: #14181c;
  --ink-muted: #5b6570;
  --accent: #1c6e5c;
  --accent-strong: #12493d;
  --accent-ink: #ffffff;
  --line: #e1e5e2;
  --code-bg: #10151a;
  --code-ink: #d7e4dc;
  --code-muted: #7f9a8e;
  --danger: #b3261e;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 28, 0.06), 0 8px 24px rgba(20, 24, 28, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1114;
    --surface: #151a1e;
    --ink: #e7ebe8;
    --ink-muted: #92a09a;
    --accent: #4fd8b0;
    --accent-strong: #7ee9c9;
    --accent-ink: #0d1114;
    --line: #262d31;
    --code-bg: #0a0d10;
    --code-ink: #d7e4dc;
    --code-muted: #6d8377;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.24);
  }
}

:root[data-theme="dark"] {
  --bg: #0d1114;
  --surface: #151a1e;
  --ink: #e7ebe8;
  --ink-muted: #92a09a;
  --accent: #4fd8b0;
  --accent-strong: #7ee9c9;
  --accent-ink: #0d1114;
  --line: #262d31;
  --code-bg: #0a0d10;
  --code-ink: #d7e4dc;
  --code-muted: #6d8377;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code, pre, kbd {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

code {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  font-size: 0.88em;
}

pre {
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.88em;
  line-height: 1.6;
}
pre code { background: none; border: none; padding: 0; color: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem max(1rem, calc((100% - 1100px) / 2));
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark:hover { text-decoration: none; }
.wordmark span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { color: var(--ink-muted); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: var(--surface); border-color: var(--ink-muted); }

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem max(1rem, calc((100% - 1100px) / 2));
  color: var(--ink-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer a { color: var(--ink-muted); }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
th { color: var(--ink-muted); font-weight: 600; }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
