* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-weight: inherit;
}

main a, footer a {
    text-decoration: none;
    border-bottom-width: 2px;
    border-bottom-style: solid;
}

html {
    --white: hsl(0, 0%, 95%);
    --blue: hsl(220, 50%, 85%);
    --dark-blue: hsl(220, 100%, 45%);
    --dark-blue-light: hsl(220, 100%, 50%);

    font-size: 16px;
    font-family: "IBM Plex Sans", sans-serif;
    background-image:
        linear-gradient(to top, var(--white), transparent),
        radial-gradient(ellipse farthest-corner, var(--white), var(--blue));
    background-size: 100% 300px, 100% 300px;
    background-repeat: no-repeat;
    background-color: var(--white);

    @media (min-width: 1000px) {
        background-image:
            linear-gradient(to top, var(--white) 50%, transparent),
            radial-gradient(ellipse farthest-corner, var(--white), var(--blue));
        background-size:
            100% 50%,
            cover;
        background-position:
            bottom center,
            center;
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 20px;
    @media (min-width: 1000px) {
        padding-top: 50px;
    }
}

.index {
    body {
        padding-top: 30px;
    }

    main {
        align-content: center;
        flex: 1;
        width: 100%;
        max-width: 80em;
        padding-left: 12px;
        padding-right: 12px;
        margin-left: auto;
        margin-right: auto;
    }

    .title {
        margin-bottom: 50px;
        text-align: center;
    }

    h1 {
        margin-bottom: 12px;
        line-height: 1;
        font-size: 60px;
        font-family: "Zen Kurenaido", sans-serif;
        text-shadow: 0 0 5px var(--blue);
    }

    .tagline {
        color: hsl(0, 0%, 25%);
    }

    main {
        text-align: center;

        .principle-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
            margin-bottom: 50px;
    
            @media (min-width: 1000px) {
                grid-template-columns: repeat(3, 1fr);
            }
        }
    
        h2 {
            margin-bottom: 10px;
            text-align: center;
            font-size: 24px;
            text-shadow: 0 0 5px var(--blue);
        }
    
        .principle p {
            margin-bottom: 5px;
            text-wrap: balance;
        }

        .link {
            grid-column: span 3;
        }
    
        .contact {
            a {
                display: inline-block;
                border: 0;
                border-radius: 4px;
                padding: 12px;
                color: var(--white);
                background-color: var(--dark-blue);
                filter: drop-shadow(3px 3px 0 var(--blue))
            }

            .emoji {
                line-height: 0;
                font-size: 28px;
                position: relative;
                top: 4px;
                margin-left: -5px;
            }
    
            a:hover, a:focus {
                background-color: var(--dark-blue-light);
            }
        }
    }
}

.page {
    header {
        text-align: center;
        margin-bottom: 24px;

        a {
            color: inherit;
            text-decoration: inherit;
        }

        .company {
            margin-bottom: 8px;
            line-height: 1;
            font-size: 24px;
            font-family: "Zen Kurenaido", sans-serif;
            text-shadow: 0 0 5px var(--blue);
            
            a:hover {
                text-decoration: underline;
            }
        }

        .tagline {
            font-size: 12px;
            color: hsl(0, 0%, 25%);
        }
    }

    main {
        width: 100%;
        max-width: 50em;
        padding-left: 12px;
        padding-right: 12px;
        flex: 1;
        margin-left: auto;
        margin-right: auto;

        h2 {
            text-align: center;
            margin-bottom: 24px;
            border-top: 1px solid var(--blue);
            padding-top: 16px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--blue);
        }
    
        p, ol, ul {
            line-height: 1.5;
            margin-bottom: 16px;
        }
    
        ol, ul {
            padding-left: 3em;
            padding-right: 3em;
        }
    
        li {
            margin-bottom: 8px;
        }
    
        hr {
            display: block;
            margin-left: auto;
            margin-right: auto;
            border: 0;
            border-top: 1px solid var(--blue);
            margin-top: 24px;
            margin-bottom: 24px;
        }

        .principles {
            text-align: center;
            font-style: italic;
        }
    
        .emoji-list {
            display: inline-block;
            list-style-type: none;
            text-align: left;
    
            li {
                position: relative;
                font-style: normal;
            }
    
            a {
                border-bottom: 0;
            }
    
            .emoji {
                position: absolute;
                transform: translateX(-100%);
            }
    
            .text {
                border-bottom-width: 2px;
                border-bottom-style: solid;
            }
        }
    }
}

footer {
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 30px;
    padding-top: 50px;
    font-size: 13px;

    a {
        border-bottom-width: 1px;
    }

    .tag-list {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        margin-bottom: 12px;
        overflow: hidden;
        /* mask-image: linear-gradient(to right, transparent, white, transparent); */
        white-space: nowrap;

        li {
            border: 1px solid var(--blue);
            border-radius: 4px;
            padding: 4px 6px;
            list-style-type: none;
        }
    }

    .links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 6px;

        li {
            list-style-type: none;
        }

        li + li:before {
            content: "·";
            padding-right: 6px;
        }
    }

    .footnote {
        color: hsl(0, 0%, 60%);
        margin-bottom: 8px;
    }
}