/* ===========================================================================
   Atelier — Base
   Minimal, opinionated resets that make the tokens feel native. Body type,
   selection color, focus ring, and the press-feedback affordance the craft
   guidelines insist on. Nothing here invents new color — it only wires tokens.
   =========================================================================== */

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--selection);
  color: var(--selection-foreground);
}

/* Headings inherit the sans display role; tighten tracking as they grow. */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--display-font);
  font-weight: var(--heading-weight);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--foreground);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* The craft rule: every pressable element acknowledges the press instantly. */
button, [role="button"], a {
  -webkit-tap-highlight-color: transparent;
}

/* Visible, token-driven focus ring for keyboard users. */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
  border-radius: var(--radius-sm);
}

/* A tracked-caps utility for mono eyebrows / technical labels. */
.atelier-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted-foreground);
}
