/* DenialIntel — base: design tokens, reset, typography, focus */

:root {
  /* Color */
  --navy-900: #0f2742;
  --navy-800: #17365c;
  --blue-800: #154589;
  --blue-700: #1a56a8;
  --blue-300: #9cc2f0;
  --blue-50: #eef4fc;
  --slate-900: #1b2533;
  --slate-700: #3a4757;
  --slate-600: #4a5868;
  --slate-300: #c3ccd7;
  --slate-200: #dde3ea;
  --slate-100: #eceff4;
  --slate-50: #f6f8fa;
  --white: #ffffff;
  --amber-50: #fff8e6;
  --amber-200: #f1d9a0;
  --amber-500: #c98a00;
  --amber-900: #5c3d00;
  --footer-text: #c9d4e3;

  /* Type */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem);

  /* Space (8px grid) */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;

  --radius: 6px;
  --container: 75rem;
  --measure: 68ch;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--slate-900);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s2);
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--step-4);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--step-3);
}

h3,
.h3 {
  font-size: var(--step-1);
}

p,
ul,
ol,
dl {
  margin: 0 0 var(--s2);
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.25rem;
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-800);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--blue-700);
  outline-offset: 3px;
  border-radius: 2px;
}

strong {
  font-weight: 650;
}

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

/* Accessibility helpers */

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s2);
  z-index: 100;
  padding: var(--s1) var(--s2);
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s2);
  color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Common text utilities */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s2);
}

@media (min-width: 48rem) {
  .container {
    padding-inline: var(--s4);
  }
}

.measure {
  max-width: var(--measure);
}

.eyebrow {
  margin-bottom: var(--s2);
  color: var(--blue-700);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  max-width: var(--measure);
  color: var(--slate-700);
  font-size: var(--step-1);
  line-height: 1.55;
}

.muted {
  color: var(--slate-600);
}

.small {
  font-size: var(--step--1);
}

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