/* site basics */

* {
    box-sizing: border-box;
}

html {
    background: #222;
}

body {
    margin: 0;
    color: white;
    font: 14px Verdana, Arial, Helvetica, sans-serif;
    line-height: 1.5;
    background: #222;
}

a {
    color: orchid;
    text-decoration: none;
}

a:hover {
    color: chartreuse;
    text-decoration: underline;
}

.wrap-site {
    width: min(1100px, calc(100% - 24px));
    margin: 12px auto 22px;
}

/* Top Bar -- All Pages */

.top-bar-logo-title {
    border: 1px solid ghostwhite;
}

.topline {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    color: orchid;
    background: #000;
    font-size: 12px;
    letter-spacing: .2px;
    gap: 10px;
}

.logo-title {
    display: flex;
    background: linear-gradient(#666, #333, #000);
    padding: 10px;
    gap: 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    border: 2px white solid;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    background: black;
}

.title {
    margin-left: 10px;
    min-width: 0;
}

.title h1 {
    margin: 0;
    font: bold 34px serif;
    letter-spacing: -1px;
    text-shadow: 1px 2px #000;
    color: orchid;
    overflow-wrap: anywhere;
}

.title p {
    margin: 0 0 0 5px;
    font: 18px sans-serif;
    color: orchid;
}

.navbar-wrapper {
    margin-bottom: 60px;
    background: black;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border: white solid;
    border-width: 0px 1px 1px;
    gap: 0;
}

.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-width: 0;
}

.navbar span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0px;
    padding: 4px 10px;
    border-right: white 1px solid;
    min-height: 34px;
}

.navbar-sign-in {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: violet;
    margin: 0;
    padding: 4px 12px;
}

.main-navigation {
    display: grid;
}

.welcome {
    border: 1px solid ghostwhite;
    margin: 10px 0px;
    padding: 0px 20px;
    background: #000;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.welcome strong {
    color: violet;
}

/* Footer -- All Pages */

.footer {
    background: black;
    border: 1px solid #ddd;
    margin-top: 50px;
}

.footer p {
    text-align: center;
    font-size: 10px;
}

/* Home Page */

.pages {
    display: grid;
    align-items: center;
    gap: 0;
    margin: 10px 0px 10px 0px;
    padding: 0 9px;
    min-height: 34px;
    background: black;
    border: 1px solid #ddd; 
    box-shadow: inset 0 1px #000;
}

.side-boxes {
    display: grid;
    background: black;
    border: 1px solid #ddd;
}

/* Site Info (about.html) */

.about {
    background: black;
    border: 1px solid #ddd;
    padding: 10px;
}

/* Mobile layout */
@media (max-width: 600px) {
    .wrap-site {
        width: calc(100% - 16px);
        margin: 8px auto 16px;
    }

    .topline {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 6px 8px;
        overflow-wrap: anywhere;
    }

    .logo-title {
        padding: 10px 8px;
    }

    .logo img {
        width: 42px;
        height: 42px;
    }

    .title {
        margin-left: 8px;
    }

    .title h1 {
        font-size: clamp(22px, 6vw, 30px);
        letter-spacing: -0.5px;
        line-height: 1.2;
    }

    .title p {
        font-size: 14px;
        margin: 3px 0 0;
        line-height: 1.3;
    }

    .navbar-wrapper {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 20px;
        gap: 0;
    }

    .navbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .navbar span {
        text-align: center;
        padding: 8px 4px;
        min-height: 42px;
        border-right: 1px solid #555;
        border-bottom: 1px solid #555;
        font-size: 14px;
        margin: 0;
    }

    .navbar span:nth-child(even) {
        border-right: none;
    }

    .navbar-sign-in {
        min-height: 40px;
        width: 100%;
        padding: 8px;
        border-top: 1px solid #555;
        text-align: center;
    }

    .welcome {
        padding: 10px;
        flex-direction: column;
        gap: 5px;
    }

    .footer {
        margin-top: 30px;
    }
}

/* Extra-small phones */
@media (max-width: 360px) {
    .wrap-site {
        width: calc(100% - 12px);
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .title {
        margin-left: 6px;
    }

    .title h1 {
        font-size: 22px;
    }

    .title p {
        font-size: 12px;
    }

    .navbar span {
        font-size: 13px;
        padding: 8px 2px;
    }
}