/* SEO Fixlist — reset and base styles */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-14);
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 var(--s-3);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-34); }
h2 { font-size: var(--fs-24); }
h3 { font-size: var(--fs-18); }
h4 { font-size: var(--fs-15); }

p { margin: 0 0 var(--s-3); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { vertical-align: middle; }

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

code {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--accent-deep);
  overflow-wrap: anywhere;
}

hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }

button { font-family: inherit; }

ul, ol { margin: 0 0 var(--s-3); padding-left: 1.4em; }

small { font-size: var(--fs-12); }

::selection { background: var(--accent-tint); color: var(--accent-deep); }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Text helpers */
.text-muted { color: var(--slate); }
.text-faint { color: var(--muted); }
.text-sm { font-size: var(--fs-12); }
.text-xs { font-size: var(--fs-11); }
.text-strong { font-weight: 600; }
.text-crit { color: var(--crit-text); }
.text-high { color: var(--high-text); }
.text-pass { color: var(--pass-text); }
.text-accent { color: var(--accent-deep); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Layout helpers */
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.flex-center { display: flex; align-items: center; gap: var(--s-2); }
.flex-wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack-1 > * + * { margin-top: var(--s-1); }
.stack-2 > * + * { margin-top: var(--s-2); }
.stack-3 > * + * { margin-top: var(--s-3); }
.stack-4 > * + * { margin-top: var(--s-4); }
.stack-6 > * + * { margin-top: var(--s-6); }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); }
.hidden { display: none !important; }

/* Accessibility */
.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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: var(--s-2) var(--s-4); border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
