:root {
    --header-height: 3em
}

html {
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    min-height: 100vh;
}

.main-grid {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 8px;
    grid-template-areas:
        'header header header header header'
        'menu   msg    msg    msg    right'
        'menu   main   main   main   right'
        'footer footer footer footer footer';
}

.main-grid header {
    grid-area: header;
    box-sizing: border-box;
    position: sticky;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    top: 0;
    right: 0;
    max-width: 100vw;
    background-color: bisque;
    height: var(--header-height);
}

.main-grid footer {
    grid-area: footer;
    box-sizing: border-box;
    position: sticky;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    bottom: 0;
    background-color: bisque;
}

.main-grid main {
    justify-self: center;
    grid-area: main;
}

.main-grid .error-message {
    justify-self: center;
    background-color: rgba(255, 50, 50, 50);
    border-radius: 5px;
    padding: 5px;
    grid-area: msg;
}

.logo img {
    height: 3ex;
    margin: 8px;
}

.feather {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.monospace {
    font-family: monospace;
}
