:root {
    --color-sand: #F7EBD4;
    --color-navy: #031D44;
    --color-dark: #1B2021;
    --color-accent: #1919bd;
    --color-accent-hover: #0492a3;
    --color-teal: #036672;
    --color-cyan: #06aabc;
    --color-muted: #4a5568;
    --color-tag: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--color-sand);
    color: var(--color-navy);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: sans-serif;
}

h1:focus {
    outline: none;
}

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

/* Two-column layout that collapses to one column on narrow screens. */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

/* Anchored sections should not hide under the top of the viewport. */
section[id] {
    scroll-margin-top: 1rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}
