/*
  Colors are copied from packages/design-tokens/src/index.ts in the
  battery-passport repo, with the contrast ratios that file records. Copied
  rather than imported on purpose: a one-page static site should not carry a
  cross-repo dependency for five hex values. If a token changes there, this
  does not follow automatically.

  No webfont. The token file names Geist and Inter, but loading either means
  either a third-party origin (which the Content-Security-Policy in vercel.json
  refuses) or self-hosted font files and a build step. Neither is worth it for
  one page, so this uses the system stack.
*/
:root {
  --background: #f6f7f3; /* warm white */
  --surface: #ffffff;
  --text-primary: #111817; /* carbon, 16.73:1 on background */
  --text-secondary: #66736f; /* slate, 4.60:1 on background, AA with no margin */
  --border: #dde1da;
  --accent-text: #2c62ff; /* blue as text on background, 4.54:1 */
  --focus-ring: #66736f;
}

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

body {
  margin: 0;
  padding: clamp(1.5rem, 5vw, 4rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background: var(--background);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

.wordmark {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lede {
  margin: 0;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
}

section {
  margin-top: 3.5rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.card p {
  margin: 0 0 1rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* comfortably past the WCAG 2.2 target size minimum */
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.link:hover {
  text-decoration-thickness: 2px;
}

.link:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

footer {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

footer p {
  margin: 0;
}
