/* ADA Rights Trust - site styles
   Target: WCAG 2.2 AA. No JavaScript. One typeface.
   Contrast (on #FFFFFF): ink #1B2A41 = 13.9:1, green #0B6E4F = 6.6:1, muted #4A5568 = 7.0:1
*/

:root {
  --ink: #1B2A41;
  --muted: #4A5568;
  --paper: #FFFFFF;
  --band: #EEF2F6;
  --rule: #C9D3DF;
  --action: #0B6E4F;
  --action-dark: #084F39;
  --focus: #E0A100;
  --measure: 68ch;
  --gutter: clamp(1rem, 4vw, 3rem);
}

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

/* Focus: the one loud element on the site */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100%;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

a {
  color: var(--action);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--action-dark); }

/* Header */
.site-header {
  border-bottom: 2px solid var(--ink);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.25rem var(--gutter);
}
.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--ink); text-decoration: underline; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--action); }

/* Layout */
.wrap { max-width: 72rem; margin: 0 auto; }
main { display: block; }
.section { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter); }
.section.band { background: var(--band); }
.prose { max-width: var(--measure); }
.wrap.prose { max-width: 72rem; }
.wrap.prose > * { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }

h1, h2, h3 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); max-width: 22ch; }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.3125rem; }
.prose h2 { margin-top: 0; }
.prose h2 + * { margin-top: 0.75em; }
.prose h3 { margin-top: 1.75em; }

.lede {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  max-width: 40ch;
  margin-top: 1.25rem;
}

/* Hero */
.hero { padding-top: clamp(3rem, 9vw, 7rem); padding-bottom: clamp(3rem, 8vw, 6rem); }

/* Buttons */
.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  background: var(--action);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--action);
  border-radius: 4px;
}
.button:hover { background: var(--action-dark); border-color: var(--action-dark); color: var(--paper); }
.button.secondary { background: transparent; color: var(--action); }
.button.secondary:hover { background: var(--band); color: var(--action-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Definition / plain statements */
.statement {
  border-top: 2px solid var(--ink);
  padding-top: 1.25rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.4;
  max-width: 38ch;
}

/* Testimonials */
.testimonial {
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 6px solid var(--ink);
  max-width: var(--measure);
}
.testimonial + .testimonial { margin-top: 3rem; }
.testimonial p { margin: 0 0 1em; font-style: italic; }
.testimonial p:last-of-type { margin-bottom: 0; }
.testimonial footer { margin-top: 1rem; font-weight: 700; font-style: italic; }
.testimonial footer span { display: block; font-weight: 400; color: var(--muted); }

.quote-list .testimonial { border-left-color: var(--action); }

/* FAQ */
.faq dt {
  font-weight: 700;
  font-size: 1.3125rem;
  margin-top: 2rem;
}
.faq dt:first-of-type { margin-top: 0; }
.faq dd { margin: 0.5rem 0 0; }
.faq dd > * + * { margin-top: 1em; }

/* Forms */
form { max-width: 40rem; }
.field { margin-top: 1.5rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.field .hint { display: block; color: var(--muted); font-size: 1rem; margin-bottom: 0.5rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}
textarea { min-height: 10rem; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline-offset: 2px; }
.required { color: var(--ink); }
button[type="submit"] { font: inherit; cursor: pointer; margin-top: 2rem; }
fieldset { border: 2px solid var(--rule); border-radius: 4px; padding: 1rem 1.25rem 1.25rem; margin: 1.5rem 0 0; }
legend { font-weight: 700; padding: 0 0.5rem; }
.choice { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 0.75rem; }
.choice input { width: 1.4rem; height: 1.4rem; margin: 0.15rem 0 0; flex: none; accent-color: var(--action); }
.choice label { font-weight: 400; margin: 0; }

/* Lists */
ul.plain { padding-left: 1.25rem; }
ul.plain li + li { margin-top: 0.5rem; }

/* Footer */
.site-footer {
  border-top: 2px solid var(--ink);
  padding: 2.5rem var(--gutter) 3rem;
  color: var(--muted);
  font-size: 1rem;
}
.site-footer .wrap { display: grid; gap: 1.5rem; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--action-dark); }
.site-footer p { margin: 0; max-width: 72ch; }

@media (min-width: 48rem) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .disclaimer { grid-column: 1 / -1; }
}

/* Two-column pairing for home */
.pair {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 56rem) {
  .pair { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
}

/* High contrast mode support */
@media (forced-colors: active) {
  .button { border: 2px solid ButtonText; }
  .site-nav a[aria-current="page"] { border-bottom-color: Highlight; }
}

/* Print */
@media print {
  .site-nav, .skip-link, .actions { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; }
}

/* Credential badge */
.hero-grid { display: grid; gap: 2rem; align-items: start; }
.badge {
  display: block;
  width: 180px;
  height: auto;
  background: var(--paper);
}
@media (min-width: 48rem) {
  .hero-grid { grid-template-columns: 1fr auto; gap: 3rem; }
  .badge { width: 220px; }
}
@media (min-width: 72rem) {
  .badge { width: 260px; }
}

/* Pull quote (About page) */
.pullquote {
  margin: 1.5rem 0 0;
  padding: 0 0 0 1.5rem;
  border-left: 6px solid var(--action);
  max-width: var(--measure);
}
.pullquote p { margin: 0; font-style: italic; font-size: 1.25rem; line-height: 1.45; }
.pullquote footer { margin-top: 0.75rem; font-size: 1rem; color: var(--muted); }
.pullquote cite { font-style: normal; }

/* About hero: text vertically centered on the badge */
.hero-grid.centered { align-items: center; }

/* Footer disclaimer emphasis */
.disclaimer .underline { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--ink); }
