:root {
  /* Brand */
  --color-brand-50: #eef8f3;
  --color-brand-100: #d7efe4;
  --color-brand-500: #16805d;
  --color-brand-600: #126b4e;
  --color-brand-700: #0d523c;
  --color-brand-900: #073326;

  /* Neutral surfaces */
  --color-page: #f6f8f7;
  --color-surface: #ffffff;
  --color-surface-soft: #f0f4f2;
  --color-border: #d8e0dc;

  /* Text */
  --color-text: #17201c;
  --color-text-soft: #52605a;
  --color-text-inverse: #ffffff;

  /* Semantic */
  --color-success: #147d52;
  --color-warning: #8a5b00;
  --color-danger: #b42318;
  --color-info: #165d9c;

  /* Focus */
  --color-focus: #125fce;

  /* Typography */
  --font-system:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --font-size-xs: 0.78rem;
  --font-size-sm: 0.9rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.35rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: clamp(2rem, 5vw, 3.25rem);

  --line-height-tight: 1.2;
  --line-height-base: 1.55;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Shape */
  --radius-sm: 0.45rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.35rem;
  --radius-round: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(19, 33, 26, 0.08);
  --shadow-md: 0 8px 28px rgba(19, 33, 26, 0.09);

  /* Layout */
  --sidebar-width: 16.5rem;
  --content-max: 90rem;
  --form-max: 46rem;
  --mobile-nav-height: 4.5rem;

  /* Layering */
  --z-nav: 100;
  --z-banner: 200;
  --z-modal: 1000;
}

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

html {
  min-width: 0;
  min-height: 100%;
  color-scheme: light;
  font-family: var(--font-system);
  background: var(--color-page);
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-page);
  font-family: var(--font-system);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--color-brand-700);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--color-brand-900);
}

button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--font-size-xl);
}

h3 {
  font-size: var(--font-size-lg);
}

p {
  color: var(--color-text-soft);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: var(--z-modal);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-text);
  color: var(--color-text-inverse);
  transform: translateY(-200%);
}

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

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