/* ============================================================
   PROMPTS UI · DESIGN TOKENS
   Monochrome-first developer surface · Geist Sans/Mono
   ============================================================ */

:root {
  /* ===== Color · Light theme (default) ===== */
  --bg: #ffffff;
  --bg-elevated: #fafafa;
  --bg-deep: #f2f2f2;
  --bg-subtle: #fafafa;
  --surface: #ffffff;
  --surface-2: #fafafa;

  --fg: #171717;
  --fg-muted: #4d4d4d;
  --fg-meta: #8f8f8f;
  --fg-placeholder: #8f8f8f;
  --text: #171717;
  --muted: #8f8f8f;

  --border: #ebebeb;
  --border-strong: #d4d4d4;
  --hairline: #ebebeb;

  /* Accent · electric blue */
  --accent: #0070f5;
  --accent-deep: #0061d2;
  --accent-soft: rgba(0, 112, 245, 0.10);
  --accent-on: #ffffff;

  /* Semantic palette */
  --amber: #a35200;
  --amber-bg: #ffd60a;
  --green: #297a3a;
  --red: #cc2a2a;
  --teal: #077a6e;
  --purple: #7820bb;
  --pink: #bd2864;

  /* ===== Typography ===== */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;

  --letter-display: -0.04em;
  --letter-heading: -0.03em;
  --letter-body: 0;
  --letter-label: 0.0125em;

  /* ===== Radius · soft squares ===== */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 6px;          /* canonical button/input */
  --radius-lg: 8px;          /* large input */
  --radius-card: 12px;
  --radius-pill: 9999px;

  /* ===== Spacing · 24px gap unit ===== */
  --gap-xs: 6px;
  --gap-sm: 12px;
  --gap-md: 24px;
  --gap-lg: 48px;
  --gap-xl: 96px;

  /* ===== Shadows · subtle multi-layer ===== */
  --shadow-sm: 0 2px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-menu: 0 1px 1px rgba(0, 0, 0, 0.02), 0 4px 8px -4px rgba(0, 0, 0, 0.04), 0 16px 24px -8px rgba(0, 0, 0, 0.06);
  --shadow-focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

  /* ===== Layout ===== */
  --header-h: 56px;
  --container-max: 1440px;
  --container-main-max: 1200px;
  --sidebar-w: 240px;
  --gutter: 40px;
}

/* ===== Dark theme ===== */
[data-theme="dark"] {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-deep: #050505;
  --bg-subtle: #0a0a0a;
  --surface: #0a0a0a;
  --surface-2: #141414;

  --fg: #ededed;
  --fg-muted: #a1a1a1;
  --fg-meta: #717171;
  --fg-placeholder: #717171;
  --text: #ededed;
  --muted: #717171;

  --border: #1f1f1f;
  --border-strong: #2e2e2e;
  --hairline: #1f1f1f;

  --accent: #0070f5;
  --accent-deep: #3b9dff;
  --accent-soft: rgba(0, 112, 245, 0.16);
  --accent-on: #ffffff;

  --shadow-sm: 0 2px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-menu: 0 1px 1px rgba(0, 0, 0, 0.2), 0 4px 8px -4px rgba(0, 0, 0, 0.4), 0 16px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* ===== Base reset + body ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  font-feature-settings: 'cv11', 'ss03';
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 14px;
  color: inherit;
}
