:root {
  --grass-green: #3A7D44;
  --sky-blue: #4A90C4;
  --poke-red: #D64545;
  --warm-white: #FBF9F4;
  --charcoal: #2B2B2B;
  --stone-gray: #6B6B6B;
  --mist-blue: #E8F1F8;
  --moss-light: #EAF3EB;
  --white: #FFFFFF;
  --border-charcoal-10: rgba(43, 43, 43, 0.10);
  --border-charcoal-12: rgba(43, 43, 43, 0.12);
  --border-charcoal-20: rgba(43, 43, 43, 0.20);
  --shadow-float: 0 4px 16px rgba(43, 43, 43, 0.08);
  --shadow-card-hover: 0 2px 8px rgba(43, 43, 43, 0.06);
  --focus-ring: 2px solid var(--sky-blue);
  --focus-offset: 2px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-128: 128px;
  --container-max: 1200px;
  --container-pad-mobile: 24px;
  --container-pad-tablet: 32px;
  --container-pad-desktop: 48px;
  --font-heading: "Barlow Condensed", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --text-display-desktop: 56px;
  --text-display-mobile: 40px;
  --text-h1-desktop: 44px;
  --text-h1-mobile: 32px;
  --text-h2-desktop: 32px;
  --text-h2-mobile: 26px;
  --text-h3-desktop: 24px;
  --text-h3-mobile: 20px;
  --text-h4-desktop: 20px;
  --text-h4-mobile: 18px;
  --text-body-large: 18px;
  --text-body: 16px;
  --text-small: 14px;
  --text-caption: 12px;
  --text-button: 16px;
  --transition-fast: 150ms ease-out;
  --transition-menu: 250ms ease-out;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--warm-white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--grass-green);
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(var(--text-h1-mobile), 4vw + 1rem, var(--text-h1-desktop));
  line-height: 1.15;
  margin-block-end: var(--space-16);
}

h2 {
  font-size: clamp(var(--text-h2-mobile), 3vw + 0.75rem, var(--text-h2-desktop));
  font-weight: 600;
  line-height: 1.25;
  margin-block-end: var(--space-16);
}

h3 {
  font-size: clamp(var(--text-h3-mobile), 2vw + 0.5rem, var(--text-h3-desktop));
  font-weight: 600;
  line-height: 1.3;
  margin-block-end: var(--space-12);
}

h4 {
  font-size: clamp(var(--text-h4-mobile), 1.5vw + 0.5rem, var(--text-h4-desktop));
  font-weight: 600;
  line-height: 1.35;
  margin-block-end: var(--space-8);
}

h5,
h6 {
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.4;
  margin-block-end: var(--space-8);
}

p {
  margin-block-end: var(--space-16);
  overflow-wrap: break-word;
}

ul,
ol {
  margin-block-end: var(--space-16);
  padding-inline-start: var(--space-24);
}

li {
  overflow-wrap: break-word;
}

blockquote {
  margin-block-end: var(--space-16);
  padding-inline-start: var(--space-16);
  border-inline-start: 4px solid var(--grass-green);
  color: var(--stone-gray);
  font-style: italic;
}

figure {
  margin-block-end: var(--space-16);
}

figcaption {
  font-size: var(--text-caption);
  color: var(--stone-gray);
  margin-block-start: var(--space-8);
  text-align: center;
}

hr {
  border: none;
  border-block-start: 1px solid var(--border-charcoal-10);
  margin-block: var(--space-32);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-16);
}

th,
td {
  padding: var(--space-8) var(--space-12);
  text-align: start;
  border-block-end: 1px solid var(--border-charcoal-10);
}

th {
  font-weight: 600;
  color: var(--charcoal);
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background-color: var(--mist-blue);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-2) var(--space-4);
}

pre {
  padding: var(--space-16);
  overflow-x: auto;
  margin-block-end: var(--space-16);
}

small {
  font-size: var(--text-small);
}

strong {
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-mobile);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-sm);
  font-size: var(--text-button);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  min-height: 44px;
  border: 2px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--grass-green);
  color: var(--warm-white);
  border-color: var(--grass-green);
}

.btn-primary:hover {
  background-color: #2f6637;
  border-color: #2f6637;
}

.btn-action {
  background-color: var(--poke-red);
  color: var(--warm-white);
  border-color: var(--poke-red);
}

.btn-action:hover {
  background-color: #b83a3a;
  border-color: #b83a3a;
}

.btn-secondary {
  background-color: transparent;
  color: var(--charcoal);
  border-color: var(--grass-green);
}

.btn-secondary:hover {
  background-color: var(--moss-light);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--grass-green);
  border-color: transparent;
  padding-inline: var(--space-8);
}

.btn-tertiary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--border-charcoal-12);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.card > :last-child {
  margin-block-end: 0;
}

.tag {
  display: inline-block;
  padding: var(--space-4) var(--space-12);
  border-radius: var(--radius-sm);
  font-size: var(--text-caption);
  font-weight: 500;
  line-height: 1.4;
  background-color: var(--mist-blue);
  color: var(--charcoal);
}

.tag-moss {
  background-color: var(--moss-light);
}

.callout {
  padding: var(--space-16);
  border-radius: var(--radius-md);
  background-color: var(--mist-blue);
  border-inline-start: 4px solid var(--sky-blue);
  margin-block-end: var(--space-16);
}

.callout-green {
  background-color: var(--moss-light);
  border-inline-start-color: var(--grass-green);
}

.callout > :last-child {
  margin-block-end: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: var(--space-12);
  border: 1px solid var(--border-charcoal-20);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--charcoal);
  font-size: var(--text-body);
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sky-blue);
  box-shadow: 0 0 0 2px var(--sky-blue);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-weight: 600;
  margin-block-end: var(--space-4);
  font-size: var(--text-small);
}

fieldset {
  border: 1px solid var(--border-charcoal-12);
  border-radius: var(--radius-md);
  padding: var(--space-16);
  margin-block-end: var(--space-16);
}

legend {
  font-weight: 600;
  padding-inline: var(--space-8);
  font-size: var(--text-small);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--container-pad-tablet);
  }

  .card {
    padding: var(--space-32);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--container-pad-desktop);
  }

  h1 {
    line-height: 1.1;
  }

  h2 {
    line-height: 1.2;
  }
}

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