/* Base reset, design tokens, typography, and button styles. */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

[hidden] {
  display: none !important;
}

:root {
  --color-primary: #176b5d;
  --color-text: #19323a;
  --color-muted: #53666b;
  --color-border: #dce7e2;
  --color-bg: #f3f7f5;
  --color-surface: #fff;
  --radius: 0.625rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button:focus-visible,
:focus-visible {
  outline: 3px solid #075e55;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 0.65rem 1rem;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #fff;
  color: #19323a;
  font-weight: 700;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary { background: var(--color-primary); color: #fff; }
.btn--secondary { border-color: var(--color-border); background: #fff; color: var(--color-text); }
.btn--danger { background: #dc2626; color: #fff; }
.btn--ghost { background: transparent; color: var(--color-primary); }
