/* PVI Climate Risk Intelligence — design tokens & global base styles */

:root {
  /* Brand */
  --navy-950: #0a1e3c;
  --navy-800: #123464;
  --pvi-red: #e2231a;
  --pvi-red-dark: #b81810;

  /* Neutrals */
  --ink: #16233b;
  --slate: #5c6b83;
  --mist: #eef1f7;
  --white: #ffffff;
  --line: #e1e6ef;

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-lifted: 0 24px 48px -20px rgba(10, 30, 60, 0.35);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
}

a {
  color: var(--navy-800);
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--pvi-red);
  outline-offset: 2px;
}

button {
  font-family: inherit;
}

.messages {
  list-style: none;
  margin: 0;
  padding: 0.9rem 1.25rem;
  background: var(--navy-950);
  color: var(--white);
  font-size: 0.9rem;
}

.messages li + li {
  margin-top: 0.4rem;
}

.inline-form {
  display: inline;
}

.link-button {
  font: inherit;
  color: var(--navy-800);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.link-button:hover {
  color: var(--pvi-red);
}

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