:root {
    --color-green-950: #102d13;
    --color-green-900: #163d19;
    --color-green-800: #244f29;
    --color-green-700: #2e6a34;
    --color-green-600: #527054;
    --color-green-400: #8aa985;
    --color-green-200: #d4ddd2;
    --color-green-100: #edf3ec;
    --color-green-050: #f5f7f4;
    --color-brown-050: #f7f0eb;
    --color-text: #242424;
    --color-text-muted: #4b554b;
    --color-border: #d9e0d7;
    --color-background: #ffffff;
    --color-error: #a32020;
    --color-focus: #8aa985;
    --font-heading: Arial, Helvetica, sans-serif;
    --font-body: Georgia, "Times New Roman", serif;
    --font-monospace: Consolas, "Courier New", monospace;
    --content-width: 1200px;
    --content-gutter: 2rem;
    --content-gutter-mobile: 1.25rem;
    --border-radius-small: 0.25rem;
    --border-radius-medium: 0.4rem;
    --shadow-small: 0 0.35rem 1rem rgba(30, 56, 31, 0.07);
    --shadow-medium: 0 0.75rem 2rem rgba(0, 0, 0, 0.15);
}

html {
    min-width: 320px;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
picture,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
    font-style: italic;
    background-repeat: no-repeat;
    background-size: cover;
    shape-margin: 0.75rem;
}

picture {
    width: 100%;
}

iframe {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: #245c2a;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

    a:hover {
        color: var(--color-green-900);
        text-decoration-thickness: 2px;
    }

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--color-green-900);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

h4 {
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
}

p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

ul,
ol {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

blockquote {
    margin-top: 0;
}

address {
    font-style: normal;
}

table {
    border-collapse: collapse;
}

input,
textarea,
select {
    max-width: 100%;
    border: 1px solid #aeb9ac;
    border-radius: var(--border-radius-small);
    background-color: #ffffff;
    color: var(--color-text);
}

button {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus,
h3[tabindex="-1"]:focus {
    outline: none;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.75rem;
    background-color: var(--color-error);
    color: #ffffff;
}

    .blazor-error-boundary::after {
        content: "An unexpected error has occurred.";
    }

.valid.modified:not([type="checkbox"]) {
    outline: 2px solid #27863a;
}

.invalid {
    outline: 2px solid #b32121;
}

.validation-message {
    color: #a32020;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    body {
        font-size: 0.975rem;
    }
}
@media (forced-colors: active) {
    a,
    button,
    input,
    select,
    textarea,
    summary {
        forced-color-adjust: auto;
    }

    :focus-visible {
        outline: 3px solid CanvasText;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
