/* ArtesaNFC — Base styles
   Reset, body defaults, typography, links, buttons, focus, media defaults,
   accessibility helpers. No component or page-specific rules here. */

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

* {
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: var(--text-body);
  line-height: 1.5;
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  font-size: var(--text-display-xl);
}

h2 {
  font-size: var(--text-heading-2);
}

h3 {
  font-size: var(--text-heading-1);
}

p {
  max-width: 60ch;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:not([class]) {
  text-decoration-color: currentColor;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

/* Focus visibility — DESIGN_SYSTEM.md §18 */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Skip link — visible only on focus */
.skip-link {
  position: absolute;
  top: -1000px;
  left: 0;
  z-index: 1000;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-surface-dark);
  color: var(--color-text-inverse);
}

.skip-link:focus-visible {
  top: 0;
}

/* Visually hidden but available to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
