:root {
    --primary-color: hsl(2.38, 64.81%, 45.69%);
    --secondary-color: hsl(56.18, 88.7%, 65.29%);
    --black-color: hsl(0, 100%, 1.37%);
    --padding: 1rem;
    --border-radius: 8px;
    --content-width: 800px;
}
html {
    scroll-behavior: smooth;
    color-scheme: light;
    accent-color: var(--primary-color);
}
body {
    background-color: #fafafa;
    color: var(--black-color);
    font-family: system-ui;
    margin: 0;
    min-height: 100vh;
}
img,
picture,
figure,
svg,
video {
    display: block;
    max-width: 100%;
    height: auto;
}
::selection {
    background-color: var(--secondary-color);
}
header {
    position: absolute;
    inset: 0;
    bottom: auto;
    background: #fafafa;
    z-index: 100;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--padding);

    padding: var(--padding) calc(var(--padding) * 2);
    border-bottom: 0.2em solid var(--black-color);
    & branding {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        gap: 0.5rem;
        font-weight: bold;
    }
    & .logo {
        width: 150px;
        height: 149px;
    }
}
nav {
    ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: end;
        gap: 0.5rem;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    a {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-box-trim: trim-both;
        text-box-edge: ex alphabetic;

        background-color: var(--primary-color);
        color: #fff;
        font-size: 1.1em;
        font-weight: 500;
        border: 0.2em solid var(--black-color);
        text-decoration: none;
        padding: 0.2rem;
        padding-right: 0.75rem;
        border-radius: var(--border-radius);
        corner-shape: bevel;
    }
    svg {
        width: 1lh;
        height: 1lh;
        color: var(--secondary-color);
        background-color: var(--black-color);
        padding: 8px;
        border-radius: inherit;
        corner-shape: inherit;
    }
}
@media screen and (max-width: 800px) {
    header {
        padding: 0 8px;
    }
    header branding {
        display: block;
        text-align: center;
        & img {
            margin-inline: auto;
        }
        & span {
            display: none;
        }
    }
    header branding .logo {
        width: 100px;
        height: 99px;
    }
    nav ul {
        justify-content: center;
    }
    nav ul li a {
        padding-inline: 0.75rem;
    }
    nav ul li a span {
        display: none;
    }
}
banner {
    display: grid;
    place-items: center;
    text-align: left;
    isolation: isolate;
    overflow: clip;
    background-color: hsl(from var(--primary-color) h s calc(l * 0.9));
    color: hsl(from var(--primary-color) h s 99%);
    contain: content;

    position: absolute;
    inset: 0;

    box-sizing: border-box;

    .content {
        --ts: 0.2em;
        text-stroke: var(--ts) canvasText;
        -webkit-text-stroke: var(--ts) canvasText;
        paint-order: stroke fill;
        letter-spacing: 0.15em;
    }
    & > div {
        padding: calc(var(--padding) * 3);
        width: min(var(--content-width), 100%);
        line-height: 1;
        font-size: 1.2em;
        box-sizing: border-box;
    }
    & > :is(figure, iframe) {
        pointer-events: none;
        position: fixed;
        inset: 0;
        z-index: -1;
        opacity: 0.7;
    }
    & a {
        color: inherit;
        text-stroke: 0px;
        -webkit-text-stroke: 0px;
        text-decoration: underline;
        font-size: 1.1em;
        display: inline-flex;
        gap: 0.25em;
        align-items: center;
        font-weight: bold;
        text-box-trim: trim-both;
        text-box-edge: ex alphabetic;
        margin: 4px;

        background-color: var(--primary-color);
        color: #fff;
        font-size: 1.1em;
        font-weight: 500;
        border: 0.2em solid var(--black-color);
        text-decoration: none;
        padding: 1rem 1.5rem;
        border-radius: var(--border-radius);
        corner-shape: bevel;
    }
    & aside {
        background-color: rgba(255, 255, 255, 0.7);
        color: #000;
        padding: 16px;
        border-radius: var(--border-radius);
        corner-shape: bevel;
        backdrop-filter: blur(8px);
        align-self: center;
        margin: 8px;
    }
}
@media screen and (min-width: 801px) {
    banner .columns {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
    }
}
@media screen and (max-width: 800px) {
    banner {
        display: block;
        padding-top: 100px;
        font-size: 0.7em;
        text-align: center;
        overflow-y: auto;
    }
    banner > div {
        padding-top: 5vh;
    }
}
main {
    display: block;
    padding: var(--padding);
    margin-inline: auto;
    width: min(var(--content-width), 90%);
}
footer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
    padding: var(--padding);
}
[hidden] {
    display: none;
    content-visibility: hidden;
}
