/* PhysicianCanada "Care": tokens, reset, element defaults and focus styles */

:root {
  --color-paper: #f3f8fb;
  --color-card: #ffffff;
  --color-ink: #0d3b56;
  --color-ink-2: #1b5375;
  --color-text: #1b2a3a;
  --color-muted: #57687a;
  --color-line: #dfe8ef;
  --color-accent: #0a6c9e;
  --color-accent-hover: #07517a;
  --color-gold: #2f8f5b;
  --color-blue-soft: #e3f1f9;
  --color-green-soft: #e4f4ea;
  --color-green-text: #1f6a43;
  --color-star: #e09b00;
  --color-on-ink: #ffffff;
  --color-on-ink-muted: #c3d6e3;
  --color-focus: #c2410c;

  --font-serif: "Outfit", system-ui, sans-serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-3: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: clamp(3rem, 2rem + 4vw, 5rem);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 74rem;
  --shadow: 0 1px 2px rgb(10 50 80 / 0.05), 0 10px 30px rgb(10 50 80 / 0.07);

  color-scheme: light;
}

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
}

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

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

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

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

:where(ul[class], ol[class]) {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

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