@layer reset {
    *, *::before, *::after {
        box-sizing: border-box;
        background-repeat: no-repeat;
    }

    * {
        padding: 0;
        margin: 0;
    }

    html {
        -webkit-text-size-adjust: none;
        text-size-adjust: none;
        line-height: 1.5;
        -webkit-font-smoothing: antialiased;
        block-size: 100%;
    }

    body {
        min-block-size: 100%;
    }

    input, button, textarea, select {
        font: inherit;
    }

    textarea {
        resize: vertical;
    }

    fieldset, iframe {
        border: none;
    }

    p, h1, h2, h3, h4, h5, h6 {
        overflow-wrap: break-word;
    }

    p {
        text-wrap: pretty;
        font-variant-numeric: proportional-nums;
    }

    h1, h2, h3, h4, h5, h6 {
        font-variant-numeric: lining-nums;
    }

    p, blockquote, q, figcaption,
    li {
        hanging-punctuation: first allow-end last;
    }

    input, label, button, h1, h2, h3, h4, h5, h6 {
        line-height: 1.1;
    }

    math, time, table {
        font-variant-numeric: tabular-nums lining-nums slashed-zero;
    }

    code {
        font-variant-numeric: slashed-zero;
    }

    table {
        border-collapse: collapse;
    }

    abbr {
        font-variant-caps: all-small-caps;
        text-decoration: none;

        &[title] {
            cursor: help;
            text-decoration: underline dotted;
        }
    }

    sup, sub {
        line-height: 0;
    }

    :disabled {
        opacity: 0.8;
        cursor: not-allowed;
    }

    :focus-visible {
        outline-offset: 0.2rem;
    }
}

@layer main {

    :root {
        font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
        font-size: max(6pt, 3vmin);
        line-height: 1.618;
        color: #000000;
    }

    #hero { grid-area: hero; }
    footer { grid-area: footer; }
    #copyright { grid-area: copy; }
    #contact { grid-area: contact; }
    #company { grid-area: company; }
    #sep01 { grid-area: div01; }
    #sep02 { grid-area: div02; }

    body {
        background: #F9F9F7;
        min-width: 320px;
        min-height: 320px;
        height: 100svh;
    }

    #page {
        width: 100%;
        height: 100%;
        margin: env(safe-area-inset-top, 1rem)
                env(safe-area-inset-right, 1rem)
                env(safe-area-inset-bottom, 1rem)
                env(safe-area-inset-left, 1rem);
        display: grid;
        grid-template-areas: "hero" "footer";
        grid-template-columns: auto;
        grid-template-rows: minmax(200px,1fr) max-content;
    }

    footer {
        padding: 2ex 1em 1em 1em;
        min-height: 5vmin;
        display: grid;
        grid-template-areas: ". copy    ."
                             ". contact ."
                             ". company .";
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: repeat(3, 1lh);
        gap: 0;
        color: #4169e1;
    }

    .sep {
        display: none;
        color: black;
    }

    @media (width >= 80ch) and (orientation: landscape) {
        footer {
            display: block;
            text-align: center;
            text-wrap: balance;
            grid-template-areas: "copy div01 contact div02 company";
            grid-template-columns: 1fr 2px 1fr 2px 1fr;
            grid-template-rows: auto;
            gap: 12px;
            font-size: clamp(8pt, 1.5vw, 24pt);
        }

        footer > div {
            display: inline-block;
            text-wrap: nowrap;
        }

        footer > .sep {
            display: inline;
            text-align: center;
            text-wrap: nowrap;
        }
    }

    #hero > img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }

} /* end of main @layer */