/*
 * Lorenzo Studio gestionale — global base styles.
 * Design tokens live in tokens/*.css (linked separately in the layout head).
 * Values here only ever reference CSS custom properties from those token files.
 */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ls-orange); text-decoration: none; }
a:hover { color: var(--ls-orange-hover); }

::selection { background: var(--ls-orange-tint-20); }

h1, h2, h3, h4, p { margin: 0; }

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

button { font-family: inherit; }

/* Accent serif for editorial word/phrase, per brand guide (used sparingly). */
.serif-accent { font-family: var(--font-serif-accent); font-style: italic; }

/* Uppercase eyebrow / kicker label. */
.eyebrow {
  font-size: var(--font-size-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

/* Shared surface card — flat, hairline border (no heavy shadow), per brand guide. */
.surface {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}

/* Status pill (documents, tickets). Background/color set inline per status. */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-label);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}

/* Simple visually-hidden helper for a11y labels. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Flash / toast region baseline (component styling handled by ViewComponent). */
.flash-region {
  position: fixed; top: 20px; right: 20px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
}
