/**
 * A.R.C Technology - CSS Reset & Normalization v4.0
 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height, 72px);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

body {
  min-height: 100vh;
  line-height: var(--leading-normal);
  font-family: var(--font-family);
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

ul, ol {
  list-style: none;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8, 2rem) 0;
}

table {
  border-collapse: collapse;
}

::selection {
  background: var(--color-teal);
  color: var(--color-navy);
}

/* Focus visible - WCAG 2.2 AA */
:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip link — off-viewport until focus; fixed !important so global a { position: relative } cannot win */
.skip-link {
  position: fixed !important;
  top: 1rem;
  left: -9999px;
  right: auto;
  margin: 0;
  background: var(--color-teal);
  color: var(--color-navy);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  font-size: var(--fs-sm);
  z-index: 10000;
  text-decoration: none;
  transition: left 0.15s var(--ease-smooth), box-shadow 0.15s ease;
  box-shadow: none;
  overflow: visible;
  white-space: nowrap;
  max-width: min(100vw - 2rem, 22rem);
  clip: auto;
  clip-path: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  box-shadow: var(--shadow-teal);
  outline: 3px solid var(--color-navy);
  outline-offset: 2px;
}

/* Hidden attribute — must beat any author-stylesheet display overrides */
[hidden] {
  display: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
