@layer reset, base, components, theme;

/* ─── Reset ─────────────────────────────────────────────────────────────── */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
      sans-serif;
    -webkit-tap-highlight-color: transparent;
  }

  input,
  button,
  textarea,
  select {
    font: inherit;
    color: inherit;
  }

  button {
    cursor: pointer;
    border: none;
    background: none;
  }
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
@layer base {
  :root {
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.25rem;
    --space-xl: 1.5rem;

    /* Typography */
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
      "Liberation Mono", monospace;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
  }

  body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-block-size: 100dvh;
    line-height: 1.5;
  }
}

/* ─── Components placeholder (populated in components.css) ───────────────── */
@layer components {}

/* ─── Theme placeholder (populated in theme files) ───────────────────────── */
@layer theme {}
