/* CastLog MCP landing tokens.
   Layout, type scale, and spacing follow the Drawbridge site so the two read
   as a family. Color comes from the CastLog / portfolio palette. */

:root {
  color-scheme: dark;

  --font-sans: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --text-xs:  clamp(0.6875rem, 0.6667rem + 0.0926vw, 0.75rem);     /* 11–12 */
  --text-sm:  clamp(0.75rem,    0.7292rem + 0.0926vw, 0.8125rem);  /* 12–13 */
  --text-md:  clamp(0.8125rem,  0.7917rem + 0.0926vw, 0.875rem);   /* 13–14 */
  --text-lg:  clamp(0.9375rem,  0.9167rem + 0.0926vw, 1rem);       /* 15–16 */
  --text-xl:  clamp(1.125rem,   1.0417rem + 0.3704vw, 1.375rem);   /* 18–22 */
  --text-2xl: clamp(1.375rem,   1.2083rem + 0.7407vw, 1.875rem);   /* 22–30 */
  --text-3xl: clamp(1.75rem,    1.1667rem + 2.5926vw, 3.5rem);     /* 28–56 */
  --lh-xs: 1.35;
  --lh-sm: 1.45;
  --lh-md: 1.5;
  --lh-lg: 1.45;
  --lh-xl: 1.3;
  --lh-2xl: 1.2;
  --lh-3xl: 1.1;
  --tracking-tight: -0.03em;
  --tracking-mono: 0.01em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: clamp(0.625rem, 0.5833rem + 0.1852vw, 0.75rem);       /* 10–12 */
  --space-4: clamp(0.75rem,  0.6667rem + 0.3704vw, 1rem);          /* 12–16 */
  --space-5: clamp(0.875rem, 0.7500rem + 0.5556vw, 1.25rem);       /* 14–20 */
  --space-6: clamp(1rem,     0.8333rem + 0.7407vw, 1.5rem);        /* 16–24 */
  --space-8: clamp(1.25rem,  1.0000rem + 1.1111vw, 2rem);          /* 20–32 */
  --space-10: clamp(1.5rem,  1.1667rem + 1.4815vw, 2.5rem);        /* 24–40 */
  --space-12: clamp(2rem,    1.6667rem + 1.4815vw, 3rem);          /* 32–48 */
  --space-16: clamp(3rem,    2.3333rem + 2.9630vw, 5rem);          /* 48–80 */

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-icon: 22.5%;
  --radius-pill: 999px;
  --border-width: 1px;
  --focus-width: 2px;
  --focus-offset: 2px;

  --topbar-h: 56px;
  --btn-h: 36px;
  --btn-h-touch: 44px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 280ms;

  --bg: #050509;
  --card: #0e0e14;
  --raised: #14141c;
  --well: #1c2a24;
  --device-well-bg: radial-gradient(ellipse at 50% 42%, rgba(75, 255, 165, 0.22), transparent 68%),
                    linear-gradient(180deg, #1c2a24 0%, #141c1a 100%);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #e8eaed;
  --text-muted: #a8b0ba;
  --text-subtle: #8b939e;
  --text-on-accent: #050509;

  --mint: #4bffa5;
  --mint-hover: #6dffb5;
  --mint-soft: rgba(75, 255, 165, 0.12);
  --amber: #f5c56b;
  --amber-soft: rgba(245, 197, 107, 0.14);
  --danger: #f7797b;
  --danger-soft: rgba(247, 121, 123, 0.14);
  --focus: #4bffa5;

  --code-key: #a8b0ba;
  --code-string: #c9d1d9;
  --code-number: #86b0ff;
  --code-punct: #8b939e;
  --code-comment: #8b939e;

  --container: 72rem;
  --container-pad: var(--space-6);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
  }
}

.db-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  box-sizing: border-box;
}
