/* base.css — reset, design tokens, typography.
   Tokens and typefaces follow the RCRA project site; the layout in main.css
   follows the single-column-plus-sidenav format. Edit tokens first — most of
   the look of the site follows from them. */

/* ---------- reset ---------- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 2rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

input,
button,
textarea,
select { font: inherit; }

p,
h1,
h2,
h3,
h4 { overflow-wrap: break-word; }

/* :where() keeps this at zero specificity, so a plain component class such as
   .list can put the markers back without needing a type selector. */
:where(ul[class], ol[class]) {
  list-style: none;
  padding: 0;
}

/* ---------- design tokens ---------- */

:root {
  /* color */
  --ink: #1a1a1a;
  --muted: #5b6470;
  --faint: #7b838d;
  --navy: #232d4b;
  --navy-2: #33406a;
  --orange: #e57200;
  --gray: #dce2e2;
  --gray-2: #eef1f1;
  --line: #d3d8d8;
  --card: #ffffff;

  /* type */
  --sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-size-xs: 12px;
  --font-size-sm: 13.5px;
  --font-size-base: 17px;
  --font-size-lg: 19px;

  /* space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;

  /* layout */
  --measure: 52rem;
  --sidenav-width: 250px;
  --radius: 8px;
  --border-width: 1px;
}

/* ---------- typography ---------- */

body {
  background-color: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: var(--orange); }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background-color: var(--gray-2);
  border: var(--border-width) solid var(--line);
  border-radius: 3px;
  padding: 0.06em 0.34em;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- a11y utilities ---------- */

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

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background-color: var(--card);
  border: var(--border-width) solid var(--line);
  border-radius: 3px;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

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