/* n0t.net — custom stylesheet
   Colors: text #414f57, headings #313f47, accent #374e00, borders #c8cccf
   Font: Maven Pro (Google Fonts), weight 300/400
*/

/* -------------------------
   Reset & base
------------------------- */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Maven Pro', Helvetica, sans-serif;
    font-weight: 300;
    font-size: 1em;
    line-height: 1.5;
    color: #414f57;
    background-color: #ffffff;
    background-image: url("../images/bg.png");
    background-repeat: repeat;
    background-attachment: fixed;
}

/* -------------------------
   Layout
------------------------- */

#wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5em;
}

#main {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 3em;
    max-width: 52em;
    width: 100%;
    text-align: center;
}

/* -------------------------
   Header
------------------------- */

header {
    margin-bottom: 2em;
}

/* Avatar with horizontal rule through its center */
.avatar {
    position: relative;
    display: block;
    margin-bottom: 1em;
}

.avatar::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: -3em;
    width: calc(100% + 6em);
    height: 1px;
    background: #c8cccf;
    z-index: 0;
}

.avatar img {
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

header > p {
    font-size: 0.875em;
    color: #616f77;
    letter-spacing: 0.04em;
    margin-bottom: 1.5em;
}

/* -------------------------
   Icon links
------------------------- */

ul.icons {
    list-style: none;
    margin-bottom: 1.5em;
}

ul.icons li {
    display: inline-block;
    padding: 0.5em;
}

ul.icons li a {
    display: block;
    width: 3em;
    height: 3em;
    border-radius: 50%;
    border: 1px solid #c8cccf;
    line-height: 3em;
    text-align: center;
    text-decoration: none;
    font-size: 1.1em;
    color: #414f57;
    transition: border-color 0.2s ease, color 0.2s ease;
}

ul.icons li a:hover {
    border-color: #374e00;
    color: #374e00;
}

/* -------------------------
   Photo & quote
------------------------- */

.photo img {
    display: block;
    max-width: 100%;
    border-radius: 4px;
    margin: 0 auto 1.5em;
}

blockquote {
    font-style: italic;
    font-size: 0.9em;
    color: #616f77;
    text-align: left;
}

blockquote cite {
    font-style: normal;
    display: block;
    padding-left: 2em;
}

/* -------------------------
   Footer
------------------------- */

footer {
    border-top: 1px solid #c8cccf;
    padding-top: 1.5em;
    font-size: 0.75em;
    color: #414f57;
}

footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 1.5em;
}

/* -------------------------
   Responsive
------------------------- */

@media (max-width: 480px) {
    body {
        font-size: 0.875em;
        line-height: 1.75;
    }

    #main {
        padding: 1em;
    }

    .avatar::before {
        left: -1em;
        width: calc(100% + 2em);
    }

    footer ul {
        flex-direction: column;
        gap: 0.25em;
        align-items: center;
    }
}
