@import "./design/tokens/tokens.css";

@tailwind base;
@tailwind components;
@tailwind utilities;

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--color-surface-base);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  line-height: var(--line-normal);
}

:root {
  --density-main-padding: 1rem;
  --density-shell-padding-x: 1rem;
  --density-shell-gap: 1rem;
  --density-topbar-padding-y: 0.5rem;
  --density-footer-padding-y: 0.25rem;
  --density-nav-padding: 0.5rem;
  --density-nav-gap: 0.25rem;
  --density-nav-item-padding-x: 0.75rem;
  --density-nav-item-padding-y: 0.5rem;
  --density-nav-section-padding-top: 0.5rem;
  --density-panel-padding: 0.75rem;
  --density-panel-padding-x: 0.75rem;
  --density-panel-header-padding-y: 0.5rem;
  --density-row-padding-y: 0.5rem;
  --density-metadata-gap: 0.75rem;
  --density-button-height: 2.25rem;
  --density-control-padding-x: 0.75rem;
  --density-control-padding-y: 0.25rem;
  --density-control-gap: 0.5rem;
  --density-gap: 0.75rem;
}

[data-density="compact"] {
  --density-main-padding: 0.75rem;
  --density-shell-padding-x: 0.75rem;
  --density-shell-gap: 0.75rem;
  --density-topbar-padding-y: 0.375rem;
  --density-footer-padding-y: 0.125rem;
  --density-nav-padding: 0.375rem;
  --density-nav-gap: 0.125rem;
  --density-nav-item-padding-x: 0.625rem;
  --density-nav-item-padding-y: 0.375rem;
  --density-nav-section-padding-top: 0.375rem;
  --density-panel-padding: 0.625rem;
  --density-panel-padding-x: 0.625rem;
  --density-panel-header-padding-y: 0.375rem;
  --density-row-padding-y: 0.375rem;
  --density-metadata-gap: 0.5rem;
  --density-button-height: 2rem;
  --density-control-padding-x: 0.625rem;
  --density-control-padding-y: 0.1875rem;
  --density-control-gap: 0.375rem;
  --density-gap: 0.5rem;
}

button,
a,
[tabindex]:not([tabindex="-1"]) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.motion-standard {
  transition-duration: var(--motion-duration-standard);
  transition-timing-function: var(--motion-ease-standard);
}
