/*
 * Ui engine — minimal CSS reset.
 *
 * Provides a consistent baseline for apps that don't load Tailwind's
 * Preflight. Apps using Tailwind can skip this file — Preflight covers
 * the same ground.
 *
 * Load before tokens and components:
 *
 *   stylesheet_link_tag "ui/reset", "ui/base", "ui/themes/indigo", "ui/components"
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-paragraph), sans-serif;
  font-size: var(--font-size-16);
  line-height: var(--line-height-26);
  color: var(--color-text-neutral-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
  text-align: inherit;
  appearance: none;
  background: none;
  border: 0;
  border-radius: 0;
}

button {
  cursor: pointer;
}

/* native <dialog>: drop the UA border/padding/background (the component supplies
   its own box). `margin: auto` restores the UA modal centering that the universal
   `* { margin: 0 }` above would otherwise cancel (showModal pins it via inset:0 +
   auto margins). Closed-state hiding stays UA-driven; the generator scopes the
   panel's box to `[open]` so it never forces a closed dialog visible. */
dialog {
  border: 0;
  padding: 0;
  margin: auto;
  background: none;
  color: inherit;
}

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